18 void ClusMultPlots(
const char* fullname,
const char* pxmod,
const char* strpmod,
const char* corrmod,
19 const char* pxlabel,
const char* strplabel,
const char* corrlabel,
const char*
postfix,
const char* shortname,
const char* outtrunk) {
23 sprintf(pxmodfull,
"%s%s",pxmod,postfix);
25 sprintf(pxlabfull,
"%s%s",pxlabel,postfix);
27 char strpmodfull[300];
28 sprintf(strpmodfull,
"%s%s",strpmod,postfix);
29 char strplabfull[300];
30 sprintf(strplabfull,
"%s%s",strplabel,postfix);
32 char corrmodfull[300];
33 sprintf(corrmodfull,
"%s%s",corrmod,postfix);
34 char corrlabfull[300];
35 sprintf(corrlabfull,
"%s%s",corrlabel,postfix);
44 gStyle->SetOptStat(111111);
54 plotfilename += outtrunk;
55 plotfilename += shortname;
56 plotfilename +=
"/pixel";
57 plotfilename += pxlabfull;
59 plotfilename += shortname;
60 plotfilename +=
".gif";
61 gPad->Print(plotfilename.c_str());
66 capixel.
setPath(
"VtxCorr/Pixel");
68 TH2F* pixelvtx = (TH2F*)capixel.
getObject(
"nPixeldigivsnvtx");
70 pixelvtx->Draw(
"colz");
72 TProfile* pixelvtxprof = pixelvtx->ProfileX(
"prof",1,-1,
"");
73 pixelvtxprof->SetMarkerStyle(20);
74 pixelvtxprof->SetMarkerSize(.4);
84 pixelvtxprof->Draw(
"esame");
87 plotfilename += outtrunk;
88 plotfilename += shortname;
89 plotfilename +=
"/pixelvtx";
90 plotfilename += pxlabfull;
92 plotfilename += shortname;
93 plotfilename +=
".gif";
94 gPad->Print(plotfilename.c_str());
101 TH1F* tk = (TH1F*)castrip.
getObject(
"nTKdigi");
106 plotfilename += outtrunk;
107 plotfilename += shortname;
108 plotfilename +=
"/tk";
109 plotfilename += strplabfull;
111 plotfilename += shortname;
112 plotfilename +=
".gif";
113 gPad->Print(plotfilename.c_str());
120 TH2F* tkvtx = (TH2F*)castrip.
getObject(
"nTKdigivsnvtx");
124 TProfile* tkvtxprof = tkvtx->ProfileX(
"prof2",1,-1,
"");
125 tkvtxprof->SetMarkerStyle(20);
126 tkvtxprof->SetMarkerSize(.4);
136 tkvtxprof->Draw(
"esame");
139 plotfilename += outtrunk;
140 plotfilename += shortname;
141 plotfilename +=
"/tkvtx";
142 plotfilename += strplabfull;
144 plotfilename += shortname;
145 plotfilename +=
".gif";
146 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());
173 TH2F* mult2d = (TH2F*)cacorr.
getObject(
"PixelVsTK");
175 mult2d->Draw(
"colz");
180 plotfilename += outtrunk;
181 plotfilename += shortname;
182 plotfilename +=
"/pixelvstk";
183 plotfilename += corrlabfull;
185 plotfilename += shortname;
186 plotfilename +=
".gif";
187 gPad->Print(plotfilename.c_str());
192 gStyle->SetOptStat(1111);
201 sprintf(modfull,
"%s%s",mod,postfix);
203 sprintf(labfull,
"%s%s",label,postfix);
211 gStyle->SetOptStat(111111);
213 char subdirname[300];
214 sprintf(subdirname,
"EventProcs/%s",subdet);
216 sprintf(histname,
"n%sdigi",subdet);
225 plotfilename += outtrunk;
226 plotfilename += shortname;
228 plotfilename += subdet;
229 plotfilename += labfull;
231 plotfilename += shortname;
232 plotfilename +=
".gif";
233 gPad->Print(plotfilename.c_str());
237 gStyle->SetOptStat(1111);
246 sprintf(modfull,
"%s%s",mod,postfix);
248 sprintf(labfull,
"%s%s",label,postfix);
257 gStyle->SetOptStat(111111);
262 TH1F* rat = (TH1F*)ca.
getObject(
"PixelOverTK");
267 plotfilename += outtrunk;
268 plotfilename += shortname;
269 plotfilename +=
"/pixelovertk";
270 plotfilename += labfull;
272 plotfilename += shortname;
273 plotfilename +=
".gif";
274 gPad->Print(plotfilename.c_str());
280 TH2F* mult2d = (TH2F*)ca.
getObject(
"PixelVsTK");
282 mult2d->Draw(
"colz");
287 plotfilename += outtrunk;
288 plotfilename += shortname;
289 plotfilename +=
"/pixelvstk";
290 plotfilename += labfull;
292 plotfilename += shortname;
293 plotfilename +=
".gif";
294 gPad->Print(plotfilename.c_str());
299 gStyle->SetOptStat(1111);
308 sprintf(modfull,
"%s%s",mod,postfix);
310 sprintf(labfull,
"%s%s",label,postfix);
318 gStyle->SetOptStat(111111);
320 char subdirname[300];
321 sprintf(subdirname,
"VtxCorr/%s",subdet);
323 sprintf(histname,
"n%sdigivsnvtx",subdet);
325 sprintf(profname,
"n%sdigivsnvtxprof",subdet);
330 TH2F* histvtx = (TH2F*)ca.
getObject(histname);
332 histvtx->Draw(
"colz");
334 TProfile* histvtxprof = 0;
335 histvtxprof = (TProfile*)ca.
getObject(profname);
337 std::cout <<
"TProfile " << profname <<
" missing!" << std::endl;
338 histvtxprof = histvtx->ProfileX(
"prof",1,-1,
"");
340 histvtxprof->SetMarkerStyle(20);
341 histvtxprof->SetMarkerSize(.4);
351 histvtxprof->Draw(
"esame");
354 plotfilename += outtrunk;
355 plotfilename += shortname;
357 plotfilename += subdet;
358 plotfilename +=
"vtx";
359 plotfilename += labfull;
361 plotfilename += shortname;
362 plotfilename +=
".gif";
363 gPad->Print(plotfilename.c_str());
368 gStyle->SetOptStat(1111);
377 sprintf(modfull,
"%s%s",mod,postfix);
379 sprintf(labfull,
"%s%s",label,postfix);
387 gStyle->SetOptStat(111111);
389 char subdirname[300];
390 sprintf(subdirname,
"LumiCorr/%s",subdet);
392 sprintf(histname,
"n%sdigivslumi",subdet);
394 sprintf(profname,
"n%sdigivslumiprof",subdet);
399 TH2F* histlumi = (TH2F*)ca.
getObject(histname);
401 histlumi->Draw(
"colz");
403 TProfile* histlumiprof = 0;
404 histlumiprof = (TProfile*)ca.
getObject(profname);
405 if(histlumiprof==0) {
406 std::cout <<
"TProfile " << profname <<
" missing!" << std::endl;
407 histlumiprof = histlumi->ProfileX(
"prof",1,-1,
"");
409 histlumiprof->SetMarkerStyle(20);
410 histlumiprof->SetMarkerSize(.4);
420 histlumiprof->Draw(
"esame");
423 plotfilename += outtrunk;
424 plotfilename += shortname;
426 plotfilename += subdet;
427 plotfilename +=
"lumi";
428 plotfilename += labfull;
430 plotfilename += shortname;
431 plotfilename +=
".gif";
432 gPad->Print(plotfilename.c_str());
437 gStyle->SetOptStat(1111);
TObject * getObject(const char *name) const
void ClusMultLumiCorrPlots(const char *fullname, const char *mod, const char *label, const char *postfix, const char *subdet, const char *shortname, const char *outtrunk)
void ClusMultPlots(const char *fullname, const char *pxmod, const char *strpmod, const char *corrmod, const char *pxlabel, const char *strplabel, const char *corrlabel, const char *postfix, const char *shortname, const char *outtrunk)
void ClusMultInvestPlots(const char *fullname, const char *mod, const char *label, const char *postfix, const char *subdet, const char *shortname, const char *outtrunk)
void ClusMultVtxCorrPlots(const char *fullname, const char *mod, const char *label, const char *postfix, const char *subdet, const char *shortname, const char *outtrunk)
void setPath(const char *path)
void ClusMultCorrPlots(const char *fullname, const char *mod, const char *label, const char *postfix, const char *shortname, const char *outtrunk)
T mod(const T &a, const T &b)