]>
Commit | Line | Data |
---|---|---|
fdff44c8 | 1 | ///////////////////////////////////////////////////// |
2 | // AliAnalysisTaskFlowEvent: | |
3 | // analysis task to fill the flow event | |
4 | // and make it available to the flow analysis methods. | |
5 | ////////////////////////////////////////////////////// | |
6 | ||
1c1d4332 | 7 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
8 | * See cxx source for full Copyright notice */ | |
9 | /* $Id: $ */ | |
10 | ||
94cd9888 | 11 | #ifndef AliAnalysisTaskFlowEvent_H |
12 | #define AliAnalysisTaskFlowEvent_H | |
13 | ||
1c1d4332 | 14 | class AliCFManager; |
15 | class AliFlowEventSimpleMaker; | |
16 | class TList; | |
489fdf79 | 17 | class TRandom3; |
fbdb53fa | 18 | class AliAnalysisTaskSE; |
19 | class TString; | |
1c1d4332 | 20 | |
65201059 | 21 | class AliAnalysisTaskFlowEvent : public AliAnalysisTaskSE { |
1c1d4332 | 22 | public: |
23 | AliAnalysisTaskFlowEvent(); | |
44e060e0 | 24 | AliAnalysisTaskFlowEvent(const char *name,TString RPtype,Bool_t QAon,UInt_t=666); |
1c1d4332 | 25 | virtual ~AliAnalysisTaskFlowEvent(); |
26 | ||
65201059 | 27 | virtual void UserCreateOutputObjects(); |
28 | virtual void UserExec(Option_t *option); | |
1c1d4332 | 29 | virtual void Terminate(Option_t *); |
30 | ||
489fdf79 | 31 | void SetAnalysisType(TString type) { this->fAnalysisType = type; } |
32 | TString GetAnalysisType() const { return this->fAnalysisType; } | |
1c1d4332 | 33 | |
ef4799a7 | 34 | void SetRPType(TString rptype) { this->fRPType = rptype; } |
35 | TString GetRPType() const { return this->fRPType; } | |
36 | ||
fdff44c8 | 37 | void SetMinMult(Int_t multmin) {this->fMinMult = multmin; } |
38 | Int_t GetMinMult() const {return this->fMinMult; } | |
39 | void SetMaxMult(Int_t multmax) {this->fMaxMult = multmax; } | |
40 | Int_t GetMaxMult() const {return this->fMaxMult; } | |
fdff44c8 | 41 | |
7a01f4a7 | 42 | void SetSubeventEtaRange(Double_t minA, Double_t maxA, Double_t minB, Double_t maxB) |
43 | {this->fMinA = minA; this->fMaxA = maxA; this->fMinB = minB; this->fMaxB = maxB; } | |
44 | Double_t GetMinA() const {return this->fMinA;} | |
45 | Double_t GetMaxA() const {return this->fMaxA;} | |
46 | Double_t GetMinB() const {return this->fMinB;} | |
47 | Double_t GetMaxB() const {return this->fMaxB;} | |
48 | ||
7183fe85 | 49 | void SetCFManager1(AliCFManager* cfmgr) {this->fCFManager1 = cfmgr; } |
1c1d4332 | 50 | AliCFManager* GetCFManager1() {return this->fCFManager1; } |
7183fe85 | 51 | void SetCFManager2(AliCFManager* cfmgr) {this->fCFManager2 = cfmgr; } |
1c1d4332 | 52 | AliCFManager* GetCFManager2() {return this->fCFManager2; } |
53 | void SetQAList1(TList* list) {this->fQAInt = list; } | |
54 | TList* GetQAList1() {return this->fQAInt; } | |
55 | void SetQAList2(TList* list) {this->fQADiff = list; } | |
56 | TList* GetQAList2() {return this->fQADiff; } | |
57 | void SetQAOn(Bool_t kt) {this->fQA = kt; } | |
58 | Bool_t GetQAOn() {return this->fQA; } | |
7a01f4a7 | 59 | |
489fdf79 | 60 | //setters for adding by hand flow values (afterburner) |
61 | void SetMCReactionPlaneAngle(Double_t fPhiRP) { this->fMCReactionPlaneAngle = fPhiRP; } | |
62 | void SetNoOfLoops(Int_t noofl) {this->fNoOfLoops = noofl;} | |
63 | Int_t GetNoOfLoops() const {return this->fNoOfLoops;} | |
64 | void SetEllipticFlowValue(Double_t elfv) {this->fEllipticFlowValue = elfv;} | |
65 | Double_t GetEllipticFlowValue() const {return this->fEllipticFlowValue;} | |
66 | void SetSigmaEllipticFlowValue(Double_t sigelfv) {this->fSigmaEllipticFlowValue = sigelfv;} | |
67 | Double_t GetSigmaEllipticFlowValue() const {return this->fSigmaEllipticFlowValue;} | |
68 | void SetMultiplicityOfEvent(Int_t multevnt) {this->fMultiplicityOfEvent = multevnt;} | |
69 | Int_t GetMultiplicityOfEvent() const {return this->fMultiplicityOfEvent;} | |
70 | void SetSigmaMultiplicityOfEvent(Int_t sigmultevnt) {this->fSigmaMultiplicityOfEvent = sigmultevnt;} | |
71 | Int_t GetSigmaMultiplicityOfEvent() const {return this->fSigmaMultiplicityOfEvent;} | |
72 | //end setters afterburner | |
1c1d4332 | 73 | |
74 | private: | |
75 | ||
76 | AliAnalysisTaskFlowEvent(const AliAnalysisTaskFlowEvent& aAnalysisTask); | |
77 | AliAnalysisTaskFlowEvent& operator=(const AliAnalysisTaskFlowEvent& aAnalysisTask); | |
78 | ||
46bec39c | 79 | // TFile* fOutputFile; // temporary output file for testing |
65201059 | 80 | // AliESDEvent* fESD; // ESD object |
81 | // AliAODEvent* fAOD; // AOD object | |
7a01f4a7 | 82 | TString fAnalysisType; // can be MC, ESD or AOD |
44e060e0 | 83 | TString fRPType; // can be Global or Tracklet or FMD |
7a01f4a7 | 84 | AliCFManager* fCFManager1; // correction framework manager |
85 | AliCFManager* fCFManager2; // correction framework manager | |
86 | TList* fQAInt; // QA histogram list | |
87 | TList* fQADiff; // QA histogram list | |
88 | Int_t fMinMult; // Minimum multiplicity from tracks selected using CORRFW | |
89 | Int_t fMaxMult; // Maximum multiplicity from tracks selected using CORRFW | |
90 | Double_t fMinA; // Minimum of eta range for subevent A | |
91 | Double_t fMaxA; // Maximum of eta range for subevent A | |
92 | Double_t fMinB; // Minimum of eta range for subevent B | |
93 | Double_t fMaxB; // Maximum of eta range for subevent B | |
94 | ||
489fdf79 | 95 | Bool_t fQA; // flag to set the filling of the QA hostograms |
96 | // values afterburner | |
97 | Double_t fMCReactionPlaneAngle; // the angle of the reaction plane from the MC truth | |
98 | Int_t fCount; // counter for the number of events processed | |
99 | Int_t fNoOfLoops; // number of times to use the same particle (nonflow) | |
100 | Double_t fEllipticFlowValue; // Add Flow. Must be in range [0,1]. | |
101 | Double_t fSigmaEllipticFlowValue; // Sigma Flow (Gaussian). Must be in range [0,1]. | |
102 | Int_t fMultiplicityOfEvent; // Set maximal multiplicity. | |
103 | Int_t fSigmaMultiplicityOfEvent; // Sigma multiplicity (Gaussian). | |
104 | ||
105 | TRandom3* fMyTRandom3; // our TRandom3 generator | |
65201059 | 106 | Bool_t fbAfterburnerOn; |
489fdf79 | 107 | // end afterburner |
108 | ||
587b0a35 | 109 | ClassDef(AliAnalysisTaskFlowEvent, 1); // example of analysis |
1c1d4332 | 110 | }; |
111 | ||
112 | #endif | |
489fdf79 | 113 |