AliPhysics  v5-06-40-01 (42bb456)
 All Classes Namespaces 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 class TH1;
21 
22 class AliAnalysisTaskTrigChEff : public AliVAnalysisMuon {
23  public:
25  AliAnalysisTaskTrigChEff(const char *name, const AliMuonTrackCuts& cuts);
26  virtual ~AliAnalysisTaskTrigChEff();
27 
28  void Terminate(Option_t *option);
29  void FinishTaskOutput();
30 
32  void ProcessEvent(TString physSel, const TObjArray& selectTrigClasses, TString centrality);
33 
34  TList* GetEffHistoList(TString physSel, TString trigClassNames, TString centrality, TString trackSelection);
35 
36 // /// Use ghost tracks in calculations
37 // void SetUseGhostTracks(Bool_t useGhosts = kTRUE) { fUseGhosts = useGhosts; }
38 
39  private:
40 
43 
44  enum {
50  };
51 
52  enum {
58  };
59 
60  enum {
66  };
67 
68  enum {
72  };
73 
74  enum {
78  };
79 
80  TString GetHistoName(Int_t itype, Int_t icount, Int_t ichamber, Int_t itrackSel, Int_t imatch, Int_t imethod);
81  Bool_t FillEffHistoList(TString physSel, TString trigClassNames, TString centrality, TString trackSelection, TList* outList );
82  void InitLocalKeys();
83  TH1* GetCountHisto ( Int_t itype, Int_t icount, Int_t ichamber, Int_t itrackSel, Int_t imatch, Int_t imethod );
84 
85  TObjArray* fTrackSelKeys;
86  TObjArray* fCountTypeKeys;
87  TObjArray* fHistoTypeKeys;
88  TObjArray* fEffMethodKeys;
89  TObjArray* fMatchTrigKeys;
90 
91 // Bool_t fUseGhosts; ///< Flag to use also the trigger tracks not matching the tracker in eff. calculation
92  TList* fList;
93 
94  ClassDef(AliAnalysisTaskTrigChEff, 4); // Trigger chamber efficiencies
95 };
96 
97 #endif
Bool_t FillEffHistoList(TString physSel, TString trigClassNames, TString centrality, TString trackSelection, TList *outList)
TObjArray * fTrackSelKeys
Selection names.
void ProcessEvent(TString physSel, const TObjArray &selectTrigClasses, TString centrality)
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.
TH1 * GetCountHisto(Int_t itype, Int_t icount, Int_t ichamber, Int_t itrackSel, Int_t imatch, Int_t imethod)
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)
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.