AliPhysics  fde8a9f (fde8a9f)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliFMDCorrector.h
Go to the documentation of this file.
1 // This class calculates the exclusive charged particle density
2 // in each for the 5 FMD rings.
3 //
4 #ifndef ALIFMDCORRECTOR_H
5 #define ALIFMDCORRECTOR_H
6 
16 #include <TNamed.h>
17 #include <TList.h>
18 #include "AliForwardUtil.h"
19 class TH2D;
20 class TH2;
48 class AliFMDCorrector : public TNamed
49 {
50 public:
60  AliFMDCorrector(const char* name);
70  virtual ~AliFMDCorrector();
84  virtual void SetupForData(const TAxis& etaAxis);
93  virtual Bool_t Correct(AliForwardUtil::Histos& hists, UShort_t vtxBin);
101  virtual void Terminate(const TList* dir, TList* output, Int_t nEvents);
107  virtual void CreateOutputObjects(TList* dir);
113  void SetDebug(Int_t dbg=1) { fDebug = dbg; }
123  void SetUseSecondaryMap(Bool_t use=true) { fUseSecondaryMap = use; }
135  void SetUseVertexBias(Bool_t use=true) { fUseVertexBias = use; }
147  void SetUseAcceptance(Bool_t use=true) { fUseAcceptance = use; }
166  /* @} */
167 
173  virtual void Print(Option_t* option="") const;
174 protected:
180  {
184  RingHistos();
191  RingHistos(UShort_t d, Char_t r);
197  RingHistos(const RingHistos& o);
205  RingHistos& operator=(const RingHistos& o);
209  ~RingHistos();
215  void CreateOutputObjects(TList* dir);
222  void Terminate(TList* dir, Int_t nEvents);
223  TH2D* fDensity; // Distribution primary Nch
224  // ClassDef(RingHistos,2);
225  };
244  void DivideMap(TH2* num, const TH2* denom, Bool_t alsoUnderOver=false) const;
245  TList fRingHistos; // List of histogram containers
246  Bool_t fUseSecondaryMap; // Whether to do correction for secondaries
247  Bool_t fUseVertexBias; // Whether to do correction for vertex bias
248  Bool_t fUseAcceptance; // Whether to do correction for dead ch's.
249  Bool_t fUseMergingEfficiency; // Whether to use the merging efficiency
250  Int_t fDebug; // Debug level
251 
252  ClassDef(AliFMDCorrector,4); // Correct the inclusive d2N/detadphi
253 };
254 
255 #endif
256 // Local Variables:
257 // mode: C++
258 // End:
259 
RingHistos * GetRingHistos(UShort_t d, Char_t r) const
virtual ~AliFMDCorrector()
char Char_t
Definition: External.C:18
virtual void CreateOutputObjects(TList *dir)
virtual void Print(Option_t *option="") const
virtual void Terminate(const TList *dir, TList *output, Int_t nEvents)
ClassDef(AliFMDCorrector, 4)
void Terminate(TList *dir, Int_t nEvents)
void SetUseSecondaryMap(Bool_t use=true)
Bool_t IsUseMergingEfficiency() const
virtual Bool_t Correct(AliForwardUtil::Histos &hists, UShort_t vtxBin)
void CreateOutputObjects(TList *dir)
int Int_t
Definition: External.C:63
Various utilities used in PWGLF/FORWARD.
void SetUseAcceptance(Bool_t use=true)
Definition: External.C:228
AliFMDCorrector & operator=(const AliFMDCorrector &)
void SetDebug(Int_t dbg=1)
Bool_t IsUseVertexBias() const
RingHistos & operator=(const RingHistos &o)
Float_t nEvents[nProd]
void DivideMap(TH2 *num, const TH2 *denom, Bool_t alsoUnderOver=false) const
Definition: External.C:220
void SetUseMergingEfficiency(Bool_t use=true)
virtual void SetupForData(const TAxis &etaAxis)
unsigned short UShort_t
Definition: External.C:28
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
Bool_t IsUseAcceptance() const
Bool_t IsUseSecondaryMap() const
Bool_t fUseMergingEfficiency
void SetUseVertexBias(Bool_t use=true)