AliPhysics  c7b8e89 (c7b8e89)
AliCentralMCCorrectionsTask.h
Go to the documentation of this file.
1 //
2 // Calculate the corrections in the central regions
3 //
4 #ifndef ALICENTRALMCCORRECTIONS_H
5 #define ALICENTRALMCCORRECTIONS_H
6 
17 #include "AliSPDMCTrackDensity.h"
20 
21 
41 {
42 public:
48  AliCentralMCCorrectionsTask(const char* name);
62  void Print(Option_t* option="") const;
63 
69  void SetNPhiBins(UShort_t nBins) { fNPhiBins = nBins; }
81  void SetEtaCut(Double_t maxEta=1.9) { fEtaCut = maxEta; }
90  void SetAcceptanceCut(Double_t least=0.8) { fCorrCut = least; }
103 protected:
124  {
128  VtxBin();
137  VtxBin(Double_t low, Double_t high, const TAxis& etaAxis, UShort_t nPhi);
143  VtxBin(const VtxBin& o){;}
151  VtxBin& operator=(const VtxBin& o){return *this;}
170  void Terminate(const TList* i,
171  TList* o,
172  UShort_t iVz,
173  Bool_t effective,
174  Double_t etaCut,
175  Double_t accCut,
177  AliCentralCorrAcceptance* acorr);
178 
179  TH2D* fHits; // Cache of MC-truth hits
180  TH2D* fClusters; // Cache of reconstructed hits
181 
182  // ClassDef(VtxBin,3); // Vertex bin
183  };
189  void DefineBins(TList* list);
209  Bool_t ProcessESD(const AliESDEvent& esd, const AliMCEvent& mc,
211  const TVector3& ip);
217  virtual void CreateCorrections(TList* results);
227  UShort_t iVz);
228 
229 
230  AliSPDMCTrackDensity fTrackDensity; // Get the track density
233 
234  UShort_t fNPhiBins; // Nunber of phi bins
235  Bool_t fEffectiveCorr; // Whether to make effective corrections
236  Double_t fEtaCut; // Maximum Eta
237  Double_t fCorrCut; // Correction cut
238  ClassDef(AliCentralMCCorrectionsTask,3) // Central corrections class
239 };
240 
241 #endif
242 // Local Variables:
243 // mode: C++
244 // End:
245 
double Double_t
Definition: External.C:58
AliCentralCorrAcceptance * fAccCorr
const AliSPDMCTrackDensity & GetTrackDensity() const
AliBaseMCCorrectionsTask::VtxBin * CreateVtxBin(Double_t low, Double_t high)
AliCentralMCCorrectionsTask & operator=(const AliCentralMCCorrectionsTask &o)
AliSPDMCTrackDensity & GetTrackDensity()
void SetEtaCut(Double_t maxEta=1.9)
virtual void CreateCorrections(TList *results)
Definition: External.C:228
void Terminate(const TList *i, TList *o, UShort_t iVz, Bool_t effective, Double_t etaCut, Double_t accCut, AliCentralCorrSecondaryMap *map, AliCentralCorrAcceptance *acorr)
virtual Bool_t FinalizeVtxBin(AliBaseMCCorrectionsTask::VtxBin *bin, UShort_t iVz)
AliCentralCorrSecondaryMap * fSecCorr
unsigned short UShort_t
Definition: External.C:28
const char Option_t
Definition: External.C:48
void Print(Option_t *option="") const
bool Bool_t
Definition: External.C:53
void SetAcceptanceCut(Double_t least=0.8)
Bool_t ProcessESD(const AliESDEvent &esd, const AliMCEvent &mc, AliBaseMCCorrectionsTask::VtxBin &bin, const TVector3 &ip)
void DefineBins(TList *list)