]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/AliAODForwardEP.h
Mega-commit by Alexander - added Event plane to analysis task, and other flow updates...
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliAODForwardEP.h
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
22 class AliAODForwardEP : public TObject
23 {
24 public:
25   /** 
26    * Default constructor 
27    * 
28    * Used by ROOT I/O sub-system - do not use
29    */
30   AliAODForwardEP();
31   /** 
32    * Constructor 
33    * 
34    * @param isMC Whether this was from MC or not 
35    */
36   AliAODForwardEP(Bool_t isMC);
37   /** 
38    * Destructor 
39    */
40   virtual ~AliAODForwardEP() {} // Destructor 
41   /** 
42    * Initialize 
43    * 
44    * @param etaAxis  Pseudo-rapidity axis
45    */
46   void Init(const TAxis& etaAxis);
47   /** 
48    * Clear all data 
49    * 
50    * @param option  Passed on to TH2::Reset verbatim
51    */
52   void Clear(Option_t* option="");
53   /** 
54    * browse this object 
55    * 
56    * @param b Browser 
57    */
58   void Browse(TBrowser* b);
59   /** 
60    * This is a folder 
61    * 
62    * @return Always true
63    */
64   Bool_t IsFolder() const { return kTRUE; } // Always true 
65   /** 
66    * Print content 
67    * 
68    * @param option Passed verbatim to TH2::Print 
69    */
70   void Print(Option_t* option="") const;
71  /*
72   * Get the name of the AOD object
73   *
74   * @return for now ForwardEP
75   */
76   const Char_t* GetName() const { return (fIsMC ? "ForwardEP" : "ForwardEP"); }
77  /*
78   * Set the overall FMD eventplane
79   * 
80   * @param ep FMD EP
81   */
82   void SetEventplane(Double_t ep) { fEpT = ep; }
83  /* 
84   * Get the overall FMD eventplane
85   *
86   * @return FMD EP
87   */
88   Double_t GetEventplane() { return fEpT; }
89  /*
90   * Set FMD eventplane from A side
91   *
92   * @param epA FMD A side EP
93   */
94   void SetEventplaneA(Double_t epA) { fEpA = epA; }
95  /*
96   * Get FMD eventplane from A side
97   *
98   * @return FMD A side EP
99   */
100   Double_t GetEventplaneA() { return fEpA; }
101  /*
102   * Set FMD eventplane from C side
103   *
104   * @param epC FMD C side EP
105   */
106   void SetEventplaneC(Double_t epC) { fEpC = epC; }
107  /*
108   * Get FMD eventplane from C side
109   *
110   * @return FMD C side EP
111   */
112   Double_t GetEventplaneC() { return fEpC; }
113  /*
114   * Set FMD eventplane 1 using random particles
115   *
116   * @param ep1 FMD EP 1 from random selection
117   */
118   void SetEventplane1(Double_t ep1) { fEp1 = ep1; }
119  /* 
120   * Get FMD eventplane 1 from random particles
121   *
122   * @return FMD EP 1 from random selection
123   */
124   Double_t GetEventplane1() { return fEp1; }
125  /*
126   * Set FMD eventplane 2 using random particles
127   *
128   * @param ep2 FMD EP 2 from random selection
129   */
130   void SetEventplane2(Double_t ep2) { fEp2 = ep2; }
131  /* 
132   * Get FMD eventplane 2 from random particles
133   *
134   * @return FMD EP 2 from random selection
135   */
136   Double_t GetEventplane2() { return fEp2; }
137  /*
138   * Get eta histogram from eta vs. Psi_2 calculatins
139   *
140   * @return Returns eta vs. Psi_2 histogram
141   */
142   const TH1D& GetHistogram() const { return fHist; } // Get histogram 
143  /*
144   * Get eta histogram from eta vs. Psi_2 calculatins
145   *
146   * @return Returns eta vs. Psi_2 histogram
147   */
148   TH1D& GetHistogram() { return fHist; } // Get histogram 
149
150 protected: 
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
158
159   ClassDef(AliAODForwardEP,1); // AOD forward multiplicity 
160 };
161
162 #endif
163 // Local Variables:
164 //  mode: C++
165 // End: