AliPhysics  251aa1e (251aa1e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliFMDMCDensityCalculator.h
Go to the documentation of this file.
1 //
2 // This class calculates the inclusive charged particle density
3 // in each for the 5 FMD rings based on the MC truth.
4 //
5 #ifndef ALIFMDMCDENSITYCALCULATOR_H
6 #define ALIFMDMCDENSITYCALCULATOR_H
7 
18 #include <TList.h>
19 #include "AliForwardUtil.h"
20 class AliMCEvent;
21 class TH2;
22 class TH2D;
23 class TProfile2D;
24 
43 {
44 public:
50  fFMD1i(0),
51  fFMD2i(0),
52  fFMD2o(0),
53  fFMD3i(0),
54  fFMD3o(0),
55  fFMD1iC(0),
56  fFMD2iC(0),
57  fFMD2oC(0),
58  fFMD3iC(0),
59  fFMD3oC(0),
60  fFMD1iD(0),
61  fFMD2iD(0),
62  fFMD2oD(0),
63  fFMD3iD(0),
64  fFMD3oD(0),
65  fComps(0)
66  {}
72  AliFMDMCDensityCalculator(const char* name)
74  fFMD1i(0),
75  fFMD2i(0),
76  fFMD2o(0),
77  fFMD3i(0),
78  fFMD3o(0),
79  fFMD1iC(0),
80  fFMD2iC(0),
81  fFMD2oC(0),
82  fFMD3iC(0),
83  fFMD3oC(0),
84  fFMD1iD(0),
85  fFMD2iD(0),
86  fFMD2oD(0),
87  fFMD3iD(0),
88  fFMD3oD(0),
89  fComps(0)
90  {}
98  fFMD1i(o.fFMD1i),
99  fFMD2i(o.fFMD2i),
100  fFMD2o(o.fFMD2o),
101  fFMD3i(o.fFMD3i),
102  fFMD3o(o.fFMD3o),
103  fFMD1iC(o.fFMD1iC),
104  fFMD2iC(o.fFMD2iC),
105  fFMD2oC(o.fFMD2oC),
106  fFMD3iC(o.fFMD3iC),
107  fFMD3oC(o.fFMD3oC),
108  fFMD1iD(o.fFMD1iD),
109  fFMD2iD(o.fFMD2iD),
110  fFMD2oD(o.fFMD2oD),
111  fFMD3iD(o.fFMD3iD),
112  fFMD3oD(o.fFMD3oD),
113  fComps(0)
114  {}
118  virtual ~AliFMDMCDensityCalculator();
132  void SetupForData(const TAxis& etaAxis);
141  virtual Bool_t CalculateMC(const AliESDFMD& fmd,
142  AliForwardUtil::Histos& hists);
143 
161  void CreateOutputObjects(TList* dir);
162 protected:
172  TProfile2D* Make(UShort_t d, Char_t r, const TAxis& axis) const;
181  TH2D* Make(UShort_t d, Char_t r) const;
191  TH1D* Make(UShort_t d, Char_t r, Int_t max) const;
200  void Fill(UShort_t d, Char_t r, TH2* esd, TH2* mc);
201 
202  TProfile2D* fFMD1i; // Comparison
203  TProfile2D* fFMD2i; // Comparison
204  TProfile2D* fFMD2o; // Comparison
205  TProfile2D* fFMD3i; // Comparison
206  TProfile2D* fFMD3o; // Comparison
207  TH2D* fFMD1iC; // Correlation in FMD1i
208  TH2D* fFMD2iC; // Correlation in FMD2i
209  TH2D* fFMD2oC; // Correlation in FMD2o
210  TH2D* fFMD3iC; // Correlation in FMD3i
211  TH2D* fFMD3oC; // Correlation in FMD3o
212  TH1D* fFMD1iD; // Correlation in FMD1i
213  TH1D* fFMD2iD; // Correlation in FMD2i
214  TH1D* fFMD2oD; // Correlation in FMD2o
215  TH1D* fFMD3iD; // Correlation in FMD3i
216  TH1D* fFMD3oD; // Correlation in FMD3o
217  TList* fComps; // List of comparisons
218 
219  ClassDef(AliFMDMCDensityCalculator,2); // Calculate Nch density
220 };
221 
222 #endif
223 // Local Variables:
224 // mode: C++
225 // End:
226 
virtual ~AliFMDMCDensityCalculator()
AliFMDMCDensityCalculator(const AliFMDMCDensityCalculator &o)
char Char_t
Definition: External.C:18
AliFMDMCDensityCalculator(const char *name)
void SetupForData(const TAxis &etaAxis)
TProfile2D * Make(UShort_t d, Char_t r, const TAxis &axis) const
int Int_t
Definition: External.C:63
virtual Bool_t CalculateMC(const AliESDFMD &fmd, AliForwardUtil::Histos &hists)
ClassDef(AliFMDMCDensityCalculator, 2)
Various utilities used in PWGLF/FORWARD.
Definition: External.C:228
Definition: External.C:212
AliFMDMCDensityCalculator & operator=(const AliFMDMCDensityCalculator &o)
virtual Bool_t CompareResults(AliForwardUtil::Histos &esd, AliForwardUtil::Histos &mc)
void Fill(UShort_t d, Char_t r, TH2 *esd, TH2 *mc)
Definition: External.C:220
unsigned short UShort_t
Definition: External.C:28
bool Bool_t
Definition: External.C:53