changes needed for MC generation on the fly
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Dec 2013 15:41:15 +0000 (15:41 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Dec 2013 15:41:15 +0000 (15:41 +0000)
PWGCF/Correlations/DPhi/AliAnalysisTaskPhiCorrelations.cxx
PWGCF/Correlations/DPhi/AliAnalysisTaskPhiCorrelations.h

index 8bb5c2a..a78279d 100644 (file)
@@ -1298,7 +1298,7 @@ void  AliAnalysisTaskPhiCorrelations::Initialize()
   fInputHandler = (AliInputEventHandler*)
          ((AliAnalysisManager::GetAnalysisManager())->GetInputEventHandler());
   // MC handler
-  fMcHandler = dynamic_cast<AliMCEventHandler*> (AliAnalysisManager::GetAnalysisManager()->GetMCtruthEventHandler());
+  fMcHandler = dynamic_cast<AliInputEventHandler*> (AliAnalysisManager::GetAnalysisManager()->GetMCtruthEventHandler());
 }
 
 //____________________________________________________________________
index a9757b7..d9ff1fd 100644 (file)
@@ -175,7 +175,7 @@ class  AliAnalysisTaskPhiCorrelations : public AliAnalysisTask
     TClonesArray*            fArrayMC;         //! Array of MC particles 
     AliInputEventHandler*    fInputHandler;    //! Generic InputEventHandler 
     AliMCEvent*              fMcEvent;         //! MC event
-    AliMCEventHandler*       fMcHandler;       //! MCEventHandler 
+    AliInputEventHandler*    fMcHandler;       //! MCEventHandler 
     AliEventPoolManager*     fPoolMgr;         //! event pool manager
     
     // Histogram settings