24 #include "Riostream.h"
47 fPhiDistribution(NULL),
54 fUniformFluctuationsV2(kFALSE),
57 fPtDependentV2(kFALSE),
65 fUniformAcceptance(kTRUE),
73 fUniformEfficiency(kTRUE),
109 fPtSpectra =
new TF1(
"fPtSpectra",
"x*TMath::Exp(-pow([0]*[0]+x*x,0.5)/[1])",dPtMin,dPtMax);
114 fPtSpectra->SetTitle(
"Boltzmann Distribution: f(p_{t}) = p_{t}exp[-(m^{2}+p_{t}^{2})^{1/2}/T];p_{t};f(p_{t})");
119 fPhiDistribution =
new TF1(
"fPhiDistribution",
"1+2.*[1]*TMath::Cos(x-[0])+2.*[2]*TMath::Cos(2.*(x-[0]))+2.*[3]*TMath::Cos(3.*(x-[0]))+2.*[4]*TMath::Cos(4.*(x-[0]))+2.*[5]*TMath::Cos(5.*(x-[0]))+2.*[6]*TMath::Cos(6.*(x-[0]))",dPhiMin,dPhiMax);
205 for(
Int_t p=0;p<iMult;p++)
227 pTrack->
TagRP(kTRUE);
260 if((++
fCount % cycle) == 0)
262 if(TMath::Abs(dReactionPlane)>1.e-44)
264 cout<<
" MC Reaction Plane Angle = "<<dReactionPlane<<endl;
267 cout<<
" MC Reaction Plane Angle is unknown :'( "<< endl;
269 cout<<
" # of simulated tracks = "<<
fNTimes*iMult<<endl;
270 cout<<
" # of RP tagged tracks = "<<
fNTimes*nRPs<<endl;
271 cout<<
" # of POI tagged tracks = "<<
fNTimes*nPOIs<<endl;
272 cout <<
" .... "<<
fCount<<
" events processed ...."<<endl;
void SetCharge(Int_t charge)
void SetForSubevent(Int_t i)
virtual ~AliFlowEventSimpleMakerOnTheFly()
void SetEta(Double_t eta)
virtual AliFlowTrackSimple * Clone(const char *option="") const
Bool_t fUniformFluctuationsV2
Bool_t AcceptPt(AliFlowTrackSimple *pTrack)
void AddTrack(AliFlowTrackSimple *track)
Bool_t PassesCuts(const AliFlowTrackSimple *track) const
void SetReferenceMultiplicity(Int_t m)
void TagRP(Bool_t b=kTRUE)
Bool_t fUniformEfficiency
void SetNumberOfRPs(Int_t nr)
void SetNumberOfPOIs(Int_t nubmerOfPOIs, Int_t poiType=1)
void TagPOI(Bool_t b=kTRUE)
AliFlowEventSimple * CreateEventOnTheFly(AliFlowTrackSimpleCuts const *cutsRP, AliFlowTrackSimpleCuts const *cutsPOI)
void SetPhi(Double_t phi)
Bool_t AcceptPhi(AliFlowTrackSimple *pTrack)
void SetMCReactionPlaneAngle(Double_t fPhiRP)
Bool_t fUniformAcceptance
ClassImp(AliFlowEventSimpleMakerOnTheFly) AliFlowEventSimpleMakerOnTheFly