BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
getCurConstPar_dEdXCal.cxx File Reference

Go to the source code of this file.

Functions

curve SetBranchAddress ("CurveSize",&CurveSize)
 
curve SetBranchAddress ("curve", Curve)
 
sigma SetBranchAddress ("SigmaSize",&SigmaSize)
 
sigma SetBranchAddress ("sigma", Sigma)
 
ofstream file ("test_data.dat")
 
curve GetEntry (0)
 
 for (int i=0;i< CurveSize;i++)
 
file close ()
 

Variables

TTree * curve = (TTree*) f->Get("curve")
 
TTree * sigma = (TTree*) f->Get("sigma")
 
double Curve [100]
 
double Sigma [100]
 
int CurveSize
 
int SigmaSize
 

Function Documentation

◆ close()

◆ file()

ofstream file ( "test_data.dat"  )

◆ for()

for ( )

Definition at line 27 of file getCurConstPar_dEdXCal.cxx.

28 {
29 // curve->GetEntry(i);
30 // file1<<i<<" "<<CurveSize<<endl;
31// cout<<Curve[i]<<endl;
32 // cur = Curve[i];
33 file<<i<<" "<<Curve[i]<<endl;
34 }
char * file
Definition: DQA_TO_DB.cxx:15
double Curve[100]

◆ GetEntry()

◆ SetBranchAddress() [1/4]

curve SetBranchAddress ( "curve"  ,
Curve   
)

◆ SetBranchAddress() [2/4]

◆ SetBranchAddress() [3/4]

sigma SetBranchAddress ( "sigma"  ,
Sigma   
)

◆ SetBranchAddress() [4/4]

sigma SetBranchAddress ( "SigmaSize"  ,
SigmaSize 
)

Variable Documentation

◆ curve

TTree* curve = (TTree*) f->Get("curve")

Definition at line 5 of file getCurConstPar_dEdXCal.cxx.

◆ Curve

double Curve[100]

Definition at line 8 of file getCurConstPar_dEdXCal.cxx.

Referenced by for(), and DedxCalib::getCurvePar().

◆ CurveSize

int CurveSize

Definition at line 11 of file getCurConstPar_dEdXCal.cxx.

◆ sigma

TTree* sigma = (TTree*) f->Get("sigma")

Definition at line 6 of file getCurConstPar_dEdXCal.cxx.

◆ Sigma

double Sigma[100]

Definition at line 10 of file getCurConstPar_dEdXCal.cxx.

◆ SigmaSize

int SigmaSize

Definition at line 11 of file getCurConstPar_dEdXCal.cxx.