7 gStyle->SetPalette(1,0);
8 gStyle->SetOptStat(111111);
9 gStyle->SetOptFit(111111);
10 gStyle->SetPadRightMargin(0.15);
11 gStyle->SetPadLeftMargin(0.15);
12 gStyle->SetPadBottomMargin(0.15);
15 vector <TString> sdme;
20 vector <double> parms;
21 vector <double> parms_err;
30 Double_t scale_factor=400000/(float)maxev;
31 cout <<
"Use scale_factor=" << scale_factor <<
" maxev=" << maxev << endl;
33 TString
infile = filename+
".fit2";
34 TFile *
f =
new TFile(filename+
".root",
"read");
36 cout <<
"Opening parameters file: " << infile.Data() << endl;
37 cout <<
"Opening root file: " << (filename+
".root").Data() << endl;
40 TH1F *M2pigen = (TH1F*)f->Get(
"M2pigen");
41 TH1F *M2piacc = (TH1F*)f->Get(
"M2piacc");
42 TH1F *M2pidat = (TH1F*)f->Get(
"M2pidat");
43 TH1F *M2pibkgnd = (TH1F*)f->Get(
"M2pibkgnd");
44 TH1F *M2pidatsub = (TH1F*)M2pidat->Clone(
"M2pidatsub");
45 M2pidatsub->Add(M2pibkgnd,-1);
47 TH1F *cosThetagen = (TH1F*)f->Get(
"cosThetagen");
48 TH1F *cosThetaacc = (TH1F*)f->Get(
"cosThetaacc");
49 TH1F *cosThetadat = (TH1F*)f->Get(
"cosThetadat");
50 TH1F *cosThetabkgnd = (TH1F*)f->Get(
"cosThetabkgnd");
51 TH1F *cosThetadatsub = (TH1F*)cosThetadat->Clone(
"cosThetadatsub");
52 cosThetadatsub->Add(cosThetabkgnd,-1);
54 TH1F *psigen = (TH1F*)f->Get(
"psigen");
55 TH1F *psiacc = (TH1F*)f->Get(
"psiacc");
56 TH1F *psidat = (TH1F*)f->Get(
"psidat");
57 TH1F *psibkgnd = (TH1F*)f->Get(
"psibkgnd");
58 TH1F *psidatsub = (TH1F*)psidat->Clone(
"psidatsub");
59 psidatsub->Add(psibkgnd,-1);
61 TH1F *Phigen = (TH1F*)f->Get(
"Phigen");
62 TH1F *Phiacc = (TH1F*)f->Get(
"Phiacc");
63 TH1F *Phidat = (TH1F*)f->Get(
"Phidat");
64 TH1F *Phibkgnd = (TH1F*)f->Get(
"Phibkgnd");
65 TH1F *Phidatsub = (TH1F*)Phidat->Clone(
"Phidatsub");
66 Phidatsub->Add(Phibkgnd,-1);
68 TH1F *phigen = (TH1F*)f->Get(
"phigen");
69 TH1F *phiacc = (TH1F*)f->Get(
"phiacc");
70 TH1F *phidat = (TH1F*)f->Get(
"phidat");
71 TH1F *phibkgnd = (TH1F*)f->Get(
"phibkgnd");
72 TH1F *phidatsub = (TH1F*)phidat->Clone(
"phidatsub");
73 phidatsub->Add(phibkgnd,-1);
75 TH1F *tgen = (TH1F*)f->Get(
"tgen");
76 TH1F *tacc = (TH1F*)f->Get(
"tacc");
77 TH1F *tdat = (TH1F*)f->Get(
"tdat");
78 TH1F *tbkgnd = (TH1F*)f->Get(
"tbkgnd");
79 TH1F *tdatsub = (TH1F*)tdat->Clone(
"tdatsub");
80 tdatsub->Add(tbkgnd,-1);
83 TCanvas *
c0 =
new TCanvas(
"c0",
"c0",200,10,1000,700);
90 Double_t
ymin = 0/scale_factor;
91 Double_t
ymax = 4000/scale_factor;
93 M2pigen->SetTitle(filename);
94 M2pigen->GetXaxis()->SetRangeUser(xmin,xmax);
95 M2pigen->GetYaxis()->SetRangeUser(ymin,ymax);
96 M2pigen->GetXaxis()->SetTitleSize(0.05);
97 M2pigen->GetYaxis()->SetTitleSize(0.05);
98 M2pigen->GetXaxis()->SetTitle(
"M(#pi^{+}#pi^{-})");
99 M2pigen->SetMarkerColor(4);
101 M2pidat->SetMarkerColor(2);
102 M2pidat->SetLineColor(2);
103 M2pidat->SetMarkerStyle(20);
104 M2pidat->SetMarkerSize(0.1);
105 M2pibkgnd->SetMarkerStyle(20);
106 M2pibkgnd->SetMarkerSize(0.1);
107 M2pibkgnd->SetMarkerColor(1);
108 M2pibkgnd->SetLineColor(1);
110 M2pidat->Draw(
"samep");
111 M2pibkgnd->Draw(
"samep");
113 TLegend *
leg =
new TLegend(0.6,0.3,0.8,0.5);
114 leg->AddEntry(M2pigen,
"Gen",
"lp");
115 leg->AddEntry(M2pibkgnd,
"Bkgnd",
"lp");
116 leg->AddEntry(M2pidat,
"Data",
"lp");
122 ymax = 10000/scale_factor;
124 cosThetagen->SetTitle(filename);
126 if (setscale) cosThetagen->GetYaxis()->SetRangeUser(ymin,ymax);
127 cosThetagen->GetXaxis()->SetTitleSize(0.05);
128 cosThetagen->GetYaxis()->SetTitleSize(0.05);
129 cosThetagen->GetXaxis()->SetTitle(
"cos(#theta)");
130 cosThetagen->SetLineColor(4);
131 cosThetagen->Draw(
"p");
133 cosThetadat->SetMarkerColor(2);
134 cosThetadat->SetLineColor(2);
135 cosThetadat->SetMarkerStyle(20);
136 cosThetadat->SetMarkerSize(0.1);
137 cosThetabkgnd->SetMarkerStyle(20);
138 cosThetabkgnd->SetMarkerSize(0.1);
139 cosThetabkgnd->SetMarkerColor(1);
140 cosThetabkgnd->SetLineColor(1);
141 cosThetadat->Draw(
"samep");
142 cosThetabkgnd->Draw(
"samep");
147 ymax = 10000/scale_factor;
149 TF1 *cos2phi =
new TF1(
"cos2phi",
"[0]*(1+[1]*cos(2*x))",-3.14159,3.14159);
150 TF1 *cosphi =
new TF1(
"cosphi",
"[0]+[1]*cos(x)",-3.14159,3.14159);
152 psigen->SetTitle(filename);
154 if (setscale) psigen->GetYaxis()->SetRangeUser(ymin,ymax);
155 psigen->GetXaxis()->SetTitleSize(0.05);
156 psigen->GetYaxis()->SetTitleSize(0.05);
157 psigen->GetXaxis()->SetTitle(
"#psi");
158 psigen->SetMarkerColor(4);
159 psigen->Fit(cos2phi);
162 psidat->SetMarkerColor(2);
163 psidat->SetLineColor(2);
164 psidat->SetMarkerStyle(20);
165 psidat->SetMarkerSize(0.1);
166 psibkgnd->SetMarkerStyle(20);
167 psibkgnd->SetMarkerSize(0.1);
168 psibkgnd->SetMarkerColor(1);
169 psibkgnd->SetLineColor(1);
170 psidat->Draw(
"samep");
171 psibkgnd->Draw(
"samep");
176 ymax = 8000/scale_factor;
178 Phigen->SetTitle(filename);
180 if (setscale) Phigen->GetYaxis()->SetRangeUser(ymin,ymax);
181 Phigen->GetXaxis()->SetTitleSize(0.05);
182 Phigen->GetYaxis()->SetTitleSize(0.05);
183 Phigen->GetXaxis()->SetTitle(
"#Phi");
184 Phigen->SetMarkerColor(4);
185 Phigen->Fit(cos2phi);
188 Phidat->SetMarkerColor(2);
189 Phidat->SetLineColor(2);
190 Phidat->SetMarkerStyle(20);
191 Phidat->SetMarkerSize(0.1);
192 Phibkgnd->SetMarkerStyle(20);
193 Phibkgnd->SetMarkerSize(0.1);
194 Phibkgnd->SetMarkerColor(1);
195 Phibkgnd->SetLineColor(1);
196 Phidat->Draw(
"samep");
197 Phibkgnd->Draw(
"samep");
202 ymax = 8000/scale_factor;
204 phigen->SetTitle(filename);
206 if (setscale) phigen->GetYaxis()->SetRangeUser(ymin,ymax);
207 phigen->GetXaxis()->SetTitleSize(0.05);
208 phigen->GetYaxis()->SetTitleSize(0.05);
209 phigen->GetXaxis()->SetTitle(
"#phi");
210 phigen->SetMarkerColor(4);
214 phidat->SetMarkerColor(2);
215 phidat->SetLineColor(2);
216 phidat->SetMarkerStyle(20);
217 phidat->SetMarkerSize(0.1);
218 phibkgnd->SetMarkerStyle(20);
219 phibkgnd->SetMarkerSize(0.1);
220 phibkgnd->SetMarkerColor(1);
221 phibkgnd->SetLineColor(1);
222 phidat->Draw(
"samep");
223 phibkgnd->Draw(
"samep");
229 ymin = 100/scale_factor;
230 ymax = 400000/scale_factor;
232 tdat->SetTitle(filename);
233 tdat->GetXaxis()->SetTitleSize(0.05);
234 tdat->GetYaxis()->SetTitleSize(0.05);
235 tdat->GetXaxis()->SetTitle(
"-t");
237 tdat->GetXaxis()->SetRangeUser(xmin,xmax);
238 tdat->GetYaxis()->SetRangeUser(ymin,ymax);
239 tdat->SetMarkerColor(2);
240 tdat->SetLineColor(2);
241 tdat->SetMarkerStyle(20);
242 tdat->SetMarkerSize(0.1);
243 tdat->Fit(
"expo",
"",
"",0.002,0.01);
245 tgen->SetMarkerColor(4);
246 tbkgnd->SetMarkerStyle(20);
247 tbkgnd->SetMarkerSize(0.1);
248 tbkgnd->SetMarkerColor(1);
249 tbkgnd->SetLineColor(1);
251 tbkgnd->Draw(
"samep");
254 TCanvas *
c2 =
new TCanvas(
"c2",
"c2",200,10,1000,700);
262 TH1F *M2piAcceptance = (TH1F*)M2piacc->Clone(
"M2piAcceptance");
263 M2piAcceptance->SetTitle(
"Acceptance");
265 if (setscale) M2piAcceptance->GetYaxis()->SetRangeUser(ymin,ymax);
266 M2piAcceptance->Divide(M2pigen);
267 M2piAcceptance->GetXaxis()->SetTitleSize(0.05);
268 M2piAcceptance->GetYaxis()->SetTitleSize(0.05);
269 M2piAcceptance->GetXaxis()->SetTitle(
"M(#pi^{+}#pi^{-})");
270 M2piAcceptance->SetMarkerColor(4);
271 M2piAcceptance->Draw(
"p");
278 TH1F *cosThetaAcceptance = (TH1F*)cosThetaacc->Clone(
"cosThetaAcceptance");
279 cosThetaAcceptance->SetTitle(
"Acceptance");
281 if (setscale) cosThetaAcceptance->GetYaxis()->SetRangeUser(ymin,ymax);
282 cosThetaAcceptance->Divide(cosThetagen);
283 cosThetaAcceptance->GetXaxis()->SetTitleSize(0.05);
284 cosThetaAcceptance->GetYaxis()->SetTitleSize(0.05);
285 cosThetaAcceptance->GetXaxis()->SetTitle(
"cos(#theta)");
286 cosThetaAcceptance->SetMarkerColor(4);
287 cosThetaAcceptance->Draw(
"p");
294 TH1F *psiAcceptance = (TH1F*)psiacc->Clone(
"psiAcceptance");
295 psiAcceptance->SetTitle(
"Acceptance");
297 if (setscale) psiAcceptance->GetYaxis()->SetRangeUser(ymin,ymax);
298 psiAcceptance->Divide(psigen);
299 psiAcceptance->GetXaxis()->SetTitleSize(0.05);
300 psiAcceptance->GetYaxis()->SetTitleSize(0.05);
301 psiAcceptance->GetXaxis()->SetTitle(
"#psi");
302 psiAcceptance->SetMarkerColor(4);
303 psiAcceptance->Draw(
"p");
310 TH1F *PhiAcceptance = (TH1F*)Phiacc->Clone(
"PhiAcceptance");
311 PhiAcceptance->SetTitle(
"Acceptance");
313 if (setscale) PhiAcceptance->GetYaxis()->SetRangeUser(ymin,ymax);
314 PhiAcceptance->Divide(Phigen);
315 PhiAcceptance->GetXaxis()->SetTitleSize(0.05);
316 PhiAcceptance->GetYaxis()->SetTitleSize(0.05);
317 PhiAcceptance->GetXaxis()->SetTitle(
"#Phi");
318 PhiAcceptance->SetMarkerColor(4);
319 PhiAcceptance->Draw(
"p");
326 TH1F *phiAcceptance = (TH1F*)phiacc->Clone(
"phiAcceptance");
327 phiAcceptance->SetTitle(
"Acceptance");
329 if (setscale) phiAcceptance->GetYaxis()->SetRangeUser(ymin,ymax);
330 phiAcceptance->Divide(phigen);
331 phiAcceptance->GetXaxis()->SetTitleSize(0.05);
332 phiAcceptance->GetYaxis()->SetTitleSize(0.05);
333 phiAcceptance->GetXaxis()->SetTitle(
"#phi");
334 phiAcceptance->SetMarkerColor(4);
335 phiAcceptance->Draw(
"p");
344 TH1F *tAcceptance = (TH1F*)tacc->Clone(
"tAcceptance");
345 tAcceptance->SetTitle(
"Acceptance");
346 tAcceptance->GetXaxis()->SetRangeUser(xmin,xmax);
347 if (setscale) tAcceptance->GetYaxis()->SetRangeUser(ymin,ymax);
348 tAcceptance->Divide(tgen);
349 tAcceptance->GetXaxis()->SetTitleSize(0.05);
350 tAcceptance->GetYaxis()->SetTitleSize(0.05);
351 tAcceptance->GetXaxis()->SetTitle(
"-t");
352 tAcceptance->SetMarkerColor(4);
353 tAcceptance->Draw(
"p");
355 TCanvas *
c1 =
new TCanvas(
"c1",
"c1",200,10,1000,700);
360 ymin = 0/scale_factor;
361 ymax = 2000/scale_factor;
363 M2piacc->SetTitle(filename);
364 M2piacc->GetXaxis()->SetRangeUser(xmin,xmax);
365 M2piacc->GetYaxis()->SetRangeUser(ymin,ymax);
366 M2piacc->GetXaxis()->SetTitleSize(0.05);
367 M2piacc->GetYaxis()->SetTitleSize(0.05);
368 M2piacc->GetXaxis()->SetTitle(
"M(#pi^{+}#pi^{-})");
369 M2piacc->SetMarkerColor(1);
370 M2piacc->SetLineColor(1);
372 M2pidat->SetMarkerColor(2);
373 M2pidat->SetLineColor(2);
374 M2pidat->SetMarkerStyle(20);
375 M2pidat->SetMarkerSize(0.1);
376 M2pibkgnd->SetMarkerColor(4);
377 M2pibkgnd->SetLineColor(4);
378 M2pibkgnd->SetMarkerStyle(20);
379 M2pibkgnd->SetMarkerSize(0.1);
381 M2pidat->Draw(
"samep");
382 M2pibkgnd->Draw(
"samep");
384 TLegend *leg1 =
new TLegend(0.6,0.3,0.8,0.5);
386 leg1->AddEntry(M2piacc,
"Acc",
"lp");
387 leg1->AddEntry(M2pidat,
"Data",
"lp");
393 ymax = 4000/scale_factor;
395 cosThetaacc->SetTitle(filename);
397 if (setscale) cosThetaacc->GetYaxis()->SetRangeUser(ymin,ymax);
398 cosThetaacc->GetXaxis()->SetTitleSize(0.05);
399 cosThetaacc->GetYaxis()->SetTitleSize(0.05);
400 cosThetaacc->GetXaxis()->SetTitle(
"cos(#theta)");
401 cosThetaacc->SetLineColor(1);
402 cosThetaacc->SetMarkerColor(1);
403 cosThetaacc->Draw(
"p");
405 cosThetadat->SetMarkerColor(2);
406 cosThetadat->SetLineColor(2);
407 cosThetadat->SetMarkerStyle(20);
408 cosThetadat->SetMarkerSize(0.1);
409 cosThetabkgnd->SetMarkerColor(4);
410 cosThetabkgnd->SetLineColor(4);
411 cosThetabkgnd->SetMarkerStyle(20);
412 cosThetabkgnd->SetMarkerSize(0.1);
413 cosThetadat->Draw(
"samep");
414 cosThetabkgnd->Draw(
"samep");
419 ymax = 4000/scale_factor;
421 psiacc->SetTitle(filename);
423 if (setscale) psiacc->GetYaxis()->SetRangeUser(ymin,ymax);
424 psiacc->GetXaxis()->SetTitleSize(0.05);
425 psiacc->GetYaxis()->SetTitleSize(0.05);
426 psiacc->GetXaxis()->SetTitle(
"#psi");
427 psiacc->SetMarkerColor(1);
428 psiacc->SetLineColor(1);
429 psiacc->Fit(cos2phi);
432 psidat->SetMarkerColor(2);
433 psidat->SetLineColor(2);
434 psidat->SetMarkerStyle(20);
435 psidat->SetMarkerSize(0.1);
436 psibkgnd->SetMarkerColor(4);
437 psibkgnd->SetLineColor(4);
438 psibkgnd->SetMarkerStyle(20);
439 psibkgnd->SetMarkerSize(0.1);
440 psidat->Draw(
"samep");
441 psibkgnd->Draw(
"samep");
446 ymax = 4000/scale_factor;
448 Phiacc->SetTitle(filename);
450 if (setscale) Phiacc->GetYaxis()->SetRangeUser(ymin,ymax);
451 Phiacc->GetXaxis()->SetTitleSize(0.05);
452 Phiacc->GetYaxis()->SetTitleSize(0.05);
453 Phiacc->GetXaxis()->SetTitle(
"#Phi");
454 Phiacc->SetMarkerColor(1);
455 Phiacc->SetLineColor(1);
456 Phiacc->Fit(cos2phi);
459 Phidat->SetMarkerColor(2);
460 Phidat->SetLineColor(2);
461 Phidat->SetMarkerStyle(20);
462 Phidat->SetMarkerSize(0.1);
463 Phibkgnd->SetMarkerColor(4);
464 Phibkgnd->SetLineColor(4);
465 Phibkgnd->SetMarkerStyle(20);
466 Phibkgnd->SetMarkerSize(0.1);
467 Phidat->Draw(
"samep");
468 Phibkgnd->Draw(
"samep");
474 ymax = 4000/scale_factor;
476 phiacc->SetTitle(filename);
478 if (setscale) phiacc->GetYaxis()->SetRangeUser(ymin,ymax);
479 phiacc->GetXaxis()->SetTitleSize(0.05);
480 phiacc->GetYaxis()->SetTitleSize(0.05);
481 phiacc->GetXaxis()->SetTitle(
"#phi");
482 phiacc->SetMarkerColor(1);
483 phiacc->SetLineColor(1);
487 phidat->SetMarkerColor(2);
488 phidat->SetLineColor(2);
489 phidat->SetMarkerStyle(20);
490 phidat->SetMarkerSize(0.1);
491 phibkgnd->SetMarkerColor(4);
492 phibkgnd->SetLineColor(4);
493 phibkgnd->SetMarkerStyle(20);
494 phibkgnd->SetMarkerSize(0.1);
495 phidat->Draw(
"samep");
496 phibkgnd->Draw(
"samep");
502 ymin = 10/scale_factor;
503 ymax = 400000/scale_factor;
505 tdat->SetTitle(filename);
506 tdat->GetXaxis()->SetTitleSize(0.05);
507 tdat->GetYaxis()->SetTitleSize(0.05);
508 tdat->GetXaxis()->SetTitle(
"-t");
510 tdat->GetXaxis()->SetRangeUser(xmin,xmax);
511 tdat->GetYaxis()->SetRangeUser(ymin,ymax);
512 tdat->SetMarkerColor(2);
513 tdat->SetLineColor(2);
514 tdat->SetMarkerStyle(20);
515 tdat->SetMarkerSize(0.1);
517 tacc->SetMarkerColor(1);
518 tacc->SetLineColor(1);
519 tbkgnd->SetMarkerColor(4);
520 tbkgnd->SetLineColor(4);
521 tbkgnd->SetMarkerStyle(20);
522 tbkgnd->SetMarkerSize(0.1);
524 tbkgnd->Draw(
"samep");
526 TCanvas *
c3 =
new TCanvas(
"c3",
"c3",200,10,1000,700);
532 ymax = 10000/scale_factor;
534 M2piacc->SetTitle(filename);
537 M2piacc->GetXaxis()->SetTitleSize(0.05);
538 M2piacc->GetYaxis()->SetTitleSize(0.05);
539 M2piacc->GetXaxis()->SetTitle(
"M(#pi^{+}#pi^{-})");
540 M2piacc->SetMarkerColor(1);
542 M2pidatsub->SetMarkerColor(2);
543 M2pidatsub->SetLineColor(2);
544 M2pidatsub->SetMarkerStyle(20);
545 M2pidatsub->SetMarkerSize(0.1);
547 M2pidatsub->Draw(
"samep");
552 ymax = 4000/scale_factor;
554 cosThetaacc->SetTitle(filename);
556 if (setscale) cosThetaacc->GetYaxis()->SetRangeUser(ymin,ymax);
557 cosThetaacc->GetXaxis()->SetTitleSize(0.05);
558 cosThetaacc->GetYaxis()->SetTitleSize(0.05);
559 cosThetaacc->GetXaxis()->SetTitle(
"cos(#theta)");
560 cosThetaacc->SetLineColor(1);
561 cosThetaacc->Draw(
"p");
563 cosThetadatsub->SetMarkerColor(2);
564 cosThetadatsub->SetLineColor(2);
565 cosThetadatsub->SetMarkerStyle(20);
566 cosThetadatsub->SetMarkerSize(0.1);
567 cosThetadatsub->Draw(
"samep");
572 ymax = 4000/scale_factor;
576 Phiacc->SetTitle(filename);
578 if (setscale) Phiacc->GetYaxis()->SetRangeUser(ymin,ymax);
579 Phiacc->GetXaxis()->SetTitleSize(0.05);
580 Phiacc->GetYaxis()->SetTitleSize(0.05);
581 Phiacc->GetXaxis()->SetTitle(
"#Phi");
582 Phiacc->SetMarkerColor(1);
583 Phiacc->Fit(cos2phi);
586 Phidatsub->SetMarkerColor(2);
587 Phidatsub->SetLineColor(2);
588 Phidatsub->SetMarkerStyle(20);
589 Phidatsub->SetMarkerSize(0.1);
590 Phidatsub->Draw(
"samep");
597 ymax = 4000/scale_factor;
599 psiacc->SetTitle(filename);
601 if (setscale) psiacc->GetYaxis()->SetRangeUser(ymin,ymax);
602 psiacc->GetXaxis()->SetTitleSize(0.05);
603 psiacc->GetYaxis()->SetTitleSize(0.05);
604 psiacc->GetXaxis()->SetTitle(
"#psi");
605 psiacc->SetMarkerColor(1);
606 psiacc->Fit(cos2phi);
609 psidatsub->SetMarkerColor(2);
610 psidatsub->SetLineColor(2);
611 psidatsub->SetMarkerStyle(20);
612 psidatsub->SetMarkerSize(0.1);
613 psidatsub->Draw(
"samep");
619 ymax = 4000/scale_factor;
621 phiacc->SetTitle(filename);
623 if (setscale) phiacc->GetYaxis()->SetRangeUser(ymin,ymax);
624 phiacc->GetXaxis()->SetTitleSize(0.05);
625 phiacc->GetYaxis()->SetTitleSize(0.05);
626 phiacc->GetXaxis()->SetTitle(
"#phi");
627 phiacc->SetMarkerColor(1);
628 phiacc->SetLineColor(1);
632 phidatsub->SetMarkerColor(2);
633 phidatsub->SetLineColor(2);
634 phidatsub->SetMarkerStyle(20);
635 phidatsub->SetMarkerSize(0.1);
636 phidatsub->Draw(
"samep");
643 parameters.open (infile.Data());
645 cout <<
"ERROR: Failed to open data file= " << infile.Data() << endl;
650 while (line.ReadLine(parameters)){
652 TObjArray *tokens = line.Tokenize(
"\t");
653 Int_t ntokens = tokens->GetEntries();
655 cout <<
" ntokens=" << ntokens <<
" line=" << line.Data() << endl;
656 Int_t jmax=ntokens/3;
657 for (Int_t j=0; j<jmax; j++){
658 sdme.push_back( (((TObjString*)tokens->At(3*j))->GetString()) );
659 parms.push_back( (((TObjString*)tokens->At(3*j+1))->GetString()).Atof() );
660 parms_err.push_back( (((TObjString*)tokens->At(3*j+2))->GetString()).Atof());
665 sprintf (
string,
"AmpTool Fit\n");
666 printf(
"string=%s",
string);
667 TLatex *
t1 =
new TLatex(0.2,0.85,
string);
669 t1->SetTextSize(0.04);
672 for (Int_t j=0; j<sdme.size()-2; j++) {
673 cout << sdme[j] <<
"=" << parms[j] <<
" err=" << parms_err[j] << endl;
677 sprintf (
string,
"%s = \t%.3f #pm %.3f\n",sdmename.Data(),parms[j],parms_err[j]);
678 printf(
"string=%s",
string);
679 TLatex *t1 =
new TLatex(0.2,0.75 - 0.05*j,
string);
681 t1->SetTextSize(0.04);
689 c0->SaveAs(filename+
".pdf(");
690 c1->SaveAs(filename+
".pdf");
691 c2->SaveAs(filename+
".pdf");
692 c3->SaveAs(filename+
".pdf)");
void twopi_primakoff(TString filename, Int_t maxev=100000)
sprintf(text,"Post KinFit Cut")
printf("string=%s", string)