4 #include "AliESDEvent.h"
5 #include "AliAODEvent.h"
7 class AliAnalysisTaskTrigChEff : public AliAnalysisTask {
9 AliAnalysisTaskTrigChEff(const char *name = "AliAnalysisTaskTrigChEff");
10 virtual ~AliAnalysisTaskTrigChEff() {}
12 virtual void ConnectInputData(Option_t *);
13 virtual void CreateOutputObjects();
14 virtual void Exec(Option_t *option);
15 virtual void Terminate(Option_t *);
17 void SetUseGhostTracks(Bool_t useGhosts = kTRUE) { fUseGhosts = useGhosts; }
24 AliAnalysisTaskTrigChEff(const AliAnalysisTaskTrigChEff& rhs);
26 AliAnalysisTaskTrigChEff& operator = (const AliAnalysisTaskTrigChEff& rhs);
28 AliESDEvent* fESD; //!< ESDevent object
29 Bool_t fUseGhosts; //!< Flag to use also the trigger tracks not matching the tracker in eff. calculation
31 TList* fList; //TList output object
34 kNcathodes = 2, ///< Number of cathodes
35 kNchambers = 4, ///< Number of chambers
36 kNplanes = 8, ///< Number of planes
37 kNslats = 18 ///< Number of slats
40 enum {kAllChEff, kChNonEff, kNcounts};
43 kHtracksInSlat = 0, ///< Tracks in slat histogram index
44 kHtracksInBoard = 1, ///< Tracks in board histogram index
45 kHchamberAllEff = 2, ///< N44 per cathode histogram index
46 kHchamberNonEff = 4, ///< N33 per cathode histogram index
47 kHslatAllEff = 6, ///< N44 per slat histogram index
48 kHslatNonEff = 14, ///< N33 per slat histogram index
49 kHboardAllEff = 22, ///< N44 per board histogram index
50 kHboardNonEff = 30, ///< N33 per board histogram index
51 kHthetaX = 38, ///< Angular distribution theta_x
52 kHthetaY = 39 ///< Angular distribution theta_y
55 /// Given cathode and chamber, return plane number
56 Int_t GetPlane(Int_t cathode, Int_t chamber) { return kNchambers*cathode + chamber; }
58 ClassDef(AliAnalysisTaskTrigChEff, 0); // Single muon analysis