AliPhysics  vAN-20150425 (2dcf1b0)
 All Classes Namespaces Files Functions Variables 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 - SUBATECH Nantes
12 
13 #include "AliAnalysisTaskSE.h"
14 #include "TArrayI.h"
15 
16 class TMap;
17 class TList;
18 class TObjArray;
19 class AliCounterCollection;
20 class AliMuonTrackCuts;
21 
22 class AliAnalysisTaskMuonQA : public AliAnalysisTaskSE {
23  public:
24 
26  AliAnalysisTaskMuonQA(const char *name);
27  virtual ~AliAnalysisTaskMuonQA();
28 
29  virtual void UserCreateOutputObjects();
30  virtual void UserExec(Option_t *);
31  virtual void Terminate(Option_t *);
32  virtual void NotifyRun();
33 
35  void SelectCharge(Short_t charge = 0) {fSelectCharge = charge;}
36 
38  void SelectPhysics(Bool_t flag = kTRUE) {fSelectPhysics = flag;}
39 
43  void SelectTrigger(Bool_t flag = kTRUE, UInt_t mask = AliVEvent::kMUON) {fSelectTrigger = flag; fTriggerMask = mask;}
44 
46  void SelectMatched(Bool_t flag = kTRUE) {fSelectMatched = flag;}
47 
49  void ApplyAccCut(Bool_t flag = kTRUE) { fApplyAccCut = flag; }
50 
51  // Set track cuts
52  void SetTrackCuts ( AliMuonTrackCuts* trackCuts );
54  AliMuonTrackCuts* GetTrackCuts() { return fTrackCuts; }
55 
56  private:
57 
62 
63  Double_t ChangeThetaRange(Double_t theta);
64 
65  TList* BuildListOfAllTriggerCases(TString& FiredTriggerClasses);
66 
67  private:
68 
69  enum eList {
70  kNTracks = 0,
71  kMatchTrig = 1,
72  kSign = 2,
73  kDCA = 3,
74  kP = 4,
75  kPMuPlus = 5,
76  kPMuMinus = 6,
77  kPt = 7,
78  kPtMuPlus = 8,
79  kPtMuMinus = 9,
80  kRapidity = 10,
81  kThetaX = 11,
82  kThetaY = 12,
83  kChi2 = 13,
84  kProbChi2 = 14,
87  kPtMatchLpt = 17,
88  kPtMatchHpt = 18,
93  kMuonTrig = 23
94  };
95 
96  enum eListExpert {
104  };
105 
106  enum eListNorm {
117  };
118 
119  TObjArray* fList;
120  TObjArray* fListExpert;
121  TObjArray* fListNorm;
122 
123  AliCounterCollection* fTrackCounters;
124  AliCounterCollection* fEventCounters;
125 
126  Short_t fSelectCharge;
127  Bool_t fSelectPhysics;
128  Bool_t fSelectTrigger;
129  UInt_t fTriggerMask;
130  Bool_t fSelectMatched;
131  Bool_t fApplyAccCut;
132 
133  AliMuonTrackCuts* fTrackCuts;
134  TArrayI fMuonTrigIndex;
135 
136  static const Int_t nCh;
137  static const Int_t nDE;
138  static const Float_t dMax[5];
139 
141 };
142 
143 #endif
144 
Int_t charge
cluster charge distribution in chamber i
virtual void Terminate(Option_t *)
virtual void UserExec(Option_t *)
cluster size distribution in chamber i
void SelectPhysics(Bool_t flag=kTRUE)
Select events passing the physics selection to fill histograms.
AliMuonTrackCuts * fTrackCuts
Track cuts.
number of clusters per chamber per track
static const Int_t nCh
number of tracking chambers
void SetTrackCuts(AliMuonTrackCuts *trackCuts)
Quality assurance of MUON ESDs.
static const Int_t nDE
number of DE
UInt_t fTriggerMask
Trigger mask to be used when selecting events.
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
TList * BuildListOfAllTriggerCases(TString &FiredTriggerClasses)
Double_t ChangeThetaRange(Double_t theta)
cluster size distribution per DE
distribution of probability of chi2
Bool_t fSelectTrigger
Fill histograms only with events passing the trigger selection.
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.
void ApplyAccCut(Bool_t flag=kTRUE)
Use only tracks passing the acceptance cuts (Rabs, eta)
AliCounterCollection * fEventCounters
event statistics
void SelectTrigger(Bool_t flag=kTRUE, UInt_t mask=AliVEvent::kMUON)
cluster position distribution in chamber i
number of clusters per chamber
ClassDef(AliAnalysisTaskMuonQA, 8)
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
Bool_t fSelectPhysics
Fill histograms only with events passing the physics selection.
virtual void UserCreateOutputObjects()