22 TFile
f1(
"/afs/cern.ch/cms/tracking/output/rootfiles/seedmultiplicity_Run2011A_express_ge1711_v3_v2.root");
23 TFile
f2(
"/afs/cern.ch/cms/tracking/output/rootfiles/seedmultiplicity_highmult_default_Run2011A_express_ge1711_v3_v2.root");
24 TFile
f3(
"/afs/cern.ch/cms/tracking/output/rootfiles/seedmultiplicity_highmult_Run2011A_express_ge1711_v3_v2.root");
30 TH2F* iter3Pixel1 = (TH2F*)castat1.
getObject(
"thTripletsPixel");
31 TH2F* iter3Pixel2 = (TH2F*)castat2.
getObject(
"thTripletsPixel");
32 TH2F* iter3Pixel3 = (TH2F*)castat3.
getObject(
"thTripletsPixel");
34 if(iter3Pixel1 && iter3Pixel2 && iter3Pixel3) {
35 TProfile* iter3Pixel1_prof = iter3Pixel1->ProfileX(
"prof1");
36 TProfile* iter3Pixel2_prof = iter3Pixel2->ProfileX(
"prof2");
37 TProfile* iter3Pixel3_prof = iter3Pixel3->ProfileX(
"prof3");
39 iter3Pixel1_prof->SetMarkerColor(kBlack); iter3Pixel1_prof->SetLineColor(kBlack);
40 iter3Pixel2_prof->SetMarkerColor(kBlue); iter3Pixel2_prof->SetLineColor(kBlue);
41 iter3Pixel3_prof->SetMarkerColor(kRed); iter3Pixel3_prof->SetLineColor(kRed);
43 new TCanvas(
"profile",
"profile");
45 iter3Pixel1_prof->GetXaxis()->SetRangeUser(0,10000);
46 iter3Pixel1_prof->GetXaxis()->SetTitle(
"clusters"); iter3Pixel1_prof->GetYaxis()->SetTitle(
"seeds");
50 TLegend*
leg =
new TLegend(.2,.6,.5,.85,
"Seeds vs clusters");
51 leg->AddEntry(iter3Pixel1_prof->DrawCopy(),
"standard RECO",
"l");
52 leg->AddEntry(iter3Pixel2_prof->DrawCopy(
"same"),
"standard RECO (high stat)",
"l");
53 leg->AddEntry(iter3Pixel3_prof->DrawCopy(
"same"),
"iter2 thr = 2M",
"l");
68 TH1F* iter3_2 = (TH1F*)castat2.
getObject(
"thTriplets");
69 TH1F* iter3_3 = (TH1F*)castat3.
getObject(
"thTriplets");
71 if(iter3_2 && iter3_3) {
73 iter3_2->SetLineColor(kBlue);
74 iter3_3->SetLineColor(kRed);
76 new TCanvas(
"iter3",
"iter3");
79 TLegend* legiter3 =
new TLegend(.5,.6,.85,.85,
"iter3 seeds");
80 legiter3->AddEntry(iter3_2->DrawCopy(),
"standard RECO",
"l");
81 legiter3->AddEntry(iter3_3->DrawCopy(
"same"),
"iter2 thr = 2M",
"l");
86 TH1F* iter2_2 = (TH1F*)castat2.
getObject(
"secTriplets");
87 TH1F* iter2_3 = (TH1F*)castat3.
getObject(
"secTriplets");
89 if(iter2_2 && iter2_3) {
91 iter2_2->SetLineColor(kBlue);
92 iter2_3->SetLineColor(kRed);
94 new TCanvas(
"iter2",
"iter2");
97 TLegend* legiter2 =
new TLegend(.5,.6,.85,.85,
"iter2 seeds");
98 legiter2->AddEntry(iter2_2->DrawCopy(),
"standard RECO",
"l");
99 legiter2->AddEntry(iter2_3->DrawCopy(
"same"),
"iter2 thr = 2M",
"l");
108 std::cout << shortname << module << postfix << std::endl;
111 sprintf(modfull,
"%s%s",module,postfix);
115 sprintf(dirname,
"%s%s",
"seedmultiplicity_",shortname);
134 gStyle->SetOptStat(111111);
140 TH1F* iter0 = (TH1F*)castat.
getObject(
"newSeedFromTriplets");
145 plotfilename += outtrunk;
146 plotfilename += dirname;
147 plotfilename +=
"/iter0_";
148 plotfilename += dirname;
149 plotfilename +=
".gif";
150 gPad->Print(plotfilename.c_str());
155 TH1F* iter1 = (TH1F*)castat.
getObject(
"newSeedFromPairs");
160 plotfilename += outtrunk;
161 plotfilename += dirname;
162 plotfilename +=
"/iter1_";
163 plotfilename += dirname;
164 plotfilename +=
".gif";
165 gPad->Print(plotfilename.c_str());
170 TH1F* iter2 = (TH1F*)castat.
getObject(
"secTriplets");
175 plotfilename += outtrunk;
176 plotfilename += dirname;
177 plotfilename +=
"/iter2_";
178 plotfilename += dirname;
179 plotfilename +=
".gif";
180 gPad->Print(plotfilename.c_str());
185 TH1F* iter3 = (TH1F*)castat.
getObject(
"thTriplets");
190 plotfilename += outtrunk;
191 plotfilename += dirname;
192 plotfilename +=
"/iter3_";
193 plotfilename += dirname;
194 plotfilename +=
".gif";
195 gPad->Print(plotfilename.c_str());
200 TH1F* iter3A = (TH1F*)castat.
getObject(
"thTripletsA");
205 plotfilename += outtrunk;
206 plotfilename += dirname;
207 plotfilename +=
"/iter3A_";
208 plotfilename += dirname;
209 plotfilename +=
".gif";
210 gPad->Print(plotfilename.c_str());
215 TH1F* iter3B = (TH1F*)castat.
getObject(
"thTripletsB");
220 plotfilename += outtrunk;
221 plotfilename += dirname;
222 plotfilename +=
"/iter3B_";
223 plotfilename += dirname;
224 plotfilename +=
".gif";
225 gPad->Print(plotfilename.c_str());
230 TH1F* iter4 = (TH1F*)castat.
getObject(
"fourthPLSeeds");
235 plotfilename += outtrunk;
236 plotfilename += dirname;
237 plotfilename +=
"/iter4_";
238 plotfilename += dirname;
239 plotfilename +=
".gif";
240 gPad->Print(plotfilename.c_str());
245 TH1F* iter5 = (TH1F*)castat.
getObject(
"fifthSeeds");
250 plotfilename += outtrunk;
251 plotfilename += dirname;
252 plotfilename +=
"/iter5_";
253 plotfilename += dirname;
254 plotfilename +=
".gif";
255 gPad->Print(plotfilename.c_str());
260 TH2F* iter0TK = (TH2F*)castat.
getObject(
"newSeedFromTripletsTK");
262 iter0TK->Draw(
"colz");
263 iter0TK->GetYaxis()->SetRangeUser(0,1000); iter0TK->GetYaxis()->SetTitle(
"seeds");
264 iter0TK->GetXaxis()->SetRangeUser(0,50000); iter0TK->GetXaxis()->SetTitle(
"clusters");
267 plotfilename += outtrunk;
268 plotfilename += dirname;
269 plotfilename +=
"/iter0TK_";
270 plotfilename += dirname;
271 plotfilename +=
".gif";
272 gPad->Print(plotfilename.c_str());
277 TH2F* iter1TK = (TH2F*)castat.
getObject(
"newSeedFromPairsTK");
279 iter1TK->Draw(
"colz");
280 iter1TK->GetYaxis()->SetTitle(
"seeds");
281 iter1TK->GetXaxis()->SetRangeUser(0,50000); iter1TK->GetXaxis()->SetTitle(
"clusters");
284 plotfilename += outtrunk;
285 plotfilename += dirname;
286 plotfilename +=
"/iter1TK_";
287 plotfilename += dirname;
288 plotfilename +=
".gif";
289 gPad->Print(plotfilename.c_str());
294 TH2F* iter2TK = (TH2F*)castat.
getObject(
"secTripletsTK");
296 iter2TK->Draw(
"colz");
297 iter2TK->GetYaxis()->SetRangeUser(0,50000); iter2TK->GetYaxis()->SetTitle(
"seeds");
298 iter2TK->GetXaxis()->SetRangeUser(0,50000); iter2TK->GetXaxis()->SetTitle(
"clusters");
301 plotfilename += outtrunk;
302 plotfilename += dirname;
303 plotfilename +=
"/iter2TK_";
304 plotfilename += dirname;
305 plotfilename +=
".gif";
306 gPad->Print(plotfilename.c_str());
311 TH2F* iter3TK = (TH2F*)castat.
getObject(
"thTripletsTK");
313 iter3TK->Draw(
"colz");
315 iter3TK->GetYaxis()->SetTitle(
"seeds");
316 iter3TK->GetXaxis()->SetRangeUser(0,50000); iter3TK->GetXaxis()->SetTitle(
"clusters");
319 plotfilename += outtrunk;
320 plotfilename += dirname;
321 plotfilename +=
"/iter3TK_";
322 plotfilename += dirname;
323 plotfilename +=
".gif";
324 gPad->Print(plotfilename.c_str());
329 TH2F* iter3ATK = (TH2F*)castat.
getObject(
"thTripletsATK");
331 iter3ATK->Draw(
"colz");
333 iter3ATK->GetYaxis()->SetTitle(
"seeds");
334 iter3ATK->GetXaxis()->SetRangeUser(0,50000); iter3ATK->GetXaxis()->SetTitle(
"clusters");
337 plotfilename += outtrunk;
338 plotfilename += dirname;
339 plotfilename +=
"/iter3ATK_";
340 plotfilename += dirname;
341 plotfilename +=
".gif";
342 gPad->Print(plotfilename.c_str());
347 TH2F* iter3BTK = (TH2F*)castat.
getObject(
"thTripletsBTK");
349 iter3BTK->Draw(
"colz");
351 iter3BTK->GetYaxis()->SetTitle(
"seeds");
352 iter3BTK->GetXaxis()->SetRangeUser(0,50000); iter3BTK->GetXaxis()->SetTitle(
"clusters");
355 plotfilename += outtrunk;
356 plotfilename += dirname;
357 plotfilename +=
"/iter3BTK_";
358 plotfilename += dirname;
359 plotfilename +=
".gif";
360 gPad->Print(plotfilename.c_str());
365 TH2F* iter4TK = (TH2F*)castat.
getObject(
"fourthPLSeedsTK");
367 iter4TK->Draw(
"colz");
368 iter4TK->GetYaxis()->SetTitle(
"seeds");
369 iter4TK->GetXaxis()->SetRangeUser(0,50000); iter4TK->GetXaxis()->SetTitle(
"clusters");
372 plotfilename += outtrunk;
373 plotfilename += dirname;
374 plotfilename +=
"/iter4TK_";
375 plotfilename += dirname;
376 plotfilename +=
".gif";
377 gPad->Print(plotfilename.c_str());
382 TH2F* iter5TK = (TH2F*)castat.
getObject(
"fifthSeedsTK");
384 iter5TK->Draw(
"colz");
385 iter5TK->GetYaxis()->SetRangeUser(0,30000); iter5TK->GetYaxis()->SetTitle(
"seeds");
386 iter5TK->GetXaxis()->SetRangeUser(0,50000); iter5TK->GetXaxis()->SetTitle(
"clusters");
389 plotfilename += outtrunk;
390 plotfilename += dirname;
391 plotfilename +=
"/iter5TK_";
392 plotfilename += dirname;
393 plotfilename +=
".gif";
394 gPad->Print(plotfilename.c_str());
399 TH2F* iter0Pixel = (TH2F*)castat.
getObject(
"newSeedFromTripletsPixel");
401 iter0Pixel->Draw(
"colz");
402 iter0Pixel->GetYaxis()->SetRangeUser(0,1000); iter0Pixel->GetYaxis()->SetTitle(
"seeds");
403 iter0Pixel->GetXaxis()->SetRangeUser(0,10000); iter0Pixel->GetXaxis()->SetTitle(
"clusters");
406 plotfilename += outtrunk;
407 plotfilename += dirname;
408 plotfilename +=
"/iter0Pixel_";
409 plotfilename += dirname;
410 plotfilename +=
".gif";
411 gPad->Print(plotfilename.c_str());
416 TH2F* iter1Pixel = (TH2F*)castat.
getObject(
"newSeedFromPairsPixel");
418 iter1Pixel->Draw(
"colz");
419 iter1Pixel->GetYaxis()->SetTitle(
"seeds");
420 iter1Pixel->GetXaxis()->SetRangeUser(0,10000); iter1Pixel->GetXaxis()->SetTitle(
"clusters");
423 plotfilename += outtrunk;
424 plotfilename += dirname;
425 plotfilename +=
"/iter1Pixel_";
426 plotfilename += dirname;
427 plotfilename +=
".gif";
428 gPad->Print(plotfilename.c_str());
433 TH2F* iter2Pixel = (TH2F*)castat.
getObject(
"secTripletsPixel");
435 iter2Pixel->Draw(
"colz");
436 iter2Pixel->GetYaxis()->SetRangeUser(0,50000); iter2Pixel->GetYaxis()->SetTitle(
"seeds");
437 iter2Pixel->GetXaxis()->SetRangeUser(0,10000); iter2Pixel->GetXaxis()->SetTitle(
"clusters");
440 plotfilename += outtrunk;
441 plotfilename += dirname;
442 plotfilename +=
"/iter2Pixel_";
443 plotfilename += dirname;
444 plotfilename +=
".gif";
445 gPad->Print(plotfilename.c_str());
450 TH2F* iter3Pixel = (TH2F*)castat.
getObject(
"thTripletsPixel");
452 iter3Pixel->Draw(
"colz");
454 iter3Pixel->GetYaxis()->SetTitle(
"seeds");
455 iter3Pixel->GetXaxis()->SetRangeUser(0,10000); iter3Pixel->GetXaxis()->SetTitle(
"clusters");
458 plotfilename += outtrunk;
459 plotfilename += dirname;
460 plotfilename +=
"/iter3Pixel_";
461 plotfilename += dirname;
462 plotfilename +=
".gif";
463 gPad->Print(plotfilename.c_str());
468 TH2F* iter3APixel = (TH2F*)castat.
getObject(
"thTripletsAPixel");
470 iter3APixel->Draw(
"colz");
472 iter3APixel->GetYaxis()->SetTitle(
"seeds");
473 iter3APixel->GetXaxis()->SetRangeUser(0,10000); iter3APixel->GetXaxis()->SetTitle(
"clusters");
476 plotfilename += outtrunk;
477 plotfilename += dirname;
478 plotfilename +=
"/iter3APixel_";
479 plotfilename += dirname;
480 plotfilename +=
".gif";
481 gPad->Print(plotfilename.c_str());
486 TH2F* iter3BPixel = (TH2F*)castat.
getObject(
"thTripletsBPixel");
488 iter3BPixel->Draw(
"colz");
490 iter3BPixel->GetYaxis()->SetTitle(
"seeds");
491 iter3BPixel->GetXaxis()->SetRangeUser(0,10000); iter3BPixel->GetXaxis()->SetTitle(
"clusters");
494 plotfilename += outtrunk;
495 plotfilename += dirname;
496 plotfilename +=
"/iter3BPixel_";
497 plotfilename += dirname;
498 plotfilename +=
".gif";
499 gPad->Print(plotfilename.c_str());
504 TH2F* iter4Pixel = (TH2F*)castat.
getObject(
"fourthPLSeedsPixel");
506 iter4Pixel->Draw(
"colz");
507 iter4Pixel->GetYaxis()->SetTitle(
"seeds");
508 iter4Pixel->GetXaxis()->SetRangeUser(0,10000); iter4Pixel->GetXaxis()->SetTitle(
"clusters");
511 plotfilename += outtrunk;
512 plotfilename += dirname;
513 plotfilename +=
"/iter4Pixel_";
514 plotfilename += dirname;
515 plotfilename +=
".gif";
516 gPad->Print(plotfilename.c_str());
521 TH2F* iter5Pixel = (TH2F*)castat.
getObject(
"fifthSeedsPixel");
523 iter5Pixel->Draw(
"colz");
524 iter5Pixel->GetYaxis()->SetRangeUser(0,30000); iter5Pixel->GetYaxis()->SetTitle(
"seeds");
525 iter5Pixel->GetXaxis()->SetRangeUser(0,10000); iter5Pixel->GetXaxis()->SetTitle(
"clusters");
528 plotfilename += outtrunk;
529 plotfilename += dirname;
530 plotfilename +=
"/iter5Pixel_";
531 plotfilename += dirname;
532 plotfilename +=
".gif";
533 gPad->Print(plotfilename.c_str());
537 gStyle->SetOptStat(1111);
TObject * getObject(const char *name) const
void SeedMultiplicityComparisonPlot()
void SeedMultiplicityPlots(const char *fullname, const char *module, const char *postfix, const char *shortname, const char *outtrunk)