AliPhysics  vAN-20150319 (55be083)
 All Classes Files Functions Variables Enumerations Enumerator Macros
AliAnalysisTaskTrigChEff.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKTRIGCHEFF_H
2 #define ALIANALYSISTASKTRIGCHEFF_H
3 
4 /* $Id$ */
5 
6 //
7 // Class for trigger chamber efficiency calculations
8 // and tests
9 //
10 // Author: Diego Stocco
11 //
12 
13 #include "AliVAnalysisMuon.h"
14 
15 class AliMuonTrackCuts;
16 class AliVParticle;
17 class TList;
18 class TObjArray;
19 class TString;
20 
21 class AliAnalysisTaskTrigChEff : public AliVAnalysisMuon {
22  public:
24  AliAnalysisTaskTrigChEff(const char *name, const AliMuonTrackCuts& cuts);
25  virtual ~AliAnalysisTaskTrigChEff();
26 
27  void Terminate(Option_t *option);
28  void FinishTaskOutput();
29 
31  void ProcessEvent(TString physSel, const TObjArray& selectTrigClasses, TString centrality);
32 
33  TList* GetEffHistoList(TString physSel, TString trigClassNames, TString centrality, TString trackSelection);
34 
35 // /// Use ghost tracks in calculations
36 // void SetUseGhostTracks(Bool_t useGhosts = kTRUE) { fUseGhosts = useGhosts; }
37 
38  private:
39 
42 
43  enum {
49  };
50 
51  enum {
57  };
58 
59  enum {
65  };
66 
67  enum {
71  };
72 
73  enum {
77  };
78 
79  TString GetHistoName(Int_t itype, Int_t icount, Int_t ichamber, Int_t itrackSel, Int_t imatch, Int_t imethod);
80  Bool_t FillEffHistoList(TString physSel, TString trigClassNames, TString centrality, TString trackSelection, TList* outList = 0x0);
81  void InitLocalKeys();
82 
83  TObjArray* fTrackSelKeys;
84  TObjArray* fCountTypeKeys;
85  TObjArray* fHistoTypeKeys;
86  TObjArray* fEffMethodKeys;
87  TObjArray* fMatchTrigKeys;
88 
89 // Bool_t fUseGhosts; ///< Flag to use also the trigger tracks not matching the tracker in eff. calculation
90  TList* fList;
91 
92  ClassDef(AliAnalysisTaskTrigChEff, 4); // Trigger chamber efficiencies
93 };
94 
95 #endif
TObjArray * fTrackSelKeys
Selection names.
void ProcessEvent(TString physSel, const TObjArray &selectTrigClasses, TString centrality)
Hit pattern from tracker track extrapolation.
TObjArray * fHistoTypeKeys
Base histogram name.
Check rejected tracks per board.
Check rejected tracks per board.
AliAnalysisTaskTrigChEff & operator=(const AliAnalysisTaskTrigChEff &)
TObjArray * fMatchTrigKeys
Match trigger names.
TList * GetEffHistoList(TString physSel, TString trigClassNames, TString centrality, TString trackSelection)
TObjArray * fCountTypeKeys
Count type keys.
ClassDef(AliAnalysisTaskTrigChEff, 4)
Counts per slat histogram index.
Counts per board histogram index.
Total number of track selection.
TString GetHistoName(Int_t itype, Int_t icount, Int_t ichamber, Int_t itrackSel, Int_t imatch, Int_t imethod)
Bool_t FillEffHistoList(TString physSel, TString trigClassNames, TString centrality, TString trackSelection, TList *outList=0x0)
Counts per cathode histogram index.
TList * fList
TList output object.
Non selected tracks (includes ghosts)
TObjArray * fEffMethodKeys
Efficiency methods keys.
Total number of efficiency methods.