]>
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; | |
b5cc0c6d | 33 | class AliVEvent; |
fdceab34 | 34 | class AliESDtrackCuts; |
65e8ecdd | 35 | class AliESDtrack; |
fdceab34 | 36 | |
37 | class AliPWG4HighPtQATPConly: public AliAnalysisTask { | |
38 | ||
39 | public: | |
40 | AliPWG4HighPtQATPConly(); | |
41 | AliPWG4HighPtQATPConly(const char *name); | |
42 | ~AliPWG4HighPtQATPConly() {;} | |
43 | ||
cc89bb69 | 44 | virtual void LocalInit(); |
fdceab34 | 45 | virtual void ConnectInputData(Option_t *); |
46 | virtual void CreateOutputObjects(); | |
47 | virtual void Exec(Option_t *option); | |
48 | virtual void Terminate(Option_t *); | |
49 | ||
cc89bb69 | 50 | void SetCutType(Int_t ctype) {fCutType = ctype;} |
fdceab34 | 51 | void SetCuts(AliESDtrackCuts* trackCuts) {fTrackCuts = trackCuts;} |
52 | void SetCutsITS(AliESDtrackCuts* trackCutsITS) {fTrackCutsITS = trackCutsITS;} | |
b1cd0099 | 53 | void SetPtMax(Float_t ptmax) {fPtMax = ptmax;} |
fdceab34 | 54 | |
cc89bb69 | 55 | Int_t GetCutType() {return fCutType;} |
b1cd0099 | 56 | Float_t GetPtMax() {return fPtMax;} |
cc89bb69 | 57 | |
fdceab34 | 58 | protected: |
59 | ||
60 | private: | |
61 | ||
62 | void InitHistPointers(); | |
63 | AliPWG4HighPtQATPConly(const AliPWG4HighPtQATPConly&); | |
64 | AliPWG4HighPtQATPConly& operator=(const AliPWG4HighPtQATPConly&); | |
65 | ||
66 | AliESDEvent *fESD; //! ESD object | |
f4d11ac8 | 67 | AliESDfriend *fESDfriend; //! ESD friend object |
cc89bb69 | 68 | Int_t fCutType; // Cut Type set in AddTask* |
fdceab34 | 69 | AliESDtrackCuts *fTrackCuts; // TrackCuts for global vs TPConly comparison |
70 | AliESDtrackCuts *fTrackCutsITS; // TrackCuts including ITSrefit | |
b1cd0099 | 71 | |
72 | Float_t fPtMax; // Maximum pT for histograms | |
fdceab34 | 73 | |
b5cc0c6d | 74 | TH1F *fNEventAll; //! Event counter |
75 | TH1F *fNEventSel; //! Event counter: Selected events for analysis | |
fdceab34 | 76 | TH1F *fPtAll; //! Pt spectrum all charged particles |
77 | TH1F *fPtSel; //! Pt spectrum all selected charged particles by fTrackCuts | |
78 | TH2F *fPtAllminPtTPCvsPtAll; //! Momentum resolution (global vs TPConly) | |
9f54dd56 | 79 | TH3F *fPtAllminPtTPCvsPtAllEtaPos; //! Momentum resolution (global vs TPConly) vs Eta for positive particles |
80 | TH3F *fPtAllminPtTPCvsPtAllEtaNeg; //! Momentum resolution (global vs TPConly) vs Eta for negative particles | |
fdceab34 | 81 | TH3F *fPtAllminPtTPCvsPtAllNPointTPC; //! Momentum resolution vs NPointTPC |
82 | TH3F *fPtAllminPtTPCvsPtAllDCAR; //! Momentum resolution vs DCAR | |
83 | TH3F *fPtAllminPtTPCvsPtAllDCAZ; //! Momentum resolution vs DCAZ | |
84 | TH3F *fPtAllminPtTPCvsPtAllPhi; //! Momentum resolution vs Phi | |
85 | TH3F *fPtAllminPtTPCvsPtAllNPointITS; //! Momentum resolution vs NPointITS | |
86 | TH3F *fPtAllminPtTPCvsPtAllNSigmaToVertex; //! Momentum resolution vs NSigmaToVertes | |
87 | TH3F *fPtAllminPtTPCvsPtAllChi2C; //! Momentum resolution vs Chi2Constrained | |
88 | TH3F *fPtAllminPtTPCvsPtAllRel1PtUncertainty; //! Momentum resolution vs relUncertainty1Pt | |
f4d11ac8 | 89 | TH3F *fPtAllminPtTPCvsPtAllChi2PerNClusTPC; //! Momentum resolution vs Chi2PerNClusTPC |
90 | TH3F *fPtAllminPtTPCvsPtAllChi2PerNClusITS; //! Momentum resolution vs Chi2PerNClusITS | |
65e8ecdd | 91 | |
9c8dfcb5 | 92 | TH3F *fPtAllminPtTPCvsNPointTPCPhi; //! Momentum resolution vs NPointTPC vs Phi |
93 | TH3F *fPtAllminPtTPCvsNPointITSPhi; //! Momentum resolution vs NPointITS vs Phi | |
94 | TH3F *fPtAllminPtTPCvsRel1PtUncertaintyPhi; //! Momentum resolution vs Rel1PtUncertainty vs Phi | |
95 | ||
f4d11ac8 | 96 | TH2F *fEtaPhiOutliers; //! Eta Phi for outliers in momentum resolution |
65e8ecdd | 97 | |
f4d11ac8 | 98 | TH1F *fPtSelITSouter; //! Pt at ITS outer wall for all selected charged particles by fTrackCuts |
99 | TH2F *fPtITSouterminPtTPCvsPtAll; //! Momentum resolution (global vs ITSouter-TPCinner) | |
9f54dd56 | 100 | TH3F *fPtITSouterminPtTPCvsPtAllEtaPos; //! Momentum resolution (global vs ITSouter-TPCinner) vs Eta for positive particles |
101 | TH3F *fPtITSouterminPtTPCvsPtAllEtaNeg; //! Momentum resolution (global vs ITSouter-TPCinner) vs Eta for negative particles | |
f4d11ac8 | 102 | TH3F *fPtITSouterminPtTPCvsPtAllNPointTPC; //! Momentum resolution vs NPointTPC |
103 | TH3F *fPtITSouterminPtTPCvsPtAllDCAR; //! Momentum resolution vs DCAR | |
104 | TH3F *fPtITSouterminPtTPCvsPtAllDCAZ; //! Momentum resolution vs DCAZ | |
105 | TH3F *fPtITSouterminPtTPCvsPtAllPhi; //! Momentum resolution vs Phi | |
106 | TH3F *fPtITSouterminPtTPCvsPtAllNPointITS; //! Momentum resolution vs NPointITS | |
107 | TH3F *fPtITSouterminPtTPCvsPtAllNSigmaToVertex; //! Momentum resolution vs NSigmaToVertes | |
108 | TH3F *fPtITSouterminPtTPCvsPtAllChi2C; //! Momentum resolution vs Chi2Constrained | |
109 | TH3F *fPtITSouterminPtTPCvsPtAllRel1PtUncertainty; //! Momentum resolution vs relUncertainty1Pt | |
110 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusTPC; //! Momentum resolution vs Chi2PerNClusTPC | |
111 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITS; //! Momentum resolution vs Chi2PerNClusITS | |
112 | ||
3adc85ec | 113 | TH2F *fPtITSouterminPtTPCvsPtAllITSLayer0; //! Track has at least 1st SPD layer |
114 | TH2F *fPtITSouterminPtTPCvsPtAllITSLayer1; //! Track has at least 2nd SPD layer and not 1st SPD | |
115 | TH2F *fPtITSouterminPtTPCvsPtAllITSLayer2; //! Track has at least 1st SDD layer and not SPD layers | |
116 | TH2F *fPtITSouterminPtTPCvsPtAllITSLayer3; //! Track has at least 1st SDD layer and not SPD layers and not 1st SDD | |
117 | TH2F *fPtITSouterminPtTPCvsPtAllITSLayer4; //! Track has at least 1st SSD layer and not SPD or SDD layers | |
118 | TH2F *fPtITSouterminPtTPCvsPtAllITSLayer5; //! Track has at least 1st SSD layer and not SPD or SDD layers or 1st SSD | |
119 | ||
120 | TH2F *fPtITSouterminPtTPCvsPtAllNoSPD; //! Track has no signal in SPD layers | |
121 | TH2F *fPtITSouterminPtTPCvsPtAllNoSDD; //! Track has no signal in SDD layers | |
122 | TH2F *fPtITSouterminPtTPCvsPtAllNoSSD; //! Track has no signal in SSD layers | |
123 | ||
124 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSLayer0; //! Track has at least 1st SPD layer | |
125 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSLayer1; //! Track has at least 2nd SPD layer and not 1st SPD | |
126 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSLayer2; //! Track has at least 1st SDD layer and not SPD layers | |
127 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSLayer3; //! Track has at least 1st SDD layer and not SPD layers and not 1st SDD | |
128 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSLayer4; //! Track has at least 1st SSD layer and not SPD or SDD layers | |
129 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSLayer5; //! Track has at least 1st SSD layer and not SPD or SDD layers or 1st SSD | |
130 | ||
131 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSNoSPD; //! Track has no signal in SPD layers | |
132 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSNoSDD; //! Track has no signal in SDD layers | |
133 | TH3F *fPtITSouterminPtTPCvsPtAllChi2PerNClusITSNoSSD; //! Track has no signal in SSD layers | |
fdceab34 | 134 | |
135 | TList *fHistList; //! List of Histograms | |
136 | ||
137 | TH1F *fPtAllTPC; //! Pt spectrum all charged particles | |
138 | TH1F *fPtSelTPC; //! Pt spectrum all selected charged particles by fTrackCuts | |
139 | TH1F *fPtSelTPCITS; //! Pt spectrum all selected charged particles by fTrackCutsITS | |
140 | TList *fHistListTPC; //! List of Histograms | |
141 | ||
142 | TH1F *fPtSelITS; //! Pt spectrum all selected charged particles by fTrackCutsITS | |
143 | TH2F *fPtITSminPtTPCvsPtITS; //! Momentum resolution (global with ITSrefit vs TPConly) | |
9f54dd56 | 144 | TH3F *fPtITSminPtTPCvsPtITSEtaPos; //! Momentum resolution (global with ITSrefit vs TPConly) vs Eta for positive particles |
145 | TH3F *fPtITSminPtTPCvsPtITSEtaNeg; //! Momentum resolution (global with ITSrefit vs TPConly) vs Eta for negative particles | |
fdceab34 | 146 | TH3F *fPtITSminPtTPCvsPtITSNPointTPC; //! Momentum resolution vs NPointTPC |
147 | TH3F *fPtITSminPtTPCvsPtITSDCAR; //! Momentum resolution vs DCAR | |
148 | TH3F *fPtITSminPtTPCvsPtITSDCAZ; //! Momentum resolution vs DCAZ | |
149 | TH3F *fPtITSminPtTPCvsPtITSPhi; //! Momentum resolution vs Phi | |
150 | TH3F *fPtITSminPtTPCvsPtITSNPointITS; //! Momentum resolution vs NPointITS | |
151 | TH3F *fPtITSminPtTPCvsPtITSNSigmaToVertex; //! Momentum resolution vs NSigmaToVertex | |
152 | TH3F *fPtITSminPtTPCvsPtITSChi2C; //! Momentum resolution vs Chi2Constrained | |
153 | TH3F *fPtITSminPtTPCvsPtITSRel1PtUncertainty; //! Momentum resolution vs relUncertainty1Pt | |
f4d11ac8 | 154 | TH3F *fPtITSminPtTPCvsPtITSChi2PerNClusTPC; //! Momentum resolution vs Chi2PerNClusTPC |
9c8dfcb5 | 155 | TH3F *fPtITSminPtTPCvsPtITSChi2PerNClusITS; //! Momentum resolution vs Chi2PerNClusITS |
156 | ||
157 | TH3F *fPtITSminPtTPCvsNPointTPCPhi; //! Momentum resolution vs NPointTPC vs Phi | |
158 | TH3F *fPtITSminPtTPCvsNPointITSPhi; //! Momentum resolution vs NPointITS vs Phi | |
159 | TH3F *fPtITSminPtTPCvsRel1PtUncertaintyPhi; //! Momentum resolution vs Rel1PtUncertainty vs Phi | |
f4d11ac8 | 160 | |
f4d11ac8 | 161 | TH3F *fPtRel1PtUncertaintyChi2PerClusTPC; //! Global Pt vs relUncertainty1Pt vs Chi2PerClusTPC |
fdceab34 | 162 | |
163 | TList *fHistListITS; //! List of Histograms | |
164 | ||
fdceab34 | 165 | ClassDef(AliPWG4HighPtQATPConly,1) |
166 | ||
167 | }; | |
168 | #endif |