]>
Commit | Line | Data |
---|---|---|
2b556440 | 1 | |
2 | // | |
3 | // Class that contains results from FMD eventplane calculations | |
4 | // | |
5 | #ifndef ALIAODFORWARDEP_H | |
6 | #define ALIAODFORWARDEP_H | |
7 | /** | |
8 | * @file AliAODForwardMult.h | |
9 | * @author Alexander Hansen | |
10 | * @date Tue Feb 14 2012 | |
11 | * | |
12 | * @brief | |
13 | * | |
14 | * | |
15 | * @ingroup pwglf_forward | |
16 | */ | |
17 | #include <TObject.h> | |
18 | #include <TH1D.h> | |
19 | class TBrowser; | |
20 | class TH1D; | |
21 | ||
290052e7 | 22 | /** |
23 | * Event-plane information from forward detectors | |
24 | * | |
25 | */ | |
2b556440 | 26 | class AliAODForwardEP : public TObject |
27 | { | |
28 | public: | |
29 | /** | |
30 | * Default constructor | |
31 | * | |
32 | * Used by ROOT I/O sub-system - do not use | |
33 | */ | |
34 | AliAODForwardEP(); | |
35 | /** | |
36 | * Constructor | |
37 | * | |
38 | * @param isMC Whether this was from MC or not | |
39 | */ | |
40 | AliAODForwardEP(Bool_t isMC); | |
41 | /** | |
42 | * Destructor | |
43 | */ | |
44 | virtual ~AliAODForwardEP() {} // Destructor | |
45 | /** | |
46 | * Initialize | |
47 | * | |
48 | * @param etaAxis Pseudo-rapidity axis | |
49 | */ | |
50 | void Init(const TAxis& etaAxis); | |
51 | /** | |
52 | * Clear all data | |
53 | * | |
54 | * @param option Passed on to TH2::Reset verbatim | |
55 | */ | |
56 | void Clear(Option_t* option=""); | |
57 | /** | |
58 | * browse this object | |
59 | * | |
60 | * @param b Browser | |
61 | */ | |
62 | void Browse(TBrowser* b); | |
63 | /** | |
64 | * This is a folder | |
65 | * | |
66 | * @return Always true | |
67 | */ | |
68 | Bool_t IsFolder() const { return kTRUE; } // Always true | |
69 | /** | |
70 | * Print content | |
71 | * | |
72 | * @param option Passed verbatim to TH2::Print | |
73 | */ | |
74 | void Print(Option_t* option="") const; | |
290052e7 | 75 | /** |
76 | * Get the name of the AOD object | |
77 | * | |
78 | * @return for now ForwardEP | |
79 | */ | |
2b556440 | 80 | const Char_t* GetName() const { return (fIsMC ? "ForwardEP" : "ForwardEP"); } |
290052e7 | 81 | /** |
82 | * Set the overall FMD eventplane | |
83 | * | |
84 | * @param ep FMD EP | |
85 | */ | |
2b556440 | 86 | void SetEventplane(Double_t ep) { fEpT = ep; } |
290052e7 | 87 | /** |
88 | * Get the overall FMD eventplane | |
89 | * | |
90 | * @return FMD EP | |
91 | */ | |
2b556440 | 92 | Double_t GetEventplane() { return fEpT; } |
290052e7 | 93 | /** |
94 | * Set FMD eventplane from A side | |
95 | * | |
96 | * @param epA FMD A side EP | |
97 | */ | |
2b556440 | 98 | void SetEventplaneA(Double_t epA) { fEpA = epA; } |
290052e7 | 99 | /** |
100 | * Get FMD eventplane from A side | |
101 | * | |
102 | * @return FMD A side EP | |
103 | */ | |
2b556440 | 104 | Double_t GetEventplaneA() { return fEpA; } |
290052e7 | 105 | /** |
106 | * Set FMD eventplane from C side | |
107 | * | |
108 | * @param epC FMD C side EP | |
109 | */ | |
2b556440 | 110 | void SetEventplaneC(Double_t epC) { fEpC = epC; } |
290052e7 | 111 | /** |
112 | * Get FMD eventplane from C side | |
113 | * | |
114 | * @return FMD C side EP | |
115 | */ | |
2b556440 | 116 | Double_t GetEventplaneC() { return fEpC; } |
290052e7 | 117 | /** |
118 | * Set FMD eventplane 1 using random particles | |
119 | * | |
120 | * @param ep1 FMD EP 1 from random selection | |
121 | */ | |
2b556440 | 122 | void SetEventplane1(Double_t ep1) { fEp1 = ep1; } |
290052e7 | 123 | /** |
124 | * Get FMD eventplane 1 from random particles | |
125 | * | |
126 | * @return FMD EP 1 from random selection | |
127 | */ | |
2b556440 | 128 | Double_t GetEventplane1() { return fEp1; } |
290052e7 | 129 | /** |
130 | * Set FMD eventplane 2 using random particles | |
131 | * | |
132 | * @param ep2 FMD EP 2 from random selection | |
133 | */ | |
2b556440 | 134 | void SetEventplane2(Double_t ep2) { fEp2 = ep2; } |
290052e7 | 135 | /** |
136 | * Get FMD eventplane 2 from random particles | |
137 | * | |
138 | * @return FMD EP 2 from random selection | |
139 | */ | |
2b556440 | 140 | Double_t GetEventplane2() { return fEp2; } |
290052e7 | 141 | /** |
142 | * Get eta histogram from eta vs. Psi_2 calculatins | |
143 | * | |
144 | * @return Returns eta vs. Psi_2 histogram | |
145 | */ | |
2b556440 | 146 | const TH1D& GetHistogram() const { return fHist; } // Get histogram |
290052e7 | 147 | /** |
148 | * Get eta histogram from eta vs. Psi_2 calculatins | |
149 | * | |
150 | * @return Returns eta vs. Psi_2 histogram | |
151 | */ | |
2b556440 | 152 | TH1D& GetHistogram() { return fHist; } // Get histogram |
153 | ||
154 | protected: | |
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 | |
162 | ||
163 | ClassDef(AliAODForwardEP,1); // AOD forward multiplicity | |
164 | }; | |
165 | ||
166 | #endif | |
167 | // Local Variables: | |
168 | // mode: C++ | |
169 | // End: |