]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/FLOW/AliFlowTasks/AliAnalysisTaskFlowEvent.cxx
Reverting the wrong commit of AliAnalysisTaskFlowEvent
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowTasks / AliAnalysisTaskFlowEvent.cxx
index b0cf95555ffe6fc2b57c3ce2729933f8f1dcf6ed..69919f7adc3b0fad1ae0605fb7490360d3da36c4 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
   }
   //////////////////////////////////////////////////////////////////////////////