AliPhysics  d565ceb (d565ceb)
AliMCTruthdNdetaTask.h
Go to the documentation of this file.
1 //
2 // Task to analyse the AOD for for dN/deta in the forward regions
3 //
4 #ifndef ALIMCTRUTHDNDETATASK_H
5 #define ALIMCTRUTHDNDETATASK_H
6 
16 #include "AliBasedNdetaTask.h"
17 class TList;
18 class TH2D;
19 class TH1D;
20 
28 {
29 public:
40  AliMCTruthdNdetaTask(const char* name);
45  virtual ~AliMCTruthdNdetaTask() {}
51  virtual Bool_t Finalize();
52 protected:
65 
74  TH2D* GetHistogram(const AliAODEvent& aod, Bool_t mc);
80  virtual Int_t GetMarker() const { return GetMarkerStyle(kStar); }
86  virtual Int_t GetColor() const { return kGray+2; }
97  MakeCentralityBin(const char* name, Float_t l, Float_t h) const;
98 
107  {
108  public:
120  CentralityBin(const char* name, Float_t low, Float_t high)
121  : AliBasedNdetaTask::CentralityBin(name, low, high),
122  fSumTruth(0)
123  {}
130  : AliBasedNdetaTask::CentralityBin(other),
131  fSumTruth(other.fSumTruth)
132  {}
136  virtual ~CentralityBin() {}
143  CentralityBin& operator=(const CentralityBin&) { return *this; }
157  virtual Bool_t ProcessEvent(const AliAODForwardMult* forward,
158  UInt_t triggerMask,
159  Bool_t isZero,
160  Double_t vzMin,
161  Double_t vzMax,
162  const TH2D* data,
163  const TH2D* mc,
164  UInt_t filter,
165  Double_t weight);
184  virtual bool End(TList* sums,
185  TList* results,
186  UShort_t scheme,
187  Double_t trigEff,
188  Double_t trigEff0,
189  Bool_t rootProj,
190  Bool_t corrEmpty,
191  Int_t triggerMask,
192  Int_t marker,
193  Int_t color,
194  TList* mclist,
195  TList* truthlist);
196  protected:
197  TH2D* fSumTruth; // Sum of primary histograms
198  // ClassDef(CentralityBin,3); // A centrality bin
199  };
200  Bool_t fHasData; // whether we actually have data or not
201  ClassDef(AliMCTruthdNdetaTask,3); // Determine multiplicity in forward region
202 };
203 
204 #endif
205 //
206 // Local Variables:
207 // mode: C++
208 // End:
209 //
Int_t color[]
print message on plot with ok/not ok
virtual Bool_t ProcessEvent(const AliAODForwardMult *forward, UInt_t triggerMask, Bool_t isZero, Double_t vzMin, Double_t vzMax, const TH2D *data, const TH2D *mc, UInt_t filter, Double_t weight)
double Double_t
Definition: External.C:58
virtual Int_t GetMarker() const
TH2D * GetHistogram(const AliAODEvent &aod, Bool_t mc)
CentralityBin(const char *name, Float_t low, Float_t high)
AliBasedNdetaTask::CentralityBin * MakeCentralityBin(const char *name, Float_t l, Float_t h) const
static Int_t GetMarkerStyle(UShort_t bits)
AliMCTruthdNdetaTask & operator=(const AliMCTruthdNdetaTask &)
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
CentralityBin & operator=(const CentralityBin &)
float Float_t
Definition: External.C:68
Definition: External.C:228
Definition: External.C:212
virtual Int_t GetColor() const
virtual bool End(TList *sums, TList *results, UShort_t scheme, Double_t trigEff, Double_t trigEff0, Bool_t rootProj, Bool_t corrEmpty, Int_t triggerMask, Int_t marker, Int_t color, TList *mclist, TList *truthlist)
unsigned short UShort_t
Definition: External.C:28
bool Bool_t
Definition: External.C:53
CentralityBin(const CentralityBin &other)