AliPhysics  41af4b0 (41af4b0)
AliAODCentralMult.h
Go to the documentation of this file.
1 //
2 // See implementation or Doxygen comments for more information
3 //
4 #ifndef ALIAODCENTRALMULT_H
5 #define ALIAODCENTRALMULT_H
6 
16 #include <TObject.h>
17 #include <TH2D.h>
18 class TBrowser;
37 class AliAODCentralMult : public TObject
38 {
39 public:
43  enum {
45  kSecondary = (1 << 14),
47  kAcceptance = (1 << 16),
49  kEmpirical = (1 << 19)
50  };
66  virtual ~AliAODCentralMult() {} // Destructor
72  void Init(const TAxis& etaAxis);
78  const TH2D& GetHistogram() const { return fHist; } // Get histogram
84  TH2D& GetHistogram() { return fHist; } // Get histogram
91  void Clear(Option_t* opt);
97  void Browse(TBrowser* b);
103  Bool_t IsFolder() const { return kTRUE; } // Always true
104 
105  Bool_t IsSecondaryCorrected() const { return TestBit(kSecondary); }
106  Bool_t IsAcceptanceCorrected() const { return TestBit(kAcceptance); }
107  Bool_t IsEmpiricalCorrected() const { return TestBit(kEmpirical); }
113  void Print(Option_t* option="") const;
114 
120  const Char_t* GetName() const { return (fIsMC ? "CentralClustersMC" : "CentralClusters"); }
121 
122 protected:
124  Bool_t fIsMC; // Whether this is from MC
126  TH2D fHist; // Histogram of d^2N_{ch}/(deta dphi) for this event
127 
128  ClassDef(AliAODCentralMult,2); // AOD forward multiplicity
129 };
130 
131 #endif
132 // Local Variables:
133 // mode: C++
134 // End:
135 
void Print(Option_t *option="") const
void Browse(TBrowser *b)
Bool_t IsSecondaryCorrected() const
char Char_t
Definition: External.C:18
const Char_t * GetName() const
void Init(const TAxis &etaAxis)
virtual ~AliAODCentralMult()
Definition: External.C:228
Bool_t IsEmpiricalCorrected() const
const TH2D & GetHistogram() const
Bool_t isMC
Bool_t IsFolder() const
Bool_t IsAcceptanceCorrected() const
void Clear(Option_t *opt)
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53