AliPhysics  2c6b7ad (2c6b7ad)
AliAODMultEventClass.h
Go to the documentation of this file.
1 #ifndef ALIAODMULTEVENTCLASS_H
2 #define ALIAODMULTEVENTCLASS_H
3 
4 #include <TObject.h>
5 class TAxis;
6 
8 {
9 public:
13  enum {
14  kV0M = 0x1,
15  kV0A = 0x2,
16  kV0C = 0x4,
17  kCND = 0x8,
18  kEq = 0x100
19  };
24  : fMult(-1),
25  fUtilV0M(-1),
26  fUtilV0A(-1),
27  fUtilV0C(-1),
28  fUtilV0MEq(-1),
29  fUtilV0AEq(-1),
30  fUtilV0CEq(-1),
31  fSelCND(-1),
32  fSelV0M(-1),
33  fSelV0A(-1),
34  fSelV0C(-1),
35  fSelV0MEq(-1),
36  fSelV0AEq(-1),
37  fSelV0CEq(-1)
38  {}
44  virtual const char* GetName() const { return "MultClass"; }
50  virtual void Clear(Option_t* option="");
56  virtual void Print(Option_t* option="") const;
57 
62  Int_t GetMultBin() const;
68  Int_t GetMult() const { return fMult; }
75  Float_t GetCND() const { return fSelCND; }
81  static const Int_t* GetBins();
87  static const TAxis* GetAxis();
88  /* @} */
100  Float_t GetCentrality(const TString& which) const;
110  Float_t GetCentrality(UShort_t which, Bool_t util) const;
111  /* @} */
116  void SetCentrality(UShort_t which, Bool_t util, Float_t c);
122  void SetMult(Int_t m) { fMult = m; }
124 protected:
125  Int_t fMult; // The reference multiplicity
126  Float_t fUtilV0M; // V0M centrality from AliPPVsMultUtils
127  Float_t fUtilV0A; // V0A centrality from AliPPVsMultUtils
128  Float_t fUtilV0C; // V0C centrality from AliPPVsMultUtils
129  Float_t fUtilV0MEq; // V0MEq centrality from AliPPVsMultUtils
130  Float_t fUtilV0AEq; // V0MEq centrality from AliPPVsMultUtils
131  Float_t fUtilV0CEq; // V0MEq centrality from AliPPVsMultUtils
133  Float_t fSelV0M; // V0M centrality from AliCentralitySelector
134  Float_t fSelV0A; // V0A centrality from AliCentralitySelector
135  Float_t fSelV0C; // V0C centrality from AliCentralitySelector
136  Float_t fSelV0MEq; // V0MEq centrality from AliCentralitySelector
137  Float_t fSelV0AEq; // V0MEq centrality from AliCentralitySelector
138  Float_t fSelV0CEq; // V0MEq centrality from AliCentralitySelector
139 
140  ClassDef(AliAODMultEventClass,1); // Multiplicity based pp event classes
141 };
142 
143 
144 #endif
145 // Local Variables:
146 // mode: C++
147 // End:
Float_t GetCentrality(const TString &which) const
virtual void Print(Option_t *option="") const
TCanvas * c
Definition: TestFitELoss.C:172
virtual void Clear(Option_t *option="")
int Int_t
Definition: External.C:63
virtual const char * GetName() const
float Float_t
Definition: External.C:68
void SetCentrality(UShort_t which, Bool_t util, Float_t c)
static const TAxis * GetAxis()
unsigned short UShort_t
Definition: External.C:28
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
static const Int_t * GetBins()