22 const char* strplabel,
23 const char* corrlabel,
25 const char* shortname,
26 const char* outtrunk) {
28 sprintf(pxmodfull,
"%s%s", pxmod, postfix);
30 sprintf(pxlabfull,
"%s%s", pxlabel, postfix);
32 char strpmodfull[300];
33 sprintf(strpmodfull,
"%s%s", strpmod, postfix);
34 char strplabfull[300];
35 sprintf(strplabfull,
"%s%s", strplabel, postfix);
37 char corrmodfull[300];
38 sprintf(corrmodfull,
"%s%s", corrmod, postfix);
39 char corrlabfull[300];
40 sprintf(corrlabfull,
"%s%s", corrlabel, postfix);
47 gStyle->SetOptStat(111111);
56 plotfilename += outtrunk;
57 plotfilename += shortname;
58 plotfilename +=
"/pixel";
59 plotfilename += pxlabfull;
61 plotfilename += shortname;
62 plotfilename +=
".gif";
63 gPad->Print(plotfilename.c_str());
68 capixel.
setPath(
"VtxCorr/Pixel");
70 TH2F* pixelvtx = (TH2F*)capixel.
getObject(
"nPixeldigivsnvtx");
72 pixelvtx->Draw(
"colz");
74 TProfile* pixelvtxprof = pixelvtx->ProfileX(
"prof", 1, -1,
"");
75 pixelvtxprof->SetMarkerStyle(20);
76 pixelvtxprof->SetMarkerSize(.4);
86 pixelvtxprof->Draw(
"esame");
89 plotfilename += outtrunk;
90 plotfilename += shortname;
91 plotfilename +=
"/pixelvtx";
92 plotfilename += pxlabfull;
94 plotfilename += shortname;
95 plotfilename +=
".gif";
96 gPad->Print(plotfilename.c_str());
103 TH1F* tk = (TH1F*)castrip.
getObject(
"nTKdigi");
108 plotfilename += outtrunk;
109 plotfilename += shortname;
110 plotfilename +=
"/tk";
111 plotfilename += strplabfull;
113 plotfilename += shortname;
114 plotfilename +=
".gif";
115 gPad->Print(plotfilename.c_str());
122 TH2F* tkvtx = (TH2F*)castrip.
getObject(
"nTKdigivsnvtx");
126 TProfile* tkvtxprof = tkvtx->ProfileX(
"prof2", 1, -1,
"");
127 tkvtxprof->SetMarkerStyle(20);
128 tkvtxprof->SetMarkerSize(.4);
138 tkvtxprof->Draw(
"esame");
141 plotfilename += outtrunk;
142 plotfilename += shortname;
143 plotfilename +=
"/tkvtx";
144 plotfilename += strplabfull;
146 plotfilename += shortname;
147 plotfilename +=
".gif";
148 gPad->Print(plotfilename.c_str());
155 TH1F* rat = (TH1F*)cacorr.
getObject(
"PixelOverTK");
160 plotfilename += outtrunk;
161 plotfilename += shortname;
162 plotfilename +=
"/pixelovertk";
163 plotfilename += corrlabfull;
165 plotfilename += shortname;
166 plotfilename +=
".gif";
167 gPad->Print(plotfilename.c_str());
172 TH2F* mult2d = (TH2F*)cacorr.
getObject(
"PixelVsTK");
174 mult2d->Draw(
"colz");
179 plotfilename += outtrunk;
180 plotfilename += shortname;
181 plotfilename +=
"/pixelvstk";
182 plotfilename += corrlabfull;
184 plotfilename += shortname;
185 plotfilename +=
".gif";
186 gPad->Print(plotfilename.c_str());
191 gStyle->SetOptStat(1111);
201 const char* shortname,
202 const char* outtrunk) {
204 sprintf(modfull,
"%s%s",
mod, postfix);
206 sprintf(labfull,
"%s%s",
label, postfix);
213 gStyle->SetOptStat(111111);
215 char subdirname[300];
216 sprintf(subdirname,
"EventProcs/%s", subdet);
218 sprintf(histname,
"n%sdigi", subdet);
227 plotfilename += outtrunk;
228 plotfilename += shortname;
230 plotfilename += subdet;
231 plotfilename += labfull;
233 plotfilename += shortname;
234 plotfilename +=
".gif";
235 gPad->Print(plotfilename.c_str());
239 gStyle->SetOptStat(1111);
248 const char* shortname,
249 const char* outtrunk) {
251 sprintf(modfull,
"%s%s",
mod, postfix);
253 sprintf(labfull,
"%s%s",
label, postfix);
260 gStyle->SetOptStat(111111);
264 TH1F* rat = (TH1F*)ca.
getObject(
"PixelOverTK");
269 plotfilename += outtrunk;
270 plotfilename += shortname;
271 plotfilename +=
"/pixelovertk";
272 plotfilename += labfull;
274 plotfilename += shortname;
275 plotfilename +=
".gif";
276 gPad->Print(plotfilename.c_str());
281 TH2F* mult2d = (TH2F*)ca.
getObject(
"PixelVsTK");
283 mult2d->Draw(
"colz");
288 plotfilename += outtrunk;
289 plotfilename += shortname;
290 plotfilename +=
"/pixelvstk";
291 plotfilename += labfull;
293 plotfilename += shortname;
294 plotfilename +=
".gif";
295 gPad->Print(plotfilename.c_str());
300 gStyle->SetOptStat(1111);
310 const char* shortname,
311 const char* outtrunk) {
313 sprintf(modfull,
"%s%s",
mod, postfix);
315 sprintf(labfull,
"%s%s",
label, postfix);
322 gStyle->SetOptStat(111111);
324 char subdirname[300];
325 sprintf(subdirname,
"VtxCorr/%s", subdet);
327 sprintf(histname,
"n%sdigivsnvtx", subdet);
329 sprintf(profname,
"n%sdigivsnvtxprof", subdet);
333 TH2F* histvtx = (TH2F*)ca.
getObject(histname);
335 histvtx->Draw(
"colz");
337 TProfile* histvtxprof =
nullptr;
338 histvtxprof = (TProfile*)ca.
getObject(profname);
339 if (histvtxprof ==
nullptr) {
340 std::cout <<
"TProfile " << profname <<
" missing!" << std::endl;
341 histvtxprof = histvtx->ProfileX(
"prof", 1, -1,
"");
343 histvtxprof->SetMarkerStyle(20);
344 histvtxprof->SetMarkerSize(.4);
354 histvtxprof->Draw(
"esame");
357 plotfilename += outtrunk;
358 plotfilename += shortname;
360 plotfilename += subdet;
361 plotfilename +=
"vtx";
362 plotfilename += labfull;
364 plotfilename += shortname;
365 plotfilename +=
".gif";
366 gPad->Print(plotfilename.c_str());
371 gStyle->SetOptStat(1111);
381 const char* shortname,
382 const char* outtrunk) {
384 sprintf(modfull,
"%s%s",
mod, postfix);
386 sprintf(labfull,
"%s%s",
label, postfix);
393 gStyle->SetOptStat(111111);
395 char subdirname[300];
396 sprintf(subdirname,
"LumiCorr/%s", subdet);
398 sprintf(histname,
"n%sdigivslumi", subdet);
400 sprintf(profname,
"n%sdigivslumiprof", subdet);
404 TH2F* histlumi = (TH2F*)ca.
getObject(histname);
406 histlumi->Draw(
"colz");
408 TProfile* histlumiprof =
nullptr;
409 histlumiprof = (TProfile*)ca.
getObject(profname);
410 if (histlumiprof ==
nullptr) {
411 std::cout <<
"TProfile " << profname <<
" missing!" << std::endl;
412 histlumiprof = histlumi->ProfileX(
"prof", 1, -1,
"");
414 histlumiprof->SetMarkerStyle(20);
415 histlumiprof->SetMarkerSize(.4);
425 histlumiprof->Draw(
"esame");
428 plotfilename += outtrunk;
429 plotfilename += shortname;
431 plotfilename += subdet;
432 plotfilename +=
"lumi";
433 plotfilename += labfull;
435 plotfilename += shortname;
436 plotfilename +=
".gif";
437 gPad->Print(plotfilename.c_str());
442 gStyle->SetOptStat(1111);