2 // This class inspects the event
4 #ifndef ALIFMDMCEVENTINSPECTOR_H
5 #define ALIFMDMCEVENTINSPECTOR_H
6 #include "AliFMDEventInspector.h"
10 * This class inspects the event
13 * - AliESDFMD object possibly corrected for sharing
16 * - A histogram of v_z of events with triggers.
17 * - A histogram of v_z of events with vertex and triggers
18 * - A histogram of trigger counters
20 * Note, that these are added to the master output list
22 * @par Corrections used:
25 * @ingroup pwg2_forward_algo
27 class AliFMDMCEventInspector : public AliFMDEventInspector
33 AliFMDMCEventInspector();
37 * @param name Name of object
39 AliFMDMCEventInspector(const char* name);
43 * @param o Object to copy from
45 AliFMDMCEventInspector(const AliFMDMCEventInspector& o);
49 virtual ~AliFMDMCEventInspector();
51 * Assignement operator
53 * @param o Object to assign from
55 * @return Reference to this object
57 AliFMDMCEventInspector& operator=(const AliFMDMCEventInspector&);
60 * Initialize the object
62 * @param vtxAxis Vertex axis in use
64 void Init(const TAxis& vtxAxis);
66 * Process MC truth event. Note, returned values are the MC truth
69 * @param event Input event
70 * @param triggers On return, the triggers fired
71 * @param lowFlux On return, true if the event is considered a low-flux
72 * event (according to the setting of fLowFluxCut)
73 * @param ivz On return, the found vertex bin (1-based). A zero
74 * means outside of the defined vertex range
75 * @param vz On return, the z position of the interaction
76 * @param cent On return, the centrality (in percent) or < 0
79 * @return 0 (or kOk) on success, otherwise a bit mask of error codes
81 UInt_t ProcessMC(AliMCEvent* event,
89 * Read centrality from event
92 * @param cent On return, the centrality or negative if not found
94 * @return False on error, true otherwise
96 virtual Bool_t ReadCentrality(const AliESDEvent* esd, Double_t& cent);
98 TH1F* fHVertex; // Histogram of vertex
99 TH1F* fHPhiR; // Histogram of event plane
100 TH1F* fHB; // Histogram of impact parameter
101 ClassDef(AliFMDMCEventInspector,1); // Inspect the event