16 |
* TString format - the format which will be used for save the produced images (Default = "ps") |
* TString format - the format which will be used for save the produced images (Default = "ps") |
17 |
*/ |
*/ |
18 |
|
|
19 |
|
#include <TROOT.h> |
20 |
|
#include <TFile.h> |
21 |
#include <TString.h> |
#include <TString.h> |
22 |
#include <TObjString.h> |
#include <TObjString.h> |
23 |
#include <TTree.h> |
#include <TTree.h> |
24 |
#include <TBranch.h> |
#include <TBranch.h> |
25 |
#include <TGraph.h> |
#include <TGraph.h> |
26 |
#include <TStyle.h> |
#include <TStyle.h> |
27 |
#include <TH2S.h> |
#include <TH1.h> |
28 |
#include <TPaveText.h> |
#include <TPaveText.h> |
29 |
#include <TCanvas.h> |
#include <TCanvas.h> |
30 |
#include <TLatex.h> |
#include <TLatex.h> |
84 |
sst << "S4 Counters based on " << base.Data(); |
sst << "S4 Counters based on " << base.Data(); |
85 |
//---------- |
//---------- |
86 |
sst.str(""); |
sst.str(""); |
87 |
sst << "Calorimeter Counters based on " << base.Data(); |
sst << "Calorimeter Rate Counters based on " << base.Data(); |
88 |
TH1S *S4Cal2Histo = new TH1S("S4Cal2Histo", sst.str().c_str(), 20, 0, 20); |
TH1F *S4Cal2Histo = new TH1F("S4Cal2Histo", sst.str().c_str(), 20, 0, 20); |
89 |
|
|
90 |
int i = 0; |
int i = 0; |
91 |
Int_t size = nevents; |
Int_t size = nevents; |
151 |
|
|
152 |
s4rate[i] = triggerEvent->s4calcount[0]; |
s4rate[i] = triggerEvent->s4calcount[0]; |
153 |
S4Cal2Histo->Fill(triggerEvent->s4calcount[1]); |
S4Cal2Histo->Fill(triggerEvent->s4calcount[1]); |
154 |
|
|
155 |
i++; |
i++; |
156 |
} |
} |
157 |
|
|
276 |
TrigRate0Graph->SetFillColor(2); |
TrigRate0Graph->SetFillColor(2); |
277 |
TrigRate0Graph->GetXaxis()->SetTitle("OrbitalTime"); |
TrigRate0Graph->GetXaxis()->SetTitle("OrbitalTime"); |
278 |
TrigRate0Graph->GetXaxis()->CenterTitle(); |
TrigRate0Graph->GetXaxis()->CenterTitle(); |
279 |
TrigRate0Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
TrigRate0Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); |
280 |
TrigRate0Graph->GetYaxis()->CenterTitle(); |
TrigRate0Graph->GetYaxis()->CenterTitle(); |
281 |
TrigRate0Graph->Draw("AP"); |
TrigRate0Graph->Draw("AP"); |
282 |
//---------- |
//---------- |
290 |
TrigRate1Graph->SetFillColor(2); |
TrigRate1Graph->SetFillColor(2); |
291 |
TrigRate1Graph->GetXaxis()->SetTitle("OrbitalTime"); |
TrigRate1Graph->GetXaxis()->SetTitle("OrbitalTime"); |
292 |
TrigRate1Graph->GetXaxis()->CenterTitle(); |
TrigRate1Graph->GetXaxis()->CenterTitle(); |
293 |
TrigRate1Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
TrigRate1Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); |
294 |
TrigRate1Graph->GetYaxis()->CenterTitle(); |
TrigRate1Graph->GetYaxis()->CenterTitle(); |
295 |
TrigRate1Graph->Draw("AP"); |
TrigRate1Graph->Draw("AP"); |
296 |
//---------- |
//---------- |
304 |
TrigRate2Graph->SetFillColor(2); |
TrigRate2Graph->SetFillColor(2); |
305 |
TrigRate2Graph->GetXaxis()->SetTitle("OrbitalTime"); |
TrigRate2Graph->GetXaxis()->SetTitle("OrbitalTime"); |
306 |
TrigRate2Graph->GetXaxis()->CenterTitle(); |
TrigRate2Graph->GetXaxis()->CenterTitle(); |
307 |
TrigRate2Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
TrigRate2Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); |
308 |
TrigRate2Graph->GetYaxis()->CenterTitle(); |
TrigRate2Graph->GetYaxis()->CenterTitle(); |
309 |
TrigRate2Graph->Draw("AP"); |
TrigRate2Graph->Draw("AP"); |
310 |
// |
// |
324 |
TrigRate3Graph->SetFillColor(2); |
TrigRate3Graph->SetFillColor(2); |
325 |
TrigRate3Graph->GetXaxis()->SetTitle("OrbitalTime"); |
TrigRate3Graph->GetXaxis()->SetTitle("OrbitalTime"); |
326 |
TrigRate3Graph->GetXaxis()->CenterTitle(); |
TrigRate3Graph->GetXaxis()->CenterTitle(); |
327 |
TrigRate3Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
TrigRate3Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); |
328 |
TrigRate3Graph->GetYaxis()->CenterTitle(); |
TrigRate3Graph->GetYaxis()->CenterTitle(); |
329 |
TrigRate3Graph->Draw("AP"); |
TrigRate3Graph->Draw("AP"); |
330 |
//---------- |
//---------- |
338 |
TrigRate4Graph->SetFillColor(2); |
TrigRate4Graph->SetFillColor(2); |
339 |
TrigRate4Graph->GetXaxis()->SetTitle("OrbitalTime"); |
TrigRate4Graph->GetXaxis()->SetTitle("OrbitalTime"); |
340 |
TrigRate4Graph->GetXaxis()->CenterTitle(); |
TrigRate4Graph->GetXaxis()->CenterTitle(); |
341 |
TrigRate4Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
TrigRate4Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); |
342 |
TrigRate4Graph->GetYaxis()->CenterTitle(); |
TrigRate4Graph->GetYaxis()->CenterTitle(); |
343 |
TrigRate4Graph->Draw("AP"); |
TrigRate4Graph->Draw("AP"); |
344 |
//---------- |
//---------- |
352 |
TrigRate5Graph->SetFillColor(2); |
TrigRate5Graph->SetFillColor(2); |
353 |
TrigRate5Graph->GetXaxis()->SetTitle("OrbitalTime"); |
TrigRate5Graph->GetXaxis()->SetTitle("OrbitalTime"); |
354 |
TrigRate5Graph->GetXaxis()->CenterTitle(); |
TrigRate5Graph->GetXaxis()->CenterTitle(); |
355 |
TrigRate5Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
TrigRate5Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); |
356 |
TrigRate5Graph->GetYaxis()->CenterTitle(); |
TrigRate5Graph->GetYaxis()->CenterTitle(); |
357 |
TrigRate5Graph->Draw("AP"); |
TrigRate5Graph->Draw("AP"); |
358 |
//---------- |
//---------- |
368 |
s4RateGraph->SetFillColor(2); |
s4RateGraph->SetFillColor(2); |
369 |
s4RateGraph->GetXaxis()->SetTitle("OrbitalTime"); |
s4RateGraph->GetXaxis()->SetTitle("OrbitalTime"); |
370 |
s4RateGraph->GetXaxis()->CenterTitle(); |
s4RateGraph->GetXaxis()->CenterTitle(); |
371 |
s4RateGraph->GetYaxis()->SetTitle("Trigger Rate Counters"); |
s4RateGraph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); |
372 |
s4RateGraph->GetYaxis()->CenterTitle(); |
s4RateGraph->GetYaxis()->CenterTitle(); |
373 |
s4RateGraph->Draw("AP"); |
s4RateGraph->Draw("AP"); |
374 |
//---------- |
//---------- |
375 |
S4CalCanvas->cd(2); |
S4CalCanvas->cd(2); |
376 |
|
gPad->SetLogy(1); |
377 |
S4Cal2Histo->GetXaxis()->SetTitle("Hz"); |
S4Cal2Histo->GetXaxis()->SetTitle("Hz"); |
378 |
S4Cal2Histo->Draw(); |
S4Cal2Histo->Draw(); |
379 |
// |
// |