AliPhysics  41af4b0 (41af4b0)
AliFMDMCHitEnergyFitter.h
Go to the documentation of this file.
1 #ifndef ALIFMDMCHITENERGYFITTER_H
2 #define ALIFMDMCHITENERGYFITTER_H
3 #include "AliFMDEnergyFitter.h"
4 #include "AliFMDFloatMap.h"
5 #include "TArrayF.h"
6 class AliMCAuxHandler;
7 class AliMCEvent;
8 class AliESDEvent;
9 class TNtuple;
10 class TClonesArray;
11 
19 {
20 public:
31  AliFMDMCHitEnergyFitter(const char* title, Bool_t useTuple=false);
35  virtual ~AliFMDMCHitEnergyFitter();
36 
44  virtual void CreateOutputObjects(TList* dir);
52  virtual Bool_t PreEvent(const AliMCEvent& mcInput);
62  virtual Bool_t Event(const AliESDEvent& esdInput,
63  const AliMCEvent& mcInput,
64  AliMCAuxHandler& handler);
73  virtual Bool_t AccumulateHits(const AliMCEvent& mcInput,
74  const TClonesArray& hits);
82  virtual Bool_t PostEvent(const AliESDEvent& esdInput);
83 
84  TNtuple* GetTuple() { return fTuple; }
85 protected:
95 
101  {
105  RingHistos();
112  RingHistos(UShort_t d, Char_t r);
122  RingHistos(const RingHistos& o);
130  RingHistos& operator=(const RingHistos& o);
142  Double_t low,
143  Double_t high) const;
153  virtual void SetupForData(const TAxis& eAxis,
154  const TAxis& cAxis,
155  Double_t maxDE=10,
156  Int_t nDEbins=300,
157  Bool_t useIncrBin=true);
165  virtual void FillMC(UShort_t flag, Double_t eta, Double_t mult);
182  TObjArray* Fit(TList* dir,
183  Double_t lowCut,
184  UShort_t nParticles,
185  UShort_t minEntries,
186  UShort_t minusBins,
187  Double_t relErrorCut,
188  Double_t chi2nuCut,
189  Double_t minWeight,
190  Double_t regCut,
191  EResidualMethod residuals) const;
192 
193  TH2* fPrimary; // @f$\Delta@f$ vs @f$\eta@f$ for primaries
194  TH2* fSecondary; // @f$\Delta@f$ vs @f$\eta@f$ for second.
195  TH2* fKind; // Particle kind
196  ClassDef(RingHistos,1); // Cache of histograms per ring
197  };
208  AliFMDFloatMap fSumPrimary;
210  AliFMDFloatMap fSumSecondary;
212  TArrayF fIp;
218  TNtuple* fTuple;
219 
220  ClassDef(AliFMDMCHitEnergyFitter,1);
221 };
222 
223 #endif
224 // Local Variables:
225 // mode: C++
226 // End:
virtual Bool_t AccumulateHits(const AliMCEvent &mcInput, const TClonesArray &hits)
double Double_t
Definition: External.C:58
virtual void SetupForData(const TAxis &eAxis, const TAxis &cAxis, Double_t maxDE=10, Int_t nDEbins=300, Bool_t useIncrBin=true)
const char * title
Definition: MakeQAPdf.C:27
RingHistos & operator=(const RingHistos &o)
virtual Bool_t PostEvent(const AliESDEvent &esdInput)
virtual void CreateOutputObjects(TList *dir)
char Char_t
Definition: External.C:18
virtual void FillMC(UShort_t flag, Double_t eta, Double_t mult)
AliFMDEnergyFitter::RingHistos * CreateRingHistos(UShort_t d, Char_t r) const
TArrayD MakeIncreasingAxis(Int_t nBins, Double_t low, Double_t high) const
int Int_t
Definition: External.C:63
virtual Bool_t PreEvent(const AliMCEvent &mcInput)
Definition: External.C:220
unsigned short UShort_t
Definition: External.C:28
TObjArray * Fit(TList *dir, Double_t lowCut, UShort_t nParticles, UShort_t minEntries, UShort_t minusBins, Double_t relErrorCut, Double_t chi2nuCut, Double_t minWeight, Double_t regCut, EResidualMethod residuals) const
bool Bool_t
Definition: External.C:53
AliFMDMCHitEnergyFitter & operator=(const AliFMDMCHitEnergyFitter &)
TDirectoryFile * dir
virtual Bool_t Event(const AliESDEvent &esdInput, const AliMCEvent &mcInput, AliMCAuxHandler &handler)