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
22 class AliAODForwardEP : public TObject
28 * Used by ROOT I/O sub-system - do not use
34 * @param isMC Whether this was from MC or not
36 AliAODForwardEP(Bool_t isMC);
40 virtual ~AliAODForwardEP() {} // Destructor
44 * @param etaAxis Pseudo-rapidity axis
46 void Init(const TAxis& etaAxis);
50 * @param option Passed on to TH2::Reset verbatim
52 void Clear(Option_t* option="");
58 void Browse(TBrowser* b);
64 Bool_t IsFolder() const { return kTRUE; } // Always true
68 * @param option Passed verbatim to TH2::Print
70 void Print(Option_t* option="") const;
72 * Get the name of the AOD object
74 * @return for now ForwardEP
76 const Char_t* GetName() const { return (fIsMC ? "ForwardEP" : "ForwardEP"); }
78 * Set the overall FMD eventplane
82 void SetEventplane(Double_t ep) { fEpT = ep; }
84 * Get the overall FMD eventplane
88 Double_t GetEventplane() { return fEpT; }
90 * Set FMD eventplane from A side
92 * @param epA FMD A side EP
94 void SetEventplaneA(Double_t epA) { fEpA = epA; }
96 * Get FMD eventplane from A side
98 * @return FMD A side EP
100 Double_t GetEventplaneA() { return fEpA; }
102 * Set FMD eventplane from C side
104 * @param epC FMD C side EP
106 void SetEventplaneC(Double_t epC) { fEpC = epC; }
108 * Get FMD eventplane from C side
110 * @return FMD C side EP
112 Double_t GetEventplaneC() { return fEpC; }
114 * Set FMD eventplane 1 using random particles
116 * @param ep1 FMD EP 1 from random selection
118 void SetEventplane1(Double_t ep1) { fEp1 = ep1; }
120 * Get FMD eventplane 1 from random particles
122 * @return FMD EP 1 from random selection
124 Double_t GetEventplane1() { return fEp1; }
126 * Set FMD eventplane 2 using random particles
128 * @param ep2 FMD EP 2 from random selection
130 void SetEventplane2(Double_t ep2) { fEp2 = ep2; }
132 * Get FMD eventplane 2 from random particles
134 * @return FMD EP 2 from random selection
136 Double_t GetEventplane2() { return fEp2; }
138 * Get eta histogram from eta vs. Psi_2 calculatins
140 * @return Returns eta vs. Psi_2 histogram
142 const TH1D& GetHistogram() const { return fHist; } // Get histogram
144 * Get eta histogram from eta vs. Psi_2 calculatins
146 * @return Returns eta vs. Psi_2 histogram
148 TH1D& GetHistogram() { return fHist; } // Get histogram
151 Bool_t fIsMC; // Whether this is from MC
152 Double_t fEpT; // Total FMD event plane
153 Double_t fEpA; // FMD1+2 subevent plane
154 Double_t fEpC; // FMD3 subevent plane
155 Double_t fEp1; // Random FMD subevent plane 1
156 Double_t fEp2; // Random FMD subevent plane 2
157 TH1D fHist; // Histogram of subevent planes in eta for this event
159 ClassDef(AliAODForwardEP,1); // AOD forward multiplicity