2 // See implementation or Doxygen comments for more information
4 #ifndef ALIAODCENTRALMULT_H
5 #define ALIAODCENTRALMULT_H
7 * @file AliAODCentralMult.h
8 * @author Hans Hjersing Dalsgaard
9 * @date Wed Mar 23 13:57:24 2011
13 * @ingroup pwglf_forward_aod
20 * Class that contains the central multiplicity data per event
22 * This class contains a histogram of
24 * \frac{d^2N_{ch}}{d\eta d\phi}\quad,
26 * as well as a trigger mask for each analysed event.
28 * The eta acceptance of the event is stored in the underflow bins of
29 * the histogram. So to build the final histogram, one needs to
30 * correct for this acceptance (properly weighted by the events), and
31 * the vertex efficiency. This simply boils down to defining a 2D
32 * histogram and summing the event histograms in that histogram. One
33 * should of course also do proper book-keeping of the accepted event.
35 * @ingroup pwglf_forward
36 * @ingroup pwglf_forward_aod
38 class AliAODCentralMult : public TObject
45 * Used by ROOT I/O sub-system - do not use
51 * @param isMC Whether this was from MC or not
53 AliAODCentralMult(Bool_t isMC);
57 virtual ~AliAODCentralMult() {} // Destructor
61 * @param etaAxis Pseudo-rapidity axis
63 void Init(const TAxis& etaAxis);
65 * Get the @f$ d^2N_{ch}/d\eta d\phi@f$ histogram,
67 * @return @f$ d^2N_{ch}/d\eta d\phi@f$ histogram,
69 const TH2D& GetHistogram() const { return fHist; } // Get histogram
71 * Get the @f$ d^2N_{ch}/d\eta d\phi@f$ histogram,
73 * @return @f$ d^2N_{ch}/d\eta d\phi@f$ histogram,
75 TH2D& GetHistogram() { return fHist; } // Get histogram
77 * Clear Object between events
79 * @param opt option (not used)
82 void Clear(Option_t* opt);
88 void Browse(TBrowser* b);
94 Bool_t IsFolder() const { return kTRUE; } // Always true
98 * @param option Passed verbatim to TH2::Print
100 void Print(Option_t* option="") const;
103 * Get the name of the object
105 * @return Name of object
107 const Char_t* GetName() const { return (fIsMC ? "CentralClustersMC" : "CentralClusters"); }
110 Bool_t fIsMC; // Whether this is from MC
111 TH2D fHist; // Histogram of d^2N_{ch}/(deta dphi) for this event
113 ClassDef(AliAODCentralMult,1); // AOD forward multiplicity