]>
Commit | Line | Data |
---|---|---|
fdceab34 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | //----------------------------------------------------------------------- | |
17 | // This class compares the global reconstruction with the TPConly reconstruction | |
18 | // Author : Marta Verweij - UU | |
19 | //----------------------------------------------------------------------- | |
20 | ||
21 | #ifndef ALIPWG4HIGHPTQATPCONLY_H | |
22 | #define ALIPWG4HIGHPTQATPCONLY_H | |
23 | ||
24 | #include "AliAnalysisTask.h" | |
25 | ||
26 | class TH1F; | |
27 | class TH2F; | |
28 | class TH3F; | |
29 | class TList; | |
30 | class AliESDEvent; | |
f4d11ac8 | 31 | class AliESDfriend; |
32 | class AliESDfriendTrack; | |
33 | class AliMCEvent; | |
b5cc0c6d | 34 | class AliVEvent; |
fdceab34 | 35 | class AliESDtrackCuts; |
65e8ecdd | 36 | class AliESDtrack; |
fdceab34 | 37 | |
38 | class AliPWG4HighPtQATPConly: public AliAnalysisTask { | |
39 | ||
40 | public: | |
41 | AliPWG4HighPtQATPConly(); | |
42 | AliPWG4HighPtQATPConly(const char *name); | |
43 | ~AliPWG4HighPtQATPConly() {;} | |
44 | ||
45 | virtual void ConnectInputData(Option_t *); | |
46 | virtual void CreateOutputObjects(); | |
47 | virtual void Exec(Option_t *option); | |
65e8ecdd | 48 | Bool_t IsCosmic(const AliESDtrack* track1 = 0x0, Int_t trackNumber = 0, Double_t ptMin = 6.); |
fdceab34 | 49 | virtual void Terminate(Option_t *); |
50 | ||
51 | void SetCuts(AliESDtrackCuts* trackCuts) {fTrackCuts = trackCuts;} | |
52 | void SetCutsITS(AliESDtrackCuts* trackCutsITS) {fTrackCutsITS = trackCutsITS;} | |
65e8ecdd | 53 | void SetMaxCosmicAngle(Double_t angle) {fMaxCosmicAngle = angle;} |
fdceab34 | 54 | |
55 | protected: | |
56 | ||
57 | private: | |
58 | ||
59 | void InitHistPointers(); | |
60 | AliPWG4HighPtQATPConly(const AliPWG4HighPtQATPConly&); | |
61 | AliPWG4HighPtQATPConly& operator=(const AliPWG4HighPtQATPConly&); | |
62 | ||
63 | AliESDEvent *fESD; //! ESD object | |
f4d11ac8 | 64 | AliESDfriend *fESDfriend; //! ESD friend object |
65 | AliMCEvent *fMC; //! MC event object | |
fdceab34 | 66 | AliESDtrackCuts *fTrackCuts; // TrackCuts for global vs TPConly comparison |
67 | AliESDtrackCuts *fTrackCutsITS; // TrackCuts including ITSrefit | |
fdceab34 | 68 | |
65e8ecdd | 69 | Double_t fMaxCosmicAngle; // Max deviation from pi (angle between two tracks) in case of cosmic candidate |
70 | ||
b5cc0c6d | 71 | TH1F *fNEventAll; //! Event counter |
72 | TH1F *fNEventSel; //! Event counter: Selected events for analysis | |
fdceab34 | 73 | TH1F *fPtAll; //! Pt spectrum all charged particles |
74 | TH1F *fPtSel; //! Pt spectrum all selected charged particles by fTrackCuts | |
75 | TH2F *fPtAllminPtTPCvsPtAll; //! Momentum resolution (global vs TPConly) | |
76 | TH3F *fPtAllminPtTPCvsPtAllNPointTPC; //! Momentum resolution vs NPointTPC | |
65e8ecdd | 77 | TH3F *fPtAllminPtTPCvsPtAllNPointTPCS; //! Momentum resolution vs NPointTPCShared/NPointTPC |
fdceab34 | 78 | TH3F *fPtAllminPtTPCvsPtAllDCAR; //! Momentum resolution vs DCAR |
79 | TH3F *fPtAllminPtTPCvsPtAllDCAZ; //! Momentum resolution vs DCAZ | |
80 | TH3F *fPtAllminPtTPCvsPtAllPhi; //! Momentum resolution vs Phi | |
81 | TH3F *fPtAllminPtTPCvsPtAllNPointITS; //! Momentum resolution vs NPointITS | |
82 | TH3F *fPtAllminPtTPCvsPtAllNSigmaToVertex; //! Momentum resolution vs NSigmaToVertes | |
83 | TH3F *fPtAllminPtTPCvsPtAllChi2C; //! Momentum resolution vs Chi2Constrained | |
84 | TH3F *fPtAllminPtTPCvsPtAllRel1PtUncertainty; //! Momentum resolution vs relUncertainty1Pt | |
f4d11ac8 | 85 | TH3F *fPtAllminPtTPCvsPtAllChi2PerNClusTPC; //! Momentum resolution vs Chi2PerNClusTPC |
86 | TH3F *fPtAllminPtTPCvsPtAllChi2PerNClusITS; //! Momentum resolution vs Chi2PerNClusITS | |
65e8ecdd | 87 | |
f4d11ac8 | 88 | TH2F *fEtaPhiOutliers; //! Eta Phi for outliers in momentum resolution |
65e8ecdd | 89 | |
f4d11ac8 | 90 | TH1F *fPtSelITSouter; //! Pt at ITS outer wall for all selected charged particles by fTrackCuts |
91 | TH2F *fPtITSouterminPtTPCvsPtAll; //! Momentum resolution (global vs ITSouter-TPCinner) | |
92 | TH3F *fPtITSouterminPtTPCvsPtAllNPointTPC; //! Momentum resolution vs NPointTPC | |
65e8ecdd | 93 | TH3F *fPtITSouterminPtTPCvsPtAllNPointTPCS; //! Momentum resolution vs NPointTPCS |
f4d11ac8 | 94 | TH3F *fPtITSouterminPtTPCvsPtAllDCAR; //! Momentum resolution vs DCAR |
95 | TH3F *fPtITSouterminPtTPCvsPtAllDCAZ; //! Momentum resolution vs DCAZ | |
96 | TH3F *fPtITSouterminPtTPCvsPtAllPhi; //! Momentum resolution vs Phi | |
97 | TH3F *fPtITSouterminPtTPCvsPtAllNPointITS; //! Momentum resolution vs NPointITS | |
98 | TH3F *fPtITSouterminPtTPCvsPtAllNSigmaToVertex; //! Momentum resolution vs NSigmaToVertes | |
99 | TH3F *fPtITSouterminPtTPCvsPtAllChi2C; //! Momentum resolution vs Chi2Constrained | |
100 | TH3F *fPtITSouterminPtTPCvsPtAllRel1PtUncertainty; //! Momentum resolution vs relUncertainty1Pt | |
101 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusTPC; //! Momentum resolution vs Chi2PerNClusTPC | |
102 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITS; //! Momentum resolution vs Chi2PerNClusITS | |
103 | ||
3adc85ec | 104 | TH2F *fPtITSouterminPtTPCvsPtAllITSLayer0; //! Track has at least 1st SPD layer |
105 | TH2F *fPtITSouterminPtTPCvsPtAllITSLayer1; //! Track has at least 2nd SPD layer and not 1st SPD | |
106 | TH2F *fPtITSouterminPtTPCvsPtAllITSLayer2; //! Track has at least 1st SDD layer and not SPD layers | |
107 | TH2F *fPtITSouterminPtTPCvsPtAllITSLayer3; //! Track has at least 1st SDD layer and not SPD layers and not 1st SDD | |
108 | TH2F *fPtITSouterminPtTPCvsPtAllITSLayer4; //! Track has at least 1st SSD layer and not SPD or SDD layers | |
109 | TH2F *fPtITSouterminPtTPCvsPtAllITSLayer5; //! Track has at least 1st SSD layer and not SPD or SDD layers or 1st SSD | |
110 | ||
111 | TH2F *fPtITSouterminPtTPCvsPtAllNoSPD; //! Track has no signal in SPD layers | |
112 | TH2F *fPtITSouterminPtTPCvsPtAllNoSDD; //! Track has no signal in SDD layers | |
113 | TH2F *fPtITSouterminPtTPCvsPtAllNoSSD; //! Track has no signal in SSD layers | |
114 | ||
115 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSLayer0; //! Track has at least 1st SPD layer | |
116 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSLayer1; //! Track has at least 2nd SPD layer and not 1st SPD | |
117 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSLayer2; //! Track has at least 1st SDD layer and not SPD layers | |
118 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSLayer3; //! Track has at least 1st SDD layer and not SPD layers and not 1st SDD | |
119 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSLayer4; //! Track has at least 1st SSD layer and not SPD or SDD layers | |
120 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSLayer5; //! Track has at least 1st SSD layer and not SPD or SDD layers or 1st SSD | |
121 | ||
122 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSNoSPD; //! Track has no signal in SPD layers | |
123 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSNoSDD; //! Track has no signal in SDD layers | |
124 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSNoSSD; //! Track has no signal in SSD layers | |
fdceab34 | 125 | |
126 | TList *fHistList; //! List of Histograms | |
127 | ||
128 | TH1F *fPtAllTPC; //! Pt spectrum all charged particles | |
129 | TH1F *fPtSelTPC; //! Pt spectrum all selected charged particles by fTrackCuts | |
130 | TH1F *fPtSelTPCITS; //! Pt spectrum all selected charged particles by fTrackCutsITS | |
131 | TList *fHistListTPC; //! List of Histograms | |
132 | ||
133 | TH1F *fPtSelITS; //! Pt spectrum all selected charged particles by fTrackCutsITS | |
134 | TH2F *fPtITSminPtTPCvsPtITS; //! Momentum resolution (global with ITSrefit vs TPConly) | |
135 | TH3F *fPtITSminPtTPCvsPtITSNPointTPC; //! Momentum resolution vs NPointTPC | |
65e8ecdd | 136 | TH3F *fPtITSminPtTPCvsPtITSNPointTPCS; //! Momentum resolution vs NPointTPCS |
fdceab34 | 137 | TH3F *fPtITSminPtTPCvsPtITSDCAR; //! Momentum resolution vs DCAR |
138 | TH3F *fPtITSminPtTPCvsPtITSDCAZ; //! Momentum resolution vs DCAZ | |
139 | TH3F *fPtITSminPtTPCvsPtITSPhi; //! Momentum resolution vs Phi | |
140 | TH3F *fPtITSminPtTPCvsPtITSNPointITS; //! Momentum resolution vs NPointITS | |
141 | TH3F *fPtITSminPtTPCvsPtITSNSigmaToVertex; //! Momentum resolution vs NSigmaToVertex | |
142 | TH3F *fPtITSminPtTPCvsPtITSChi2C; //! Momentum resolution vs Chi2Constrained | |
143 | TH3F *fPtITSminPtTPCvsPtITSRel1PtUncertainty; //! Momentum resolution vs relUncertainty1Pt | |
f4d11ac8 | 144 | TH3F *fPtITSminPtTPCvsPtITSChi2PerNClusTPC; //! Momentum resolution vs Chi2PerNClusTPC |
145 | TH3F *fPtITSminPtTPCvsPtITSChi2PerNClusITS; //! Momentum resolution vs Chi2PerNClusITS | |
146 | ||
f4d11ac8 | 147 | TH3F *fPtRel1PtUncertaintyChi2PerClusTPC; //! Global Pt vs relUncertainty1Pt vs Chi2PerClusTPC |
65e8ecdd | 148 | TH3F *fPtNPointTPCSChi2PerClusTPC; //! Global Pt vs NPointTPCShared/NPointTPC vs Chi2PerClusTPC |
149 | TH3F *fPtNPointTPCSRel1PtUncertainty; //! Global Pt vs NPointTPCShared/NPointTPC vs relUncertainty1Pt | |
3adc85ec | 150 | TH3F *fPtRel1PtUncertaintyChi2PerClusTPCSharedSel; //! Global Pt vs relUncertainty1Pt vs Chi2PerClusTPC for NPointTPCShared/NPointTPC>0.05 |
fdceab34 | 151 | |
152 | TList *fHistListITS; //! List of Histograms | |
153 | ||
65e8ecdd | 154 | TH1F *fPtCosmicCandidates; //! Cosmic Candidates |
155 | TH1F *fDeltaPtCosmicCandidates; //! Cosmic Candidates Delta Pt | |
156 | TH1F *fDeltaPhi; //! Cosmic Candidates Delta Phi | |
157 | TH1F *fDeltaEta; //! Cosmic Candidates Delta Eta | |
158 | ||
159 | TList *fHistListCosmics; //! List of Histograms for cosmic candidates | |
160 | ||
fdceab34 | 161 | ClassDef(AliPWG4HighPtQATPConly,1) |
162 | ||
163 | }; | |
164 | #endif |