2gStyle->SetFrameFillColor(0);
3gStyle->SetCanvasColor(0);
4gStyle->SetFillColor(0);
9gStyle->SetTitleXOffset(1.);
10gStyle->SetTitleYOffset(1.);
12gStyle->SetTitleXSize(0.06);
13gStyle->SetTitleYSize(0.06);
15gStyle->SetLabelSize(0.055,
"x");
16gStyle->SetLabelSize(0.055,
"y");
17gStyle->SetMarkerSize(1.8);
18gStyle->SetLineWidth(2.5);
24gStyle->SetPadLeftMargin(0.15);
25gStyle->SetPadTopMargin(0.1);
26gStyle->SetPadBottomMargin(0.15);
32 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};
58for (Int_t j=1; j<18; j++){
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);
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);
75for (Int_t j=1; j<18; j++){
76sprintf(
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);
77 runinfo->Draw(
"kal_n",
cut);
79 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);
80 runinfo->Draw(
"kal_n",
cut);
89for (Int_t j=1; j<18; j++){
91sprintf(
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);
92 runinfo->Draw(
"kal_n",
cut);
94 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);
95 runinfo->Draw(
"kal_n",
cut);
101for (Int_t i=1;i<18;i++){
115 cout<<
"............"<<endl;
124TCanvas *c1 =
new TCanvas (
"c1",
"p",100,10,600,400);
125TMultiGraph *mg =
new TMultiGraph();
139gr1->SetMarkerColor(2);
140gr2->SetMarkerColor(3);
141gr3->SetMarkerColor(4);
144gr1->SetMarkerStyle(20);
145gr2->SetMarkerStyle(22);
146gr3->SetMarkerStyle(23);
162mg->GetYaxis()->SetRangeUser(0.8,1.02);
163mg->GetXaxis()->SetRangeUser(0.05,1.05);
164mg->GetXaxis()->SetTitle(
"Transvers Momentum/GeV");
165mg->GetYaxis()->SetTitle(
"Tracking Efficiency");
168TPaveText *
text =
new TPaveText(0.98,0.62,0.78,0.67,
"tr");
178TLegend *
legend=
new TLegend(0.55,0.45,0.75,0.65);
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)