1 #ifndef ALIROOT_PWG2_FORWARD_ANALYSIS2_ALIFMDMCDENSITYCALCULATOR_H
2 #define ALIROOT_PWG2_FORWARD_ANALYSIS2_ALIFMDMCDENSITYCALCULATOR_H
3 #include "AliFMDDensityCalculator.h"
5 #include "AliForwardUtil.h"
11 * This class calculates the inclusive charged particle density
12 * in each for the 5 FMD rings based on the MC truth.
15 * - AliMCEvent MC truth event infromation
20 * @par Corrections used:
23 * @ingroup pwg2_forward
25 class AliFMDMCDensityCalculator : public AliFMDDensityCalculator
31 AliFMDMCDensityCalculator() : AliFMDDensityCalculator() {}
35 * @param name Name of object
37 AliFMDMCDensityCalculator(const char* name)
38 : AliFMDDensityCalculator(name)
43 * @param o Object to copy from
45 AliFMDMCDensityCalculator(const AliFMDMCDensityCalculator& o)
46 : AliFMDDensityCalculator(o)
51 virtual ~AliFMDMCDensityCalculator() {}
53 * Assignement operator
55 * @param o Object to assign from
57 * @return Reference to this object
59 AliFMDMCDensityCalculator& operator=(const AliFMDMCDensityCalculator& o);
63 * @param fmd AliESDFMD object (possibly) corrected for sharing
64 * @param hists Histogram cache
65 * @param vtxBin Vertex bin
66 * @param lowFlux Low flux flag.
68 * @return true on successs
70 virtual Bool_t Calculate(const AliESDFMD& fmd,
71 AliForwardUtil::Histos& hists,
72 UShort_t vtxBin, Bool_t lowFlux);
74 * Calculate the charged particle density from the MC track references.
76 * @param event MC event
77 * @param hists Histograms to fill
78 * @param vz Interaction z coordinate @f$ v_z@f$
79 * @param vtxBin bin corresponding to @f$ v_z@f$
81 * @return true on success
83 virtual Bool_t CalculateMC(const AliMCEvent& event,
84 AliForwardUtil::Histos& hists,
89 ClassDef(AliFMDMCDensityCalculator,1); // Calculate Nch density