10 #include "TProfile2D.h" 19 sprintf(modfull,
"%s%s",module,postfix);
21 sprintf(labfull,
"%s%s",label,postfix);
34 TH1F* ntrk = (TH1F*)castat.
getObject(
"ntrk");
38 plotfilename += outtrunk;
39 plotfilename += shortname;
40 plotfilename +=
"/ntrk_";
41 plotfilename += labfull;
43 plotfilename += shortname;
44 plotfilename +=
".gif";
45 gPad->Print(plotfilename.c_str());
52 plotfilename += outtrunk;
53 plotfilename += shortname;
54 plotfilename +=
"/pt_";
55 plotfilename += labfull;
57 plotfilename += shortname;
58 plotfilename +=
".gif";
60 gPad->Print(plotfilename.c_str());
64 gStyle->SetOptStat(11);
65 TProfile2D* ptphieta = (TProfile2D*)castat.
getObject(
"ptphivseta");
67 ptphieta->Draw(
"colz");
69 plotfilename += outtrunk;
70 plotfilename += shortname;
71 plotfilename +=
"/ptphieta_";
72 plotfilename += labfull;
74 plotfilename += shortname;
75 plotfilename +=
".gif";
76 gPad->Print(plotfilename.c_str());
79 gStyle->SetOptStat(1111);
84 plotfilename += outtrunk;
85 plotfilename += shortname;
86 plotfilename +=
"/phi_";
87 plotfilename += labfull;
89 plotfilename += shortname;
90 plotfilename +=
".gif";
91 gPad->Print(plotfilename.c_str());
98 plotfilename += outtrunk;
99 plotfilename += shortname;
100 plotfilename +=
"/eta_";
101 plotfilename += labfull;
103 plotfilename += shortname;
104 plotfilename +=
".gif";
105 gPad->Print(plotfilename.c_str());
108 gStyle->SetOptStat(11);
109 TH2F* phieta = (TH2F*)castat.
getObject(
"phivseta");
111 phieta->Draw(
"colz");
113 plotfilename += outtrunk;
114 plotfilename += shortname;
115 plotfilename +=
"/phieta_";
116 plotfilename += labfull;
118 plotfilename += shortname;
119 plotfilename +=
".gif";
120 gPad->Print(plotfilename.c_str());
122 gStyle->SetOptStat(1111);
124 TH1F* nrhits = (TH1F*)castat.
getObject(
"nrhits");
128 plotfilename += outtrunk;
129 plotfilename += shortname;
130 plotfilename +=
"/nrhits_";
131 plotfilename += labfull;
133 plotfilename += shortname;
134 plotfilename +=
".gif";
135 gPad->Print(plotfilename.c_str());
138 gStyle->SetOptStat(11);
139 TProfile2D* nhitphieta = (TProfile2D*)castat.
getObject(
"nhitphivseta");
141 nhitphieta->Draw(
"colz");
143 plotfilename += outtrunk;
144 plotfilename += shortname;
145 plotfilename +=
"/nhitphieta_";
146 plotfilename += labfull;
148 plotfilename += shortname;
149 plotfilename +=
".gif";
150 gPad->Print(plotfilename.c_str());
153 gStyle->SetOptStat(1111);
154 TH1F* nlosthits = (TH1F*)castat.
getObject(
"nlosthits");
158 plotfilename += outtrunk;
159 plotfilename += shortname;
160 plotfilename +=
"/nlosthits_";
161 plotfilename += labfull;
163 plotfilename += shortname;
164 plotfilename +=
".gif";
165 gPad->Print(plotfilename.c_str());
168 TH1F* npixelhits = (TH1F*)castat.
getObject(
"npixelhits");
172 plotfilename += outtrunk;
173 plotfilename += shortname;
174 plotfilename +=
"/npixelhits_";
175 plotfilename += labfull;
177 plotfilename += shortname;
178 plotfilename +=
".gif";
179 gPad->Print(plotfilename.c_str());
182 TH1F* nstriphits = (TH1F*)castat.
getObject(
"nstriphits");
186 plotfilename += outtrunk;
187 plotfilename += shortname;
188 plotfilename +=
"/nstriphits_";
189 plotfilename += labfull;
191 plotfilename += shortname;
192 plotfilename +=
".gif";
193 gPad->Print(plotfilename.c_str());
196 TH1F* nrlayers = (TH1F*)castat.
getObject(
"nlayers");
200 plotfilename += outtrunk;
201 plotfilename += shortname;
202 plotfilename +=
"/nrlayers_";
203 plotfilename += labfull;
205 plotfilename += shortname;
206 plotfilename +=
".gif";
207 gPad->Print(plotfilename.c_str());
210 gStyle->SetOptStat(11);
211 TProfile2D* nlayerphieta = (TProfile2D*)castat.
getObject(
"nlayerphivseta");
213 nlayerphieta->Draw(
"colz");
215 plotfilename += outtrunk;
216 plotfilename += shortname;
217 plotfilename +=
"/nlayerphieta_";
218 plotfilename += labfull;
220 plotfilename += shortname;
221 plotfilename +=
".gif";
222 gPad->Print(plotfilename.c_str());
225 gStyle->SetOptStat(1111);
226 TH1F* nlostlayers = (TH1F*)castat.
getObject(
"nlostlayers");
230 plotfilename += outtrunk;
231 plotfilename += shortname;
232 plotfilename +=
"/nlostlayers_";
233 plotfilename += labfull;
235 plotfilename += shortname;
236 plotfilename +=
".gif";
237 gPad->Print(plotfilename.c_str());
240 TH1F* npixellayers = (TH1F*)castat.
getObject(
"npixellayers");
242 npixellayers->Draw();
244 plotfilename += outtrunk;
245 plotfilename += shortname;
246 plotfilename +=
"/npixellayers_";
247 plotfilename += labfull;
249 plotfilename += shortname;
250 plotfilename +=
".gif";
251 gPad->Print(plotfilename.c_str());
254 TH1F* nstriplayers = (TH1F*)castat.
getObject(
"nstriplayers");
256 nstriplayers->Draw();
258 plotfilename += outtrunk;
259 plotfilename += shortname;
260 plotfilename +=
"/nstriplayers_";
261 plotfilename += labfull;
263 plotfilename += shortname;
264 plotfilename +=
".gif";
265 gPad->Print(plotfilename.c_str());
268 TH1F* hhpfrac = (TH1F*)castat.
getObject(
"hhpfrac");
272 plotfilename += outtrunk;
273 plotfilename += shortname;
274 plotfilename +=
"/hhpfrac_";
275 plotfilename += labfull;
277 plotfilename += shortname;
278 plotfilename +=
".gif";
280 gPad->Print(plotfilename.c_str());
284 TH1F* halgo = (TH1F*)castat.
getObject(
"algo");
288 plotfilename += outtrunk;
289 plotfilename += shortname;
290 plotfilename +=
"/halgo_";
291 plotfilename += labfull;
293 plotfilename += shortname;
294 plotfilename +=
".gif";
295 gPad->Print(plotfilename.c_str());
298 gStyle->SetOptStat(111);
299 gStyle->SetOptFit(111);
300 TProfile* hntrkvslumi = (TProfile*)castat.
getObject(
"ntrkvslumi");
301 if (hntrkvslumi && hntrkvslumi->GetEntries()>0) {
303 hntrkvslumi->Fit(
"pol2",
"",
"",0.5,3.0);
304 if(hntrkvslumi->GetFunction(
"pol2")) {
305 hntrkvslumi->GetFunction(
"pol2")->SetLineColor(kBlack);
306 hntrkvslumi->GetFunction(
"pol2")->SetLineWidth(1);
309 plotfilename += outtrunk;
310 plotfilename += shortname;
311 plotfilename +=
"/hntrkvslumi_";
312 plotfilename += labfull;
314 plotfilename += shortname;
315 plotfilename +=
".gif";
316 gPad->Print(plotfilename.c_str());
318 gStyle->SetOptStat(1111);
320 TH2D* hntrkvslumi2D = (TH2D*)castat.
getObject(
"ntrkvslumi2D");
321 if (hntrkvslumi2D && hntrkvslumi2D->GetEntries()>0) {
322 hntrkvslumi2D->Draw(
"colz");
324 hntrkvslumi->SetMarkerStyle(20);
325 hntrkvslumi->SetMarkerSize(.3);
326 hntrkvslumi->Draw(
"same");
329 plotfilename += outtrunk;
330 plotfilename += shortname;
331 plotfilename +=
"/hntrkvslumi2D_";
332 plotfilename += labfull;
334 plotfilename += shortname;
335 plotfilename +=
".gif";
337 gPad->Print(plotfilename.c_str());
339 delete hntrkvslumi2D;
TObject * getObject(const char *name) const
void TrackPlots(const char *fullname, const char *module, const char *label, const char *postfix, const char *shortname, const char *outtrunk)