]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIANALYSISTASKTRIGCHEFF_H | |
2 | #define ALIANALYSISTASKTRIGCHEFF_H | |
3 | ||
4 | /* $Id$ */ | |
5 | ||
6 | /// \ingroup "PWG3muon" | |
7 | /// \class AliAnalysisTaskTrigChEff | |
8 | /// \brief Analysis task for trigger chamber efficiency determination | |
9 | /// | |
10 | // Author Diego Stocco | |
11 | ||
12 | #include "AliAnalysisTaskSE.h" | |
13 | ||
14 | class TList; | |
15 | ||
16 | class AliAnalysisTaskTrigChEff : public AliAnalysisTaskSE { | |
17 | public: | |
18 | AliAnalysisTaskTrigChEff(); | |
19 | AliAnalysisTaskTrigChEff(const char *name); | |
20 | virtual ~AliAnalysisTaskTrigChEff(); | |
21 | ||
22 | virtual void UserCreateOutputObjects(); | |
23 | virtual void UserExec(Option_t *option); | |
24 | virtual void Terminate(Option_t *); | |
25 | ||
26 | /// Use ghost tracks in calculations | |
27 | void SetUseGhostTracks(Bool_t useGhosts = kTRUE) { fUseGhosts = useGhosts; } | |
28 | ||
29 | protected: | |
30 | void ResetHistos(); | |
31 | ||
32 | private: | |
33 | /// Not implemented | |
34 | AliAnalysisTaskTrigChEff(const AliAnalysisTaskTrigChEff& rhs); | |
35 | /// Not implemented | |
36 | AliAnalysisTaskTrigChEff& operator = (const AliAnalysisTaskTrigChEff& rhs); | |
37 | ||
38 | Bool_t fUseGhosts; ///< Flag to use also the trigger tracks not matching the tracker in eff. calculation | |
39 | ||
40 | TList* fList; //!<TList output object | |
41 | ||
42 | enum { | |
43 | kNcathodes = 2, ///< Number of cathodes | |
44 | kNchambers = 4, ///< Number of chambers | |
45 | kNslats = 18 ///< Number of slats | |
46 | }; | |
47 | ||
48 | enum { | |
49 | kBendingEff, ///< Bending plane fired | |
50 | kNonBendingEff, ///< Non-bending plane fired | |
51 | kBothPlanesEff, ///< Both planes fired | |
52 | kAllTracks, ///< tracks used for calculation | |
53 | kNcounts ///< Number of count type | |
54 | }; | |
55 | ||
56 | enum { | |
57 | kHchamberEff, ///< Counts per cathode histogram index | |
58 | kHslatEff, ///< Counts per slat histogram index | |
59 | kHboardEff, ///< Counts per board histogram index | |
60 | kHcheckBoard ///< Check rejected tracks per board | |
61 | }; | |
62 | ||
63 | Int_t GetHistoIndex(Int_t histoType, Int_t countType=-1, | |
64 | Int_t chamber=-1); | |
65 | ||
66 | ClassDef(AliAnalysisTaskTrigChEff, 1); // Trigger chamber efficiency analysis | |
67 | }; | |
68 | ||
69 | #endif | |
70 |