]> jspc29.x-matter.uni-frankfurt.de Git - radhard.git/commitdiff
Analyzer: small Cosmetics master
authorBenjamin Linnik <blinnik@jspc61.x-matter.uni-frankfurt.de>
Wed, 31 Jan 2018 17:39:30 +0000 (18:39 +0100)
committerBenjamin Linnik <blinnik@jspc61.x-matter.uni-frankfurt.de>
Wed, 31 Jan 2018 17:39:30 +0000 (18:39 +0100)
MABS_run_analyzer/ChargeSpektrum.c
MABS_run_analyzer/ChargeSpektrumFunctions.cpp

index 51c69e34129c071d69b539aa8a40847020462f32..f0f55ca94e9453abfdeeaa03375ce9b934b1b9b2 100644 (file)
@@ -524,6 +524,6 @@ void ChargeSpektrum(TString runnumber = "")
     
     // Don't change this
     gROOT->SetBatch(kTRUE);
-    plotAllRuns(&compareHistogramClassVectorMABSBot, kTRUE);
+    plotAllRuns(&compareHistogramClassVectorMABSBot, kTRUE, kTRUE);
     cout << "" << endl;
 }
index 27c74453a52025310b802fc4d21cde222937c3c1..1261047bf35537a56506c4439610f304585f8298 100644 (file)
@@ -25,7 +25,7 @@ using namespace std;
 Int_t* ReadRunList();
 Int_t ReadRunList(std::vector<int>*);
 void InterpreteUserInput(TString, std::vector<int>*, std::vector<Bool_t>*, std::vector<Bool_t>*, std::vector<Bool_t>*, TString* analysisis);
-Bool_t plotAllRuns(vector<HistogramType*>*, Bool_t unZoom);
+Bool_t plotAllRuns(vector<HistogramType*>*, Bool_t unZoom, Bool_t useLog);
 // vector wich is used to save a good title by the function FindGoodTitle()
 vector<TString> headerStringsVector;
 // vector wich is used to save good legend entries by the function FindGoodTitle()
@@ -916,7 +916,7 @@ Bool_t testifMixingCalibration(vector<HistogramType*>* ptCompareHistogramClassVe
  * Plots all runs pushed into the input vector in one canvas, shows Seed, Sum, Veto and Noise spectra
  *
  */
-Bool_t plotAllRuns(vector<HistogramType*>* ptCompareHistogramClassVector, Bool_t unZoom = kFALSE)
+Bool_t plotAllRuns(vector<HistogramType*>* ptCompareHistogramClassVector, Bool_t unZoom = kFALSE, Bool_t useLog = kFALSE)
 {
     if (ptCompareHistogramClassVector->size()>0)
     {        
@@ -1037,7 +1037,8 @@ Bool_t plotAllRuns(vector<HistogramType*>* ptCompareHistogramClassVector, Bool_t
             curhistogramclone->SetAxisRange(0,lastbin1*1.1,"X");
             curhistogramclone->SetAxisRange(0,heighestval1*1.1,"Y");
             curhistogramclone->GetYaxis()->SetRangeUser(1,heighestval1*1.2);
-            //             gPad->SetLogy(1);
+            if (useLog)
+                gPad->SetLogy(1);
             gPad->SetGrid(1);
             gPad->SetGridy(1);
             owntitle->Clear();
@@ -1063,7 +1064,8 @@ Bool_t plotAllRuns(vector<HistogramType*>* ptCompareHistogramClassVector, Bool_t
             //             heighestval2 = (curhistogramclone->GetMaximum()>heighestval2?curhistogramclone->GetMaximum():heighestval2);
             curhistogramclone->GetYaxis()->SetRangeUser(1,heighestval2*1.2);
             curhistogramclone->Draw("SAME");
-            //                         gPad->SetLogy(1);
+            if (useLog)
+                gPad->SetLogy(1);
             gPad->SetGrid(1);
             gPad->SetGridy(1);