fix compilation
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Sep 2012 08:19:01 +0000 (08:19 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Sep 2012 08:19:01 +0000 (08:19 +0000)
PWGPP/TRD/macros/AddTRDinfoGen.C

index 49c5043..f7caee0 100644 (file)
 
 void AddTRDinfoGen(AliAnalysisManager *mgr, Int_t /*map*/, AliAnalysisDataContainer **/*ci*/, AliAnalysisDataContainer **co)
 {
+  Bool_t mc = (Bool_t)mgr->GetMCtruthEventHandler();
   //AliLog::SetClassDebugLevel("AliTRDinfoGen", 2);
   AliTRDinfoGen *info(NULL);
   mgr->AddTask(info = new AliTRDinfoGen((char*)"TRDinfoGen"));
   info->SetDebugLevel(0);
-  info->SetMCdata((Bool_t)mgr->GetMCtruthEventHandler());
+  info->SetMCdata(mc);
   info->SetLocalTrkSelection();
   info->UseTrackPoints(kFALSE); // set it to true if track points for alignment are to be saved in trackInfo object
   info->SetOCDB("alien://folder=/alice/data/2010/OCDB");