]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/muon/AliAnalysisTaskMuonQA.h
Addin new classes for gain equalization
[u/mrichter/AliRoot.git] / PWG3 / muon / AliAnalysisTaskMuonQA.h
CommitLineData
94ef1a28 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/// \ingroup muondep
7/// \class AliAnalysisTaskMuonQA
8/// \brief Quality assurance of MUON ESDs
9//Author: Philippe Pillot - SUBATECH Nantes
10
03ac5989 11class TMap;
12class TList;
94ef1a28 13class TObjArray;
14class AliCounterCollection;
15
16class AliAnalysisTaskMuonQA : public AliAnalysisTaskSE {
17public:
18
40be9f05 19 AliAnalysisTaskMuonQA();
20 AliAnalysisTaskMuonQA(const char *name);
94ef1a28 21 virtual ~AliAnalysisTaskMuonQA();
22
23 virtual void UserCreateOutputObjects();
24 virtual void UserExec(Option_t *);
25 virtual void Terminate(Option_t *);
26
b4f7418a 27 /// Select negative (<0), positive (>0) or all (==0) tracks to fill histograms
94ef1a28 28 void SelectCharge(Short_t charge = 0) {fSelectCharge = charge;}
b4f7418a 29
30 /// Select events passing the physics selection to fill histograms
94ef1a28 31 void SelectPhysics(Bool_t flag = kTRUE) {fSelectPhysics = flag;}
32
03ac5989 33 /// Select events belonging to at least one of the trigger classes selected by the mask to fill histograms:
34 /// - if the physics selection is used, apply the mask to the trigger word returned by the physics selection
35 /// - if not, apply the mask to the trigger word built by looking for triggers listed in "fSelectTriggerClass"
36 void SelectTrigger(Bool_t flag = kTRUE, UInt_t mask = AliVEvent::kMUON) {fSelectTrigger = flag; fTriggerMask = mask;}
b4f7418a 37
76e3d5d4 38 /// Select track matching the trigger to fill histograms
39 void SelectMatched(Bool_t flag = kTRUE) {fSelectMatched = flag;}
40
417d6f63 41 /// Use only tracks passing the acceptance cuts (Rabs, eta)
42 void ApplyAccCut(Bool_t flag = kTRUE) { fApplyAccCut = flag; }
43
94ef1a28 44private:
45
46 /// Not implemented
47 AliAnalysisTaskMuonQA(const AliAnalysisTaskMuonQA& rhs);
48 /// Not implemented
49 AliAnalysisTaskMuonQA& operator = (const AliAnalysisTaskMuonQA& rhs);
50
51 Double_t ChangeThetaRange(Double_t theta);
52
03ac5989 53 UInt_t BuildTriggerWord(TString& FiredTriggerClasses);
54
55 TList* BuildListOfTriggerCases(TString& FiredTriggerClasses);
56
94ef1a28 57private:
58
03ac5989 59 enum eList {
94ef1a28 60 kNTracks = 0, ///< number of tracks
61 kMatchTrig = 1, ///< number of tracks matched with trigger
62 kSign = 2, ///< track sign
63 kDCA = 3, ///< DCA distribution
64 kP = 4, ///< P distribution
03ac5989 65 kPMuPlus = 5, ///< P distribution of mu+
66 kPMuMinus = 6, ///< P distribution of mu-
67 kPt = 7, ///< Pt distribution
68 kPtMuPlus = 8, ///< Pt distribution of mu+
69 kPtMuMinus = 9, ///< Pt distribution of mu-
70 kRapidity = 10, ///< rapidity distribution
71 kThetaX = 11, ///< thetaX distribution
72 kThetaY = 12, ///< thetaY distribution
73 kChi2 = 13, ///< normalized chi2 distribution
74 kProbChi2 = 14, ///< distribution of probability of chi2
75 kNClustersPerTrack = 15, ///< number of clusters per track
76 kNChamberHitPerTrack = 16 ///< number of chamber hit per track
77 };
78
79 enum eListExpert {
80 kNClustersPerCh = 0, ///< number of clusters per chamber
81 kNClustersPerDE = 1, ///< number of clusters per DE
82 kClusterHitMapInCh = 2, ///< cluster position distribution in chamber i
83 kClusterChargeInCh = 12, ///< cluster charge distribution in chamber i
84 kClusterChargePerDE = 22, ///< cluster charge distribution per DE
85 kClusterSizeInCh = 23, ///< cluster size distribution in chamber i
86 kClusterSizePerDE = 33 ///< cluster size distribution per DE
87 };
88
89 enum eListNorm {
90 kClusterChargePerChMean = 0, ///< cluster charge per Ch: mean
91 kClusterChargePerChSigma = 1, ///< cluster charge per Ch: dispersion
92 kClusterChargePerDEMean = 2, ///< cluster charge per DE: mean
93 kClusterChargePerDESigma = 3, ///< cluster charge per DE: dispersion
94 kClusterSizePerChMean = 4, ///< cluster size per Ch: mean
95 kClusterSizePerChSigma = 5, ///< cluster size per Ch: dispersion
96 kClusterSizePerDEMean = 6, ///< cluster size per DE: mean
97 kClusterSizePerDESigma = 7, ///< cluster size per DE: dispersion
98 kNClustersPerChPerTrack = 8, ///< number of clusters per chamber per track
99 kNClustersPerDEPerTrack = 9 ///< number of clusters per DE per track
94ef1a28 100 };
101
102 TObjArray* fList; //!< List of output object for everybody
103 TObjArray* fListExpert; //!< List of output object for experts
40be9f05 104 TObjArray* fListNorm; //!< Normalized histograms
94ef1a28 105
106 AliCounterCollection* fTrackCounters; //!< track statistics
107 AliCounterCollection* fEventCounters; //!< event statistics
108
109 Short_t fSelectCharge; ///< Fill histograms only with negative/position tracks (0=all)
76e3d5d4 110 Bool_t fSelectPhysics; ///< Fill histograms only with events passing the physics selection
111 Bool_t fSelectTrigger; ///< Fill histograms only with events passing the trigger selection
112 UInt_t fTriggerMask; ///< Trigger mask to be used when selecting events
113 Bool_t fSelectMatched; ///< Fill histograms only with tracks matching the trigger
417d6f63 114 Bool_t fApplyAccCut; ///< use only tracks passing the acceptance cuts (Rabs, eta)
03ac5989 115
116 TMap* fTriggerClass; //!< map of trigger class name associated to short name
117 TList* fSelectTriggerClass; //!< list of trigger class that can be selected to fill histograms
94ef1a28 118
119 static const Int_t nCh; ///< number of tracking chambers
120 static const Int_t nDE; ///< number of DE
121 static const Float_t dMax[5]; ///< maximum diameter of each station
94ef1a28 122
417d6f63 123 ClassDef(AliAnalysisTaskMuonQA, 6);
94ef1a28 124};
125
126#endif
127