]> jspc29.x-matter.uni-frankfurt.de Git - radhard.git/commitdiff
Analyzer: Bugfix
authorBenjamin Linnik <blinnik@jspc61.x-matter.uni-frankfurt.de>
Fri, 16 Dec 2016 13:57:55 +0000 (14:57 +0100)
committerBenjamin Linnik <blinnik@jspc61.x-matter.uni-frankfurt.de>
Fri, 16 Dec 2016 13:57:55 +0000 (14:57 +0100)
MABS_run_analyzer/ChargeSpektrumFunctions.c

index cac72bcae028c2bf9c045f6a5e80d7ad4338df4d..1999399f9edb66421383e07f372b7b4fa7c98d7e 100644 (file)
@@ -599,8 +599,8 @@ Bool_t testifMixingCalibration(vector<HistogramType*>* ptCompareHistogramClassVe
 Bool_t plotAllRuns(vector<HistogramType*>* ptCompareHistogramClassVector)
 {
     if (ptCompareHistogramClassVector->size()>0)
-    {
-        FindGoodTitle(ptCompareHistogramClassVector);        
+    {        
+        FindGoodTitle(ptCompareHistogramClassVector);     
         
         gROOT->SetStyle("RadHard_NoTitle");
         if (testifMixingCalibration(ptCompareHistogramClassVector)) return 1;
@@ -693,6 +693,7 @@ Bool_t plotAllRuns(vector<HistogramType*>* ptCompareHistogramClassVector)
             curhistogramclone->Draw("SAME");
             //             legendEntry = Form("%d %s", curhistogramclassp->labbook->runnumber, curhistogramclone->GetTitle());
             legendEntry = Form("%s", curhistogramclone->GetTitle());
+            if (legendStringsVector.size() > 0)
                 legendEntry = Form("%s", legendStringsVector.at(histogrami).Data());
             leg1->AddEntry(curhistogramclone, legendEntry, "l");
             leg1->Draw("SAME");
@@ -704,8 +705,10 @@ Bool_t plotAllRuns(vector<HistogramType*>* ptCompareHistogramClassVector)
             gPad->SetGridy(1);
             owntitle->Clear();
             if (headerStringsVector.size() > 0) {
+                cout << colorred << "Hallo1" << endlr;
                 owntitle->AddText(Form("%s, %s",trimRunnumberAtBegin(curhistogramclone->GetName()).Data(), headerStringsVector.at(1).Data()));
                 owntitle->AddText(headerStringsVector.at(2));
+                cout << colorred << "Hallo2" << endlr;
             }
             owntitle->Draw("SAME");
             
@@ -857,6 +860,7 @@ Bool_t FindGoodTitle(vector<HistogramType*>* ptCompareHistogramClassVector) {
         headerStringsVector.push_back(((TObjString *)(humanreadablestrings->At(0)))->String());
         headerStringsVector.push_back(((TObjString *)(humanreadablestrings->At(1)))->String());
         headerStringsVector.push_back(title2);
+        
         return false;        
     }