AliPhysics  a0db429 (a0db429)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AliAnalysisTaskMuonQA.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKMUONQA_H
2 #define ALIANALYSISTASKMUONQA_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /* $Id$ */
7 
11 //Author: Philippe Pillot / Cynthia Hadjidakis
12 
13 #include "AliAnalysisTaskSE.h"
14 #include "TArrayI.h"
15 
16 class TMap;
17 class TList;
18 class TObjArray;
19 class AliCounterCollection;
20 class AliMuonEventCuts;
21 class AliMuonTrackCuts;
22 
23 class AliAnalysisTaskMuonQA : public AliAnalysisTaskSE {
24  public:
25 
27  AliAnalysisTaskMuonQA(const char *name);
28  virtual ~AliAnalysisTaskMuonQA();
29 
30  virtual void UserCreateOutputObjects();
31  virtual void UserExec(Option_t *);
32  virtual void Terminate(Option_t *);
33  virtual void NotifyRun();
34 
36  void SelectCharge(Short_t charge = 0) {fSelectCharge = charge;}
37 
39  void SelectEvent(Bool_t flag = kTRUE) {fSelectEvent = flag;}
40 
42  void SelectMatched(Bool_t flag = kTRUE) {fSelectMatched = flag;}
43 
45  void ApplyAccCut(Bool_t flag = kTRUE) { fApplyAccCut = flag; }
46 
47  // Set track cuts
48  void SetTrackCuts ( AliMuonTrackCuts* trackCuts );
50  AliMuonTrackCuts* GetTrackCuts() { return fTrackCuts; }
52  AliMuonEventCuts* GetEventCuts() { return fEventCuts;}
53 
54  private:
55 
60 
61  Double_t ChangeThetaRange(Double_t theta);
62 
63  TList* BuildListOfTriggers(const TObjArray*);
64 
65  private:
66 
67  enum eList {
68  kNTracks = 0,
69  kMatchTrig = 1,
70  kSign = 2,
71  kDCA = 3,
72  kP = 4,
73  kPMuPlus = 5,
74  kPMuMinus = 6,
75  kPt = 7,
76  kPtMuPlus = 8,
77  kPtMuMinus = 9,
78  kRapidity = 10,
79  kThetaX = 11,
80  kThetaY = 12,
81  kChi2 = 13,
82  kProbChi2 = 14,
85  kPtMatchLpt = 17,
86  kPtMatchHpt = 18,
91  kMuonTrig = 23
92  };
93 
94  enum eListExpert {
102  };
103 
104  enum eListNorm {
115  };
116 
117  TObjArray* fList;
118  TObjArray* fListExpert;
119  TObjArray* fListNorm;
120 
121  AliCounterCollection* fTrackCounters;
122  AliCounterCollection* fEventCounters;
123 
124  Short_t fSelectCharge;
125  Bool_t fSelectEvent;
126  Bool_t fSelectMatched;
127  Bool_t fApplyAccCut;
128 
129  AliMuonEventCuts* fEventCuts;
130  AliMuonTrackCuts* fTrackCuts;
131  TArrayI fMuonTrigIndex;
132 
133  static const Int_t nCh;
134  static const Int_t nDE;
135  static const Float_t dMax[5];
136 
138 };
139 
140 #endif
141 
Int_t charge
cluster charge distribution in chamber i
ClassDef(AliAnalysisTaskMuonQA, 9)
virtual void Terminate(Option_t *)
virtual void UserExec(Option_t *)
cluster size distribution in chamber i
AliMuonTrackCuts * fTrackCuts
Track cuts.
number of clusters per chamber per track
static const Int_t nCh
number of tracking chambers
AliMuonEventCuts * fEventCuts
Event cuts.
void SetTrackCuts(AliMuonTrackCuts *trackCuts)
Quality assurance of MUON ESDs.
AliMuonEventCuts * GetEventCuts()
Get event cuts.
static const Int_t nDE
number of DE
void SelectEvent(Bool_t flag=kTRUE)
Select events passing the AliMuonEventCuts as defined by the task to fill histograms.
Pt distribution of mu+ match Hpt.
void SelectMatched(Bool_t flag=kTRUE)
Select track matching the trigger to fill histograms.
Pt distribution of mu- match Lpt.
TObjArray * fListExpert
List of output object for experts.
static const Float_t dMax[5]
maximum diameter of each station
TArrayI fMuonTrigIndex
Combined muon trigger index.
TObjArray * fListNorm
Normalized histograms.
AliAnalysisTaskMuonQA & operator=(const AliAnalysisTaskMuonQA &rhs)
Not implemented.
Pt distribution of mu+ match Lpt.
TObjArray * fList
List of output object for everybody.
cluster charge distribution per DE
Double_t ChangeThetaRange(Double_t theta)
cluster size distribution per DE
distribution of probability of chi2
Bool_t fApplyAccCut
use only tracks passing the acceptance cuts (Rabs, eta)
AliCounterCollection * fTrackCounters
track statistics
void SelectCharge(Short_t charge=0)
Select negative (<0), positive (>0) or all (==0) tracks to fill histograms.
Bool_t fSelectMatched
Fill histograms only with tracks matching the trigger.
TList * BuildListOfTriggers(const TObjArray *)
void ApplyAccCut(Bool_t flag=kTRUE)
Use only tracks passing the acceptance cuts (Rabs, eta)
Bool_t fSelectEvent
Fill histograms only with events passing the AliMuonEventCuts selection.
AliCounterCollection * fEventCounters
event statistics
cluster position distribution in chamber i
number of clusters per chamber
Pt distribution of mu- match Hpt.
AliMuonTrackCuts * GetTrackCuts()
Get track cuts.
normalized chi2 distribution
Short_t fSelectCharge
Fill histograms only with negative/position tracks (0=all)
number of tracks matched with trigger
virtual void UserCreateOutputObjects()