Fix in order to allow to use the flatenning for stripped AOD (Julian)
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Mar 2013 13:25:07 +0000 (13:25 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Mar 2013 13:25:07 +0000 (13:25 +0000)
ANALYSIS/AliVZEROEPSelectionTask.cxx
ANALYSIS/AliVZEROEPSelectionTask.h

index f40416b..19f6370 100644 (file)
@@ -126,7 +126,7 @@ void AliVZEROEPSelectionTask::UserExec(Option_t */*option*/)
   AliCentrality *centrality = event->GetCentrality();
   Float_t percentile = (fUseVZEROCentrality) ? centrality->GetCentralityPercentile("V0M") : centrality->GetCentralityPercentile("CL1");
   AliEventplane *esdEP = event->GetEventplane();
-  SetEventplaneParams(esdEP,percentile);
+  if(esdEP) SetEventplaneParams(esdEP,percentile);
 }
 
 //________________________________________________________________________
index 663e6e7..6131168 100644 (file)
@@ -34,9 +34,9 @@ class AliVZEROEPSelectionTask : public AliAnalysisTaskSE {
   
   void SetUserParams(const char* inFileName, const char* listName);
   void UseVZEROCentrality() {fUseVZEROCentrality = kTRUE;}
-  
+  void SetEventplaneParams(AliEventplane *esdEP,Float_t percentile);  
  private:
-  void SetEventplaneParams(AliEventplane *esdEP,Float_t percentile);
+
   void SetHistograms(TList *list);
   void SetParamsFromOADB();