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