]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- fix for setting the drawing option of the histograms in the configuration (Timur)
authorkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Nov 2010 15:43:04 +0000 (15:43 +0000)
committerkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Nov 2010 15:43:04 +0000 (15:43 +0000)
HLT/BASE/AliHLTTTreeProcessor.cxx

index 0ad257b2b46d50071742f00a25c9802d718987fb..0a220778b937870cd8135e185e270f101868482d 100644 (file)
@@ -277,9 +277,10 @@ TH1* AliHLTTTreeProcessor::CreateHistogram(const AliHLTHistogramDefinition& d)
   histName = histName(0, histName.Index("("));
   TH1 * hist = dynamic_cast<TH1*>(gDirectory->Get(histName.Data()));
   if (!hist) {
-    //const TString msg(TString::Form("Hist %s is a null pointer, selection was %s, strange name or hist's type\n", histName.Data(), d.GetExpression().Data()));
     const TString msg(Form("Hist %s is a null pointer, selection was %s, strange name or hist's type\n", histName.Data(), d.GetExpression().Data()));
     HLTError(msg.Data());
+  }else if (d.GetDrawOption().Length()) {
+    hist->SetOption(d.GetDrawOption().Data());
   }
 
   return hist;