Bug fix, filling event quality for V0AND and pileup after recalculating the number
authoramarin <amarin@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Nov 2010 16:11:11 +0000 (16:11 +0000)
committeramarin <amarin@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Nov 2010 16:11:11 +0000 (16:11 +0000)
PWG4/GammaConv/AliAnalysisTaskGammaConversion.cxx

index bc6e65111e4df9a7b051818193f24e91bb59edda..0b52aed7dfd1c57854ef170d1a45b023bcbb0d5f 100644 (file)
@@ -532,8 +532,8 @@ void AliAnalysisTaskGammaConversion::UserExec(Option_t */*option*/)
   }
 
   if(fRemovePileUp && fV0Reader->GetESDEvent()->IsPileupFromSPD()) {
   }
 
   if(fRemovePileUp && fV0Reader->GetESDEvent()->IsPileupFromSPD()) {
-    fHistograms->FillHistogram("ESD_EventQuality",eventQuality);
     eventQuality=4;
     eventQuality=4;
+    fHistograms->FillHistogram("ESD_EventQuality",eventQuality);
     return;
   }
 
     return;
   }
 
@@ -543,8 +543,8 @@ void AliAnalysisTaskGammaConversion::UserExec(Option_t */*option*/)
   Bool_t v0AND = v0A && v0C;
 
   if(fSelectV0AND && !v0AND){
   Bool_t v0AND = v0A && v0C;
 
   if(fSelectV0AND && !v0AND){
-    fHistograms->FillHistogram("ESD_EventQuality",eventQuality);
     eventQuality=5;
     eventQuality=5;
+    fHistograms->FillHistogram("ESD_EventQuality",eventQuality);
     return;
   }
 
     return;
   }