--- quicklook/trigger/src/TriggerScanBasic.cpp 2006/06/28 16:43:38 1.1 +++ quicklook/trigger/src/TriggerScanBasic.cpp 2006/07/05 16:18:17 1.2 @@ -16,13 +16,15 @@ * TString format - the format which will be used for save the produced images (Default = "ps") */ +#include +#include #include #include #include #include #include #include -#include +#include #include #include #include @@ -82,8 +84,8 @@ sst << "S4 Counters based on " << base.Data(); //---------- sst.str(""); - sst << "Calorimeter Counters based on " << base.Data(); - TH1S *S4Cal2Histo = new TH1S("S4Cal2Histo", sst.str().c_str(), 20, 0, 20); + sst << "Calorimeter Rate Counters based on " << base.Data(); + TH1F *S4Cal2Histo = new TH1F("S4Cal2Histo", sst.str().c_str(), 20, 0, 20); int i = 0; Int_t size = nevents; @@ -149,7 +151,7 @@ s4rate[i] = triggerEvent->s4calcount[0]; S4Cal2Histo->Fill(triggerEvent->s4calcount[1]); - + i++; } @@ -274,7 +276,7 @@ TrigRate0Graph->SetFillColor(2); TrigRate0Graph->GetXaxis()->SetTitle("OrbitalTime"); TrigRate0Graph->GetXaxis()->CenterTitle(); - TrigRate0Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); + TrigRate0Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); TrigRate0Graph->GetYaxis()->CenterTitle(); TrigRate0Graph->Draw("AP"); //---------- @@ -288,7 +290,7 @@ TrigRate1Graph->SetFillColor(2); TrigRate1Graph->GetXaxis()->SetTitle("OrbitalTime"); TrigRate1Graph->GetXaxis()->CenterTitle(); - TrigRate1Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); + TrigRate1Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); TrigRate1Graph->GetYaxis()->CenterTitle(); TrigRate1Graph->Draw("AP"); //---------- @@ -302,7 +304,7 @@ TrigRate2Graph->SetFillColor(2); TrigRate2Graph->GetXaxis()->SetTitle("OrbitalTime"); TrigRate2Graph->GetXaxis()->CenterTitle(); - TrigRate2Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); + TrigRate2Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); TrigRate2Graph->GetYaxis()->CenterTitle(); TrigRate2Graph->Draw("AP"); // @@ -322,7 +324,7 @@ TrigRate3Graph->SetFillColor(2); TrigRate3Graph->GetXaxis()->SetTitle("OrbitalTime"); TrigRate3Graph->GetXaxis()->CenterTitle(); - TrigRate3Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); + TrigRate3Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); TrigRate3Graph->GetYaxis()->CenterTitle(); TrigRate3Graph->Draw("AP"); //---------- @@ -336,7 +338,7 @@ TrigRate4Graph->SetFillColor(2); TrigRate4Graph->GetXaxis()->SetTitle("OrbitalTime"); TrigRate4Graph->GetXaxis()->CenterTitle(); - TrigRate4Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); + TrigRate4Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); TrigRate4Graph->GetYaxis()->CenterTitle(); TrigRate4Graph->Draw("AP"); //---------- @@ -350,7 +352,7 @@ TrigRate5Graph->SetFillColor(2); TrigRate5Graph->GetXaxis()->SetTitle("OrbitalTime"); TrigRate5Graph->GetXaxis()->CenterTitle(); - TrigRate5Graph->GetYaxis()->SetTitle("Trigger Rate Counters"); + TrigRate5Graph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); TrigRate5Graph->GetYaxis()->CenterTitle(); TrigRate5Graph->Draw("AP"); //---------- @@ -366,11 +368,12 @@ s4RateGraph->SetFillColor(2); s4RateGraph->GetXaxis()->SetTitle("OrbitalTime"); s4RateGraph->GetXaxis()->CenterTitle(); - s4RateGraph->GetYaxis()->SetTitle("Trigger Rate Counters"); + s4RateGraph->GetYaxis()->SetTitle("Trigger Rate Counters (Hz)"); s4RateGraph->GetYaxis()->CenterTitle(); s4RateGraph->Draw("AP"); //---------- S4CalCanvas->cd(2); + gPad->SetLogy(1); S4Cal2Histo->GetXaxis()->SetTitle("Hz"); S4Cal2Histo->Draw(); //