Fix: event selection should be called for all cut objects to have proper PID configur...
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Sep 2012 23:05:27 +0000 (23:05 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Sep 2012 23:05:27 +0000 (23:05 +0000)
PWGHF/vertexingHF/AliAnalysisTaskSELambdac.cxx

index 1d2a54b..2342274 100644 (file)
@@ -1169,7 +1169,10 @@ void AliAnalysisTaskSELambdac::UserExec(Option_t */*option*/)
   fCounter->StoreEvent(aod,fRDCutsProduction,fReadMC);
   TString trigclass=aod->GetFiredTriggerClasses();
   if(trigclass.Contains("C0SMH-B-NOPF-ALLNOTRD") || trigclass.Contains("C0SMH-B-NOPF-ALL")) fNentries->Fill(14);
-  if(!fRDCutsProduction->IsEventSelected(aod)) {
+  Bool_t isEvSelAnCuts,isEvSelProdCuts;
+  isEvSelProdCuts=fRDCutsProduction->IsEventSelected(aod);
+  isEvSelAnCuts=fRDCutsAnalysis->IsEventSelected(aod);
+  if(!isEvSelProdCuts){
     if(fRDCutsProduction->GetWhyRejection()==1) // rejected for pileup
       fNentries->Fill(13);
     return;