AliPhysics  5364b50 (5364b50)
AliFMDEventPlaneFinder.h
Go to the documentation of this file.
1 // This task finds the eventplane
2 // using the FMD
3 //
4 #ifndef ALIFMDEVENTPLANEFINDER_H
5 #define ALIFMDEVENTPLANEFINDER_H
6 
16 #include <TNamed.h>
17 #include <TVector2.h>
18 #include "AliForwardUtil.h"
19 class AliVEvent;
20 class TH1D;
21 class TH2F;
22 class TH2D;
23 class TString;
24 class AliOADBContainer;
25 class AliAODForwardEP;
26 
32 {
33 public:
43  AliFMDEventPlaneFinder(const char* name);
53  virtual ~AliFMDEventPlaneFinder();
67  virtual void SetupForData(const TAxis& etaAxis);
78  Bool_t FindEventplane(AliVEvent* esd,
79  AliAODForwardEP& aodEp,
80  TH2D* h,
81  AliForwardUtil::Histos* hists);
87  virtual void CreateOutputObjects(TList* dir);
94  void Print(Option_t* option="") const;
100  void SetDebug(Int_t dbg=1) { fDebug = dbg; }
107  void CalcQVectors(TH2D* h, TH1D* eHist);
115  Double_t CalcEventplane(const TVector2& v) const;
121  void SetRunNumber(Int_t run);
131  void GetPhiDist();
137  void SetUsePhiWeights(Bool_t use = kTRUE) { fUsePhiWeights = use; }
143  void FillHists(AliAODForwardEP* fmdEP);
149  void SetOADBPath(Char_t* fname) { fOADBFileName = fname; }
150 
151 protected:
160  Double_t GetPhiWeight(Int_t etaBin, Int_t phiBin) const;
180  TH1D* MakePsiRHist(const char* name,
181  const char* title,
182  Int_t color);
193  TH1D* MakeDiffHist(const char* name,
194  const char* first,
195  const char* second,
196  Int_t color);
206  TH2F* MakeCorrHist(const char* name,
207  const char* first,
208  const char* second);
209  TList* fList; // List for diag. hists.
210  AliVEvent* fEvent; // Current event
211  TVector2 fQt; // Q vector for total ep
212  TVector2 fQa; // Q vector for sub-ep A
213  TVector2 fQc; // Q vector for sub-ep C
214  TVector2 fQ1; // Q vector for sub-ep 1
215  TVector2 fQ2; // Q vector for sub-ep 2
216  TVector2 fQeta; // Q vector for psi eta-dependence
217  TH1D* fHepFMD; // Diagnostics histogram
218  TH1D* fHepFMDA; // Diagnostics histogram
219  TH1D* fHepFMDC; // Diagnostics histogram
220  TH1D* fHepFMDQC1; // Diagnostics histogram
221  TH1D* fHepFMDQC2; // Diagnostics histogram
222  TH1D* fHdiffFMDAC; // Diagnostics histogram
223  TH1D* fHdiffFMDTPC; // Diagnostics histogram
224  TH1D* fHdiffFMDVZERO; // Diagnostics histogram
225  TH2F* fHcorrFMDAC; // Diagnostics histogram
226  TH2F* fHcorrFMDTPC; // Diagnostics histogram
227  TH2F* fHcorrFMDVZERO; // Diagnostics histogram
228  TH2D* fHPhi; // Diagnostics histogram
229  Int_t fDebug; // Debug flag
230  TString fOADBFileName; // Path to OADB container
231  AliOADBContainer* fOADBContainer; // OADBContainer object
232  TH2D* fPhiDist; // Phi dist. for phi weights
233  Int_t fRunNumber; // Run number supplied
234  Bool_t fUsePhiWeights; // Flag for phi weights
235 
236  ClassDef(AliFMDEventPlaneFinder,2); //
237 };
238 
239 #endif
240 // Local Variables:
241 // mode: C++
242 // End:
243 
Int_t color[]
print message on plot with ok/not ok
void FillHists(AliAODForwardEP *fmdEP)
double Double_t
Definition: External.C:58
Definition: External.C:236
const char * title
Definition: MakeQAPdf.C:27
virtual void SetupForData(const TAxis &etaAxis)
Double_t CalcDifference(Double_t a1, Double_t a2) const
AliFMDEventPlaneFinder & operator=(const AliFMDEventPlaneFinder &o)
char Char_t
Definition: External.C:18
Double_t CalcEventplane(const TVector2 &v) const
TH2F * MakeCorrHist(const char *name, const char *first, const char *second)
virtual void CreateOutputObjects(TList *dir)
AliOADBContainer * fOADBContainer
void CalcQVectors(TH2D *h, TH1D *eHist)
int Int_t
Definition: External.C:63
void Print(Option_t *option="") const
Various utilities used in PWGLF/FORWARD.
Definition: External.C:228
Definition: External.C:212
void SetOADBPath(Char_t *fname)
TH1D * MakePsiRHist(const char *name, const char *title, Int_t color)
TH1D * MakeDiffHist(const char *name, const char *first, const char *second, Int_t color)
void SetUsePhiWeights(Bool_t use=kTRUE)
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
Bool_t FindEventplane(AliVEvent *esd, AliAODForwardEP &aodEp, TH2D *h, AliForwardUtil::Histos *hists)
Double_t GetPhiWeight(Int_t etaBin, Int_t phiBin) const
TDirectoryFile * dir