Bugfix, mc check not present
authorkaamodt <kaamodt@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Dec 2009 09:48:24 +0000 (09:48 +0000)
committerkaamodt <kaamodt@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Dec 2009 09:48:24 +0000 (09:48 +0000)
PWG4/GammaConv/AliV0Reader.cxx

index a0ba1f0..3d981ea 100644 (file)
@@ -218,7 +218,7 @@ void AliV0Reader::Initialize(){
        
   // for CF
   //Get pointer to the mc event
-  if(fDoCF){
+  if(fDoCF && fDoMC){
     fMCEvent = fMCTruth->MCEvent();
     if(fMCEvent == NULL){
       //print warning here