eventCuts->SetUseCentralityUnchecked();
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Mar 2011 12:01:08 +0000 (12:01 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Mar 2011 12:01:08 +0000 (12:01 +0000)
to disable recent centrality cuts introduced in the framework

PWG2/FLOW/AliFlowTasks/AliFlowEventCuts.cxx
PWG2/FLOW/AliFlowTasks/AliFlowEventCuts.h

index c790619..2efc12d 100644 (file)
@@ -69,6 +69,7 @@ AliFlowEventCuts::AliFlowEventCuts():
   fCutSPDvertexerAnomaly(kFALSE),
   fCutTPCmultiplicityOutliers(kFALSE),
   fCutCentralityPercentile(kFALSE),
+  fUseCentralityUnchecked(kFALSE),
   fCentralityPercentileMethod(kTPConly),
   fCentralityPercentileMax(100.),
   fCentralityPercentileMin(0.),
@@ -110,6 +111,7 @@ AliFlowEventCuts::AliFlowEventCuts(const char* name, const char* title):
   fCutSPDvertexerAnomaly(kFALSE),
   fCutTPCmultiplicityOutliers(kFALSE),
   fCutCentralityPercentile(kFALSE),
+  fUseCentralityUnchecked(kFALSE),
   fCentralityPercentileMethod(kTPConly),
   fCentralityPercentileMax(100.),
   fCentralityPercentileMin(0.),
@@ -151,6 +153,7 @@ AliFlowEventCuts::AliFlowEventCuts(const AliFlowEventCuts& that):
   fCutSPDvertexerAnomaly(that.fCutSPDvertexerAnomaly),
   fCutTPCmultiplicityOutliers(that.fCutTPCmultiplicityOutliers),
   fCutCentralityPercentile(that.fCutCentralityPercentile),
+  fUseCentralityUnchecked(that.fUseCentralityUnchecked),
   fCentralityPercentileMethod(that.fCentralityPercentileMethod),
   fCentralityPercentileMax(that.fCentralityPercentileMax),
   fCentralityPercentileMin(that.fCentralityPercentileMin),
@@ -211,6 +214,7 @@ AliFlowEventCuts& AliFlowEventCuts::operator=(const AliFlowEventCuts& that)
   fCutSPDvertexerAnomaly=that.fCutSPDvertexerAnomaly;
   fCutTPCmultiplicityOutliers=that.fCutTPCmultiplicityOutliers;
   fCutCentralityPercentile=that.fCutCentralityPercentile;
+  fUseCentralityUnchecked=that.fUseCentralityUnchecked;
   fCentralityPercentileMethod=that.fCentralityPercentileMethod;
   fCentralityPercentileMax=that.fCentralityPercentileMax;
   fCentralityPercentileMin=that.fCentralityPercentileMin;
@@ -234,11 +238,23 @@ Bool_t AliFlowEventCuts::PassesCuts(AliVEvent *event)
   if (fCutCentralityPercentile&&esdevent)
   {
     AliCentrality* centr = esdevent->GetCentrality();
-    if (!centr->IsEventInCentralityClass( fCentralityPercentileMin,
-                                          fCentralityPercentileMax,
-                                          CentrMethName(fCentralityPercentileMethod) ))
+    if (fUseCentralityUnchecked)
     {
-      return kFALSE;
+      if (!centr->IsEventInCentralityClassUnchecked( fCentralityPercentileMin,
+                                                     fCentralityPercentileMax,
+                                                     CentrMethName(fCentralityPercentileMethod) ))
+      {
+        return kFALSE;
+      }
+    }
+    else
+    {
+      if (!centr->IsEventInCentralityClass( fCentralityPercentileMin,
+                                            fCentralityPercentileMax,
+                                            CentrMethName(fCentralityPercentileMethod) ))
+      {
+        return kFALSE;
+      }
     }
   }
   if (fCutSPDvertexerAnomaly&&esdevent)
index a6394f4..76c6915 100644 (file)
@@ -71,6 +71,7 @@ class AliFlowEventCuts : public TNamed {
                                                                fCentralityPercentileMax=max;
                                                                fCutCentralityPercentile=kTRUE; }
   void SetCentralityPercentileMethod( refMultMethod m) {fCentralityPercentileMethod=m;}
+  void SetUseCentralityUnchecked(Bool_t b=kTRUE) {fUseCentralityUnchecked=b;}
 
  private:
   Bool_t fCutNumberOfTracks;//cut on # of tracks
@@ -102,6 +103,7 @@ class AliFlowEventCuts : public TNamed {
   Bool_t fCutSPDvertexerAnomaly; //cut on the spd vertexer anomaly
   Bool_t fCutTPCmultiplicityOutliers; //cut TPC multiplicity outliers
   Bool_t fCutCentralityPercentile; //cut on centrality perc. from AliESDCentrality
+  Bool_t fUseCentralityUnchecked; //use the unchecked method
   refMultMethod fCentralityPercentileMethod; //where to get the percentile from
   Float_t fCentralityPercentileMax; // max centr. perc
   Float_t fCentralityPercentileMin; // min centr. perc