- changes in QA task for AOD MC
authorfbock <friederike.bock@cern.ch>
Tue, 1 Apr 2014 13:45:18 +0000 (15:45 +0200)
committerfbock <friederike.bock@cern.ch>
Tue, 1 Apr 2014 13:45:18 +0000 (15:45 +0200)
PWGGA/GammaConv/AliAnalysisTaskConversionQA.cxx

index 192f4e2..c5aeec0 100644 (file)
@@ -508,8 +508,11 @@ void AliAnalysisTaskConversionQA::UserExec(Option_t *){
       if(ffillTree) ProcessQATree(gamma);
       if(ffillHistograms) ProcessQA(gamma);
    }
-   if(fMCEvent && fInputEvent->IsA()==AliAODEvent::Class())
-      RelabelAODPhotonCandidates(kFALSE);    // In case of AODMC relabeling MC
+   
+   if(fMCEvent && fInputEvent->IsA()==AliAODEvent::Class() && !(fV0Reader->AreAODsRelabeled())){
+      RelabelAODPhotonCandidates(kFALSE); // Back to ESDMC Label
+      fV0Reader->RelabelAODs(kFALSE);
+   }
       
    PostData(1, fOutputList);
 }