1 |
/** |
/* |
2 |
* TriggerScan |
* TriggerScan |
3 |
* Author Nagni |
* Author Nagni |
4 |
* Modified by G. De Rosa |
* Modified by G. De Rosa |
5 |
* Version 1.2 |
* Version 1.2 |
6 |
* Date 27 Apr 2006 |
* Date 27 Apr 2006 |
7 |
|
* Version 1.4 |
8 |
|
* Date 26 Jun 2006: Inserted dependences on OrbitalTime and modified histogram ranges. |
9 |
* |
* |
10 |
* Description: |
* Description: |
11 |
* Describe the performance of the Trigger. |
* Describe the performance of the Trigger. |
40 |
} |
} |
41 |
|
|
42 |
void TriggerScan(TString base, TString outDirectory = "", TString format = ""){ |
void TriggerScan(TString base, TString outDirectory = "", TString format = ""){ |
|
TLatex *t=new TLatex(); |
|
43 |
|
|
44 |
std::stringstream sst; |
std::stringstream sst; |
45 |
if (outDirectory == "") outDirectory = base.Data(); |
if (outDirectory == "") outDirectory = base.Data(); |
71 |
} |
} |
72 |
|
|
73 |
/* Histo DEF */ |
/* Histo DEF */ |
74 |
|
|
|
/* |
|
|
* PTM Plane Counters histograms |
|
|
*/ |
|
|
TCanvas *PMTCanvas = new TCanvas("PMTCanvas","PMTCanvas", 1280, 1024); |
|
|
PMTCanvas->Divide(1,3); |
|
|
//---------- |
|
|
sst.str(""); |
|
|
sst << "Histogram of PMT Plane Counters (S11 AND S12) based on " << base.Data(); |
|
|
TH1S *pmt1Histo = new TH1S("PMT1Histo", sst.str().c_str(), 20, 0., 300.); |
|
|
//---------- |
|
|
sst.str(""); |
|
|
sst << "Histogram of PMT Plane Counters (S21 AND S22) based on " << base.Data(); |
|
|
TH1S *pmt2Histo = new TH1S("PMT2Histo", sst.str().c_str(), 20, 0., 300.); |
|
|
//---------- |
|
|
sst.str(""); |
|
|
sst << "Histogram of PMT Plane Counters (S31 AND S32) based on " << base.Data(); |
|
|
TH1S *pmt3Histo = new TH1S("PMT3Histo", sst.str().c_str(), 20, 0., 300.); |
|
|
|
|
|
/* |
|
|
* Trigger Rate Counters histograms |
|
|
*/ |
|
|
TCanvas *TrigRate1Canvas = new TCanvas("TrigRate1Canvas","TrigRate1Canvas", 1280, 1024); |
|
|
TrigRate1Canvas->Divide(1,3); |
|
|
|
|
|
TCanvas *TrigRate2Canvas = new TCanvas("TrigRate2Canvas","TrigRate2Canvas", 1280, 1024); |
|
|
TrigRate2Canvas->Divide(1,3); |
|
|
//---------- |
|
|
sst.str(""); |
|
|
sst << "Histogram of Trigger Rate Counters (S11 OR S12) AND (S21 OR S22) AND (S31 OR S32) based on " << base.Data(); |
|
|
TH1S *trRate1Histo = new TH1S("trRate1Histo", sst.str().c_str(), 20, 0., 5.); |
|
|
//---------- |
|
|
sst.str(""); |
|
|
sst << "Histogram of Trigger Rate Counters (S11 AND S12) AND (S21 AND S22) AND (S31 AND S32) based on " << base.Data(); |
|
|
TH1S *trRate2Histo = new TH1S("trRate2Histo", sst.str().c_str(), 20, 0., 5.); |
|
|
//--------- |
|
|
sst.str(""); |
|
|
sst << "Histogram of Trigger Rate Counters (S21 OR S22) AND (S31 OR S32) based on " << base.Data(); |
|
|
TH1S *trRate3Histo = new TH1S("trRate3Histo", sst.str().c_str(), 20, 0., 5.); |
|
|
//--------- |
|
|
sst.str(""); |
|
|
sst << "Histogram of Trigger Rate Counters (S21 AND S22) AND (S31 AND S32) based on " << base.Data(); |
|
|
TH1S *trRate4Histo = new TH1S("trRate4Histo", sst.str().c_str(), 20, 0., 5.); |
|
|
//--------- |
|
|
sst.str(""); |
|
|
sst << "Histogram of Trigger Rate Counters S12 AND (S21 OR S22) based on " << base.Data(); |
|
|
TH1S *trRate5Histo = new TH1S("trRate5Histo", sst.str().c_str(), 20, 0., 5.); |
|
|
//--------- |
|
|
sst.str(""); |
|
|
sst << "Histogram of Trigger Rate Counters (S11 OR S12) AND (S31 OR S32) based on " << base.Data(); |
|
|
TH1S *trRate6Histo = new TH1S("trRate6Histo", sst.str().c_str(), 20, 0., 5.); |
|
|
|
|
|
|
|
75 |
/* |
/* |
76 |
* S4 and Calorimeter Counters histograms |
* S4 and Calorimeter Counters histograms |
77 |
*/ |
*/ |
80 |
//---------- |
//---------- |
81 |
sst.str(""); |
sst.str(""); |
82 |
sst << "S4 Counters based on " << base.Data(); |
sst << "S4 Counters based on " << base.Data(); |
83 |
TH1S *S4Cal1Histo = new TH1S("S4Cal1Histo", sst.str().c_str(), 20, 0, 20); |
TH1S *S4Cal1Histo = new TH1S("S4Cal1Histo", sst.str().c_str(), 20, 0, 100); |
84 |
//---------- |
//---------- |
85 |
sst.str(""); |
sst.str(""); |
86 |
sst << "Calorimeter Counters based on " << base.Data(); |
sst << "Calorimeter Counters based on " << base.Data(); |
107 |
//---------- |
//---------- |
108 |
sst.str(""); |
sst.str(""); |
109 |
sst << "Histogram of S3 pattern trigger " << base.Data(); |
sst << "Histogram of S3 pattern trigger " << base.Data(); |
110 |
TH1S *PatternTrig2Histo = new TH1S("PatternTrig2Histo", sst.str().c_str(), 16, 0, 16); |
TH1S *PatternTrig2Histo = new TH1S("PatternTrig2Histo", sst.str().c_str(), 12, 0, 12); |
111 |
|
|
112 |
|
|
113 |
TCanvas *PatternTrig3 = new TCanvas("PatternTrig3","PatternTrig3", 1280, 1024); |
TCanvas *PatternTrig3 = new TCanvas("PatternTrig3","PatternTrig3", 1280, 1024); |
114 |
//---------- |
//---------- |
115 |
sst.str(""); |
sst.str(""); |
116 |
sst << "Histogram of S2 pattern trigger " << base.Data(); |
sst << "Histogram of S2 pattern trigger " << base.Data(); |
117 |
TH1S *PatternTrig3Histo = new TH1S("PatternTrig3Histo", sst.str().c_str(), 16, 0, 16); |
TH1S *PatternTrig3Histo = new TH1S("PatternTrig3Histo", sst.str().c_str(), 8, 0, 8); |
118 |
|
|
119 |
|
|
120 |
TCanvas *PatternTrig4 = new TCanvas("PatternTrig4","PatternTrig4", 1280, 1024); |
TCanvas *PatternTrig4 = new TCanvas("PatternTrig4","PatternTrig4", 1280, 1024); |
121 |
//---------- |
//---------- |
122 |
sst.str(""); |
sst.str(""); |
123 |
sst << "Histogram of S12 pattern trigger " << base.Data(); |
sst << "Histogram of S12 pattern trigger " << base.Data(); |
124 |
TH1S *PatternTrig4Histo = new TH1S("PatternTrig4Histo", sst.str().c_str(), 16, 0, 16); |
TH1S *PatternTrig4Histo = new TH1S("PatternTrig4Histo", sst.str().c_str(), 12, 0, 12); |
125 |
|
|
126 |
|
|
127 |
TCanvas *PatternTrig5 = new TCanvas("PatternTrig5","PatternTrig5", 1280, 1024); |
TCanvas *PatternTrig5 = new TCanvas("PatternTrig5","PatternTrig5", 1280, 1024); |
129 |
sst.str(""); |
sst.str(""); |
130 |
sst << "Histogram of S11 pattern trigger " << base.Data(); |
sst << "Histogram of S11 pattern trigger " << base.Data(); |
131 |
TH1S *PatternTrig5Histo = new TH1S("PatternTrig5Histo", sst.str().c_str(), 16, 0, 16); |
TH1S *PatternTrig5Histo = new TH1S("PatternTrig5Histo", sst.str().c_str(), 16, 0, 16); |
132 |
|
|
|
|
|
|
|
|
133 |
int i = 0; |
int i = 0; |
134 |
Int_t size = nevents; |
Int_t size = nevents; |
135 |
|
|
137 |
Double_t *evCounter = new Double_t[size]; |
Double_t *evCounter = new Double_t[size]; |
138 |
Double_t *deadTime = new Double_t[size]; |
Double_t *deadTime = new Double_t[size]; |
139 |
Double_t *liveTime = new Double_t[size]; |
Double_t *liveTime = new Double_t[size]; |
140 |
|
// |
141 |
|
Double_t *trigrate0 = new Double_t[size]; |
142 |
|
Double_t *trigrate1 = new Double_t[size]; |
143 |
|
Double_t *trigrate2 = new Double_t[size]; |
144 |
|
Double_t *trigrate3 = new Double_t[size]; |
145 |
|
Double_t *trigrate4 = new Double_t[size]; |
146 |
|
Double_t *trigrate5 = new Double_t[size]; |
147 |
|
// |
148 |
|
Double_t *pmt1 = new Double_t[size]; |
149 |
|
Double_t *pmt2 = new Double_t[size]; |
150 |
|
Double_t *pmt3 = new Double_t[size]; |
151 |
|
// |
152 |
while(i < nevents){ |
while(i < nevents){ |
153 |
HeadBr->GetEntry(i); |
HeadBr->GetEntry(i); |
154 |
TrigBr->GetEntry(i); |
TrigBr->GetEntry(i); |
156 |
/* time vector fill*/ |
/* time vector fill*/ |
157 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
158 |
time[i] = ph->GetOrbitalTime(); |
time[i] = ph->GetOrbitalTime(); |
159 |
|
|
160 |
/* eventCounter vector fill*/ |
/* eventCounter vector fill*/ |
161 |
evCounter[i] = triggerEvent->evcount; |
evCounter[i] = triggerEvent->evcount; |
162 |
|
|
163 |
/* live time vector fill*/ |
if( evCounter[i] > 1 ){ |
164 |
liveTime[i] = 0.16 * triggerEvent->dltime[0]; |
|
165 |
|
/* live time vector fill*/ |
166 |
/* dead time vector fill*/ |
liveTime[i] = 0.16 * triggerEvent->dltime[0]; |
167 |
deadTime[i] = 0.01 * triggerEvent->dltime[1]; |
|
168 |
|
/* dead time vector fill*/ |
169 |
|
deadTime[i] = 0.01 * triggerEvent->dltime[1]; |
170 |
|
|
171 |
|
} |
172 |
|
|
173 |
gStyle->SetStatY(0.85); |
gStyle->SetStatY(0.85); |
174 |
|
|
175 |
/* PMT Plane Counters fill*/ |
/////////////////////// |
176 |
|
|
177 |
|
/* PMT Plane Counters */ |
178 |
|
|
179 |
pmt1Histo->Fill((1/0.06)*triggerEvent->pmtpl[0]); |
pmt1[i] = 1.*triggerEvent->pmtpl[0]; |
180 |
pmt2Histo->Fill((1/0.06)*triggerEvent->pmtpl[1]); |
pmt2[i] = 1.*triggerEvent->pmtpl[1]; |
181 |
pmt3Histo->Fill((1/0.06)*triggerEvent->pmtpl[2]); |
pmt3[i] = 1.*triggerEvent->pmtpl[2]; |
182 |
|
|
183 |
/* Trigger Rate Counters fill*/ |
/* Trigger Rate Counters*/ |
184 |
trRate1Histo->Fill((1/4.)*triggerEvent->trigrate[0]); |
trigrate0[i] = (1/4.)*triggerEvent->trigrate[0]; |
185 |
trRate2Histo->Fill((1/4.)*triggerEvent->trigrate[1]); |
trigrate1[i] = (1/4.)*triggerEvent->trigrate[1]; |
186 |
trRate3Histo->Fill((1/4.)*triggerEvent->trigrate[2]); |
trigrate2[i] = (1/4.)*triggerEvent->trigrate[2]; |
187 |
trRate4Histo->Fill((1/4.)*triggerEvent->trigrate[3]); |
trigrate3[i] = (1/4.)*triggerEvent->trigrate[3]; |
188 |
trRate5Histo->Fill((1/4.)*triggerEvent->trigrate[4]); |
trigrate4[i] = (1/4.)*triggerEvent->trigrate[4]; |
189 |
trRate6Histo->Fill((1/4.)*triggerEvent->trigrate[5]); |
trigrate5[i] = (1/4.)*triggerEvent->trigrate[5]; |
190 |
|
|
191 |
/* S4 and Calorimeter Counters fill*/ |
/* S4 and Calorimeter Counters fill*/ |
192 |
S4Cal1Histo->Fill(triggerEvent->s4calcount[0]); |
S4Cal1Histo->Fill(triggerEvent->s4calcount[0]); |
202 |
int trte1=(int)triggerEvent->patterntrig[1]; |
int trte1=(int)triggerEvent->patterntrig[1]; |
203 |
|
|
204 |
PatternTrig1Histo->AddBinContent(1,bit(trte1,0)); |
PatternTrig1Histo->AddBinContent(1,bit(trte1,0)); |
|
PatternTrig1Histo->AddBinContent(2,bit(trte1,1)); |
|
|
PatternTrig1Histo->AddBinContent(3,bit(trte1,2)); |
|
|
|
|
205 |
|
|
206 |
int trte2=(int)triggerEvent->patterntrig[2]; |
int trte2=(int)triggerEvent->patterntrig[2]; |
207 |
|
|
300 |
sst << "Event Counter"; |
sst << "Event Counter"; |
301 |
TGraph *evCounterGraph = new TGraph(nevents, time, evCounter); |
TGraph *evCounterGraph = new TGraph(nevents, time, evCounter); |
302 |
evCounterGraph->SetTitle(sst.str().c_str()); |
evCounterGraph->SetTitle(sst.str().c_str()); |
303 |
|
evCounterGraph->GetXaxis()->SetTitle("OrbitalTime"); |
304 |
|
evCounterGraph->GetXaxis()->CenterTitle(); |
305 |
evCounterGraph->Draw("APL"); |
evCounterGraph->Draw("APL"); |
306 |
|
|
307 |
/* |
/* |
318 |
sst << "Dead Time"; |
sst << "Dead Time"; |
319 |
DeadTimeGraph->SetTitle(sst.str().c_str()); |
DeadTimeGraph->SetTitle(sst.str().c_str()); |
320 |
DeadTimeGraph->SetFillColor(2); |
DeadTimeGraph->SetFillColor(2); |
321 |
DeadTimeGraph->GetXaxis()->SetTitle("OnBoardTime"); |
DeadTimeGraph->GetXaxis()->SetTitle("OrbitalTime"); |
322 |
DeadTimeGraph->GetXaxis()->CenterTitle(); |
DeadTimeGraph->GetXaxis()->CenterTitle(); |
323 |
DeadTimeGraph->GetYaxis()->SetTitle("DeadTime(ms)"); |
DeadTimeGraph->GetYaxis()->SetTitle("DeadTime(ms)"); |
324 |
DeadTimeGraph->GetYaxis()->CenterTitle(); |
DeadTimeGraph->GetYaxis()->CenterTitle(); |
325 |
DeadTimeGraph->SetMaximum(100); |
DeadTimeGraph->SetMaximum(100); |
326 |
DeadTimeGraph->Draw("APL"); |
DeadTimeGraph->Draw("AP"); |
327 |
//---------- |
//---------- |
328 |
sst.str(""); |
sst.str(""); |
329 |
sst << "Graph of Live Time vs OBT based on " << base.Data(); |
sst << "Graph of Live Time vs OBT based on " << base.Data(); |
333 |
sst << "Live Time"; |
sst << "Live Time"; |
334 |
LiveTimeGraph->SetTitle(sst.str().c_str()); |
LiveTimeGraph->SetTitle(sst.str().c_str()); |
335 |
LiveTimeGraph->SetFillColor(2); |
LiveTimeGraph->SetFillColor(2); |
336 |
LiveTimeGraph->GetXaxis()->SetTitle("OnBoardTime"); |
LiveTimeGraph->GetXaxis()->SetTitle("OrbitalTime"); |
337 |
LiveTimeGraph->GetXaxis()->CenterTitle(); |
LiveTimeGraph->GetXaxis()->CenterTitle(); |
338 |
LiveTimeGraph->GetYaxis()->SetTitle("LiveTime(ms)"); |
LiveTimeGraph->GetYaxis()->SetTitle("LiveTime(ms)"); |
339 |
LiveTimeGraph->GetYaxis()->CenterTitle(); |
LiveTimeGraph->GetYaxis()->CenterTitle(); |
340 |
LiveTimeGraph->Draw("APL"); |
LiveTimeGraph->Draw("AP"); |
341 |
|
|
342 |
/* PMT Plane Counters draw*/ |
/* |
343 |
|
* PMT Plane Counters Graph |
344 |
|
*/ |
345 |
|
|
346 |
|
TCanvas *PMTCanvas = new TCanvas("PMTCanvas","PMTCanvas", 1280, 1024); |
347 |
|
PMTCanvas->Divide(1,3); |
348 |
|
//---------- |
349 |
|
sst.str(""); |
350 |
|
sst << "Graph of PMT Plane Counters (S11 AND S12) vs OBT based on " << base.Data(); |
351 |
|
TGraph *PMT1Graph = new TGraph(nevents, time, pmt1); |
352 |
PMTCanvas->cd(1); |
PMTCanvas->cd(1); |
353 |
pmt1Histo->GetXaxis()->SetTitle("Hz"); |
sst.str(""); |
354 |
pmt1Histo->Draw(); |
sst << "PMT Plane Counters (S11 AND S12)"; |
355 |
|
PMT1Graph->SetTitle(sst.str().c_str()); |
356 |
|
PMT1Graph->SetFillColor(2); |
357 |
|
PMT1Graph->GetXaxis()->SetTitle("OrbitalTime"); |
358 |
|
PMT1Graph->GetXaxis()->CenterTitle(); |
359 |
|
PMT1Graph->GetYaxis()->SetTitle("PMT Plane Counters"); |
360 |
|
PMT1Graph->GetYaxis()->CenterTitle(); |
361 |
|
PMT1Graph->Draw("AP"); |
362 |
|
//---------- |
363 |
|
sst.str(""); |
364 |
|
sst << "Graph PMT Plane Counters (S21 AND S22) vs OBT based on " << base.Data(); |
365 |
|
TGraph *PMT2Graph = new TGraph(nevents, time, pmt2); |
366 |
PMTCanvas->cd(2); |
PMTCanvas->cd(2); |
367 |
pmt2Histo->GetXaxis()->SetTitle("Hz"); |
sst.str(""); |
368 |
pmt2Histo->Draw(); |
sst << "PMT Plane Counters (S21 AND S22)"; |
369 |
|
PMT2Graph->SetTitle(sst.str().c_str()); |
370 |
|
PMT2Graph->SetFillColor(2); |
371 |
|
PMT2Graph->GetXaxis()->SetTitle("OrbitalTime"); |
372 |
|
PMT2Graph->GetXaxis()->CenterTitle(); |
373 |
|
PMT2Graph->GetYaxis()->SetTitle("PMT Plane Counters"); |
374 |
|
PMT2Graph->GetYaxis()->CenterTitle(); |
375 |
|
PMT2Graph->Draw("AP"); |
376 |
|
//---------- |
377 |
|
sst.str(""); |
378 |
|
sst << "Graph PMT Plane Counters (S31 AND S32) vs OBT based on " << base.Data(); |
379 |
|
TGraph *PMT3Graph = new TGraph(nevents, time, pmt3); |
380 |
PMTCanvas->cd(3); |
PMTCanvas->cd(3); |
381 |
pmt3Histo->GetXaxis()->SetTitle("Hz"); |
sst.str(""); |
382 |
pmt3Histo->Draw(); |
sst << "PMT Plane Counters (S31 AND S32)"; |
383 |
|
PMT3Graph->SetTitle(sst.str().c_str()); |
384 |
/* Trigger Rate Counters draw*/ |
PMT3Graph->SetFillColor(2); |
385 |
|
PMT3Graph->GetXaxis()->SetTitle("OrbitalTime"); |
386 |
|
PMT3Graph->GetXaxis()->CenterTitle(); |
387 |
|
PMT3Graph->GetYaxis()->SetTitle("PMT Plane Rate Counters"); |
388 |
|
PMT3Graph->GetYaxis()->CenterTitle(); |
389 |
|
PMT3Graph->Draw("AP"); |
390 |
|
// |
391 |
|
//---------- |
392 |
|
|
393 |
|
/* |
394 |
|
* Trigger Rate Counters draw |
395 |
|
*/ |
396 |
|
|
397 |
|
TCanvas *TrigRate1Canvas = new TCanvas("TrigRate1Canvas","TrigRate1Canvas", 1280, 1024); |
398 |
|
TrigRate1Canvas->Divide(1,3); |
399 |
|
//---------- |
400 |
|
sst.str(""); |
401 |
|
sst << "Graph of Trigger Rate Counters (S11 OR S12) AND (S21 OR S22) AND (S31 OR S32) vs OBT based on " << base.Data(); |
402 |
|
|
403 |
|
TGraph *TrigRate0Graph = new TGraph(nevents, time, trigrate0); |
404 |
TrigRate1Canvas->cd(1); |
TrigRate1Canvas->cd(1); |
405 |
trRate1Histo->GetXaxis()->SetTitle("Hz"); |
sst.str(""); |
406 |
trRate1Histo->Draw(); |
sst << "Trigger Rate Counters (S11 OR S12) AND (S21 OR S22) AND (S31 OR S32)"; |
407 |
|
TrigRate0Graph->SetTitle(sst.str().c_str()); |
408 |
|
TrigRate0Graph->SetFillColor(2); |
409 |
|
TrigRate0Graph->GetXaxis()->SetTitle("OrbitalTime"); |
410 |
|
TrigRate0Graph->GetXaxis()->CenterTitle(); |
411 |
|
TrigRate0Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
412 |
|
TrigRate0Graph->GetYaxis()->CenterTitle(); |
413 |
|
TrigRate0Graph->Draw("AP"); |
414 |
|
//---------- |
415 |
|
sst.str(""); |
416 |
|
sst << "Graph Trigger Rate Counters (S11 AND S12) AND (S21 AND S22) AND (S31 AND S32) vs OBT based on " << base.Data(); |
417 |
|
TGraph *TrigRate1Graph = new TGraph(nevents, time, trigrate1); |
418 |
TrigRate1Canvas->cd(2); |
TrigRate1Canvas->cd(2); |
419 |
trRate2Histo->GetXaxis()->SetTitle("Hz"); |
sst.str(""); |
420 |
trRate2Histo->Draw(); |
sst << "Trigger Rate Counters (S11 AND S12) AND (S21 AND S22) AND (S31 AND S32)"; |
421 |
|
TrigRate1Graph->SetTitle(sst.str().c_str()); |
422 |
|
TrigRate1Graph->SetFillColor(2); |
423 |
|
TrigRate1Graph->GetXaxis()->SetTitle("OrbitalTime"); |
424 |
|
TrigRate1Graph->GetXaxis()->CenterTitle(); |
425 |
|
TrigRate1Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
426 |
|
TrigRate1Graph->GetYaxis()->CenterTitle(); |
427 |
|
TrigRate1Graph->Draw("AP"); |
428 |
|
//---------- |
429 |
|
sst.str(""); |
430 |
|
sst << "Graph Trigger Rate Counters (S21 OR S22) AND (S31 OR S32) vs OBT based on " << base.Data(); |
431 |
|
TGraph *TrigRate2Graph = new TGraph(nevents, time, trigrate2); |
432 |
TrigRate1Canvas->cd(3); |
TrigRate1Canvas->cd(3); |
433 |
trRate3Histo->GetXaxis()->SetTitle("Hz"); |
sst.str(""); |
434 |
trRate3Histo->Draw(); |
sst << "Trigger Rate Counters (S21 OR S22) AND (S31 OR S32) "; |
435 |
|
TrigRate2Graph->SetTitle(sst.str().c_str()); |
436 |
|
TrigRate2Graph->SetFillColor(2); |
437 |
|
TrigRate2Graph->GetXaxis()->SetTitle("OrbitalTime"); |
438 |
|
TrigRate2Graph->GetXaxis()->CenterTitle(); |
439 |
|
TrigRate2Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
440 |
|
TrigRate2Graph->GetYaxis()->CenterTitle(); |
441 |
|
TrigRate2Graph->Draw("AP"); |
442 |
|
// |
443 |
|
//---------- |
444 |
|
// |
445 |
|
TCanvas *TrigRate2Canvas = new TCanvas("TrigRate2Canvas","TrigRate2Canvas", 1280, 1024); |
446 |
|
TrigRate2Canvas->Divide(1,3); |
447 |
|
//---------- |
448 |
|
sst.str(""); |
449 |
|
sst << "Graph of Trigger Rate Counters (S21 AND S22) AND (S31 AND S32) vs OBT based on " << base.Data(); |
450 |
|
|
451 |
|
TGraph *TrigRate3Graph = new TGraph(nevents, time, trigrate3); |
452 |
TrigRate2Canvas->cd(1); |
TrigRate2Canvas->cd(1); |
453 |
trRate4Histo->GetXaxis()->SetTitle("Hz"); |
sst.str(""); |
454 |
trRate4Histo->Draw(); |
sst << "Trigger Rate Counters (S21 AND S22) AND (S31 AND S32)"; |
455 |
|
TrigRate3Graph->SetTitle(sst.str().c_str()); |
456 |
|
TrigRate3Graph->SetFillColor(2); |
457 |
|
TrigRate3Graph->GetXaxis()->SetTitle("OrbitalTime"); |
458 |
|
TrigRate3Graph->GetXaxis()->CenterTitle(); |
459 |
|
TrigRate3Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
460 |
|
TrigRate3Graph->GetYaxis()->CenterTitle(); |
461 |
|
TrigRate3Graph->Draw("AP"); |
462 |
|
//---------- |
463 |
|
sst.str(""); |
464 |
|
sst << "Graph Trigger Rate Counters S12 AND (S21 AND S22) vs OBT based on " << base.Data(); |
465 |
|
TGraph *TrigRate4Graph = new TGraph(nevents, time, trigrate4); |
466 |
TrigRate2Canvas->cd(2); |
TrigRate2Canvas->cd(2); |
467 |
trRate5Histo->GetXaxis()->SetTitle("Hz"); |
sst.str(""); |
468 |
trRate5Histo->Draw(); |
sst << "Trigger Rate Counters S12 AND (S21 AND S22)"; |
469 |
|
TrigRate4Graph->SetTitle(sst.str().c_str()); |
470 |
|
TrigRate4Graph->SetFillColor(2); |
471 |
|
TrigRate4Graph->GetXaxis()->SetTitle("OrbitalTime"); |
472 |
|
TrigRate4Graph->GetXaxis()->CenterTitle(); |
473 |
|
TrigRate4Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
474 |
|
TrigRate4Graph->GetYaxis()->CenterTitle(); |
475 |
|
TrigRate4Graph->Draw("AP"); |
476 |
|
//---------- |
477 |
|
sst.str(""); |
478 |
|
sst << "Graph Trigger Rate Counters (S11 OR S12) AND (S31 OR S32) vs OBT based on " << base.Data(); |
479 |
|
TGraph *TrigRate5Graph = new TGraph(nevents, time, trigrate5); |
480 |
TrigRate2Canvas->cd(3); |
TrigRate2Canvas->cd(3); |
481 |
trRate6Histo->GetXaxis()->SetTitle("Hz"); |
sst.str(""); |
482 |
trRate6Histo->Draw(); |
sst << "Trigger Rate Counters (S11 OR S12) AND (S31 OR S32)"; |
483 |
|
TrigRate5Graph->SetTitle(sst.str().c_str()); |
484 |
|
TrigRate5Graph->SetFillColor(2); |
485 |
|
TrigRate5Graph->GetXaxis()->SetTitle("OrbitalTime"); |
486 |
|
TrigRate5Graph->GetXaxis()->CenterTitle(); |
487 |
|
TrigRate5Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
488 |
|
TrigRate5Graph->GetYaxis()->CenterTitle(); |
489 |
|
TrigRate5Graph->Draw("AP"); |
490 |
|
//---------- |
491 |
|
|
492 |
|
gStyle->SetOptStat("mr"); |
493 |
|
|
494 |
/* S4 and Calorimeter Counters draw*/ |
/* S4 and Calorimeter Counters draw*/ |
495 |
S4CalCanvas->cd(1); |
S4CalCanvas->cd(1); |
496 |
S4Cal1Histo->GetXaxis()->SetTitle("Hz"); |
S4Cal1Histo->GetXaxis()->SetTitle("Hz"); |
501 |
|
|
502 |
/* Pattern Trigger draw*/ |
/* Pattern Trigger draw*/ |
503 |
|
|
504 |
gStyle->SetOptStat(1101); |
// gStyle->SetOptStat(1101); |
505 |
|
gStyle->SetOptStat("mr"); |
506 |
|
|
507 |
|
|
508 |
PatternTrig5->cd(); |
PatternTrig5->cd(); |
509 |
PatternTrig5Histo->Draw(""); |
PatternTrig5Histo->SetMinimum(0.); |
510 |
|
PatternTrig5Histo->Draw(""); |
511 |
|
|
512 |
PatternTrig4->cd(); |
PatternTrig4->cd(); |
513 |
|
PatternTrig4Histo->SetMinimum(0.); |
514 |
PatternTrig4Histo->Draw(""); |
PatternTrig4Histo->Draw(""); |
515 |
|
|
516 |
PatternTrig3->cd(); |
PatternTrig3->cd(); |
517 |
|
PatternTrig3Histo->SetMinimum(0.); |
518 |
PatternTrig3Histo->Draw(""); |
PatternTrig3Histo->Draw(""); |
519 |
|
|
520 |
PatternTrig2->cd(); |
PatternTrig2->cd(); |
521 |
|
PatternTrig2Histo->SetMinimum(0.); |
522 |
PatternTrig2Histo->Draw(""); |
PatternTrig2Histo->Draw(""); |
523 |
|
|
524 |
PatternTrig0->cd(); |
PatternTrig0->cd(); |
525 |
|
PatternTrig0Histo->SetMinimum(0.); |
526 |
PatternTrig0Histo->Draw(""); |
PatternTrig0Histo->Draw(""); |
527 |
|
|
528 |
PatternTrig1->cd(); |
PatternTrig1->cd(); |
529 |
|
PatternTrig1Histo->SetMinimum(0.); |
530 |
PatternTrig1Histo->Draw(""); |
PatternTrig1Histo->Draw(""); |
531 |
|
|
532 |
gStyle->SetOptStat(1111); |
|
533 |
|
gStyle->SetOptStat("mr"); |
534 |
gStyle->SetStatH(0.3); |
gStyle->SetStatH(0.3); |
535 |
gStyle->SetStatW(0.3); |
gStyle->SetStatW(0.3); |
536 |
|
|
537 |
|
TH1 *htemp; |
538 |
|
|
539 |
TCanvas *RatePMT1 = new TCanvas("RatePMT1", "Rate PMT S11A", 1); |
TCanvas *RatePMT1 = new TCanvas("RatePMT1", "Rate PMT S11A", 1); |
540 |
RatePMT1->Divide (3,3); |
RatePMT1->Divide (3,3); |
541 |
//---------- |
//---------- |
542 |
RatePMT1->cd(1); |
RatePMT1->cd(1); |
543 |
PhysicsTr->Draw("pmtcount1[0]"); |
PhysicsTr->Draw("pmtcount1[0]"); |
544 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
545 |
t->SetTextFont(32); |
htemp->SetTitle("S111A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S111A"); |
|
546 |
//---------- |
//---------- |
547 |
RatePMT1->cd (2); |
RatePMT1->cd (2); |
548 |
PhysicsTr->Draw("pmtcount1[1]"); |
PhysicsTr->Draw("pmtcount1[1]"); |
549 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
550 |
t->SetTextFont(32); |
htemp->SetTitle("S112A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S112A"); |
|
551 |
//---------- |
//---------- |
552 |
RatePMT1->cd (3); |
RatePMT1->cd (3); |
553 |
PhysicsTr->Draw("pmtcount1[2]"); |
PhysicsTr->Draw("pmtcount1[2]"); |
554 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
555 |
t->SetTextFont(32); |
htemp->SetTitle("S113A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S113A"); |
|
556 |
//---------- |
//---------- |
557 |
RatePMT1->cd(4); |
RatePMT1->cd(4); |
558 |
PhysicsTr->Draw("pmtcount1[3]"); |
PhysicsTr->Draw("pmtcount1[3]"); |
559 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
560 |
t->SetTextFont(32); |
htemp->SetTitle("S114A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S114A"); |
|
561 |
//---------- |
//---------- |
562 |
RatePMT1->cd(5); |
RatePMT1->cd(5); |
563 |
PhysicsTr->Draw("pmtcount1[4]"); |
PhysicsTr->Draw("pmtcount1[4]"); |
564 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
565 |
t->SetTextFont(32); |
htemp->SetTitle("S115A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S115A"); |
|
566 |
//---------- |
//---------- |
567 |
RatePMT1->cd(6); |
RatePMT1->cd(6); |
568 |
PhysicsTr->Draw("pmtcount1[5]"); |
PhysicsTr->Draw("pmtcount1[5]"); |
569 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
570 |
t->SetTextFont(32); |
htemp->SetTitle("S116A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S116A"); |
|
571 |
//---------- |
//---------- |
572 |
RatePMT1->cd(7); |
RatePMT1->cd(7); |
573 |
PhysicsTr->Draw("pmtcount1[6]"); |
PhysicsTr->Draw("pmtcount1[6]"); |
574 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
575 |
t->SetTextFont(32); |
htemp->SetTitle("S117A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S117A"); |
|
576 |
//---------- |
//---------- |
577 |
RatePMT1->cd(8); |
RatePMT1->cd(8); |
578 |
PhysicsTr->Draw("pmtcount1[7]"); |
PhysicsTr->Draw("pmtcount1[7]"); |
579 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
580 |
t->SetTextFont(32); |
htemp->SetTitle("S118A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S118A"); |
|
581 |
|
|
582 |
TCanvas *RatePMT2 = new TCanvas("RatePMT2", "Rate PMT S11B", 1); |
TCanvas *RatePMT2 = new TCanvas("RatePMT2", "Rate PMT S11B", 1); |
583 |
RatePMT2->Divide (3,3); |
RatePMT2->Divide (3,3); |
584 |
//---------- |
//---------- |
585 |
RatePMT2->cd(1); |
RatePMT2->cd(1); |
586 |
PhysicsTr-> Draw("pmtcount1[8]"); |
PhysicsTr-> Draw("pmtcount1[8]"); |
587 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
588 |
t->SetTextFont(32); |
htemp->SetTitle("S111B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S111B"); |
|
589 |
//---------- |
//---------- |
590 |
RatePMT2->cd(2); |
RatePMT2->cd(2); |
591 |
PhysicsTr->Draw("pmtcount1[9]"); |
PhysicsTr->Draw("pmtcount1[9]"); |
592 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
593 |
t->SetTextFont(32); |
htemp->SetTitle("S112B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S112B"); |
|
594 |
//---------- |
//---------- |
595 |
RatePMT2->cd(3); |
RatePMT2->cd(3); |
596 |
PhysicsTr->Draw("pmtcount1[10]"); |
PhysicsTr->Draw("pmtcount1[10]"); |
597 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
598 |
t->SetTextFont(32); |
htemp->SetTitle("S113B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S113B"); |
|
599 |
//---------- |
//---------- |
600 |
RatePMT2->cd(4); |
RatePMT2->cd(4); |
601 |
PhysicsTr->Draw("pmtcount1[11]"); |
PhysicsTr->Draw("pmtcount1[11]"); |
602 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
603 |
t->SetTextFont(32); |
htemp->SetTitle("S114B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S114B"); |
|
604 |
//---------- |
//---------- |
605 |
RatePMT2->cd(5); |
RatePMT2->cd(5); |
606 |
PhysicsTr-> Draw("pmtcount1[12]"); |
PhysicsTr-> Draw("pmtcount1[12]"); |
607 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
608 |
t->SetTextFont(32); |
htemp->SetTitle("S115B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S115B"); |
|
609 |
//---------- |
//---------- |
610 |
RatePMT2->cd(6); |
RatePMT2->cd(6); |
611 |
PhysicsTr-> Draw("pmtcount1[13]"); |
PhysicsTr-> Draw("pmtcount1[13]"); |
612 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
613 |
t->SetTextFont(32); |
htemp->SetTitle("S116B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S116B"); |
|
614 |
//---------- |
//---------- |
615 |
RatePMT2->cd(7); |
RatePMT2->cd(7); |
616 |
PhysicsTr-> Draw("pmtcount1[14]"); |
PhysicsTr-> Draw("pmtcount1[14]"); |
617 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
618 |
t->SetTextFont(32); |
htemp->SetTitle("S117B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S117B"); |
|
619 |
//---------- |
//---------- |
620 |
RatePMT2->cd(8); |
RatePMT2->cd(8); |
621 |
PhysicsTr->Draw("pmtcount1[15]"); |
PhysicsTr->Draw("pmtcount1[15]"); |
622 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
623 |
t->SetTextFont(32); |
htemp->SetTitle("S118B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S118B"); |
|
624 |
|
|
625 |
TCanvas *RatePMT3 = new TCanvas("RatePMT3", "Rate PMT S12", 1); |
TCanvas *RatePMT3 = new TCanvas("RatePMT3", "Rate PMT S12", 1); |
626 |
RatePMT3->Divide (3,4); |
RatePMT3->Divide (3,4); |
627 |
//---------- |
//---------- |
628 |
RatePMT3->cd(1); |
RatePMT3->cd(1); |
629 |
PhysicsTr-> Draw("pmtcount1[16]"); |
PhysicsTr-> Draw("pmtcount1[16]"); |
630 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
631 |
t->SetTextFont(32); |
htemp->SetTitle("S121A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S121A"); |
|
632 |
//---------- |
//---------- |
633 |
RatePMT3->cd(2); |
RatePMT3->cd(2); |
634 |
PhysicsTr-> Draw("pmtcount1[17]"); |
PhysicsTr-> Draw("pmtcount1[17]"); |
635 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
636 |
t->SetTextFont(32); |
htemp->SetTitle("S122A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S122A"); |
|
637 |
//---------- |
//---------- |
638 |
RatePMT3->cd (3); |
RatePMT3->cd (3); |
639 |
PhysicsTr-> Draw("pmtcount1[18]"); |
PhysicsTr-> Draw("pmtcount1[18]"); |
640 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
641 |
t->SetTextFont(32); |
htemp->SetTitle("S123A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S123A"); |
|
642 |
//---------- |
//---------- |
643 |
RatePMT3->cd(4); |
RatePMT3->cd(4); |
644 |
PhysicsTr->Draw("pmtcount1[19]"); |
PhysicsTr->Draw("pmtcount1[19]"); |
645 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
646 |
t->SetTextFont(32); |
htemp->SetTitle("S124A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S124A"); |
|
647 |
//---------- |
//---------- |
648 |
RatePMT3->cd(5); |
RatePMT3->cd(5); |
649 |
PhysicsTr-> Draw("pmtcount1[20]"); |
PhysicsTr-> Draw("pmtcount1[20]"); |
650 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
651 |
t->SetTextFont(32); |
htemp->SetTitle("S125A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S125A"); |
|
652 |
//---------- |
//---------- |
653 |
RatePMT3->cd(6); |
RatePMT3->cd(6); |
654 |
PhysicsTr-> Draw("pmtcount1[21]"); |
PhysicsTr-> Draw("pmtcount1[21]"); |
655 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
656 |
t->SetTextFont(32); |
htemp->SetTitle("S126A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S126A"); |
|
657 |
//---------- |
//---------- |
658 |
RatePMT3->cd(7); |
RatePMT3->cd(7); |
659 |
PhysicsTr->Draw("pmtcount1[22]"); |
PhysicsTr->Draw("pmtcount1[22]"); |
660 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
661 |
t->SetTextFont(32); |
htemp->SetTitle("S121B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S121B"); |
|
662 |
//---------- |
//---------- |
663 |
RatePMT3->cd(8); |
RatePMT3->cd(8); |
664 |
PhysicsTr-> Draw("pmtcount1[23]"); |
PhysicsTr-> Draw("pmtcount1[23]"); |
665 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
666 |
t->SetTextFont(32); |
htemp->SetTitle("S122B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S122B"); |
|
667 |
//---------- |
//---------- |
668 |
RatePMT3->cd (9); |
RatePMT3->cd (9); |
669 |
PhysicsTr->Draw("pmtcount2[0]"); |
PhysicsTr->Draw("pmtcount2[0]"); |
670 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
671 |
t->SetTextFont(32); |
htemp->SetTitle("S123B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S123B"); |
|
672 |
//---------- |
//---------- |
673 |
RatePMT3->cd (10); |
RatePMT3->cd (10); |
674 |
PhysicsTr->Draw("pmtcount2[1]"); |
PhysicsTr->Draw("pmtcount2[1]"); |
675 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
676 |
t->SetTextFont(32); |
htemp->SetTitle("S124B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S124B"); |
|
677 |
//---------- |
//---------- |
678 |
RatePMT3->cd (11); |
RatePMT3->cd (11); |
679 |
PhysicsTr->Draw("pmtcount2[2]"); |
PhysicsTr->Draw("pmtcount2[2]"); |
680 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
681 |
t->SetTextFont(32); |
htemp->SetTitle("S125B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S125B"); |
|
682 |
//---------- |
//---------- |
683 |
RatePMT3->cd (12); |
RatePMT3->cd (12); |
684 |
PhysicsTr->Draw("pmtcount2[3]"); |
PhysicsTr->Draw("pmtcount2[3]"); |
685 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
686 |
t->SetTextFont(32); |
htemp->SetTitle("S126B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S126B"); |
|
687 |
|
|
688 |
TCanvas *RatePMT4 = new TCanvas("RatePMT4", "Rate PMT S2", 1); |
TCanvas *RatePMT4 = new TCanvas("RatePMT4", "Rate PMT S2", 1); |
689 |
RatePMT4->Divide (3,3); |
RatePMT4->Divide (3,3); |
690 |
//---------- |
//---------- |
691 |
RatePMT4->cd (1); |
RatePMT4->cd (1); |
692 |
PhysicsTr-> Draw("pmtcount2[4]"); |
PhysicsTr-> Draw("pmtcount2[4]"); |
693 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
694 |
t->SetTextFont(32); |
htemp->SetTitle("S211A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S211A"); |
|
695 |
//---------- |
//---------- |
696 |
RatePMT4->cd (2); |
RatePMT4->cd (2); |
697 |
PhysicsTr-> Draw("pmtcount2[5]"); |
PhysicsTr-> Draw("pmtcount2[5]"); |
698 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
699 |
t->SetTextFont(32); |
htemp->SetTitle("S212A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S212A"); |
|
700 |
//---------- |
//---------- |
701 |
RatePMT4->cd (3); |
RatePMT4->cd (3); |
702 |
PhysicsTr-> Draw("pmtcount2[6]"); |
PhysicsTr-> Draw("pmtcount2[6]"); |
703 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
704 |
t->SetTextFont(32); |
htemp->SetTitle("S211B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S211B"); |
|
705 |
//---------- |
//---------- |
706 |
RatePMT4->cd (4); |
RatePMT4->cd (4); |
707 |
PhysicsTr-> Draw("pmtcount2[7]"); |
PhysicsTr-> Draw("pmtcount2[7]"); |
708 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
709 |
t->SetTextFont(32); |
htemp->SetTitle("S212B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S212B"); |
|
710 |
//---------- |
//---------- |
711 |
RatePMT4->cd (5); |
RatePMT4->cd (5); |
712 |
PhysicsTr-> Draw("pmtcount2[8]"); |
PhysicsTr-> Draw("pmtcount2[8]"); |
713 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
714 |
t->SetTextFont(32); |
htemp->SetTitle("S221A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S221A"); |
|
715 |
//---------- |
//---------- |
716 |
RatePMT4->cd (6); |
RatePMT4->cd (6); |
717 |
PhysicsTr-> Draw("pmtcount2[9]"); |
PhysicsTr-> Draw("pmtcount2[9]"); |
718 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
719 |
t->SetTextFont(32); |
htemp->SetTitle("S222A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S222A"); |
|
720 |
//---------- |
//---------- |
721 |
RatePMT4->cd (7); |
RatePMT4->cd (7); |
722 |
PhysicsTr-> Draw("pmtcount2[10]"); |
PhysicsTr-> Draw("pmtcount2[10]"); |
723 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
724 |
t->SetTextFont(32); |
htemp->SetTitle("S221B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S221B"); |
|
725 |
//---------- |
//---------- |
726 |
RatePMT4->cd (8); |
RatePMT4->cd (8); |
727 |
PhysicsTr->Draw("pmtcount2[11]"); |
PhysicsTr->Draw("pmtcount2[11]"); |
728 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
729 |
t->SetTextFont(32); |
htemp->SetTitle("S222B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S222B"); |
|
730 |
|
|
731 |
TCanvas *RatePMT5 = new TCanvas("RatePMT5", "Rate PMT S3", 1); |
TCanvas *RatePMT5 = new TCanvas("RatePMT5", "Rate PMT S3", 1); |
732 |
RatePMT5->Divide (3,4); |
RatePMT5->Divide (3,4); |
733 |
//---------- |
//---------- |
734 |
RatePMT5->cd (1); |
RatePMT5->cd (1); |
735 |
PhysicsTr-> Draw("pmtcount2[12]"); |
PhysicsTr-> Draw("pmtcount2[12]"); |
736 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
737 |
t->SetTextFont(32); |
htemp->SetTitle("S311A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S311A"); |
|
738 |
//---------- |
//---------- |
739 |
RatePMT5->cd (2); |
RatePMT5->cd (2); |
740 |
PhysicsTr-> Draw("pmtcount2[13]"); |
PhysicsTr-> Draw("pmtcount2[13]"); |
741 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
742 |
t->SetTextFont(32); |
htemp->SetTitle("S312A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S312A"); |
|
743 |
//---------- |
//---------- |
744 |
RatePMT5->cd (3); |
RatePMT5->cd (3); |
745 |
PhysicsTr-> Draw("pmtcount2[14]"); |
PhysicsTr-> Draw("pmtcount2[14]"); |
746 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
747 |
t->SetTextFont(32); |
htemp->SetTitle("S313A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S313A"); |
|
748 |
//---------- |
//---------- |
749 |
RatePMT5->cd (4); |
RatePMT5->cd (4); |
750 |
PhysicsTr-> Draw("pmtcount2[15]"); |
PhysicsTr-> Draw("pmtcount2[15]"); |
751 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
752 |
t->SetTextFont(32); |
htemp->SetTitle("S311B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S311B"); |
|
753 |
//---------- |
//---------- |
754 |
RatePMT5->cd (5); |
RatePMT5->cd (5); |
755 |
PhysicsTr-> Draw("pmtcount2[16]"); |
PhysicsTr-> Draw("pmtcount2[16]"); |
756 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
757 |
t->SetTextFont(32); |
htemp->SetTitle("S312B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S312B"); |
|
758 |
//---------- |
//---------- |
759 |
RatePMT5->cd (6); |
RatePMT5->cd (6); |
760 |
PhysicsTr-> Draw("pmtcount2[17]"); |
PhysicsTr-> Draw("pmtcount2[17]"); |
761 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
762 |
t->SetTextFont(32); |
htemp->SetTitle("S313B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S313B"); |
|
763 |
//---------- |
//---------- |
764 |
RatePMT5->cd (7); |
RatePMT5->cd (7); |
765 |
PhysicsTr-> Draw("pmtcount2[18]"); |
PhysicsTr-> Draw("pmtcount2[18]"); |
766 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
767 |
t->SetTextFont(32); |
htemp->SetTitle("S321A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S321A"); |
|
768 |
//---------- |
//---------- |
769 |
RatePMT5->cd (8); |
RatePMT5->cd (8); |
770 |
PhysicsTr-> Draw("pmtcount2[19]"); |
PhysicsTr-> Draw("pmtcount2[19]"); |
771 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
772 |
t->SetTextFont(32); |
htemp->SetTitle("S322A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S322A"); |
|
773 |
//---------- |
//---------- |
774 |
RatePMT5->cd (9); |
RatePMT5->cd (9); |
775 |
PhysicsTr-> Draw("pmtcount2[20]"); |
PhysicsTr-> Draw("pmtcount2[20]"); |
776 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
777 |
t->SetTextFont(32); |
htemp->SetTitle("S323A"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S323A"); |
|
778 |
//---------- |
//---------- |
779 |
RatePMT5->cd (10); |
RatePMT5->cd (10); |
780 |
PhysicsTr-> Draw("pmtcount2[21]"); |
PhysicsTr-> Draw("pmtcount2[21]"); |
781 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
782 |
t->SetTextFont(32); |
htemp->SetTitle("S321B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S321B"); |
|
783 |
//---------- |
//---------- |
784 |
RatePMT5->cd (11); |
RatePMT5->cd (11); |
785 |
PhysicsTr-> Draw("pmtcount2[22]"); |
PhysicsTr-> Draw("pmtcount2[22]"); |
786 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
787 |
t->SetTextFont(32); |
htemp->SetTitle("S322B"); |
|
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S322B"); |
|
788 |
//---------- |
//---------- |
789 |
|
gStyle->SetOptStat("mr"); |
790 |
|
gStyle->SetStatH(0.3); |
791 |
|
gStyle->SetStatW(0.3); |
792 |
RatePMT5->cd (12); |
RatePMT5->cd (12); |
793 |
PhysicsTr-> Draw("pmtcount2[23]"); |
PhysicsTr-> Draw("pmtcount2[23]"); |
794 |
t=new TLatex(); |
htemp = (TH1*)gPad->GetPrimitive("htemp"); |
795 |
t->SetTextFont(32); |
htemp->SetTitle("S323B"); |
796 |
t->SetTextColor(1); |
|
|
t->SetTextAlign(12); |
|
|
t->SetTextSize(0.12); |
|
|
t->DrawLatex(5.,20.,"S323B"); |
|
|
|
|
797 |
// print the output |
// print the output |
798 |
const char *saveas = format; |
const char *saveas = format; |
799 |
if ( !strcmp(saveas,"ps") ) { |
if ( !strcmp(saveas,"ps") ) { |
808 |
PMTCanvas->Print(sst.str().c_str()); |
PMTCanvas->Print(sst.str().c_str()); |
809 |
TrigRate1Canvas->Print(sst.str().c_str()); |
TrigRate1Canvas->Print(sst.str().c_str()); |
810 |
TrigRate2Canvas->Print(sst.str().c_str()); |
TrigRate2Canvas->Print(sst.str().c_str()); |
811 |
|
|
812 |
|
gStyle->SetOptStat("mr"); |
813 |
S4CalCanvas->Print(sst.str().c_str()); |
S4CalCanvas->Print(sst.str().c_str()); |
814 |
|
|
815 |
gStyle->SetOptStat(1101); |
// gStyle->SetOptStat(1101); |
816 |
|
gStyle->SetOptStat("mr"); |
817 |
|
|
818 |
PatternTrig5->Print(sst.str().c_str()); |
PatternTrig5->Print(sst.str().c_str()); |
819 |
PatternTrig4->Print(sst.str().c_str()); |
PatternTrig4->Print(sst.str().c_str()); |
821 |
PatternTrig2->Print(sst.str().c_str()); |
PatternTrig2->Print(sst.str().c_str()); |
822 |
PatternTrig0->Print(sst.str().c_str()); |
PatternTrig0->Print(sst.str().c_str()); |
823 |
PatternTrig1->Print(sst.str().c_str()); |
PatternTrig1->Print(sst.str().c_str()); |
824 |
|
gStyle->SetOptStat("mr"); |
825 |
RatePMT1->Print(sst.str().c_str()); |
RatePMT1->Print(sst.str().c_str()); |
826 |
RatePMT2->Print(sst.str().c_str()); |
RatePMT2->Print(sst.str().c_str()); |
827 |
RatePMT3->Print(sst.str().c_str()); |
RatePMT3->Print(sst.str().c_str()); |
828 |
RatePMT4->Print(sst.str().c_str()); |
RatePMT4->Print(sst.str().c_str()); |
829 |
|
// |
830 |
sst.str(""); |
sst.str(""); |
831 |
sst << outDirectory.Data() << filename.Data() << "TriggerScan." << saveas << ")"; |
sst << outDirectory.Data() << filename.Data() << "TriggerScan." << saveas << ")"; |
832 |
RatePMT5->Print(sst.str().c_str()); |
RatePMT5->Print(sst.str().c_str()); |
859 |
sst << outDirectory.Data() << filename.Data() << "TriggerScan6." << saveas; |
sst << outDirectory.Data() << filename.Data() << "TriggerScan6." << saveas; |
860 |
S4CalCanvas->SaveAs(sst.str().c_str()); |
S4CalCanvas->SaveAs(sst.str().c_str()); |
861 |
|
|
862 |
gStyle->SetOptStat(1101); |
// gStyle->SetOptStat(1101); |
863 |
|
gStyle->SetOptStat("mr"); |
864 |
|
|
865 |
|
|
866 |
sst.str(""); |
sst.str(""); |
867 |
sst << outDirectory.Data() << filename.Data() << "TriggerScan7." << saveas; |
sst << outDirectory.Data() << filename.Data() << "TriggerScan7." << saveas; |
887 |
sst << outDirectory.Data() << filename.Data() << "TriggerScan12." << saveas; |
sst << outDirectory.Data() << filename.Data() << "TriggerScan12." << saveas; |
888 |
PatternTrig1->SaveAs(sst.str().c_str()); |
PatternTrig1->SaveAs(sst.str().c_str()); |
889 |
|
|
890 |
|
gStyle->SetOptStat("mr"); |
891 |
|
|
892 |
sst.str(""); |
sst.str(""); |
893 |
sst << outDirectory.Data() << filename.Data() << "TriggerScan13." << saveas; |
sst << outDirectory.Data() << filename.Data() << "TriggerScan13." << saveas; |
894 |
RatePMT1->SaveAs(sst.str().c_str()); |
RatePMT1->SaveAs(sst.str().c_str()); |
904 |
sst.str(""); |
sst.str(""); |
905 |
sst << outDirectory.Data() << filename.Data() << "TriggerScan16." << saveas; |
sst << outDirectory.Data() << filename.Data() << "TriggerScan16." << saveas; |
906 |
RatePMT4->SaveAs(sst.str().c_str()); |
RatePMT4->SaveAs(sst.str().c_str()); |
907 |
|
|
908 |
|
// gStyle->SetOptStat(1111); |
909 |
|
gStyle->SetOptStat("mr"); |
910 |
|
|
911 |
sst.str(""); |
sst.str(""); |
912 |
sst << outDirectory.Data() << filename.Data() << "TriggerScan17." << saveas; |
sst << outDirectory.Data() << filename.Data() << "TriggerScan17." << saveas; |