- small fix for the color code of offline histograms
authorkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Jan 2011 15:04:34 +0000 (15:04 +0000)
committerkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Jan 2011 15:04:34 +0000 (15:04 +0000)
HLT/QA/tasks/macros/overlayPlots.C

index 7ab618d..6680070 100644 (file)
@@ -92,7 +92,12 @@ void overlayPlots(string fi="files.txt", const char* option="HLT"/* or "OFF" */)
        }
         
         d->cd(j);
-        if(i==0) g[i]->Draw();
+        if(i==0){
+         g[i]->SetLineColor(kBlack); 
+         TPaveStats *st = (TPaveStats*)g[i]->FindObject("stats"); 
+         st->SetTextColor(kBlack);
+         g[i]->Draw();
+       }
         else { 
          g[i]->SetLineColor(i+1); 
          defineYaxisMax(g[0], g[i]);