3 // Class that contains results from FMD eventplane calculations
5 #ifndef ALIAODFORWARDEP_H
6 #define ALIAODFORWARDEP_H
8 * @file AliAODForwardMult.h
9 * @author Alexander Hansen
10 * @date Tue Feb 14 2012
15 * @ingroup pwglf_forward
23 * Event-plane information from forward detectors
26 class AliAODForwardEP : public TObject
32 * Used by ROOT I/O sub-system - do not use
38 * @param isMC Whether this was from MC or not
40 AliAODForwardEP(Bool_t isMC);
44 virtual ~AliAODForwardEP() {} // Destructor
48 * @param etaAxis Pseudo-rapidity axis
50 void Init(const TAxis& etaAxis);
54 * @param option Passed on to TH2::Reset verbatim
56 void Clear(Option_t* option="");
62 void Browse(TBrowser* b);
68 Bool_t IsFolder() const { return kTRUE; } // Always true
72 * @param option Passed verbatim to TH2::Print
74 void Print(Option_t* option="") const;
76 * Get the name of the AOD object
78 * @return for now ForwardEP
80 const Char_t* GetName() const { return (fIsMC ? "ForwardEP" : "ForwardEP"); }
82 * Set the overall FMD eventplane
86 void SetEventplane(Double_t ep) { fEpT = ep; }
88 * Get the overall FMD eventplane
92 Double_t GetEventplane() { return fEpT; }
94 * Set FMD eventplane from A side
96 * @param epA FMD A side EP
98 void SetEventplaneA(Double_t epA) { fEpA = epA; }
100 * Get FMD eventplane from A side
102 * @return FMD A side EP
104 Double_t GetEventplaneA() { return fEpA; }
106 * Set FMD eventplane from C side
108 * @param epC FMD C side EP
110 void SetEventplaneC(Double_t epC) { fEpC = epC; }
112 * Get FMD eventplane from C side
114 * @return FMD C side EP
116 Double_t GetEventplaneC() { return fEpC; }
118 * Set FMD eventplane 1 using random particles
120 * @param ep1 FMD EP 1 from random selection
122 void SetEventplane1(Double_t ep1) { fEp1 = ep1; }
124 * Get FMD eventplane 1 from random particles
126 * @return FMD EP 1 from random selection
128 Double_t GetEventplane1() { return fEp1; }
130 * Set FMD eventplane 2 using random particles
132 * @param ep2 FMD EP 2 from random selection
134 void SetEventplane2(Double_t ep2) { fEp2 = ep2; }
136 * Get FMD eventplane 2 from random particles
138 * @return FMD EP 2 from random selection
140 Double_t GetEventplane2() { return fEp2; }
142 * Get eta histogram from eta vs. Psi_2 calculatins
144 * @return Returns eta vs. Psi_2 histogram
146 const TH1D& GetHistogram() const { return fHist; } // Get histogram
148 * Get eta histogram from eta vs. Psi_2 calculatins
150 * @return Returns eta vs. Psi_2 histogram
152 TH1D& GetHistogram() { return fHist; } // Get histogram
155 Bool_t fIsMC; // Whether this is from MC
156 Double_t fEpT; // Total FMD event plane
157 Double_t fEpA; // FMD1+2 subevent plane
158 Double_t fEpC; // FMD3 subevent plane
159 Double_t fEp1; // Random FMD subevent plane 1
160 Double_t fEp2; // Random FMD subevent plane 2
161 TH1D fHist; // Histogram of subevent planes in eta for this event
163 ClassDef(AliAODForwardEP,1); // AOD forward multiplicity