BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
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]
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 57 of file Validation/SingleAlg/share/eff.cxx.

58 {
59 sprintf( cut,
60 "(runinfo_ngood==0||runinfo_ngood==1)&&kal_n>=0.+%d*0.05&&kal_n<0.05+%d*0.05&&"
61 "costheta_n>-0.7&&costheta_n<0.7",
62 j, j );
63 runinfo->Draw( "kal_n", cut );
64 mc_single[j] = htemp->GetEntries();
65
66 sprintf( cut,
67 "runinfo_ngood==1&&kal_n>=0.+%d*0.05&&kal_n<0.05+%d*0.05&&costheta_n>-0.7&&"
68 "costheta_n<0.7",
69 j, j );
70 runinfo->Draw( "kal_n", cut );
71 kal_single[j] = htemp->GetEntries();
72 }
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)
*********Class see also m_nmax DOUBLE PRECISION m_MasPhot DOUBLE PRECISION m_phsu DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_r2 DOUBLE PRECISION m_WtMass INTEGER m_nmax INTEGER m_Nevgen INTEGER m_IsFSR INTEGER m_MarTot *COMMON c_KarFin $ !Output file $ !Event serial number $ !alpha QED at Thomson limit $ !minimum energy at CMS for remooval $ !infrared cut
Definition KarFin.h:27

◆ GetXaxis()

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

◆ GetYaxis()

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

◆ SetBorderSize()

legend SetBorderSize ( 0 )

◆ SetCanvasColor()

gStyle SetCanvasColor ( 0 )

◆ SetFillColor()

gStyle SetFillColor ( 0 )

◆ 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 ( 2 )

◆ SetLineColor() [2/3]

gr2 SetLineColor ( 3 )

◆ SetLineColor() [3/3]

gr3 SetLineColor ( 4 )

◆ SetLineWidth()

gStyle SetLineWidth ( 2. 5)

◆ SetMarkerColor() [1/3]

gr1 SetMarkerColor ( 2 )

◆ SetMarkerColor() [2/3]

gr2 SetMarkerColor ( 3 )

◆ SetMarkerColor() [3/3]

gr3 SetMarkerColor ( 4 )

◆ 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 ( 1 )

◆ SetPadTickY()

gStyle SetPadTickY ( 1 )

◆ SetPadTopMargin()

gStyle SetPadTopMargin ( 0. 1)

◆ SetTextColor()

text SetTextColor ( 2 )

◆ 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 36 of file Validation/SingleAlg/share/eff.cxx.

◆ eff_single

Double_t eff_single[20]

Definition at line 40 of file Validation/SingleAlg/share/eff.cxx.

◆ eff_single2

Double_t eff_single2[20]

Definition at line 45 of file Validation/SingleAlg/share/eff.cxx.

◆ eff_single3

Double_t eff_single3[20]

Definition at line 50 of file Validation/SingleAlg/share/eff.cxx.

◆ err_single

Double_t err_single[20]

Definition at line 41 of file Validation/SingleAlg/share/eff.cxx.

◆ err_single2

Double_t err_single2[20]

Definition at line 46 of file Validation/SingleAlg/share/eff.cxx.

◆ err_single3

Double_t err_single3[20]

Definition at line 51 of file Validation/SingleAlg/share/eff.cxx.

◆ errx

Double_t errx[20] = { 0 }

Definition at line 30 of file Validation/SingleAlg/share/eff.cxx.

30{ 0 };

◆ eventNo

Double_t eventNo = 5000.

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

◆ kal_single

Int_t kal_single[20]

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

Referenced by for().

◆ kal_single2

Int_t kal_single2[20]

Definition at line 43 of file Validation/SingleAlg/share/eff.cxx.

Referenced by f().

◆ kal_single3

Int_t kal_single3[20]

Definition at line 48 of file Validation/SingleAlg/share/eff.cxx.

◆ legend

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

Definition at line 172 of file Validation/SingleAlg/share/eff.cxx.

◆ mc_single

Int_t mc_single[20]

Definition at line 39 of file Validation/SingleAlg/share/eff.cxx.

Referenced by for().

◆ mc_single2

Int_t mc_single2[20]

Definition at line 44 of file Validation/SingleAlg/share/eff.cxx.

Referenced by f().

◆ mc_single3

Int_t mc_single3[20]

Definition at line 49 of file Validation/SingleAlg/share/eff.cxx.

◆ text

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

◆ x

Double_t x[20]
Initial value:
= { 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 }

Definition at line 32 of file Validation/SingleAlg/share/eff.cxx.

32 { 0.025, 0.075, 0.125, 0.175, 0.225, 0.275, 0.325, 0.375, 0.425, 0.475,
33 0.525, 0.575, 0.625, 0.675, 0.725, 0.775, 0.825, 0.875, 0.925, 0.975 };