2 // Class used to handle the input from AODs and put it into histograms
3 // the Forward Flow tasks can run on
5 #ifndef ALIFORWARDFLOWUTIL_H
6 #define ALIFORWARDFLOWUTIL_H
8 class AliAODForwardMult;
14 * Class used to handle the input from AODs and put it into histograms
15 * the Forward Flow tasks can run on.
17 * @ingroup pwg2_forward_tasks
19 class AliForwardFlowUtil : public TNamed
29 * @param fList list of histograms for flow analysis
31 AliForwardFlowUtil(TList* fList);
35 * @param o Object to copy from
37 AliForwardFlowUtil(const AliForwardFlowUtil& o) : TNamed(),
39 fZvertex(o.fZvertex) {}
43 * @param o Object to assign from
45 * @return Reference to this object
47 AliForwardFlowUtil& operator=(const AliForwardFlowUtil&) { return *this; }
49 * Check that AOD event meet trigger requirements
51 Bool_t AODCheck(const AliAODForwardMult* aodfm) const;
53 * Loop over AliAODForwardMult object and fill flow histograms
55 Bool_t LoopAODFMD(const AliAODEvent* AODevent) const;
57 * Loop over AliAODForwardCentral object and fill flow histograms
59 Bool_t LoopAODSPD(const AliAODEvent* AODevent) const;
61 * Loop over AliAODForwardMult object and fill flow histograms from
64 Bool_t LoopAODtrrefHits(const AliAODEvent* AODevent) const;
66 * Loop over AliAODMCParticle branch object and fill flow histograms
67 * add flow if arguments are set
69 Bool_t LoopAODmc(const AliAODEvent* AODevent, TString addFlow, Int_t type, Int_t order) const;
71 * Set Z vertex range - Used by flow task
73 void SetVertexRange(Int_t vertex = 2) { fZvertex = vertex; }
77 * Add pt dependent flow factor
79 Double_t AddptFlow(Double_t Pt, Int_t type) const;
81 * Add pid dependent flow factor
83 Double_t AddpidFlow(Int_t ID, Int_t type) const;
85 * Add eta dependent flow factor
87 Double_t AddetaFlow(Double_t Eta, Int_t type) const;
89 * Get centrality form MC impact parameter
91 Double_t GetCentFromMC(const AliAODEvent* AODevent) const;
93 TList* fList; // List of flow histograms
94 Int_t fZvertex; // Z vertex range
96 ClassDef(AliForwardFlowUtil, 1);