Propagated setter for harmonic to MCEP task.
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 Sep 2010 10:21:49 +0000 (10:21 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 Sep 2010 10:21:49 +0000 (10:21 +0000)
PWG2/FLOW/AliFlowTasks/AliAnalysisTaskMCEventPlane.cxx
PWG2/FLOW/AliFlowTasks/AliAnalysisTaskMCEventPlane.h

index c4469fe..60485e8 100644 (file)
@@ -43,6 +43,7 @@ AliAnalysisTaskMCEventPlane::AliAnalysisTaskMCEventPlane(const char *name) :
   fEvent(NULL),
   fMc(NULL),
   fListHistos(NULL),
+  fHarmonic(2),
   fEvaluateMixedHarmonics(kFALSE),
   fnBinsMult(10000),
   fMinMult(0.),  
@@ -67,6 +68,7 @@ AliAnalysisTaskMCEventPlane::AliAnalysisTaskMCEventPlane() :
   fEvent(NULL),
   fMc(NULL),
   fListHistos(NULL),
+  fHarmonic(0),
   fEvaluateMixedHarmonics(kFALSE),
   fnBinsMult(0),
   fMinMult(0.0),  
@@ -97,6 +99,8 @@ void AliAnalysisTaskMCEventPlane::UserCreateOutputObjects()
   //Analyser
   fMc  = new AliFlowAnalysisWithMCEventPlane() ;
   
+  fMc->SetHarmonic(fHarmonic);
+  
   // Setters for mixed harmonics study:
   fMc->SetEvaluateMixedHarmonics(fEvaluateMixedHarmonics);
   fMc->SetNinCorrelator(fNinCorrelator);
index 89e2a77..58d44d6 100644 (file)
@@ -29,6 +29,9 @@ class AliAnalysisTaskMCEventPlane : public AliAnalysisTaskSE {
   virtual void   UserExec(Option_t *option);
   virtual void   Terminate(Option_t *);
   
+  void SetHarmonic(Int_t const harmonic) {this->fHarmonic = harmonic;};
+  Int_t GetHarmonic() const {return this->fHarmonic;};
+  
   // Objects needed for mixed harmonics study:
   void SetEvaluateMixedHarmonics(Bool_t const emh) {this->fEvaluateMixedHarmonics = emh;};
   Bool_t GetEvalauteMixedHarmonics() const {return this->fEvaluateMixedHarmonics;};
@@ -50,10 +53,10 @@ class AliAnalysisTaskMCEventPlane : public AliAnalysisTaskSE {
   AliAnalysisTaskMCEventPlane(const AliAnalysisTaskMCEventPlane& aAnalysis);
   AliAnalysisTaskMCEventPlane& operator=(const AliAnalysisTaskMCEventPlane& aAnalysis);
   
-  AliFlowEventSimple*               fEvent;        //input event
-  AliFlowAnalysisWithMCEventPlane*  fMc;           // MC EP analysis object
-  TList*                            fListHistos;   // collection of output
-  
+  AliFlowEventSimple*               fEvent;      //input event
+  AliFlowAnalysisWithMCEventPlane*  fMc;         // MC EP analysis object
+  TList*                            fListHistos; // collection of output
+  Int_t                             fHarmonic;   // harmonic 
   // Objects needed for mixed harmonics study:
   Bool_t fEvaluateMixedHarmonics; // evaluate and store objects relevant for mixed harmonics
   Int_t fnBinsMult; // number of multiplicity bins for mixed harmonics analysis versus multiplicity