Reverting the wrong commit of AliAnalysisTaskFlowEvent
authorpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Mar 2011 15:22:46 +0000 (15:22 +0000)
committerpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Mar 2011 15:22:46 +0000 (15:22 +0000)
PWG2/FLOW/AliFlowTasks/AliAnalysisTaskFlowEvent.cxx
PWG2/FLOW/AliFlowTasks/AliAnalysisTaskFlowEvent.h

index b0cf955..69919f7 100644 (file)
@@ -33,7 +33,6 @@
 #include "TH2F.h"
 #include "TRandom3.h"
 #include "TTimeStamp.h"
-#include "TF1.h"
 
 // ALICE Analysis Framework
 #include "AliAnalysisManager.h"
@@ -122,7 +121,6 @@ AliAnalysisTaskFlowEvent::AliAnalysisTaskFlowEvent() :
   fV2(0.),
   fV3(0.),
   fV4(0.),
-  fV2Function(0),
   fMyTRandom3(NULL)
 {
   // Constructor
@@ -175,7 +173,6 @@ AliAnalysisTaskFlowEvent::AliAnalysisTaskFlowEvent(const char *name, TString RPt
   fV2(0.),
   fV3(0.),
   fV4(0.),
-  fV2Function(0),
   fMyTRandom3(NULL)
 {
   // Constructor
@@ -501,8 +498,7 @@ void AliAnalysisTaskFlowEvent::UserExec(Option_t *)
     if (!flowEvent->IsSetMCReactionPlaneAngle())
       flowEvent->SetMCReactionPlaneAngle(gRandom->Uniform(0.0,TMath::TwoPi()));
 
-    //flowEvent->AddFlow(fV1,fV2,fV3,fV4);     //add flow
-    flowEvent->AddV2(fV2Function);
+    flowEvent->AddFlow(fV1,fV2,fV3,fV4);     //add flow
     flowEvent->CloneTracks(fNonFlowNumberOfTrackClones); //add nonflow by cloning tracks
   }
   //////////////////////////////////////////////////////////////////////////////
index 6748d04..735ee24 100644 (file)
@@ -16,7 +16,6 @@ class AliFlowEventCuts;
 class AliFlowTrackCuts;
 class AliFlowEventSimpleMaker;
 class TList;
-class TF1;
 class TRandom3;
 class AliAnalysisTaskSE;
 class TString;
@@ -96,7 +95,6 @@ class AliAnalysisTaskFlowEvent : public AliAnalysisTaskSE {
   void SetAfterburnerOn(Bool_t b=kTRUE) {fAfterburnerOn=b;}
   void SetNonFlowNumberOfTrackClones(Int_t n) {fNonFlowNumberOfTrackClones=n;}
   void SetFlow(Double_t v1, Double_t v2, Double_t v3, Double_t v4) {fV1=v1;fV2=v2;fV3=v3;fV4=v4;}
-  void SetDifferentialV2(TF1 *v2Function) {fV2Function = v2Function;}
   // end setters afterburner
 
  private:
@@ -162,8 +160,6 @@ class AliAnalysisTaskFlowEvent : public AliAnalysisTaskSE {
   Double_t  fV3;        // Add Flow. Must be in range [0,0.5].
   Double_t  fV4;        // Add Flow. Must be in range [0,0.5].
     
-  TF1 *fV2Function; //v2(pT)
-
   TRandom3* fMyTRandom3;     // TRandom3 generator
   // end afterburner