Fixes.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Nov 2011 07:45:02 +0000 (07:45 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Nov 2011 07:45:02 +0000 (07:45 +0000)
A. Toia

ANALYSIS/AliCentralitySelectionTask.cxx
ANALYSIS/AliCentralitySelectionTask.h

index 0d35255..d1d7f9e 100644 (file)
@@ -108,6 +108,7 @@ AliAnalysisTaskSE(),
   fQuality(999),
   fCVHN(0),
   fCVLN(0),
+  fIsSelected(0),
   fCentV0M(0),
   fCentFMD(0),
   fCentTRK(0),
@@ -217,6 +218,7 @@ AliCentralitySelectionTask::AliCentralitySelectionTask(const char *name):
   fQuality(999),
   fCVHN(0),
   fCVLN(0),
+  fIsSelected(0),
   fCentV0M(0),
   fCentFMD(0),
   fCentTRK(0),
@@ -336,6 +338,7 @@ AliCentralitySelectionTask::AliCentralitySelectionTask(const AliCentralitySelect
   fQuality(ana.fQuality),
   fCVHN(ana.fCVHN),
   fCVLN(ana.fCVLN),
+  fIsSelected(ana.fIsSelected),
   fCentV0M(ana.fCentV0M),
   fCentFMD(ana.fCentFMD),
   fCentTRK(ana.fCentTRK),
@@ -598,12 +601,13 @@ void AliCentralitySelectionTask::UserExec(Option_t */*option*/)
 
 
     // ***** Trigger info    
+    fIsSelected = ((esdV0->GetV0ADecision()==1) && (esdV0->GetV0CDecision()==1));
     TString trigStr(esd->GetFiredTriggerClasses());
     fCVHN=kFALSE;    fCVLN=kFALSE;
-    if ( (trigStr.Contains("-B-")) &&  (trigStr.Contains("CVHN"))) 
-     fCVHN=kTRUE;
-    if ( (trigStr.Contains("-B-")) &&  (trigStr.Contains("CVLN")))
-     fCVLN=kTRUE;
+    if ( (trigStr.Contains("-B-")) &&  (trigStr.Contains("CVHN")) && (fIsSelected)
+      fCVHN=kTRUE;
+    if ( (trigStr.Contains("-B-")) &&  (trigStr.Contains("CVLN")) && (fIsSelected))
+      fCVLN=kTRUE;
     
 
     // ***** Vertex Info
index 7156985..cd5461f 100644 (file)
@@ -82,6 +82,7 @@ class AliCentralitySelectionTask : public AliAnalysisTaskSE {
 
   Bool_t   fCVHN;               //! if the event is central trigger
   Bool_t   fCVLN;               //! if the event is semicentral trigger
+  Bool_t   fIsSelected;         //! V0BG rejection
 
   Float_t  fCentV0M;            // percentile centrality from V0
   Float_t  fCentFMD;            // percentile centrality from FMD
@@ -158,7 +159,7 @@ class AliCentralitySelectionTask : public AliAnalysisTaskSE {
   TH1F *fHOutQuality ;        //control histogram for quality
   TH1F *fHOutVertex ;         //control histogram for vertex
 
-  ClassDef(AliCentralitySelectionTask, 12); 
+  ClassDef(AliCentralitySelectionTask, 13); 
 };
 
 #endif