BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
HadronConst.cxx File Reference

Go to the source code of this file.

Functions

void HadronConst ()
 

Function Documentation

◆ HadronConst()

void HadronConst ( )

Definition at line 1 of file HadronConst.cxx.

2{
3 TFile *f = new TFile("hadron.root","recreate");
4 TTree* tree = new TTree("ggscalib","ggscalib");
5 //double new_v[5]={9.99882e-02,9.33508e-04,8.46946e-03,1.75101e+00,9.58826e+00}; //2011 data under 662
6 // double new_v[5]={2.02648e-02,-1.49155e-03,1.09636e-02,1.75283e+00,2.19365e+00}; //2010 data under 662
7 double new_v[5]={1.25803e-02, -5.57378e-04, 1.07745e-02, 1.73587e+00, 1.14291e+00}; //2010 J/psi data under 662
8 int new_v2=5;
9
10 TBranch* branch1=tree->Branch("hadron", new_v, "hadron[5]/D");
11 TBranch* branch2=tree->Branch("hadronNo", &new_v2, "hadronNo/I");
12 tree->Fill();
13 tree->Write();
14 f->Close();
15}
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")