BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Validation/SingleAlg/SingleAlg-00-01-00/share/eff.cxx File Reference

Go to the source code of this file.

Functions

gStyle SetCanvasColor (0)
 
gStyle SetFillColor (0)
 
gStyle SetPadTickX (1)
 
gStyle SetPadTickY (1)
 
gStyle SetTitleXOffset (1.)
 
gStyle SetTitleYOffset (1.)
 
gStyle SetTitleXSize (0.06)
 
gStyle SetTitleYSize (0.06)
 
gStyle SetLabelSize (0.055,"x")
 
gStyle SetLabelSize (0.055,"y")
 
gStyle SetMarkerSize (1.8)
 
gStyle SetLineWidth (2.5)
 
gStyle SetPadLeftMargin (0.15)
 
gStyle SetPadTopMargin (0.1)
 
gStyle SetPadBottomMargin (0.15)
 
TFile f ("all10.root")
 
 for (Int_t j=1;j< 18;j++)
 
TFile f ("all09.root")
 
cout<<"............"<< endl;TGraph *gr1=new TGraphErrors(18, x, eff_single, errx, err_single);TGraph *gr2=new TGraphErrors(18, x, eff_single2, errx, err_single2);TGraph *gr3=new TGraphErrors(18, x, eff_single3, errx, err_single3);TCanvas *c1=new TCanvas("c1","p", 100, 10, 600, 400);TMultiGraph *mg=new TMultiGraph();gr1-> SetLineColor (2)
 
gr2 SetLineColor (3)
 
gr3 SetLineColor (4)
 
gr1 SetMarkerColor (2)
 
gr2 SetMarkerColor (3)
 
gr3 SetMarkerColor (4)
 
gr1 SetMarkerStyle (20)
 
gr2 SetMarkerStyle (22)
 
gr3 SetMarkerStyle (23)
 
mg Add (gr1)
 
mg Add (gr2)
 
mg Draw ("AP")
 
mg GetYaxis () -> SetRangeUser(0.8, 1.02)
 
mg GetXaxis () -> SetRangeUser(0.05, 1.05)
 
text AddText ("Boss 6.5.1")
 
text SetTextColor (2)
 
text SetBorderSize (0)
 
legend AddEntry (gr1,"1T tsf+pat","p")
 
legend AddEntry (gr2,"0.9T tsf+pat","p")
 
legend Draw ()
 

Variables

Double_t errx [20] ={0}
 
Double_t x [20] ={0.025,0.075,0.125,0.175,0.225,0.275,0.325,0.375,0.425,0.475,0.525,0.575,0.625,0.675,0.725,0.775,0.825,0.875,0.925,0.975}
 
Double_t eventNo =5000.
 
Char_t cut [200]
 
Int_t kal_single [20]
 
Int_t mc_single [20]
 
Double_t eff_single [20]
 
Double_t err_single [20]
 
Int_t kal_single2 [20]
 
Int_t mc_single2 [20]
 
Double_t eff_single2 [20]
 
Double_t err_single2 [20]
 
Int_t kal_single3 [20]
 
Int_t mc_single3 [20]
 
Double_t eff_single3 [20]
 
Double_t err_single3 [20]
 
TPaveText * text = new TPaveText(0.98,0.62,0.78,0.67,"tr")
 
TLegend * legend =new TLegend(0.55,0.45,0.75,0.65)
 

Function Documentation

◆ Add() [1/2]

mg Add ( gr1  )

◆ Add() [2/2]

mg Add ( gr2  )

◆ AddEntry() [1/2]

legend AddEntry ( gr1  ,
"1T tsf+pat"  ,
"p"   
)

◆ AddEntry() [2/2]

legend AddEntry ( gr2  ,
"0.9T tsf+pat"  ,
"p"   
)

◆ AddText()

text AddText ( "Boss 6.5.1"  )

Referenced by BesPaveText::SetText().

◆ Draw() [1/2]

mg Draw ( "AP"  )

◆ Draw() [2/2]

legend Draw ( )

◆ f() [1/2]

TFile f ( "all09.root"  )

◆ f() [2/2]

TFile f ( "all10.root"  )

◆ for()

for ( )

Definition at line 58 of file Validation/SingleAlg/SingleAlg-00-01-00/share/eff.cxx.

58 {
59 sprintf(cut,"(runinfo_ngood==0||runinfo_ngood==1)&&kal_n>=0.+%d*0.05&&kal_n<0.05+%d*0.05&&costheta_n>-0.7&&costheta_n<0.7",j,j);
60 runinfo->Draw("kal_n",cut);
61 mc_single[j]=htemp->GetEntries();
62
63 sprintf(cut,"runinfo_ngood==1&&kal_n>=0.+%d*0.05&&kal_n<0.05+%d*0.05&&costheta_n>-0.7&&costheta_n<0.7",j,j);
64 runinfo->Draw("kal_n",cut);
65 kal_single[j]=htemp->GetEntries();
66
67}
sprintf(cut,"kal_costheta0_em>-0.93&&kal_costheta0_em<0.93&&kal_pxy0_em>=0.05+%d*0.1&&kal_pxy0_em<0.15+%d*0.1&&NGch>=2", j, j)

◆ GetXaxis()

mg GetXaxis ( ) -> SetRangeUser(0.05, 1.05)

◆ GetYaxis()

mg GetYaxis ( ) -> SetRangeUser(0.8, 1.02)

◆ SetBorderSize()

legend SetBorderSize ( )

◆ SetCanvasColor()

gStyle SetCanvasColor ( )

Referenced by MdcCalibAlg::finalize(), and main().

◆ SetFillColor()

gStyle SetFillColor ( )

◆ SetLabelSize() [1/2]

gStyle SetLabelSize ( 0.  055,
"x"   
)

◆ SetLabelSize() [2/2]

gStyle SetLabelSize ( 0.  055,
"y"   
)

◆ SetLineColor() [1/3]

cout<<"............"<< endl;TGraph *gr1=new TGraphErrors(18, x, eff_single, errx, err_single);TGraph *gr2=new TGraphErrors(18, x, eff_single2, errx, err_single2);TGraph *gr3=new TGraphErrors(18, x, eff_single3, errx, err_single3);TCanvas *c1=new TCanvas("c1","p", 100, 10, 600, 400);TMultiGraph *mg=new TMultiGraph(); gr1-> SetLineColor ( )

◆ SetLineColor() [2/3]

gr2 SetLineColor ( )

◆ SetLineColor() [3/3]

gr3 SetLineColor ( )

◆ SetLineWidth()

gStyle SetLineWidth ( 2.  5)

◆ SetMarkerColor() [1/3]

gr1 SetMarkerColor ( )

◆ SetMarkerColor() [2/3]

gr2 SetMarkerColor ( )

◆ SetMarkerColor() [3/3]

gr3 SetMarkerColor ( )

◆ SetMarkerSize()

gStyle SetMarkerSize ( 1.  8)

◆ SetMarkerStyle() [1/3]

gr1 SetMarkerStyle ( 20  )

◆ SetMarkerStyle() [2/3]

gr2 SetMarkerStyle ( 22  )

◆ SetMarkerStyle() [3/3]

gr3 SetMarkerStyle ( 23  )

◆ SetPadBottomMargin()

gStyle SetPadBottomMargin ( 0.  15)

◆ SetPadLeftMargin()

gStyle SetPadLeftMargin ( 0.  15)

◆ SetPadTickX()

gStyle SetPadTickX ( )

◆ SetPadTickY()

gStyle SetPadTickY ( )

◆ SetPadTopMargin()

gStyle SetPadTopMargin ( 0.  1)

◆ SetTextColor()

text SetTextColor ( )

◆ SetTitleXOffset()

gStyle SetTitleXOffset ( 1.  )

◆ SetTitleXSize()

gStyle SetTitleXSize ( 0.  06)

◆ SetTitleYOffset()

gStyle SetTitleYOffset ( 1.  )

◆ SetTitleYSize()

gStyle SetTitleYSize ( 0.  06)

Variable Documentation

◆ cut

Char_t cut[200]

Definition at line 35 of file Validation/SingleAlg/SingleAlg-00-01-00/share/eff.cxx.

Referenced by for().

◆ eff_single

Double_t eff_single[20]

◆ eff_single2

Double_t eff_single2[20]

◆ eff_single3

Double_t eff_single3[20]

◆ err_single

Double_t err_single[20]

◆ err_single2

Double_t err_single2[20]

◆ err_single3

Double_t err_single3[20]

◆ errx

Double_t errx[20] ={0}

◆ eventNo

Double_t eventNo =5000.

◆ kal_single

Int_t kal_single[20]

Definition at line 37 of file Validation/SingleAlg/SingleAlg-00-01-00/share/eff.cxx.

Referenced by for().

◆ kal_single2

Int_t kal_single2[20]

◆ kal_single3

Int_t kal_single3[20]

◆ legend

TLegend* legend =new TLegend(0.55,0.45,0.75,0.65)

◆ mc_single

Int_t mc_single[20]

Definition at line 38 of file Validation/SingleAlg/SingleAlg-00-01-00/share/eff.cxx.

Referenced by for().

◆ mc_single2

Int_t mc_single2[20]

◆ mc_single3

Int_t mc_single3[20]

◆ text

TPaveText* text = new TPaveText(0.98,0.62,0.78,0.67,"tr")

◆ x

Double_t x[20] ={0.025,0.075,0.125,0.175,0.225,0.275,0.325,0.375,0.425,0.475,0.525,0.575,0.625,0.675,0.725,0.775,0.825,0.875,0.925,0.975}