Coverity fix, report 10667
authorslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 May 2011 08:41:16 +0000 (08:41 +0000)
committerslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 May 2011 08:41:16 +0000 (08:41 +0000)
PWG4/GammaConv/AliAnalysisTaskGammaConvDalitz.cxx

index fe45799..b8964b1 100644 (file)
@@ -266,7 +266,7 @@ void AliAnalysisTaskGammaConvDalitz::UserExec(Option_t */*option*/)
       } 
 
         
-       if (fMCEvent ) {
+       if (MCEvent() ) {
 
     // To avoid crashes due to unzip errors. Sometimes the trees are not there.
         AliMCEventHandler* mcHandler = dynamic_cast<AliMCEventHandler*> (AliAnalysisManager::GetAnalysisManager()->GetMCtruthEventHandler());