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 f40416b038f735ab0ab31ee052f7ceaba92370d9..19f6370bb44b7c2f109b56e809d675b8a7573348 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 663e6e73cd469f34b267005c3da5c8d223bdf343..613116864e476353c7a1844a010d8bf74e3b92a0 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();