BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
CurConst_dEdXCal.cxx
Go to the documentation of this file.
1
2{
3
4 TFile f1("../CurConstRoot/DedxCurConst_data_minrun-maxrun_bossversion.root","recreate");
5 TTree *curve=new TTree("curve","curve parameters");
6 TTree* sigma=new TTree("sigma","sigma parameters");
7
8 const int size1=17;
9 const int size2=15;
10
13 ifstream filea("../CurConstRoot/DedxCurConst_data_minrun-maxrun_bossversion.dat",ifstream::in);
14 for(int i=0;i<size1;i++)
15 {
17 cout<<N_DedxCurve_Parameter[i]<<endl;
18 }
19 for(int j=0;j<size2;j++)
20 {
22 cout<<N_DedxSigma_Parameter[j]<<endl;
23 }
24
25
28
29
30 curve->Branch("CurveSize",&CurveSize,"CurveSize/I");
31 curve->Branch("curve",N_DedxCurve_Parameter,"N_DedxCurve_Parameter[CurveSize]/D");
32 curve->Fill();
33 curve->Write();
34 sigma->Branch("SigmaSize",&SigmaSize,"SigmaSize/I");
35 sigma->Branch("sigma",N_DedxSigma_Parameter,"N_DedxSigma_Parameter[SigmaSize]/D");
36 sigma->Fill();
37 sigma->Write();
38 f1.Close();
39 cout<<"end"<<endl;
40 }
41
const int size2
TTree * sigma
ifstream filea("../CurConstRoot/DedxCurConst_data_minrun-maxrun_bossversion.dat", ifstream::in)
Double_t N_DedxCurve_Parameter[size1]
int SigmaSize
const int size1
Double_t N_DedxSigma_Parameter[size2]
TTree * curve
int CurveSize
TFile * f1