AliPhysics  f05a842 (f05a842)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliFMDMCCorrector.h
Go to the documentation of this file.
1 //
2 // This class calculates the exclusive charged particle density
3 // in each for the 5 FMD rings.
4 //
5 #ifndef ALIFMDMCCORRECTOR_H
6 #define ALIFMDMCCORRECTOR_H
7 
17 #include "AliFMDCorrector.h"
18 #include <TList.h>
19 class TProfile2D;
20 class TH2;
21 
51 {
52 public:
57  : AliFMDCorrector(),
58  fFMD1i(0),
59  fFMD2i(0),
60  fFMD2o(0),
61  fFMD3i(0),
62  fFMD3o(0),
63  fComps(0),
64  fSecondaryForMC(true)
65  {}
71  AliFMDMCCorrector(const char* name)
72  : AliFMDCorrector(name),
73  fFMD1i(0),
74  fFMD2i(0),
75  fFMD2o(0),
76  fFMD3i(0),
77  fFMD3o(0),
78  fComps(0),
79  fSecondaryForMC(true)
80  {}
87  : AliFMDCorrector(o),
88  fFMD1i(o.fFMD1i),
89  fFMD2i(o.fFMD2i),
90  fFMD2o(o.fFMD2o),
91  fFMD3i(o.fFMD3i),
92  fFMD3o(o.fFMD3o),
93  fComps(0),
95  {}
99  virtual ~AliFMDMCCorrector();
119  void SetupForData(const TAxis& etaAxis);
128  virtual Bool_t CorrectMC(AliForwardUtil::Histos& hists, UShort_t vtxBin);
146  void CreateOutputObjects(TList* dir);
147 
153  void Print(Option_t* option="") const;
154 protected:
164  TProfile2D* Make(UShort_t d, Char_t r, const TAxis& axis) const;
173  void Fill(UShort_t d, Char_t r, TH2* esd, TH2* mc);
174 
175  TProfile2D* fFMD1i; // Comparison
176  TProfile2D* fFMD2i; // Comparison
177  TProfile2D* fFMD2o; // Comparison
178  TProfile2D* fFMD3i; // Comparison
179  TProfile2D* fFMD3o; // Comparison
180  TList* fComps; // List of comparisons
181  Bool_t fSecondaryForMC; // Whether to correct MC data
182 
183  ClassDef(AliFMDMCCorrector,2); // Calculate Nch density
184 };
185 
186 #endif
187 // Local Variables:
188 // mode: C++
189 // End:
190 
void SetSecondaryForMC(Bool_t use)
AliFMDMCCorrector & operator=(const AliFMDMCCorrector &)
char Char_t
Definition: External.C:18
virtual Bool_t CompareResults(AliForwardUtil::Histos &esd, AliForwardUtil::Histos &mc)
AliFMDMCCorrector(const char *name)
void SetupForData(const TAxis &etaAxis)
AliFMDMCCorrector(const AliFMDMCCorrector &o)
void Fill(UShort_t d, Char_t r, TH2 *esd, TH2 *mc)
void Print(Option_t *option="") const
virtual Bool_t CorrectMC(AliForwardUtil::Histos &hists, UShort_t vtxBin)
TProfile2D * Make(UShort_t d, Char_t r, const TAxis &axis) const
void CreateOutputObjects(TList *dir)
Definition: External.C:220
virtual ~AliFMDMCCorrector()
unsigned short UShort_t
Definition: External.C:28
const char Option_t
Definition: External.C:48
ClassDef(AliFMDMCCorrector, 2)
bool Bool_t
Definition: External.C:53