17 TFile *
f1 =
new TFile(
"AnaFSimpleP4Bup1TXXb.root");
20 char fil3_s[50]=
"spectra0%d";
27 for(
int i=0;
i<8;
i++) {
38 TCanvas *
c4 =
new TCanvas(
"c4",
"the fit canvas",800,800);
40 TH2F*
h5 = (TH2F*)f1->Get(
"hvtx202");
46 h5->SetMarkerStyle(7);
49 TH2F*
h2 = (TH2F*)f1->Get(
"hvtx203");
52 h2->SetMarkerStyle(7);
57 TH2F*
h3 = (TH2F*)f1->Get(
"hvtx204");
60 h3->SetMarkerStyle(7);
64 TH2F*
h4 = (TH2F*)f1->Get(
"hvtx205");
66 h4->SetMarkerStyle(7);
69 TH2F*
h6 = (TH2F*)f1->Get(
"hvtx206");
71 h6->SetMarkerStyle(7);
74 TH2F*
h7 = (TH2F*)f1->Get(
"hvtx207");
76 h7->SetMarkerStyle(7);
79 TH2F*
h8 = (TH2F*)f1->Get(
"hvtx208");
81 h8->SetMarkerStyle(7);
93 TH2F*
h9 = (TH2F*)f1->Get(
"hvtx201");
98 h9->GetXaxis()->SetTitle(
"P_{High} (GeV/c)");
99 h9->GetXaxis()->SetLabelSize(0.03);
101 h9->GetXaxis()->CenterTitle();
102 h9->GetYaxis()->SetTitle(
"P_{Low} (GeV/c)");
103 h9->GetYaxis()->SetLabelSize(0.03);
104 h9->GetYaxis()->SetTitleOffset(1.5);
106 h9->GetYaxis()->CenterTitle();
117 TBox* box0 =
new TBox(0.12,0.065,0.14,0.08);
118 box0->SetLineColor(2);
119 box0->SetLineStyle(1);
120 box0->SetLineWidth(3);
121 box0->SetFillStyle(0);
124 TBox* box1 =
new TBox(0.112,0.093,0.126,0.104);
125 box1->SetLineColor(8);
126 box1->SetLineStyle(1);
127 box1->SetLineWidth(3);
128 box1->SetFillStyle(0);
130 TBox* box2 =
new TBox(0.126,0.093,0.14,0.104);
131 box2->SetLineColor(4);
132 box2->SetLineStyle(1);
133 box2->SetLineWidth(3);
134 box2->SetFillStyle(0);
136 TBox* box3 =
new TBox(0.097,0.094,0.106,0.103);
137 box3->SetLineColor(6);
138 box3->SetLineStyle(1);
139 box3->SetLineWidth(3);
140 box3->SetFillStyle(0);
143 TBox* box4 =
new TBox(0.106,0.104,0.112,0.113);
144 box4->SetLineColor(9);
145 box4->SetLineStyle(2);
146 box4->SetFillStyle(0);
149 TBox* box5 =
new TBox(0.098,0.095,0.105,0.104);
150 box5->SetLineColor(5);
151 box5->SetLineStyle(1);
152 box5->SetFillStyle(0);
155 TBox* box6 =
new TBox(0.112,0.104,0.123,0.115);
156 box6->SetLineColor(7);
157 box6->SetLineStyle(1);
158 box6->SetFillStyle(0);
161 TBox* box7 =
new TBox(0.104,0.094,0.115,0.104);
162 box7->SetLineColor(8);
163 box7->SetLineStyle(1);
164 box7->SetFillStyle(0);
167 TBox* box8 =
new TBox(0.098,0.088,0.107,0.096);
168 box8->SetLineColor(1);
169 box8->SetLineStyle(1);
170 box8->SetFillStyle(0);
173 leg =
new TLegend(0.2,0.6,0.45,0.85,0);
174 leg ->AddEntry(box0,
"Be^{11}_{#Lambda#Lambda}",
"F");
175 leg ->AddEntry(box1,
"Li ^{9}_{#Lambda#Lambda}",
"F");
176 leg ->AddEntry(box2,
"Be^{9}_{#Lambda}+H ^{4}_{#Lambda}",
"F");
177 leg ->AddEntry(box3,
" Be ^{10}_{#Lambda#Lambda}",
"F");
183 leg->SetEntrySeparation(0.3);
184 leg->SetBorderSize(0);
185 leg ->SetFillColor(0);
189 c4->Print(
"MesSeqDecColCutG4ST_P4.eps");
198 printf(
"\n...Panda Root Setup\n\n");
204 printf(
"...Loading Modes\n");
205 gStyle->SetPadBorderMode(1);
206 gStyle->SetPadBorderSize(1);
207 gStyle->SetPadColor(0);
208 gStyle->SetDrawBorder(0);
209 gStyle->SetCanvasBorderMode(0);
210 gStyle->SetCanvasBorderSize(0);
211 gStyle->SetTitleBorderSize(0);
212 gStyle->SetCanvasColor(10);
213 gStyle->SetStatBorderSize(1);
214 gStyle->SetFrameBorderMode(0);
215 gStyle->SetFrameBorderSize(1);
217 printf(
"...Loading Fit/Stat\n");
218 gStyle->SetFitFormat(
"2.3f");
219 gStyle->SetOptFit(0);
220 gStyle->SetOptStat(0) ;
221 gStyle->SetStatColor(0);
222 gStyle->SetStatX(0.46);
223 gStyle->SetStatY(0.9);
224 gStyle->SetStatW(0.15);
225 gStyle->SetStatH(0.1);
227 printf(
"...Loading Title Style\n");
228 gStyle->SetTitleColor(1);
229 gStyle->SetTitleFillColor(0);
230 gStyle->SetTitleX(0.5);
231 gStyle->SetTitleY(0.8);
233 gStyle->SetTitleOffset(1.3,
"x");
234 gStyle->SetTitleOffset(1.7,
"y");
235 gStyle->SetTitleOffset(1.7,
"z");
236 gStyle->SetTitleSize(.0425,
"x");
237 gStyle->SetTitleSize(.0425,
"y");
238 gStyle->SetTitleSize(.0425,
"z");
240 printf(
"...Loading Label Style\n");
241 gStyle->SetLabelOffset(.02,
"x");
242 gStyle->SetLabelOffset(.025,
"y");
243 gStyle->SetLabelOffset(.02,
"z");
244 gStyle->SetLabelFont(42,
"x");
245 gStyle->SetLabelFont(42,
"y");
246 gStyle->SetLabelFont(42,
"z");
247 gStyle->SetTickLength(-0.02,
"x");
248 gStyle->SetTickLength(-0.02,
"y");
249 gStyle->SetTickLength(-0.02,
"z");
250 gStyle->SetLabelSize(.0425,
"x");
251 gStyle->SetLabelSize(.0425,
"y");
252 gStyle->SetLabelSize(.0425,
"z");
253 gStyle->SetPadTickX(1);
254 gStyle->SetPadTickY(1);
256 gStyle->SetPadTopMargin(0.03);
257 gStyle->SetPadRightMargin(0.03);
258 gStyle->SetPadBottomMargin(0.12);
259 gStyle->SetPadLeftMargin(0.15);
261 printf(
"...Loading Fonts\n");
262 gStyle->SetTitleFont(42);
263 gStyle->SetStatFont(42);
264 gStyle->SetTitleFont(42,
"x");
265 gStyle->SetTitleFont(42,
"y");
266 gStyle->SetTitleFont(42,
"z");
267 gStyle->GetAttDate()->SetTextFont(42);
268 gStyle->GetAttDate()->SetTextSize(0.02);
270 printf(
"...Loading Histo Options\n");
271 gStyle->SetHistFillStyle(1001);
272 gStyle->SetHistLineWidth(1);
274 gStyle->SetOptDate(0);
275 gStyle->SetPalette(1);
printf("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime)