]>
Commit | Line | Data |
---|---|---|
1a31a9ab | 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 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 | **************************************************************************/ | |
1a31a9ab | 15 | |
16 | //_________________________________________________________________________ | |
17 | // Class for analysis of particle isolation | |
18 | // Input is selected particles put in AOD branch (AliAODPWG4ParticleCorrelation) | |
19 | // | |
20 | // Class created from old AliPHOSGammaJet | |
21 | // (see AliRoot versions previous Release 4-09) | |
22 | // | |
23 | // -- Author: Gustavo Conesa (LNF-INFN) | |
24 | ||
25 | //-Yaxian Mao (add the possibility for different IC method with different pt range, 01/10/2010) | |
26 | ////////////////////////////////////////////////////////////////////////////// | |
db6fb352 | 27 | |
28 | ||
1a31a9ab | 29 | // --- ROOT system --- |
30 | #include <TClonesArray.h> | |
31 | #include <TList.h> | |
32 | #include <TObjString.h> | |
33 | #include <TH2F.h> | |
1a31a9ab | 34 | #include <TClass.h> |
dc9c6e78 | 35 | #include <TH2F.h> |
36 | #include "TParticle.h" | |
37 | #include "TDatabasePDG.h" | |
38 | ||
39 | ||
1a31a9ab | 40 | |
41 | // --- Analysis system --- | |
42 | #include "AliAnaParticleIsolation.h" | |
43 | #include "AliCaloTrackReader.h" | |
dc9c6e78 | 44 | #include "AliStack.h" |
1a31a9ab | 45 | #include "AliIsolationCut.h" |
dc9c6e78 | 46 | #include "AliFiducialCut.h" |
47 | #include "AliMCAnalysisUtils.h" | |
1a31a9ab | 48 | #include "AliNeutralMesonSelection.h" |
dc9c6e78 | 49 | #include "AliAODMCParticle.h" |
1a31a9ab | 50 | #include "AliAODPWG4ParticleCorrelation.h" |
51 | #include "AliMCAnalysisUtils.h" | |
52 | #include "AliVTrack.h" | |
53 | #include "AliVCluster.h" | |
2ad19c3d | 54 | #include "AliESDEvent.h" |
55 | #include "AliAODEvent.h" | |
dc9c6e78 | 56 | // --- Detectors --- |
ea051413 | 57 | #include "AliEMCALGeometry.h" |
dc9c6e78 | 58 | #include "AliPHOSGeoUtils.h" |
1a31a9ab | 59 | |
60 | ClassImp(AliAnaParticleIsolation) | |
db6fb352 | 61 | |
803d06a8 | 62 | //______________________________________________________________________________ |
db6fb352 | 63 | AliAnaParticleIsolation::AliAnaParticleIsolation() : |
64 | AliAnaCaloTrackCorrBaseClass(), fCalorimeter(""), | |
65 | fReMakeIC(0), fMakeSeveralIC(0), | |
2ad19c3d | 66 | fFillPileUpHistograms(0), |
db6fb352 | 67 | fFillTMHisto(0), fFillSSHisto(0), |
68 | // Several IC | |
69 | fNCones(0), fNPtThresFrac(0), | |
70 | fConeSizes(), fPtThresholds(), | |
71 | fPtFractions(), fSumPtThresholds(), | |
72 | // Histograms | |
c8710850 | 73 | fhEIso(0), fhPtIso(0), |
74 | fhPtCentralityIso(0), fhPtEventPlaneIso(0), | |
75 | fhPtNLocMaxIso(0), | |
9b01dc66 | 76 | fhPhiIso(0), fhEtaIso(0), fhEtaPhiIso(0), |
db6fb352 | 77 | fhEtaPhiNoIso(0), |
9b01dc66 | 78 | fhENoIso(0), fhPtNoIso(0), fhPtNLocMaxNoIso(0), |
8736d400 | 79 | fhPtDecayIso(0), fhPtDecayNoIso(0), |
db6fb352 | 80 | fhEtaPhiDecayIso(0), fhEtaPhiDecayNoIso(0), |
23130491 | 81 | fhPtInCone(0), |
9b01dc66 | 82 | fhPtClusterInCone(0), fhPtCellInCone(0), fhPtTrackInCone(0), |
2a9171b5 | 83 | fhPtTrackInConeOtherBC(0), fhPtTrackInConeOtherBCPileUpSPD(0), |
cc944149 | 84 | fhPtTrackInConeBC0(0), fhPtTrackInConeVtxBC0(0), |
85 | fhPtTrackInConeBC0PileUpSPD(0), | |
17af6e24 | 86 | fhPtInConePileUp(), fhPtInConeCent(0), |
23130491 | 87 | fhPerpConeSumPt(0), fhPtInPerpCone(0), |
9004af1c | 88 | fhEtaPhiInConeCluster(0),fhEtaPhiCluster(0),fhEtaPhiInConeTrack(0),fhEtaPhiTrack(0), |
23130491 | 89 | fhEtaBandCluster(0), fhPhiBandCluster(0), |
90 | fhEtaBandTrack(0), fhPhiBandTrack(0), | |
9b01dc66 | 91 | fhEtaBandCell(0), fhPhiBandCell(0), |
92 | fhConeSumPt(0), fhConeSumPtCellTrack(0), | |
93 | fhConeSumPtCell(0), fhConeSumPtCluster(0), fhConeSumPtTrack(0), | |
23130491 | 94 | fhConeSumPtEtaBandUECluster(0), fhConeSumPtPhiBandUECluster(0), |
95 | fhConeSumPtEtaBandUETrack(0), fhConeSumPtPhiBandUETrack(0), | |
9b01dc66 | 96 | fhConeSumPtEtaBandUECell(0), fhConeSumPtPhiBandUECell(0), |
23130491 | 97 | fhConeSumPtTrigEtaPhi(0), |
9b01dc66 | 98 | fhConeSumPtCellTrackTrigEtaPhi(0), |
23130491 | 99 | fhConeSumPtEtaBandUEClusterTrigEtaPhi(0), fhConeSumPtPhiBandUEClusterTrigEtaPhi(0), |
100 | fhConeSumPtEtaBandUETrackTrigEtaPhi(0), fhConeSumPtPhiBandUETrackTrigEtaPhi(0), | |
67b42f6d | 101 | fhConeSumPtEtaBandUECellTrigEtaPhi(0), fhConeSumPtPhiBandUECellTrigEtaPhi(0), |
23130491 | 102 | fhConeSumPtEtaUESub(0), fhConeSumPtPhiUESub(0), |
103 | fhConeSumPtEtaUESubTrigEtaPhi(0), fhConeSumPtPhiUESubTrigEtaPhi(0), | |
9b01dc66 | 104 | fhConeSumPtEtaUESubTrackCell(0), fhConeSumPtPhiUESubTrackCell(0), |
105 | fhConeSumPtEtaUESubTrackCellTrigEtaPhi(0), fhConeSumPtPhiUESubTrackCellTrigEtaPhi(0), | |
23130491 | 106 | fhConeSumPtEtaUESubCluster(0), fhConeSumPtPhiUESubCluster(0), |
107 | fhConeSumPtEtaUESubClusterTrigEtaPhi(0), fhConeSumPtPhiUESubClusterTrigEtaPhi(0), | |
9b01dc66 | 108 | fhConeSumPtEtaUESubCell(0), fhConeSumPtPhiUESubCell(0), |
109 | fhConeSumPtEtaUESubCellTrigEtaPhi(0), fhConeSumPtPhiUESubCellTrigEtaPhi(0), | |
23130491 | 110 | fhConeSumPtEtaUESubTrack(0), fhConeSumPtPhiUESubTrack(0), |
111 | fhConeSumPtEtaUESubTrackTrigEtaPhi(0), fhConeSumPtPhiUESubTrackTrigEtaPhi(0), | |
112 | fhFractionTrackOutConeEta(0), fhFractionTrackOutConeEtaTrigEtaPhi(0), | |
113 | fhFractionClusterOutConeEta(0), fhFractionClusterOutConeEtaTrigEtaPhi(0), | |
114 | fhFractionClusterOutConePhi(0), fhFractionClusterOutConePhiTrigEtaPhi(0), | |
9b01dc66 | 115 | fhFractionCellOutConeEta(0), fhFractionCellOutConeEtaTrigEtaPhi(0), |
116 | fhFractionCellOutConePhi(0), fhFractionCellOutConePhiTrigEtaPhi(0), | |
814d1087 | 117 | fhConeSumPtClustervsTrack(0), |
118 | fhConeSumPtEtaUESubClustervsTrack(0), fhConeSumPtPhiUESubClustervsTrack(0), | |
9b01dc66 | 119 | fhConeSumPtCellvsTrack(0), |
120 | fhConeSumPtEtaUESubCellvsTrack(0), fhConeSumPtPhiUESubCellvsTrack(0), | |
814d1087 | 121 | fhEtaBandClustervsTrack(0), fhPhiBandClustervsTrack(0), |
122 | fhEtaBandNormClustervsTrack(0), fhPhiBandNormClustervsTrack(0), | |
9b01dc66 | 123 | fhEtaBandCellvsTrack(0), fhPhiBandCellvsTrack(0), |
124 | fhEtaBandNormCellvsTrack(0), fhPhiBandNormCellvsTrack(0), | |
b5d10017 | 125 | fhConeSumPtSubvsConeSumPtTotPhiTrack(0), fhConeSumPtSubNormvsConeSumPtTotPhiTrack(0), |
126 | fhConeSumPtSubvsConeSumPtTotEtaTrack(0), fhConeSumPtSubNormvsConeSumPtTotEtaTrack(0), | |
127 | fhConeSumPtSubvsConeSumPtTotPhiCluster(0), fhConeSumPtSubNormvsConeSumPtTotPhiCluster(0), | |
128 | fhConeSumPtSubvsConeSumPtTotEtaCluster(0), fhConeSumPtSubNormvsConeSumPtTotEtaCluster(0), | |
129 | fhConeSumPtSubvsConeSumPtTotPhiCell(0), fhConeSumPtSubNormvsConeSumPtTotPhiCell(0), | |
130 | fhConeSumPtSubvsConeSumPtTotEtaCell(0), fhConeSumPtSubNormvsConeSumPtTotEtaCell(0), | |
727a309a | 131 | fhConeSumPtVSUETracksEtaBand(0), fhConeSumPtVSUETracksPhiBand(0), |
132 | fhConeSumPtVSUEClusterEtaBand(0), fhConeSumPtVSUEClusterPhiBand(0), | |
db6fb352 | 133 | // MC histograms |
134 | fhPtIsoPrompt(0), fhPhiIsoPrompt(0), fhEtaIsoPrompt(0), | |
135 | fhPtThresIsolatedPrompt(), fhPtFracIsolatedPrompt(), fhPtSumIsolatedPrompt(), | |
136 | fhPtIsoFragmentation(0), fhPhiIsoFragmentation(0), fhEtaIsoFragmentation(0), | |
137 | fhPtThresIsolatedFragmentation(), fhPtFracIsolatedFragmentation(), fhPtSumIsolatedFragmentation(), | |
764ab1f4 | 138 | fhPtIsoPi0(0), fhPhiIsoPi0(0), fhEtaIsoPi0(0), |
139 | fhPtThresIsolatedPi0(), fhPtFracIsolatedPi0(), fhPtSumIsolatedPi0(), | |
db6fb352 | 140 | fhPtIsoPi0Decay(0), fhPhiIsoPi0Decay(0), fhEtaIsoPi0Decay(0), |
141 | fhPtThresIsolatedPi0Decay(), fhPtFracIsolatedPi0Decay(), fhPtSumIsolatedPi0Decay(), | |
142 | fhPtIsoEtaDecay(0), fhPhiIsoEtaDecay(0), fhEtaIsoEtaDecay(0), | |
143 | fhPtThresIsolatedEtaDecay(), fhPtFracIsolatedEtaDecay(), fhPtSumIsolatedEtaDecay(), | |
144 | fhPtIsoOtherDecay(0), fhPhiIsoOtherDecay(0), fhEtaIsoOtherDecay(0), | |
145 | fhPtThresIsolatedOtherDecay(), fhPtFracIsolatedOtherDecay(), fhPtSumIsolatedOtherDecay(), | |
764ab1f4 | 146 | //fhPtIsoConversion(0), fhPhiIsoConversion(0), fhEtaIsoConversion(0), |
147 | //fhPtThresIsolatedConversion(), fhPtFracIsolatedConversion(), fhPtSumIsolatedConversion(), | |
148 | fhPtIsoHadron(0), fhPhiIsoHadron(0), fhEtaIsoHadron(0), | |
149 | fhPtThresIsolatedHadron(), fhPtFracIsolatedHadron(), fhPtSumIsolatedHadron(), | |
150 | fhPtNoIsoPi0(0), fhPtNoIsoPi0Decay(0), | |
151 | fhPtNoIsoEtaDecay(0), fhPtNoIsoOtherDecay(0), | |
db6fb352 | 152 | fhPtNoIsoPrompt(0), fhPtIsoMCPhoton(0), fhPtNoIsoMCPhoton(0), |
764ab1f4 | 153 | //fhPtNoIsoConversion(0), |
154 | fhPtNoIsoFragmentation(0), fhPtNoIsoHadron(0), | |
db6fb352 | 155 | // Hist several IC |
764ab1f4 | 156 | fhSumPtLeadingPt(), fhPtLeadingPt(), |
23130491 | 157 | fhPerpSumPtLeadingPt(), fhPerpPtLeadingPt(), |
db6fb352 | 158 | fhPtThresIsolated(), fhPtFracIsolated(), fhPtSumIsolated(), |
159 | fhEtaPhiPtThresIso(), fhEtaPhiPtThresDecayIso(), fhPtPtThresDecayIso(), | |
160 | fhEtaPhiPtFracIso(), fhEtaPhiPtFracDecayIso(), fhPtPtFracDecayIso(), | |
b0a31c92 | 161 | fhPtPtSumDecayIso(), fhEtaPhiSumDensityIso(), fhEtaPhiSumDensityDecayIso(), |
162 | fhPtSumDensityIso(), fhPtSumDensityDecayIso(), | |
163 | fhPtFracPtSumIso(), fhPtFracPtSumDecayIso(), | |
164 | fhEtaPhiFracPtSumIso(), fhEtaPhiFracPtSumDecayIso(), | |
db6fb352 | 165 | // Cluster control histograms |
ca134929 | 166 | fhTrackMatchedDEta(), fhTrackMatchedDPhi(), fhTrackMatchedDEtaDPhi(), |
167 | fhdEdx(), fhEOverP(), fhTrackMatchedMCParticle(), | |
f6d2e552 | 168 | fhELambda0() , fhPtLambda0() , fhELambda1(), |
32d244b0 | 169 | fhELambda0TRD(), fhPtLambda0TRD(), fhELambda1TRD(), |
170 | fhELambda0MCPhoton(), fhPtLambda0MCPhotonPrompt(), fhPtLambda0MCPhotonFrag(), | |
171 | fhELambda0MCPi0(), fhELambda0MCPi0Decay(), | |
764ab1f4 | 172 | fhELambda0MCEtaDecay(), fhELambda0MCOtherDecay(), fhELambda0MCHadron(), |
32d244b0 | 173 | |
db6fb352 | 174 | // Number of local maxima in cluster |
ca134929 | 175 | fhNLocMax(), |
176 | fhELambda0LocMax1(), fhELambda1LocMax1(), | |
177 | fhELambda0LocMax2(), fhELambda1LocMax2(), | |
178 | fhELambda0LocMaxN(), fhELambda1LocMaxN(), | |
2ad19c3d | 179 | // PileUp |
17af6e24 | 180 | fhEIsoPileUp(), fhPtIsoPileUp(), |
181 | fhENoIsoPileUp(), fhPtNoIsoPileUp(), | |
2ad19c3d | 182 | fhTimeENoCut(0), fhTimeESPD(0), fhTimeESPDMulti(0), |
183 | fhTimeNPileUpVertSPD(0), fhTimeNPileUpVertTrack(0), | |
184 | fhTimeNPileUpVertContributors(0), | |
185 | fhTimePileUpMainVertexZDistance(0), fhTimePileUpMainVertexZDiamond(0), | |
db6fb352 | 186 | // Histograms settings |
187 | fHistoNPtSumBins(0), fHistoPtSumMax(0.), fHistoPtSumMin(0.), | |
188 | fHistoNPtInConeBins(0), fHistoPtInConeMax(0.), fHistoPtInConeMin(0.) | |
1a31a9ab | 189 | { |
190 | //default ctor | |
191 | ||
192 | //Initialize parameters | |
193 | InitParameters(); | |
db6fb352 | 194 | |
b5dbb99b | 195 | for(Int_t i = 0; i < 5 ; i++) |
dc9c6e78 | 196 | { |
197 | fConeSizes[i] = 0 ; | |
198 | ||
199 | fhPtSumIsolatedPrompt [i] = 0 ; | |
200 | fhPtSumIsolatedFragmentation[i] = 0 ; | |
201 | fhPtSumIsolatedPi0Decay [i] = 0 ; | |
202 | fhPtSumIsolatedPi0 [i] = 0 ; | |
203 | fhPtSumIsolatedEtaDecay [i] = 0 ; | |
204 | fhPtSumIsolatedOtherDecay [i] = 0 ; | |
205 | // fhPtSumIsolatedConversion [i] = 0 ; | |
206 | fhPtSumIsolatedHadron [i] = 0 ; | |
1a31a9ab | 207 | |
b5dbb99b | 208 | for(Int_t j = 0; j < 5 ; j++) |
dc9c6e78 | 209 | { |
23130491 | 210 | fhPtThresIsolated [i][j] = 0 ; |
211 | fhPtFracIsolated [i][j] = 0 ; | |
212 | fhPtSumIsolated [i][j] = 0 ; | |
213 | ||
214 | fhEtaPhiPtThresIso [i][j] = 0 ; | |
215 | fhEtaPhiPtThresDecayIso [i][j] = 0 ; | |
216 | fhPtPtThresDecayIso [i][j] = 0 ; | |
217 | ||
218 | fhEtaPhiPtFracIso [i][j] = 0 ; | |
219 | fhEtaPhiPtFracDecayIso [i][j] = 0 ; | |
220 | fhPtPtFracDecayIso [i][j] = 0 ; | |
221 | fhPtPtSumDecayIso [i][j] = 0 ; | |
222 | fhPtSumDensityIso [i][j] = 0 ; | |
223 | fhPtSumDensityDecayIso [i][j] = 0 ; | |
224 | fhEtaPhiSumDensityIso [i][j] = 0 ; | |
225 | fhEtaPhiSumDensityDecayIso [i][j] = 0 ; | |
226 | fhPtFracPtSumIso [i][j] = 0 ; | |
227 | fhPtFracPtSumDecayIso [i][j] = 0 ; | |
228 | fhEtaPhiFracPtSumIso [i][j] = 0 ; | |
229 | fhEtaPhiFracPtSumDecayIso [i][j] = 0 ; | |
db6fb352 | 230 | |
dc9c6e78 | 231 | fhPtThresIsolatedPrompt [i][j] = 0 ; |
232 | fhPtThresIsolatedFragmentation[i][j] = 0 ; | |
233 | fhPtThresIsolatedPi0Decay [i][j] = 0 ; | |
234 | fhPtThresIsolatedPi0 [i][j] = 0 ; | |
235 | fhPtThresIsolatedEtaDecay [i][j] = 0 ; | |
236 | fhPtThresIsolatedOtherDecay [i][j] = 0 ; | |
237 | // fhPtThresIsolatedConversion [i][j] = 0 ; | |
238 | fhPtThresIsolatedHadron [ i][j] = 0 ; | |
239 | ||
240 | fhPtFracIsolatedPrompt [i][j] = 0 ; | |
241 | fhPtFracIsolatedFragmentation [i][j] = 0 ; | |
242 | fhPtFracIsolatedPi0 [i][j] = 0 ; | |
243 | fhPtFracIsolatedPi0Decay [i][j] = 0 ; | |
244 | fhPtFracIsolatedEtaDecay [i][j] = 0 ; | |
245 | fhPtFracIsolatedOtherDecay [i][j] = 0 ; | |
246 | // fhPtFracIsolatedConversion [i][j] = 0 ; | |
247 | fhPtFracIsolatedHadron [i][j] = 0 ; | |
248 | ||
249 | } | |
250 | } | |
1a31a9ab | 251 | |
db6fb352 | 252 | for(Int_t i = 0; i < 5 ; i++) |
dc9c6e78 | 253 | { |
254 | fPtFractions [i] = 0 ; | |
db6fb352 | 255 | fPtThresholds [i] = 0 ; |
256 | fSumPtThresholds[i] = 0 ; | |
dc9c6e78 | 257 | } |
258 | ||
ca134929 | 259 | |
260 | for(Int_t i = 0; i < 2 ; i++) | |
dc9c6e78 | 261 | { |
ca134929 | 262 | fhTrackMatchedDEta[i] = 0 ; fhTrackMatchedDPhi[i] = 0 ; fhTrackMatchedDEtaDPhi [i] = 0 ; |
263 | fhdEdx [i] = 0 ; fhEOverP [i] = 0 ; fhTrackMatchedMCParticle[i] = 0 ; | |
dc9c6e78 | 264 | fhELambda0 [i] = 0 ; fhELambda1 [i] = 0 ; |
ca134929 | 265 | fhELambda0TRD [i] = 0 ; fhELambda1TRD [i] = 0 ; |
266 | ||
764ab1f4 | 267 | fhELambda0MCPhoton [i] = 0 ; fhELambda0MCPi0 [i] = 0 ; fhELambda0MCPi0Decay[i] = 0 ; |
268 | fhELambda0MCEtaDecay[i] = 0 ; fhELambda0MCOtherDecay[i] = 0 ; fhELambda0MCHadron [i] = 0 ; | |
dc9c6e78 | 269 | fhPtLambda0 [i] = 0 ; fhPtLambda0TRD [i] = 0 ; |
270 | fhPtLambda0MCPhotonPrompt [i] = 0 ; fhPtLambda0MCPhotonFrag [i] = 0 ; | |
ca134929 | 271 | // Number of local maxima in cluster |
272 | fhNLocMax [i] = 0 ; | |
273 | fhELambda0LocMax1[i] = 0 ; fhELambda1LocMax1[i] = 0 ; | |
274 | fhELambda0LocMax2[i] = 0 ; fhELambda1LocMax2[i] = 0 ; | |
275 | fhELambda0LocMaxN[i] = 0 ; fhELambda1LocMaxN[i] = 0 ; | |
276 | ||
dc9c6e78 | 277 | } |
278 | ||
279 | ||
280 | // Acceptance | |
281 | for(Int_t i = 0; i < 7; i++) | |
282 | { | |
283 | fhPtPrimMCiso[i] = 0; | |
284 | fhEPrimMC [i] = 0; | |
285 | fhEtaPrimMC [i] = 0; | |
db4ffddf | 286 | fhPhiPrimMC [i] = 0; |
dc9c6e78 | 287 | } |
db6fb352 | 288 | |
17af6e24 | 289 | // Pile-Up |
290 | ||
291 | for(Int_t i = 0 ; i < 7 ; i++) | |
292 | { | |
293 | fhPtInConePileUp[i] = 0 ; | |
294 | fhEIsoPileUp [i] = 0 ; | |
295 | fhPtIsoPileUp [i] = 0 ; | |
296 | fhENoIsoPileUp [i] = 0 ; | |
297 | fhPtNoIsoPileUp [i] = 0 ; | |
298 | } | |
299 | ||
1a31a9ab | 300 | } |
301 | ||
23130491 | 302 | //_______________________________________________________________________________________________ |
303 | void AliAnaParticleIsolation::CalculateCaloUEBand(AliAODPWG4ParticleCorrelation * pCandidate, | |
304 | Float_t & etaBandPtSum, Float_t & phiBandPtSum) | |
305 | { | |
306 | // Get the clusters pT or sum of pT in phi/eta bands or at 45 degrees from trigger | |
307 | ||
72433939 | 308 | if( GetIsolationCut()->GetParticleTypeInCone()==AliIsolationCut::kOnlyCharged ) return ; |
309 | ||
23130491 | 310 | Float_t conesize = GetIsolationCut()->GetConeSize(); |
311 | TLorentzVector mom ; | |
312 | ||
313 | //Select the Calorimeter | |
314 | TObjArray * pl = 0x0; | |
315 | if (fCalorimeter == "PHOS" ) | |
316 | pl = GetPHOSClusters(); | |
317 | else if (fCalorimeter == "EMCAL") | |
318 | pl = GetEMCALClusters(); | |
319 | ||
320 | if(!pl) return ; | |
321 | ||
322 | //Get vertex for cluster momentum calculation | |
323 | Double_t vertex[] = {0,0,0} ; //vertex ; | |
324 | if(GetReader()->GetDataType() != AliCaloTrackReader::kMC) | |
325 | GetReader()->GetVertex(vertex); | |
326 | ||
327 | Float_t ptTrig = pCandidate->Pt() ; | |
328 | Float_t phiTrig = pCandidate->Phi(); | |
329 | Float_t etaTrig = pCandidate->Eta(); | |
330 | ||
331 | for(Int_t icluster=0; icluster < pl->GetEntriesFast(); icluster++) | |
332 | { | |
333 | AliVCluster* cluster = (AliVCluster *) pl->At(icluster); | |
334 | ||
335 | if(!cluster) | |
336 | { | |
337 | printf("AliAnaParticleIsolation::MakeAnalysisFillHistograms() - Cluster not available?"); | |
338 | continue; | |
339 | } | |
73378bcc | 340 | |
23130491 | 341 | //Do not count the candidate (photon or pi0) or the daughters of the candidate |
342 | if(cluster->GetID() == pCandidate->GetCaloLabel(0) || | |
343 | cluster->GetID() == pCandidate->GetCaloLabel(1) ) continue ; | |
344 | ||
72433939 | 345 | //Remove matched clusters to tracks if Neutral and Track info is used |
346 | if( GetIsolationCut()->GetParticleTypeInCone()==AliIsolationCut::kNeutralAndCharged && | |
347 | IsTrackMatched(cluster,GetReader()->GetInputEvent())) continue ; | |
73378bcc | 348 | |
23130491 | 349 | cluster->GetMomentum(mom,vertex) ;//Assume that come from vertex in straight line |
350 | ||
351 | //exclude particles in cone | |
352 | Float_t rad = GetIsolationCut()->Radius(etaTrig, phiTrig, mom.Eta(), mom.Phi()); | |
23130491 | 353 | |
9004af1c | 354 | // histo of eta and phi for all clusters |
355 | fhEtaPhiCluster->Fill(mom.Eta(), mom.Phi()); | |
356 | if(rad < conesize) { | |
357 | // histos for all clusters in cone | |
358 | fhEtaPhiInConeCluster->Fill(mom.Eta(), mom.Phi()); | |
359 | continue ; | |
360 | } | |
23130491 | 361 | //fill histogram for UE in phi band in EMCal acceptance |
362 | if(mom.Eta() > (etaTrig-conesize) && mom.Eta() < (etaTrig+conesize)) | |
363 | { | |
364 | phiBandPtSum+=mom.Pt(); | |
365 | fhPhiBandCluster->Fill(mom.Eta(),mom.Phi()); | |
9004af1c | 366 | |
367 | } | |
23130491 | 368 | |
369 | //fill histogram for UE in eta band in EMCal acceptance | |
370 | if(mom.Phi() > (phiTrig-conesize) && mom.Phi() < (phiTrig+conesize)) | |
371 | { | |
372 | etaBandPtSum+=mom.Pt(); | |
373 | fhEtaBandCluster->Fill(mom.Eta(),mom.Phi()); | |
374 | } | |
375 | } | |
376 | ||
814d1087 | 377 | fhConeSumPtEtaBandUECluster ->Fill(ptTrig , etaBandPtSum); |
378 | fhConeSumPtPhiBandUECluster ->Fill(ptTrig , phiBandPtSum); | |
23130491 | 379 | fhConeSumPtEtaBandUEClusterTrigEtaPhi->Fill(etaTrig,phiTrig,etaBandPtSum); |
380 | fhConeSumPtPhiBandUEClusterTrigEtaPhi->Fill(etaTrig,phiTrig,phiBandPtSum); | |
381 | ||
382 | } | |
383 | ||
b5d10017 | 384 | //________________________________________________________________________________________________ |
9b01dc66 | 385 | void AliAnaParticleIsolation::CalculateCaloCellUEBand(AliAODPWG4ParticleCorrelation * pCandidate, |
386 | Float_t & etaBandPtSumCells, Float_t & phiBandPtSumCells) | |
387 | { | |
388 | // Get the cells amplitude or sum of amplitude in phi/eta bands or at 45 degrees from trigger | |
389 | ||
390 | if( GetIsolationCut()->GetParticleTypeInCone()==AliIsolationCut::kOnlyCharged ) return ; | |
b5d10017 | 391 | |
392 | Float_t conesize = GetIsolationCut()->GetConeSize(); | |
9b01dc66 | 393 | |
394 | Float_t phiTrig = pCandidate->Phi(); | |
b5d10017 | 395 | if(phiTrig<0) phiTrig += TMath::TwoPi(); |
9b01dc66 | 396 | Float_t etaTrig = pCandidate->Eta(); |
9b01dc66 | 397 | |
b5d10017 | 398 | if(pCandidate->GetDetector()=="EMCAL") |
9b01dc66 | 399 | { |
b5d10017 | 400 | AliEMCALGeometry* eGeom = AliEMCALGeometry::GetInstance(); |
401 | Int_t absId = -999; | |
402 | ||
403 | if (eGeom->GetAbsCellIdFromEtaPhi(etaTrig,phiTrig,absId)) | |
e0ddcd8e | 404 | { |
b5d10017 | 405 | if(!eGeom->CheckAbsCellId(absId)) return ; |
9b01dc66 | 406 | |
b5d10017 | 407 | // Get absolute (col,row) of trigger particle |
408 | Int_t nSupMod = eGeom->GetSuperModuleNumber(absId); | |
409 | Int_t nModule = -1; | |
410 | Int_t imEta=-1, imPhi=-1; | |
411 | Int_t ieta =-1, iphi =-1; | |
412 | ||
413 | if (eGeom->GetCellIndex(absId,nSupMod,nModule,imPhi,imEta)) | |
414 | { | |
415 | eGeom->GetCellPhiEtaIndexInSModule(nSupMod,nModule,imPhi,imEta,iphi,ieta); | |
416 | ||
417 | Int_t colTrig = ieta; | |
418 | if (nSupMod % 2) colTrig = AliEMCALGeoParams::fgkEMCALCols + ieta ; | |
419 | Int_t rowTrig = iphi + AliEMCALGeoParams::fgkEMCALRows*int(nSupMod/2); | |
420 | ||
421 | Int_t sqrSize = int(conesize/0.0143); | |
422 | ||
423 | AliVCaloCells * cells = GetEMCALCells(); | |
424 | ||
10a65cc6 | 425 | Int_t nTotalRows = AliEMCALGeoParams::fgkEMCALRows*16/3 ; // 24*(16/3) 5 full-size Sectors (2 SM) + 1 one-third Sector (2 SM) |
426 | Int_t nTotalCols = 2*AliEMCALGeoParams::fgkEMCALCols; | |
427 | // printf("nTotalRows %i, nTotalCols %i\n",nTotalRows,nTotalCols); | |
b5d10017 | 428 | // Loop on cells in eta band |
10a65cc6 | 429 | |
430 | Int_t irowmin = rowTrig-sqrSize; | |
431 | if(irowmin<0) irowmin=0; | |
432 | Int_t irowmax = rowTrig+sqrSize; | |
433 | if(irowmax>AliEMCALGeoParams::fgkEMCALRows) irowmax=AliEMCALGeoParams::fgkEMCALRows; | |
434 | ||
435 | ||
436 | for(Int_t irow = irowmin; irow <irowmax; irow++) | |
b5d10017 | 437 | { |
10a65cc6 | 438 | for(Int_t icol = 0; icol < nTotalCols; icol++) |
b5d10017 | 439 | { |
440 | Int_t inSector = int(irow/AliEMCALGeoParams::fgkEMCALRows); | |
10a65cc6 | 441 | if(inSector==5) continue; |
442 | Int_t inSupMod = -1; | |
b5d10017 | 443 | Int_t icolLoc = -1; |
444 | if(icol < AliEMCALGeoParams::fgkEMCALCols) | |
445 | { | |
ea051413 | 446 | inSupMod = 2*inSector + 1; |
b5d10017 | 447 | icolLoc = icol; |
448 | } | |
449 | else if(icol > AliEMCALGeoParams::fgkEMCALCols - 1) | |
450 | { | |
ea051413 | 451 | inSupMod = 2*inSector; |
b5d10017 | 452 | icolLoc = icol-AliEMCALGeoParams::fgkEMCALCols; |
453 | } | |
454 | ||
b5c8089d | 455 | Int_t irowLoc = irow - AliEMCALGeoParams::fgkEMCALRows*inSector ; |
b5d10017 | 456 | |
457 | // Exclude cells in cone | |
9004af1c | 458 | if(TMath::Abs(icol-colTrig) < sqrSize || TMath::Abs(irow-rowTrig) < sqrSize){ |
459 | continue ; | |
460 | } | |
b5d10017 | 461 | Int_t iabsId = eGeom->GetAbsCellIdFromCellIndexes(inSupMod,irowLoc,icolLoc); |
462 | if(!eGeom->CheckAbsCellId(iabsId)) continue; | |
463 | etaBandPtSumCells += cells->GetCellAmplitude(iabsId); | |
10a65cc6 | 464 | fhEtaBandCell->Fill(colTrig,rowTrig); |
465 | ||
466 | // printf("ETA inSupMod %i,irowLoc %i,icolLoc %i, iabsId %i, etaBandPtSumCells %f\n",nSupMod,irowLoc,icolLoc,iabsId,etaBandPtSumCells); | |
467 | } | |
b5d10017 | 468 | } |
10a65cc6 | 469 | Int_t icolmin = colTrig-sqrSize; |
470 | if(icolmin<0) icolmin=0; | |
471 | Int_t icolmax = colTrig+sqrSize; | |
472 | if(icolmax>AliEMCALGeoParams::fgkEMCALCols) icolmax=AliEMCALGeoParams::fgkEMCALCols; | |
473 | ||
b5d10017 | 474 | // Loop on cells in phi band |
10a65cc6 | 475 | for(Int_t icol = icolmin; icol < icolmax; icol++) |
b5d10017 | 476 | { |
477 | for(Int_t irow = 0; irow < nTotalRows; irow++) | |
10a65cc6 | 478 | { |
b5d10017 | 479 | Int_t inSector = int(irow/AliEMCALGeoParams::fgkEMCALRows); |
10a65cc6 | 480 | if(inSector==5) continue; |
b5d10017 | 481 | Int_t inSupMod = -1; |
482 | Int_t icolLoc = -1; | |
10a65cc6 | 483 | // printf("icol %i, irow %i, inSector %i\n",icol,irow ,inSector); |
b5d10017 | 484 | if(icol < AliEMCALGeoParams::fgkEMCALCols) |
485 | { | |
10a65cc6 | 486 | // printf("icol < AliEMCALGeoParams::fgkEMCALCols %i\n",AliEMCALGeoParams::fgkEMCALCols ); |
ea051413 | 487 | inSupMod = 2*inSector + 1; |
b5d10017 | 488 | icolLoc = icol; |
489 | } | |
490 | else if(icol > AliEMCALGeoParams::fgkEMCALCols - 1) | |
491 | { | |
10a65cc6 | 492 | // printf("icol > AliEMCALGeoParams::fgkEMCALCols -1 %i\n",AliEMCALGeoParams::fgkEMCALCols -1 ); |
493 | inSupMod = 2*inSector; | |
b5d10017 | 494 | icolLoc = icol-AliEMCALGeoParams::fgkEMCALCols; |
495 | } | |
496 | ||
ea051413 | 497 | Int_t irowLoc = irow - AliEMCALGeoParams::fgkEMCALRows*inSector ; // Stesso problema di sopra // |
b5d10017 | 498 | |
499 | // Exclude cells in cone | |
10a65cc6 | 500 | if(TMath::Abs(icol-colTrig) < sqrSize) { |
501 | //printf("TMath::Abs(icol-colTrig) %i < sqrSize %i\n",TMath::Abs(icol-colTrig) ,sqrSize);continue ; | |
502 | } | |
503 | if(TMath::Abs(irow-rowTrig) < sqrSize) { | |
504 | //printf("TMath::Abs(irow-rowTrig) %i < sqrSize %i\n",TMath::Abs(irow-rowTrig) ,sqrSize);continue ; | |
505 | } | |
b5d10017 | 506 | |
507 | Int_t iabsId = eGeom->GetAbsCellIdFromCellIndexes(inSupMod,irowLoc,icolLoc); | |
10a65cc6 | 508 | if(!eGeom->CheckAbsCellId(iabsId)) {printf("!eGeom->CheckAbsCellId(iabsId=%i) inSupMod %i irowLoc %i icolLoc %i \n",iabsId,inSupMod, irowLoc, icolLoc);continue;} |
b5d10017 | 509 | phiBandPtSumCells += cells->GetCellAmplitude(iabsId); |
10a65cc6 | 510 | fhPhiBandCell->Fill(colTrig,rowTrig); |
511 | //printf("inSupMod %i,irowLoc %i,icolLoc %i, iabsId %i, phiBandPtSumCells %f\n",nSupMod,irowLoc,icolLoc,iabsId,phiBandPtSumCells); | |
512 | } | |
b5d10017 | 513 | } |
514 | } | |
9b01dc66 | 515 | } |
516 | } | |
517 | ||
518 | Float_t ptTrig = pCandidate->Pt(); | |
519 | ||
520 | fhConeSumPtEtaBandUECell ->Fill(ptTrig , etaBandPtSumCells); | |
521 | fhConeSumPtPhiBandUECell ->Fill(ptTrig , phiBandPtSumCells); | |
522 | fhConeSumPtEtaBandUECellTrigEtaPhi->Fill(etaTrig,phiTrig,etaBandPtSumCells); | |
523 | fhConeSumPtPhiBandUECellTrigEtaPhi->Fill(etaTrig,phiTrig,phiBandPtSumCells); | |
524 | ||
525 | } | |
526 | ||
23130491 | 527 | //________________________________________________________________________________________________ |
528 | void AliAnaParticleIsolation::CalculateTrackUEBand(AliAODPWG4ParticleCorrelation * pCandidate, | |
529 | Float_t & etaBandPtSum, Float_t & phiBandPtSum) | |
530 | { | |
531 | // Get the track pT or sum of pT in phi/eta bands or at 45 degrees from trigger | |
532 | ||
72433939 | 533 | if( GetIsolationCut()->GetParticleTypeInCone()==AliIsolationCut::kOnlyNeutral ) return ; |
534 | ||
23130491 | 535 | Float_t conesize = GetIsolationCut()->GetConeSize(); |
536 | ||
537 | Double_t sumptPerp= 0. ; | |
538 | Float_t ptTrig = pCandidate->Pt() ; | |
539 | Float_t phiTrig = pCandidate->Phi(); | |
540 | Float_t etaTrig = pCandidate->Eta(); | |
541 | ||
542 | TObjArray * trackList = GetCTSTracks() ; | |
543 | for(Int_t itrack=0; itrack < trackList->GetEntriesFast(); itrack++) | |
544 | { | |
545 | AliVTrack* track = (AliVTrack *) trackList->At(itrack); | |
546 | ||
547 | if(!track) | |
548 | { | |
727a309a | 549 | printf("AliAnaParticleIsolation::CalculateTrackUEBand() - Track not available?"); |
23130491 | 550 | continue; |
551 | } | |
552 | ||
553 | //Do not count the candidate (pion, conversion photon) or the daughters of the candidate | |
554 | if(track->GetID() == pCandidate->GetTrackLabel(0) || track->GetID() == pCandidate->GetTrackLabel(1) || | |
555 | track->GetID() == pCandidate->GetTrackLabel(2) || track->GetID() == pCandidate->GetTrackLabel(3) ) continue ; | |
9004af1c | 556 | |
557 | // histo of eta:phi for all tracks | |
558 | fhEtaPhiTrack->Fill(track->Eta(),track->Phi()); | |
559 | ||
23130491 | 560 | //exclude particles in cone |
561 | Float_t rad = GetIsolationCut()->Radius(etaTrig, phiTrig, track->Eta(), track->Phi()); | |
9004af1c | 562 | if(rad < conesize) { |
563 | // histo of eta:phi for all tracks in cone | |
564 | fhEtaPhiInConeTrack->Fill(track->Eta(),track->Phi()); | |
565 | continue ; | |
566 | } | |
23130491 | 567 | |
568 | //fill histogram for UE in phi band | |
569 | if(track->Eta() > (etaTrig-conesize) && track->Eta() < (etaTrig+conesize)) | |
570 | { | |
571 | phiBandPtSum+=track->Pt(); | |
572 | fhPhiBandTrack->Fill(track->Eta(),track->Phi()); | |
573 | } | |
574 | ||
575 | //fill histogram for UE in eta band in EMCal acceptance | |
576 | if(track->Phi() > (phiTrig-conesize) && track->Phi() < (phiTrig+conesize)) | |
577 | { | |
578 | etaBandPtSum+=track->Pt(); | |
579 | fhEtaBandTrack->Fill(track->Eta(),track->Phi()); | |
580 | } | |
581 | ||
582 | //fill the histograms at +-45 degrees in phi from trigger particle, perpedicular to trigger axis in phi | |
583 | Double_t dPhi = phiTrig - track->Phi() + TMath::PiOver2(); | |
584 | Double_t dEta = etaTrig - track->Eta(); | |
585 | Double_t arg = dPhi*dPhi + dEta*dEta; | |
586 | if(TMath::Sqrt(arg) < conesize) | |
587 | { | |
588 | fhPtInPerpCone->Fill(ptTrig,TMath::Sqrt(track->Px()*track->Px()+track->Py()*track->Py())); | |
589 | sumptPerp+=track->Pt(); | |
590 | } | |
591 | ||
592 | dPhi = phiTrig - track->Phi() - TMath::PiOver2(); | |
593 | arg = dPhi*dPhi + dEta*dEta; | |
594 | if(TMath::Sqrt(arg) < conesize) | |
595 | { | |
596 | fhPtInPerpCone->Fill(ptTrig,TMath::Sqrt(track->Px()*track->Px()+track->Py()*track->Py())); | |
597 | sumptPerp+=track->Pt(); | |
598 | } | |
599 | } | |
600 | ||
814d1087 | 601 | fhPerpConeSumPt ->Fill(ptTrig , sumptPerp ); |
602 | fhConeSumPtEtaBandUETrack ->Fill(ptTrig , etaBandPtSum); | |
603 | fhConeSumPtPhiBandUETrack ->Fill(ptTrig , phiBandPtSum); | |
23130491 | 604 | fhConeSumPtEtaBandUETrackTrigEtaPhi->Fill(etaTrig,phiTrig,etaBandPtSum); |
605 | fhConeSumPtPhiBandUETrackTrigEtaPhi->Fill(etaTrig,phiTrig,phiBandPtSum); | |
606 | ||
607 | } | |
608 | ||
0e7a6570 | 609 | |
0e7a6570 | 610 | |
b94e038e | 611 | //_____________________________________________________________________________________________________________________________________ |
612 | void AliAnaParticleIsolation::CalculateNormalizeUEBandPerUnitArea(AliAODPWG4ParticleCorrelation * pCandidate, Float_t coneptsumCluster, | |
613 | Float_t coneptsumCell, Float_t coneptsumTrack, | |
614 | Float_t &etaBandptsumTrackNorm, Float_t &etaBandptsumClusterNorm) | |
23130491 | 615 | { |
616 | //normalize phi/eta band per area unit | |
617 | ||
618 | Float_t etaUEptsumTrack = 0 ; | |
619 | Float_t phiUEptsumTrack = 0 ; | |
620 | Float_t etaUEptsumCluster = 0 ; | |
621 | Float_t phiUEptsumCluster = 0 ; | |
9b01dc66 | 622 | Float_t etaUEptsumCell = 0 ; |
623 | Float_t phiUEptsumCell = 0 ; | |
624 | ||
72433939 | 625 | Int_t partTypeInCone = GetIsolationCut()->GetParticleTypeInCone(); |
23130491 | 626 | |
23130491 | 627 | // Do the normalization |
628 | ||
629 | Float_t conesize = GetIsolationCut()->GetConeSize(); | |
630 | Float_t coneA = conesize*conesize*TMath::Pi(); // A = pi R^2, isolation cone area | |
631 | Float_t ptTrig = pCandidate->Pt() ; | |
632 | Float_t phiTrig = pCandidate->Phi(); | |
633 | Float_t etaTrig = pCandidate->Eta(); | |
727a309a | 634 | |
26a8bf11 | 635 | |
23130491 | 636 | // ------ // |
637 | // Tracks // | |
638 | // ------ // | |
72433939 | 639 | Float_t phiUEptsumTrackNorm = 0 ; |
640 | Float_t etaUEptsumTrackNorm = 0 ; | |
641 | Float_t coneptsumTrackSubPhi = 0 ; | |
642 | Float_t coneptsumTrackSubEta = 0 ; | |
b5d10017 | 643 | Float_t coneptsumTrackSubPhiNorm = 0 ; |
644 | Float_t coneptsumTrackSubEtaNorm = 0 ; | |
727a309a | 645 | etaBandptsumTrackNorm = 0 ; |
b5d10017 | 646 | |
72433939 | 647 | if( partTypeInCone!=AliIsolationCut::kOnlyNeutral ) |
23130491 | 648 | { |
727a309a | 649 | // Sum the pT in the phi or eta band for clusters or tracks |
650 | CalculateTrackUEBand (pCandidate,etaUEptsumTrack ,phiUEptsumTrack );// rajouter ici l'histo eta phi | |
651 | ||
652 | //Fill histos | |
653 | fhConeSumPtVSUETracksEtaBand->Fill(coneptsumTrack,etaUEptsumTrack); | |
654 | fhConeSumPtVSUETracksPhiBand->Fill(coneptsumTrack,phiUEptsumTrack); | |
655 | ||
656 | ||
657 | Float_t correctConeSumTrack = 1; | |
658 | Float_t correctConeSumTrackPhi = 1; | |
659 | ||
660 | GetIsolationCut()->CalculateUEBandTrackNormalization(GetReader(),etaTrig, phiTrig, | |
661 | phiUEptsumTrack,etaUEptsumTrack, | |
662 | phiUEptsumTrackNorm,etaUEptsumTrackNorm, | |
663 | correctConeSumTrack,correctConeSumTrackPhi); | |
664 | ||
665 | coneptsumTrackSubPhi = coneptsumTrack - phiUEptsumTrackNorm; | |
666 | coneptsumTrackSubEta = coneptsumTrack - etaUEptsumTrackNorm; | |
667 | ||
668 | etaBandptsumTrackNorm = etaUEptsumTrackNorm; | |
72433939 | 669 | |
670 | fhConeSumPtPhiUESubTrack ->Fill(ptTrig , coneptsumTrackSubPhi); | |
671 | fhConeSumPtPhiUESubTrackTrigEtaPhi ->Fill(etaTrig, phiTrig, coneptsumTrackSubPhi); | |
672 | fhConeSumPtEtaUESubTrack ->Fill(ptTrig , coneptsumTrackSubEta); | |
673 | fhConeSumPtEtaUESubTrackTrigEtaPhi ->Fill(etaTrig, phiTrig, coneptsumTrackSubEta); | |
674 | ||
675 | fhFractionTrackOutConeEta ->Fill(ptTrig , correctConeSumTrack-1); | |
676 | fhFractionTrackOutConeEtaTrigEtaPhi->Fill(etaTrig, phiTrig,correctConeSumTrack-1); | |
b5d10017 | 677 | |
727a309a | 678 | if(coneptsumTrack > 0) |
679 | { | |
680 | coneptsumTrackSubPhiNorm = coneptsumTrackSubPhi/coneptsumTrack; | |
10a65cc6 | 681 | coneptsumTrackSubEtaNorm = coneptsumTrackSubEta/coneptsumTrack; |
682 | } | |
727a309a | 683 | |
b5d10017 | 684 | fhConeSumPtSubvsConeSumPtTotPhiTrack ->Fill(coneptsumTrack,coneptsumTrackSubPhi); |
685 | fhConeSumPtSubNormvsConeSumPtTotPhiTrack->Fill(coneptsumTrack,coneptsumTrackSubPhiNorm); | |
686 | fhConeSumPtSubvsConeSumPtTotEtaTrack ->Fill(coneptsumTrack,coneptsumTrackSubEta); | |
687 | fhConeSumPtSubNormvsConeSumPtTotEtaTrack->Fill(coneptsumTrack,coneptsumTrackSubEtaNorm); | |
688 | ||
72433939 | 689 | } |
23130491 | 690 | |
9b01dc66 | 691 | // ------------------------ // |
692 | // EMCal Clusters and cells // | |
693 | // ------------------------ // | |
72433939 | 694 | Float_t phiUEptsumClusterNorm = 0 ; |
695 | Float_t etaUEptsumClusterNorm = 0 ; | |
696 | Float_t coneptsumClusterSubPhi = 0 ; | |
697 | Float_t coneptsumClusterSubEta = 0 ; | |
b5d10017 | 698 | Float_t coneptsumClusterSubPhiNorm = 0 ; |
699 | Float_t coneptsumClusterSubEtaNorm = 0 ; | |
9b01dc66 | 700 | Float_t phiUEptsumCellNorm = 0 ; |
701 | Float_t etaUEptsumCellNorm = 0 ; | |
702 | Float_t coneptsumCellSubPhi = 0 ; | |
703 | Float_t coneptsumCellSubEta = 0 ; | |
b5d10017 | 704 | Float_t coneptsumCellSubPhiNorm = 0 ; |
705 | Float_t coneptsumCellSubEtaNorm = 0 ; | |
727a309a | 706 | etaBandptsumClusterNorm = 0; |
9b01dc66 | 707 | |
72433939 | 708 | if( partTypeInCone!=AliIsolationCut::kOnlyCharged ) |
23130491 | 709 | { |
9b01dc66 | 710 | |
711 | // -------------- // | |
712 | // EMCal clusters // | |
713 | // -------------- // | |
72433939 | 714 | |
727a309a | 715 | // Sum the pT in the phi or eta band for clusters or tracks |
716 | CalculateCaloUEBand (pCandidate,etaUEptsumCluster,phiUEptsumCluster);// rajouter ici l'histo eta phi | |
717 | ||
718 | //Fill histos | |
719 | fhConeSumPtVSUEClusterEtaBand->Fill(coneptsumCluster,etaUEptsumCluster); | |
720 | fhConeSumPtVSUEClusterPhiBand->Fill(coneptsumCluster,phiUEptsumCluster); | |
721 | ||
722 | ||
723 | Float_t correctConeSumClusterEta = 1; | |
72433939 | 724 | Float_t correctConeSumClusterPhi = 1; |
727a309a | 725 | |
726 | GetIsolationCut()->CalculateUEBandClusterNormalization(GetReader(),etaTrig, phiTrig, | |
727 | phiUEptsumCluster,etaUEptsumCluster, | |
728 | phiUEptsumClusterNorm,etaUEptsumClusterNorm, | |
729 | correctConeSumClusterEta,correctConeSumClusterPhi); | |
72433939 | 730 | |
731 | // In case that cone is out of eta and phi side, we are over correcting, not too often with the current cuts ... | |
727a309a | 732 | // Comment if not used |
733 | // Float_t coneBadCellsCoeff =1; | |
734 | // Float_t etaBandBadCellsCoeff=1; | |
735 | // Float_t phiBandBadCellsCoeff=1; | |
736 | // GetIsolationCut()->GetCoeffNormBadCell(pCandidate, GetReader(),coneBadCellsCoeff,etaBandBadCellsCoeff,phiBandBadCellsCoeff) ; | |
737 | ||
738 | //coneptsumCluster=coneptsumCluster*coneBadCellsCoeff*correctConeSumClusterEta*correctConeSumClusterPhi; | |
739 | ||
740 | coneptsumClusterSubPhi = coneptsumCluster - phiUEptsumClusterNorm; | |
26a8bf11 | 741 | coneptsumClusterSubEta = coneptsumCluster - etaUEptsumClusterNorm; |
72433939 | 742 | |
727a309a | 743 | etaBandptsumClusterNorm = etaUEptsumClusterNorm; |
26a8bf11 | 744 | |
72433939 | 745 | fhConeSumPtPhiUESubCluster ->Fill(ptTrig , coneptsumClusterSubPhi); |
746 | fhConeSumPtPhiUESubClusterTrigEtaPhi ->Fill(etaTrig, phiTrig, coneptsumClusterSubPhi); | |
747 | fhConeSumPtEtaUESubCluster ->Fill(ptTrig , coneptsumClusterSubEta); | |
748 | fhConeSumPtEtaUESubClusterTrigEtaPhi ->Fill(etaTrig, phiTrig, coneptsumClusterSubEta); | |
749 | ||
750 | fhFractionClusterOutConeEta ->Fill(ptTrig , correctConeSumClusterEta-1); | |
751 | fhFractionClusterOutConeEtaTrigEtaPhi->Fill(etaTrig, phiTrig, correctConeSumClusterEta-1); | |
752 | fhFractionClusterOutConePhi ->Fill(ptTrig , correctConeSumClusterPhi-1); | |
753 | fhFractionClusterOutConePhiTrigEtaPhi->Fill(etaTrig, phiTrig, correctConeSumClusterPhi-1); | |
9b01dc66 | 754 | |
727a309a | 755 | if(coneptsumCluster!=0) |
756 | { | |
10a65cc6 | 757 | coneptsumClusterSubPhiNorm = coneptsumClusterSubPhi/coneptsumCluster; |
758 | coneptsumClusterSubEtaNorm = coneptsumClusterSubEta/coneptsumCluster; | |
759 | } | |
727a309a | 760 | |
b5d10017 | 761 | fhConeSumPtSubvsConeSumPtTotPhiCluster ->Fill(coneptsumCluster,coneptsumClusterSubPhi); |
762 | fhConeSumPtSubNormvsConeSumPtTotPhiCluster->Fill(coneptsumCluster,coneptsumClusterSubPhiNorm); | |
763 | fhConeSumPtSubvsConeSumPtTotEtaCluster ->Fill(coneptsumCluster,coneptsumClusterSubEta); | |
764 | fhConeSumPtSubNormvsConeSumPtTotEtaCluster->Fill(coneptsumCluster,coneptsumClusterSubEtaNorm); | |
765 | ||
9b01dc66 | 766 | // ----------- // |
767 | // EMCal Cells // | |
768 | // ----------- // | |
727a309a | 769 | |
770 | // Sum the pT in the phi or eta band for clusters or tracks | |
771 | CalculateCaloCellUEBand(pCandidate,etaUEptsumCell ,phiUEptsumCell ); | |
772 | ||
773 | // Move to AliIsolationCut the calculation not the histograms?? | |
774 | ||
775 | //Careful here if EMCal limits changed .. 2010 (4 SM) to 2011-12 (10 SM), for the moment consider 100 deg in phi | |
776 | Float_t emcEtaSize = 0.7*2; // TO FIX | |
777 | Float_t emcPhiSize = TMath::DegToRad()*100.; // TO FIX | |
778 | ||
26a8bf11 | 779 | if(((2*conesize*emcPhiSize)-coneA)!=0)phiUEptsumCellNorm = phiUEptsumCell*(coneA / ((2*conesize*emcPhiSize)-coneA)); |
727a309a | 780 | if(((2*conesize*emcEtaSize)-coneA)!=0)etaUEptsumCellNorm = etaUEptsumCell*(coneA / ((2*conesize*emcEtaSize)-coneA)); |
9b01dc66 | 781 | |
782 | // Need to correct coneptsumCluster by the fraction of the cone out of the calorimeter cut acceptance! | |
783 | ||
784 | Float_t correctConeSumCellEta = 1; | |
785 | if(TMath::Abs(etaTrig)+conesize > emcEtaSize/2.) | |
786 | { | |
787 | Float_t excess = TMath::Abs(etaTrig) + conesize - emcEtaSize/2.; | |
727a309a | 788 | correctConeSumCellEta = GetIsolationCut()->CalculateExcessAreaFraction(excess); |
9b01dc66 | 789 | //printf("Excess EMC-Eta %2.3f, coneA %2.2f, excessA %2.2f, angle %2.2f,factor %2.2f\n",excess,coneA, excessA, angle*TMath::RadToDeg(), correctConeSumClusterEta); |
b5d10017 | 790 | // Need to correct phi band surface if part of the cone falls out of track cut acceptance! |
26a8bf11 | 791 | if(((2*(conesize-excess)*emcPhiSize)-(coneA-correctConeSumCellEta))!=0)phiUEptsumCellNorm = phiUEptsumCell*(coneA / ((2*(conesize-excess)*emcPhiSize)-(coneA-correctConeSumCellEta))); |
9b01dc66 | 792 | } |
793 | ||
794 | Float_t correctConeSumCellPhi = 1; | |
795 | //printf("EMCPhiTrig %2.2f, conesize %2.2f, sum %2.2f, rest %2.2f \n",phiTrig*TMath::RadToDeg(),conesize*TMath::RadToDeg(),(phiTrig+conesize)*TMath::RadToDeg(),(phiTrig-conesize)*TMath::RadToDeg() ); | |
796 | if((phiTrig+conesize > 180*TMath::DegToRad()) || | |
797 | (phiTrig-conesize < 80*TMath::DegToRad())) | |
798 | { | |
799 | Float_t excess = 0; | |
800 | if( phiTrig+conesize > 180*TMath::DegToRad() ) excess = conesize + phiTrig - 180*TMath::DegToRad() ; | |
801 | else excess = conesize - phiTrig + 80*TMath::DegToRad() ; | |
802 | ||
727a309a | 803 | correctConeSumCellPhi = GetIsolationCut()->CalculateExcessAreaFraction(excess); |
9b01dc66 | 804 | //printf("Excess EMC-Phi %2.3f, coneA %2.2f, excessA %2.2f, angle %2.2f,factor %2.2f\n",excess,coneA, excessA, angle*TMath::RadToDeg(), correctConeSumClusterPhi); |
b5d10017 | 805 | |
806 | // Need to correct eta band surface if part of the cone falls out of track cut acceptance! | |
26a8bf11 | 807 | if(((2*(conesize-excess)*emcEtaSize)-(coneA-correctConeSumCellPhi))!=0)etaUEptsumCellNorm = etaUEptsumCell*(coneA / ((2*(conesize-excess)*emcEtaSize)-(coneA-correctConeSumCellPhi))); |
b5d10017 | 808 | |
9b01dc66 | 809 | } |
810 | ||
811 | // In case that cone is out of eta and phi side, we are over correcting, not too often with the current cuts ... | |
812 | coneptsumCellSubPhi = coneptsumCell*correctConeSumCellEta*correctConeSumCellPhi - phiUEptsumCellNorm; | |
813 | coneptsumCellSubEta = coneptsumCell*correctConeSumCellEta*correctConeSumCellPhi - etaUEptsumCellNorm; | |
814 | ||
815 | fhConeSumPtPhiUESubCell ->Fill(ptTrig , coneptsumCellSubPhi); | |
816 | fhConeSumPtPhiUESubCellTrigEtaPhi ->Fill(etaTrig, phiTrig, coneptsumCellSubPhi); | |
817 | fhConeSumPtEtaUESubCell ->Fill(ptTrig , coneptsumCellSubEta); | |
818 | fhConeSumPtEtaUESubCellTrigEtaPhi ->Fill(etaTrig, phiTrig, coneptsumCellSubEta); | |
819 | ||
820 | fhFractionCellOutConeEta ->Fill(ptTrig , correctConeSumCellEta-1); | |
821 | fhFractionCellOutConeEtaTrigEtaPhi->Fill(etaTrig, phiTrig, correctConeSumCellEta-1); | |
822 | fhFractionCellOutConePhi ->Fill(ptTrig , correctConeSumCellPhi-1); | |
823 | fhFractionCellOutConePhiTrigEtaPhi->Fill(etaTrig, phiTrig, correctConeSumCellPhi-1); | |
727a309a | 824 | if(coneptsumCell!=0) |
825 | { | |
826 | coneptsumCellSubPhiNorm = coneptsumCellSubPhi/coneptsumCell; | |
10a65cc6 | 827 | coneptsumCellSubEtaNorm = coneptsumCellSubEta/coneptsumCell; |
828 | } | |
727a309a | 829 | |
b5d10017 | 830 | fhConeSumPtSubvsConeSumPtTotPhiCell ->Fill(coneptsumCell,coneptsumCellSubPhi); |
831 | fhConeSumPtSubNormvsConeSumPtTotPhiCell->Fill(coneptsumCell,coneptsumCellSubPhiNorm); | |
832 | fhConeSumPtSubvsConeSumPtTotEtaCell ->Fill(coneptsumCell,coneptsumCellSubEta); | |
833 | fhConeSumPtSubNormvsConeSumPtTotEtaCell->Fill(coneptsumCell,coneptsumCellSubEtaNorm); | |
23130491 | 834 | } |
9b01dc66 | 835 | |
72433939 | 836 | if( partTypeInCone==AliIsolationCut::kNeutralAndCharged ) |
837 | { | |
9b01dc66 | 838 | |
839 | // --------------------------- // | |
840 | // Tracks and clusters in cone // | |
841 | // --------------------------- // | |
72433939 | 842 | |
843 | Double_t sumPhiUESub = coneptsumClusterSubPhi + coneptsumTrackSubPhi; | |
844 | Double_t sumEtaUESub = coneptsumClusterSubEta + coneptsumTrackSubEta; | |
845 | ||
846 | fhConeSumPtPhiUESub ->Fill(ptTrig , sumPhiUESub); | |
847 | fhConeSumPtPhiUESubTrigEtaPhi->Fill(etaTrig, phiTrig, sumPhiUESub); | |
848 | fhConeSumPtEtaUESub ->Fill(ptTrig , sumEtaUESub); | |
849 | fhConeSumPtEtaUESubTrigEtaPhi->Fill(etaTrig, phiTrig, sumEtaUESub); | |
850 | ||
9b01dc66 | 851 | fhEtaBandClustervsTrack ->Fill(etaUEptsumCluster ,etaUEptsumTrack ); |
852 | fhPhiBandClustervsTrack ->Fill(phiUEptsumCluster ,phiUEptsumTrack ); | |
72433939 | 853 | fhEtaBandNormClustervsTrack->Fill(etaUEptsumClusterNorm,etaUEptsumTrackNorm); |
854 | fhPhiBandNormClustervsTrack->Fill(phiUEptsumClusterNorm,phiUEptsumTrackNorm); | |
855 | ||
856 | fhConeSumPtEtaUESubClustervsTrack->Fill(coneptsumClusterSubEta,coneptsumTrackSubEta); | |
857 | fhConeSumPtPhiUESubClustervsTrack->Fill(coneptsumClusterSubPhi,coneptsumTrackSubPhi); | |
9b01dc66 | 858 | |
859 | // ------------------------ // | |
860 | // Tracks and cells in cone // | |
861 | // ------------------------ // | |
862 | ||
863 | Double_t sumPhiUESubTrackCell = coneptsumCellSubPhi + coneptsumTrackSubPhi; | |
864 | Double_t sumEtaUESubTrackCell = coneptsumCellSubEta + coneptsumTrackSubEta; | |
865 | ||
866 | fhConeSumPtPhiUESubTrackCell ->Fill(ptTrig , sumPhiUESubTrackCell); | |
867 | fhConeSumPtPhiUESubTrackCellTrigEtaPhi->Fill(etaTrig, phiTrig, sumPhiUESubTrackCell); | |
868 | fhConeSumPtEtaUESubTrackCell ->Fill(ptTrig , sumEtaUESubTrackCell); | |
869 | fhConeSumPtEtaUESubTrackCellTrigEtaPhi->Fill(etaTrig, phiTrig, sumEtaUESubTrackCell); | |
870 | ||
871 | fhEtaBandCellvsTrack ->Fill(etaUEptsumCell ,etaUEptsumTrack ); | |
872 | fhPhiBandCellvsTrack ->Fill(phiUEptsumCell ,phiUEptsumTrack ); | |
873 | fhEtaBandNormCellvsTrack->Fill(etaUEptsumCellNorm,etaUEptsumTrackNorm); | |
874 | fhPhiBandNormCellvsTrack->Fill(phiUEptsumCellNorm,phiUEptsumTrackNorm); | |
875 | ||
876 | fhConeSumPtEtaUESubCellvsTrack->Fill(coneptsumCellSubEta,coneptsumTrackSubEta); | |
877 | fhConeSumPtPhiUESubCellvsTrack->Fill(coneptsumCellSubPhi,coneptsumTrackSubPhi); | |
878 | ||
879 | ||
72433939 | 880 | } |
23130491 | 881 | } |
882 | ||
883 | ||
884 | //__________________________________________________________________________________________________ | |
885 | void AliAnaParticleIsolation::CalculateCaloSignalInCone(AliAODPWG4ParticleCorrelation * aodParticle, | |
886 | Float_t & coneptsumCluster) | |
887 | { | |
888 | // Get the cluster pT or sum of pT in isolation cone | |
889 | ||
72433939 | 890 | if( GetIsolationCut()->GetParticleTypeInCone()==AliIsolationCut::kOnlyCharged ) return ; |
891 | ||
23130491 | 892 | //Recover reference arrays with clusters and tracks |
893 | TObjArray * refclusters = aodParticle->GetObjArray(GetAODObjArrayName()+"Clusters"); | |
894 | if(!refclusters) return ; | |
895 | ||
896 | Float_t ptTrig = aodParticle->Pt(); | |
897 | ||
898 | //Get vertex for cluster momentum calculation | |
899 | Double_t vertex[] = {0,0,0} ; //vertex ; | |
900 | if(GetReader()->GetDataType() != AliCaloTrackReader::kMC) | |
901 | GetReader()->GetVertex(vertex); | |
902 | ||
903 | TLorentzVector mom ; | |
904 | for(Int_t icalo=0; icalo < refclusters->GetEntriesFast(); icalo++) | |
905 | { | |
906 | AliVCluster* calo = (AliVCluster *) refclusters->At(icalo); | |
907 | calo->GetMomentum(mom,vertex) ;//Assume that come from vertex in straight line | |
908 | ||
909 | fhPtInCone ->Fill(ptTrig, mom.Pt()); | |
910 | fhPtClusterInCone->Fill(ptTrig, mom.Pt()); | |
911 | ||
912 | if(fFillPileUpHistograms) | |
913 | { | |
914 | if(GetReader()->IsPileUpFromSPD()) fhPtInConePileUp[0]->Fill(ptTrig,mom.Pt()); | |
915 | if(GetReader()->IsPileUpFromEMCal()) fhPtInConePileUp[1]->Fill(ptTrig,mom.Pt()); | |
916 | if(GetReader()->IsPileUpFromSPDOrEMCal()) fhPtInConePileUp[2]->Fill(ptTrig,mom.Pt()); | |
917 | if(GetReader()->IsPileUpFromSPDAndEMCal()) fhPtInConePileUp[3]->Fill(ptTrig,mom.Pt()); | |
918 | if(GetReader()->IsPileUpFromSPDAndNotEMCal()) fhPtInConePileUp[4]->Fill(ptTrig,mom.Pt()); | |
919 | if(GetReader()->IsPileUpFromEMCalAndNotSPD()) fhPtInConePileUp[5]->Fill(ptTrig,mom.Pt()); | |
920 | if(GetReader()->IsPileUpFromNotSPDAndNotEMCal()) fhPtInConePileUp[6]->Fill(ptTrig,mom.Pt()); | |
921 | } | |
922 | ||
923 | fhPtInConeCent->Fill(GetEventCentrality(),mom.Pt()); | |
924 | coneptsumCluster+=mom.Pt(); | |
72433939 | 925 | } |
926 | ||
927 | fhConeSumPtCluster ->Fill(ptTrig, coneptsumCluster); | |
23130491 | 928 | } |
929 | ||
b94e038e | 930 | //______________________________________________________________________________________________________ |
9b01dc66 | 931 | void AliAnaParticleIsolation::CalculateCaloCellSignalInCone(AliAODPWG4ParticleCorrelation * aodParticle, |
932 | Float_t & coneptsumCell) | |
933 | { | |
b5d10017 | 934 | // Get the cell amplityde or sum of amplitudes in isolation cone |
935 | // Mising: Remove signal cells in cone in case the trigger is a cluster! | |
9b01dc66 | 936 | |
937 | if( GetIsolationCut()->GetParticleTypeInCone()==AliIsolationCut::kOnlyCharged ) return ; | |
b5d10017 | 938 | |
9b01dc66 | 939 | Float_t conesize = GetIsolationCut()->GetConeSize(); |
940 | ||
941 | Float_t ptTrig = aodParticle->Pt(); | |
942 | Float_t phiTrig = aodParticle->Phi(); | |
b5d10017 | 943 | if(phiTrig<0) phiTrig += TMath::TwoPi(); |
9b01dc66 | 944 | Float_t etaTrig = aodParticle->Eta(); |
945 | ||
b5d10017 | 946 | if(aodParticle->GetDetector()=="EMCAL") |
9b01dc66 | 947 | { |
b5d10017 | 948 | AliEMCALGeometry* eGeom = AliEMCALGeometry::GetInstance(); |
949 | Int_t absId = -999; | |
950 | ||
951 | if (eGeom->GetAbsCellIdFromEtaPhi(etaTrig,phiTrig,absId)) | |
9b01dc66 | 952 | { |
b5d10017 | 953 | if(!eGeom->CheckAbsCellId(absId)) return ; |
9b01dc66 | 954 | |
b5d10017 | 955 | // Get absolute (col,row) of trigger particle |
956 | Int_t nSupMod = eGeom->GetSuperModuleNumber(absId); | |
957 | Int_t nModule = -1; | |
958 | Int_t imEta=-1, imPhi=-1; | |
959 | Int_t ieta =-1, iphi =-1; | |
960 | ||
961 | if (eGeom->GetCellIndex(absId,nSupMod,nModule,imPhi,imEta)) | |
962 | { | |
963 | Int_t iEta=-1, iPhi=-1; | |
964 | eGeom->GetCellPhiEtaIndexInSModule(nSupMod,nModule,imPhi,imEta,iphi,ieta); | |
965 | ||
966 | Int_t colTrig = iEta; | |
967 | if (nSupMod % 2) colTrig = AliEMCALGeoParams::fgkEMCALCols + iEta ; | |
968 | Int_t rowTrig = iPhi + AliEMCALGeoParams::fgkEMCALRows*int(nSupMod/2); | |
969 | ||
970 | Int_t sqrSize = int(conesize/0.0143); | |
971 | ||
972 | AliVCaloCells * cells = GetEMCALCells(); | |
973 | ||
974 | // Loop on cells in cone | |
975 | for(Int_t irow = rowTrig-sqrSize; irow < rowTrig+sqrSize; irow++) | |
976 | { | |
10a65cc6 | 977 | for(Int_t icol = colTrig-sqrSize; icol < colTrig+sqrSize; icol++) |
b5d10017 | 978 | { |
979 | Int_t inSector = int(irow/AliEMCALGeoParams::fgkEMCALRows); | |
10a65cc6 | 980 | if(inSector==5) continue; |
981 | ||
982 | Int_t inSupMod = -1; | |
b5d10017 | 983 | Int_t icolLoc = -1; |
984 | if(icol < AliEMCALGeoParams::fgkEMCALCols) | |
985 | { | |
ea051413 | 986 | inSupMod = 2*inSector + 1; |
b5d10017 | 987 | icolLoc = icol; |
988 | } | |
989 | else if(icol > AliEMCALGeoParams::fgkEMCALCols - 1) | |
990 | { | |
ea051413 | 991 | inSupMod = 2*inSector; |
b5d10017 | 992 | icolLoc = icol-AliEMCALGeoParams::fgkEMCALCols; |
993 | } | |
994 | ||
b5c8089d | 995 | Int_t irowLoc = irow - AliEMCALGeoParams::fgkEMCALRows*inSector ; |
b5d10017 | 996 | |
997 | Int_t iabsId = eGeom->GetAbsCellIdFromCellIndexes(inSupMod,irowLoc,icolLoc); | |
998 | if(!eGeom->CheckAbsCellId(iabsId)) continue; | |
999 | ||
1000 | fhPtCellInCone->Fill(ptTrig, cells->GetCellAmplitude(iabsId)); | |
1001 | coneptsumCell += cells->GetCellAmplitude(iabsId); | |
1002 | } | |
1003 | } | |
1004 | } | |
9b01dc66 | 1005 | } |
1006 | } | |
1007 | ||
1008 | fhConeSumPtCell->Fill(ptTrig,coneptsumCell); | |
b5d10017 | 1009 | |
9b01dc66 | 1010 | } |
1011 | ||
23130491 | 1012 | //___________________________________________________________________________________________________ |
1013 | void AliAnaParticleIsolation::CalculateTrackSignalInCone(AliAODPWG4ParticleCorrelation * aodParticle, | |
1014 | Float_t & coneptsumTrack) | |
1015 | { | |
1016 | // Get the track pT or sum of pT in isolation cone | |
1017 | ||
72433939 | 1018 | if( GetIsolationCut()->GetParticleTypeInCone()==AliIsolationCut::kOnlyNeutral ) return ; |
1019 | ||
23130491 | 1020 | //Recover reference arrays with clusters and tracks |
1021 | TObjArray * reftracks = aodParticle->GetObjArray(GetAODObjArrayName()+"Tracks"); | |
1022 | if(!reftracks) return ; | |
1023 | ||
1024 | Float_t ptTrig = aodParticle->Pt(); | |
1025 | Double_t bz = GetReader()->GetInputEvent()->GetMagneticField(); | |
1026 | ||
1027 | for(Int_t itrack=0; itrack < reftracks->GetEntriesFast(); itrack++) | |
1028 | { | |
1029 | AliVTrack* track = (AliVTrack *) reftracks->At(itrack); | |
1030 | Float_t pTtrack = track->Pt(); | |
1031 | ||
1032 | fhPtInCone ->Fill(ptTrig,pTtrack); | |
1033 | fhPtTrackInCone->Fill(ptTrig,pTtrack); | |
1034 | ||
1035 | if(fFillPileUpHistograms) | |
1036 | { | |
1037 | ULong_t status = track->GetStatus(); | |
1038 | Bool_t okTOF = ( (status & AliVTrack::kTOFout) == AliVTrack::kTOFout ) ; | |
1039 | //Double32_t tof = track->GetTOFsignal()*1e-3; | |
1040 | Int_t trackBC = track->GetTOFBunchCrossing(bz); | |
1041 | ||
1042 | if ( okTOF && trackBC!=0 ) fhPtTrackInConeOtherBC->Fill(ptTrig,pTtrack); | |
1043 | else if( okTOF && trackBC==0 ) fhPtTrackInConeBC0 ->Fill(ptTrig,pTtrack); | |
1044 | ||
1045 | Int_t vtxBC = GetReader()->GetVertexBC(); | |
1046 | if(vtxBC == 0 || vtxBC==AliVTrack::kTOFBCNA) fhPtTrackInConeVtxBC0->Fill(ptTrig,pTtrack); | |
1047 | ||
1048 | if(GetReader()->IsPileUpFromSPD()) { fhPtInConePileUp[0]->Fill(ptTrig,pTtrack); | |
1049 | if(okTOF && trackBC!=0 ) fhPtTrackInConeOtherBCPileUpSPD->Fill(ptTrig,pTtrack); | |
1050 | if(okTOF && trackBC==0 ) fhPtTrackInConeBC0PileUpSPD ->Fill(ptTrig,pTtrack); } | |
1051 | if(GetReader()->IsPileUpFromEMCal()) fhPtInConePileUp[1]->Fill(ptTrig,pTtrack); | |
1052 | if(GetReader()->IsPileUpFromSPDOrEMCal()) fhPtInConePileUp[2]->Fill(ptTrig,pTtrack); | |
1053 | if(GetReader()->IsPileUpFromSPDAndEMCal()) fhPtInConePileUp[3]->Fill(ptTrig,pTtrack); | |
1054 | if(GetReader()->IsPileUpFromSPDAndNotEMCal()) fhPtInConePileUp[4]->Fill(ptTrig,pTtrack); | |
1055 | if(GetReader()->IsPileUpFromEMCalAndNotSPD()) fhPtInConePileUp[5]->Fill(ptTrig,pTtrack); | |
1056 | if(GetReader()->IsPileUpFromNotSPDAndNotEMCal()) fhPtInConePileUp[6]->Fill(ptTrig,pTtrack); | |
1057 | } | |
1058 | ||
1059 | fhPtInConeCent->Fill(GetEventCentrality(),pTtrack); | |
1060 | coneptsumTrack+=pTtrack; | |
1061 | } | |
72433939 | 1062 | |
1063 | fhConeSumPtTrack->Fill(ptTrig, coneptsumTrack); | |
1064 | ||
23130491 | 1065 | } |
1066 | ||
2ad19c3d | 1067 | //_________________________________________________________________ |
23130491 | 1068 | void AliAnaParticleIsolation::FillPileUpHistograms(Int_t clusterID) |
2ad19c3d | 1069 | { |
1070 | // Fill some histograms to understand pile-up | |
1071 | if(!fFillPileUpHistograms) return; | |
1072 | ||
1073 | if(clusterID < 0 ) | |
1074 | { | |
1075 | printf("AliAnaParticleIsolation::FillPileUpHistograms(), ID of cluster = %d, not possible! ", clusterID); | |
1076 | return; | |
1077 | } | |
1078 | ||
1079 | Int_t iclus = -1; | |
1080 | TObjArray* clusters = 0x0; | |
1081 | if (fCalorimeter == "EMCAL") clusters = GetEMCALClusters(); | |
1082 | else if(fCalorimeter == "PHOS" ) clusters = GetPHOSClusters(); | |
1083 | ||
1084 | Float_t energy = 0; | |
1085 | Float_t time = -1000; | |
1086 | ||
1087 | if(clusters) | |
1088 | { | |
1089 | AliVCluster *cluster = FindCluster(clusters,clusterID,iclus); | |
1090 | energy = cluster->E(); | |
994051fa | 1091 | time = cluster->GetTOF()*1e9; |
2ad19c3d | 1092 | } |
1093 | ||
1094 | //printf("E %f, time %f\n",energy,time); | |
1095 | AliVEvent * event = GetReader()->GetInputEvent(); | |
1096 | ||
1097 | fhTimeENoCut->Fill(energy,time); | |
1098 | if(GetReader()->IsPileUpFromSPD()) fhTimeESPD ->Fill(energy,time); | |
1099 | if(event->IsPileupFromSPDInMultBins()) fhTimeESPDMulti->Fill(energy,time); | |
1100 | ||
de101942 | 1101 | if(energy < 8) return; // Fill time figures for high energy clusters not too close to trigger threshold |
2ad19c3d | 1102 | |
1103 | AliESDEvent* esdEv = dynamic_cast<AliESDEvent*> (event); | |
1104 | AliAODEvent* aodEv = dynamic_cast<AliAODEvent*> (event); | |
1105 | ||
1106 | // N pile up vertices | |
1107 | Int_t nVerticesSPD = -1; | |
1108 | Int_t nVerticesTracks = -1; | |
1109 | ||
1110 | if (esdEv) | |
1111 | { | |
1112 | nVerticesSPD = esdEv->GetNumberOfPileupVerticesSPD(); | |
1113 | nVerticesTracks = esdEv->GetNumberOfPileupVerticesTracks(); | |
1114 | ||
1115 | }//ESD | |
1116 | else if (aodEv) | |
1117 | { | |
1118 | nVerticesSPD = aodEv->GetNumberOfPileupVerticesSPD(); | |
1119 | nVerticesTracks = aodEv->GetNumberOfPileupVerticesTracks(); | |
1120 | }//AOD | |
1121 | ||
1122 | fhTimeNPileUpVertSPD ->Fill(time,nVerticesSPD); | |
1123 | fhTimeNPileUpVertTrack->Fill(time,nVerticesTracks); | |
1124 | ||
1125 | //printf("Is SPD %d, Is SPD Multi %d, n spd %d, n track %d\n", | |
1126 | // GetReader()->IsPileUpFromSPD(),event->IsPileupFromSPDInMultBins(),nVerticesSPD,nVerticesTracks); | |
1127 | ||
1128 | Int_t ncont = -1; | |
5559f30a | 1129 | Float_t z1 = -1, z2 = -1; |
2ad19c3d | 1130 | Float_t diamZ = -1; |
1131 | for(Int_t iVert=0; iVert<nVerticesSPD;iVert++) | |
1132 | { | |
1133 | if (esdEv) | |
1134 | { | |
1135 | const AliESDVertex* pv=esdEv->GetPileupVertexSPD(iVert); | |
1136 | ncont=pv->GetNContributors(); | |
1137 | z1 = esdEv->GetPrimaryVertexSPD()->GetZ(); | |
1138 | z2 = pv->GetZ(); | |
1139 | diamZ = esdEv->GetDiamondZ(); | |
1140 | }//ESD | |
1141 | else if (aodEv) | |
1142 | { | |
1143 | AliAODVertex *pv=aodEv->GetVertex(iVert); | |
1144 | if(pv->GetType()!=AliAODVertex::kPileupSPD) continue; | |
1145 | ncont=pv->GetNContributors(); | |
1146 | z1=aodEv->GetPrimaryVertexSPD()->GetZ(); | |
1147 | z2=pv->GetZ(); | |
1148 | diamZ = aodEv->GetDiamondZ(); | |
1149 | }// AOD | |
1150 | ||
1151 | Double_t distZ = TMath::Abs(z2-z1); | |
1152 | diamZ = TMath::Abs(z2-diamZ); | |
1153 | ||
1154 | fhTimeNPileUpVertContributors ->Fill(time,ncont); | |
1155 | fhTimePileUpMainVertexZDistance->Fill(time,distZ); | |
1156 | fhTimePileUpMainVertexZDiamond ->Fill(time,diamZ); | |
1157 | ||
1158 | }// loop | |
1159 | } | |
1160 | ||
23130491 | 1161 | //_____________________________________________________________________________________________________________________ |
f6d2e552 | 1162 | void AliAnaParticleIsolation::FillTrackMatchingShowerShapeControlHistograms(AliAODPWG4ParticleCorrelation *pCandidate) |
b5dbb99b | 1163 | { |
db7b861a | 1164 | // Fill Track matching and Shower Shape control histograms |
b5dbb99b | 1165 | if(!fFillTMHisto && !fFillSSHisto) return; |
1166 | ||
23130491 | 1167 | Int_t clusterID = pCandidate->GetCaloLabel(0) ; |
1168 | Int_t nMaxima = pCandidate->GetFiducialArea(); // bad name, just place holder for the moment | |
1169 | Int_t mcTag = pCandidate->GetTag() ; | |
1170 | Bool_t isolated = pCandidate->IsIsolated(); | |
1171 | ||
1172 | if(clusterID < 0 ) | |
547c2f01 | 1173 | { |
81a5e27b | 1174 | printf("AliAnaParticleIsolation::FillTrackMatchingShowerShapeControlHistograms(), ID of cluster = %d, not possible! \n", clusterID); |
547c2f01 | 1175 | return; |
1176 | } | |
1177 | ||
b5dbb99b | 1178 | Int_t iclus = -1; |
1179 | TObjArray* clusters = 0x0; | |
1180 | if (fCalorimeter == "EMCAL") clusters = GetEMCALClusters(); | |
1181 | else if(fCalorimeter == "PHOS" ) clusters = GetPHOSClusters(); | |
1182 | ||
32d244b0 | 1183 | Float_t energy = pCandidate->E(); |
1184 | Float_t pt = pCandidate->Pt(); | |
1185 | ||
b5dbb99b | 1186 | if(clusters) |
1187 | { | |
b5dbb99b | 1188 | AliVCluster *cluster = FindCluster(clusters,clusterID,iclus); |
b5dbb99b | 1189 | |
1190 | if(fFillSSHisto) | |
1191 | { | |
32d244b0 | 1192 | fhELambda0 [isolated]->Fill(energy, cluster->GetM02() ); |
1193 | fhPtLambda0[isolated]->Fill(pt, cluster->GetM02() ); | |
1194 | fhELambda1 [isolated]->Fill(energy, cluster->GetM20() ); | |
b5dbb99b | 1195 | |
764ab1f4 | 1196 | if(IsDataMC()) |
1197 | { | |
32d244b0 | 1198 | if (GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPrompt) || |
1199 | GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCFragmentation)) | |
1200 | { | |
1201 | fhELambda0MCPhoton [isolated]->Fill(energy, cluster->GetM02()); | |
1202 | ||
1203 | if (GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPrompt)) | |
1204 | fhPtLambda0MCPhotonPrompt [isolated]->Fill(pt, cluster->GetM02()); | |
1205 | else if (GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCFragmentation)) | |
1206 | fhPtLambda0MCPhotonFrag [isolated]->Fill(pt, cluster->GetM02()); | |
1207 | } | |
764ab1f4 | 1208 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPi0)) fhELambda0MCPi0 [isolated]->Fill(energy, cluster->GetM02()); |
1209 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPi0Decay)) fhELambda0MCPi0Decay [isolated]->Fill(energy, cluster->GetM02()); | |
1210 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCEtaDecay)) fhELambda0MCEtaDecay [isolated]->Fill(energy, cluster->GetM02()); | |
1211 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCOtherDecay)) fhELambda0MCOtherDecay[isolated]->Fill(energy, cluster->GetM02()); | |
23130491 | 1212 | |
2dac6a45 | 1213 | // else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCConversion)) fhPtNoIsoConversion ->Fill(energy, cluster->GetM02()); |
f6d2e552 | 1214 | else if(!GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCElectron)) fhELambda0MCHadron [isolated]->Fill(energy, cluster->GetM02()); |
764ab1f4 | 1215 | } |
1216 | ||
ca134929 | 1217 | if(fCalorimeter == "EMCAL" && GetModuleNumber(cluster) > 5) // TO DO: CHANGE FOR 2012 |
b5dbb99b | 1218 | { |
32d244b0 | 1219 | fhELambda0TRD [isolated]->Fill(energy, cluster->GetM02() ); |
1220 | fhPtLambda0TRD[isolated]->Fill(pt , cluster->GetM02() ); | |
1221 | fhELambda1TRD [isolated]->Fill(energy, cluster->GetM20() ); | |
b5dbb99b | 1222 | } |
5c46c992 | 1223 | |
ca134929 | 1224 | fhNLocMax[isolated]->Fill(energy,nMaxima); |
1225 | if (nMaxima==1) { fhELambda0LocMax1[isolated]->Fill(energy,cluster->GetM02()); fhELambda1LocMax1[isolated]->Fill(energy,cluster->GetM20()); } | |
1226 | else if(nMaxima==2) { fhELambda0LocMax2[isolated]->Fill(energy,cluster->GetM02()); fhELambda1LocMax2[isolated]->Fill(energy,cluster->GetM20()); } | |
1227 | else { fhELambda0LocMaxN[isolated]->Fill(energy,cluster->GetM02()); fhELambda1LocMaxN[isolated]->Fill(energy,cluster->GetM20()); } | |
b5dbb99b | 1228 | } // SS histo fill |
1229 | ||
1230 | ||
1231 | if(fFillTMHisto) | |
1232 | { | |
1233 | Float_t dZ = cluster->GetTrackDz(); | |
1234 | Float_t dR = cluster->GetTrackDx(); | |
1235 | ||
1236 | if(cluster->IsEMCAL() && GetCaloUtils()->IsRecalculationOfClusterTrackMatchingOn()) | |
1237 | { | |
1238 | dR = 2000., dZ = 2000.; | |
1239 | GetCaloUtils()->GetEMCALRecoUtils()->GetMatchedResiduals(cluster->GetID(),dZ,dR); | |
1240 | } | |
1241 | ||
1242 | //printf("ParticleIsolation: dPhi %f, dEta %f\n",dR,dZ); | |
ec58c056 | 1243 | if(fhTrackMatchedDEta[isolated] && TMath::Abs(dR) < 999) |
b5dbb99b | 1244 | { |
ca134929 | 1245 | fhTrackMatchedDEta[isolated]->Fill(energy,dZ); |
1246 | fhTrackMatchedDPhi[isolated]->Fill(energy,dR); | |
1247 | if(energy > 0.5) fhTrackMatchedDEtaDPhi[isolated]->Fill(dZ,dR); | |
b5dbb99b | 1248 | } |
1249 | ||
1250 | // Check dEdx and E/p of matched clusters | |
1251 | ||
1252 | if(TMath::Abs(dZ) < 0.05 && TMath::Abs(dR) < 0.05) | |
1253 | { | |
db6fb352 | 1254 | |
4bfeae64 | 1255 | AliVTrack *track = GetCaloUtils()->GetMatchedTrack(cluster, GetReader()->GetInputEvent()); |
b5dbb99b | 1256 | |
1257 | if(track) | |
1258 | { | |
1259 | Float_t dEdx = track->GetTPCsignal(); | |
ca134929 | 1260 | fhdEdx[isolated]->Fill(cluster->E(), dEdx); |
b5dbb99b | 1261 | |
1262 | Float_t eOverp = cluster->E()/track->P(); | |
ca134929 | 1263 | fhEOverP[isolated]->Fill(cluster->E(), eOverp); |
b5dbb99b | 1264 | } |
4bfeae64 | 1265 | //else |
1266 | // printf("AliAnaParticleIsolation::FillTrackMatchingShowerShapeHistograms() - Residual OK but (dR, dZ)= (%2.4f,%2.4f) no track associated WHAT? \n", dR,dZ); | |
b5dbb99b | 1267 | |
db6fb352 | 1268 | |
1269 | if(IsDataMC()) | |
1270 | { | |
b5dbb99b | 1271 | if ( !GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCConversion) ) |
1272 | { | |
1273 | if ( GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPi0) || | |
ca134929 | 1274 | GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCEta) ) fhTrackMatchedMCParticle[isolated]->Fill(energy, 2.5 ); |
1275 | else if ( GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPhoton) ) fhTrackMatchedMCParticle[isolated]->Fill(energy, 0.5 ); | |
1276 | else if ( GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCElectron) ) fhTrackMatchedMCParticle[isolated]->Fill(energy, 1.5 ); | |
1277 | else fhTrackMatchedMCParticle[isolated]->Fill(energy, 3.5 ); | |
b5dbb99b | 1278 | |
1279 | } | |
1280 | else | |
1281 | { | |
1282 | if ( GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPi0) || | |
ca134929 | 1283 | GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCEta) ) fhTrackMatchedMCParticle[isolated]->Fill(energy, 6.5 ); |
1284 | else if ( GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPhoton) ) fhTrackMatchedMCParticle[isolated]->Fill(energy, 4.5 ); | |
1285 | else if ( GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCElectron) ) fhTrackMatchedMCParticle[isolated]->Fill(energy, 5.5 ); | |
1286 | else fhTrackMatchedMCParticle[isolated]->Fill(energy, 7.5 ); | |
b5dbb99b | 1287 | } |
1288 | ||
1289 | } // MC | |
1290 | ||
1291 | } // match window | |
1292 | ||
1293 | }// TM histos fill | |
1294 | ||
1295 | } // clusters array available | |
1296 | ||
1297 | } | |
1298 | ||
803d06a8 | 1299 | //______________________________________________________ |
1a31a9ab | 1300 | TObjString * AliAnaParticleIsolation::GetAnalysisCuts() |
1301 | { | |
b0a31c92 | 1302 | //Save parameters used for analysis |
1a31a9ab | 1303 | TString parList ; //this will be list of parameters used for this analysis. |
1304 | const Int_t buffersize = 255; | |
1305 | char onePar[buffersize] ; | |
1306 | ||
1307 | snprintf(onePar, buffersize,"--- AliAnaParticleIsolation ---\n") ; | |
1308 | parList+=onePar ; | |
1309 | snprintf(onePar, buffersize,"Calorimeter: %s\n",fCalorimeter.Data()) ; | |
1310 | parList+=onePar ; | |
1311 | snprintf(onePar, buffersize,"fReMakeIC =%d (Flag for reisolation during histogram filling) \n",fReMakeIC) ; | |
1312 | parList+=onePar ; | |
1313 | snprintf(onePar, buffersize,"fMakeSeveralIC=%d (Flag for isolation with several cuts at the same time ) \n",fMakeSeveralIC) ; | |
09273901 | 1314 | parList+=onePar ; |
1315 | snprintf(onePar, buffersize,"fFillTMHisto=%d (Flag for track matching histograms) \n",fFillTMHisto) ; | |
1a31a9ab | 1316 | parList+=onePar ; |
09273901 | 1317 | snprintf(onePar, buffersize,"fFillSSHisto=%d (Flag for shower shape histograms) \n",fFillSSHisto) ; |
1318 | parList+=onePar ; | |
db6fb352 | 1319 | |
b5dbb99b | 1320 | if(fMakeSeveralIC) |
1321 | { | |
1a31a9ab | 1322 | snprintf(onePar, buffersize,"fNCones =%d (Number of cone sizes) \n",fNCones) ; |
1323 | parList+=onePar ; | |
1324 | snprintf(onePar, buffersize,"fNPtThresFrac=%d (Flag for isolation with several cuts at the same time ) \n",fNPtThresFrac) ; | |
1325 | parList+=onePar ; | |
1326 | ||
b5dbb99b | 1327 | for(Int_t icone = 0; icone < fNCones ; icone++) |
1328 | { | |
1a31a9ab | 1329 | snprintf(onePar, buffersize,"fConeSizes[%d]=%1.2f (isolation cone size) \n",icone, fConeSizes[icone]) ; |
1330 | parList+=onePar ; | |
1331 | } | |
b5dbb99b | 1332 | for(Int_t ipt = 0; ipt < fNPtThresFrac ; ipt++) |
1333 | { | |
1a31a9ab | 1334 | snprintf(onePar, buffersize,"fPtThresholds[%d]=%1.2f (isolation pt threshold) \n",ipt, fPtThresholds[ipt]) ; |
1335 | parList+=onePar ; | |
1336 | } | |
b5dbb99b | 1337 | for(Int_t ipt = 0; ipt < fNPtThresFrac ; ipt++) |
1338 | { | |
1a31a9ab | 1339 | snprintf(onePar, buffersize,"fPtFractions[%d]=%1.2f (isolation pt fraction threshold) \n",ipt, fPtFractions[ipt]) ; |
1340 | parList+=onePar ; | |
db6fb352 | 1341 | } |
1342 | for(Int_t ipt = 0; ipt < fNPtThresFrac ; ipt++) | |
1343 | { | |
1344 | snprintf(onePar, buffersize,"fSumPtThresholds[%d]=%1.2f (isolation sum pt threshold) \n",ipt, fSumPtThresholds[ipt]) ; | |
1345 | parList+=onePar ; | |
1a31a9ab | 1346 | } |
1347 | } | |
1348 | ||
1349 | //Get parameters set in base class. | |
1350 | parList += GetBaseParametersList() ; | |
1351 | ||
1352 | //Get parameters set in IC class. | |
1353 | if(!fMakeSeveralIC)parList += GetIsolationCut()->GetICParametersList() ; | |
1354 | ||
1355 | return new TObjString(parList) ; | |
b0a31c92 | 1356 | |
1a31a9ab | 1357 | } |
1358 | ||
803d06a8 | 1359 | //________________________________________________________ |
1a31a9ab | 1360 | TList * AliAnaParticleIsolation::GetCreateOutputObjects() |
1361 | { | |
1362 | // Create histograms to be saved in output file and | |
1363 | // store them in outputContainer | |
1364 | TList * outputContainer = new TList() ; | |
1365 | outputContainer->SetName("IsolatedParticleHistos") ; | |
1366 | ||
745913ae | 1367 | Int_t nptbins = GetHistogramRanges()->GetHistoPtBins(); |
1368 | Int_t nphibins = GetHistogramRanges()->GetHistoPhiBins(); | |
1369 | Int_t netabins = GetHistogramRanges()->GetHistoEtaBins(); | |
1370 | Float_t ptmax = GetHistogramRanges()->GetHistoPtMax(); | |
1371 | Float_t phimax = GetHistogramRanges()->GetHistoPhiMax(); | |
1372 | Float_t etamax = GetHistogramRanges()->GetHistoEtaMax(); | |
1373 | Float_t ptmin = GetHistogramRanges()->GetHistoPtMin(); | |
1374 | Float_t phimin = GetHistogramRanges()->GetHistoPhiMin(); | |
1375 | Float_t etamin = GetHistogramRanges()->GetHistoEtaMin(); | |
09273901 | 1376 | Int_t ssbins = GetHistogramRanges()->GetHistoShowerShapeBins(); |
1377 | Float_t ssmax = GetHistogramRanges()->GetHistoShowerShapeMax(); | |
1378 | Float_t ssmin = GetHistogramRanges()->GetHistoShowerShapeMin(); | |
2ad19c3d | 1379 | Int_t ntimebins= GetHistogramRanges()->GetHistoTimeBins(); |
1380 | Float_t timemax = GetHistogramRanges()->GetHistoTimeMax(); | |
1381 | Float_t timemin = GetHistogramRanges()->GetHistoTimeMin(); | |
1382 | ||
09273901 | 1383 | Int_t nresetabins = GetHistogramRanges()->GetHistoTrackResidualEtaBins(); |
1384 | Float_t resetamax = GetHistogramRanges()->GetHistoTrackResidualEtaMax(); | |
1385 | Float_t resetamin = GetHistogramRanges()->GetHistoTrackResidualEtaMin(); | |
1386 | Int_t nresphibins = GetHistogramRanges()->GetHistoTrackResidualPhiBins(); | |
1387 | Float_t resphimax = GetHistogramRanges()->GetHistoTrackResidualPhiMax(); | |
1388 | Float_t resphimin = GetHistogramRanges()->GetHistoTrackResidualPhiMin(); | |
803d06a8 | 1389 | |
31ae6d59 | 1390 | Int_t ndedxbins = GetHistogramRanges()->GetHistodEdxBins(); |
1391 | Float_t dedxmax = GetHistogramRanges()->GetHistodEdxMax(); | |
1392 | Float_t dedxmin = GetHistogramRanges()->GetHistodEdxMin(); | |
1393 | Int_t nPoverEbins = GetHistogramRanges()->GetHistoPOverEBins(); | |
1394 | Float_t pOverEmax = GetHistogramRanges()->GetHistoPOverEMax(); | |
1395 | Float_t pOverEmin = GetHistogramRanges()->GetHistoPOverEMin(); | |
1396 | ||
803d06a8 | 1397 | Int_t nptsumbins = fHistoNPtSumBins; |
1398 | Float_t ptsummax = fHistoPtSumMax; | |
1399 | Float_t ptsummin = fHistoPtSumMin; | |
1400 | Int_t nptinconebins = fHistoNPtInConeBins; | |
1401 | Float_t ptinconemax = fHistoPtInConeMax; | |
1402 | Float_t ptinconemin = fHistoPtInConeMin; | |
1a31a9ab | 1403 | |
7726e3a3 | 1404 | //Float_t ptthre = GetIsolationCut()->GetPtThreshold(); |
1405 | //Float_t ptsumthre = GetIsolationCut()->GetSumPtThreshold(); | |
1406 | //Float_t ptfrac = GetIsolationCut()->GetPtFraction(); | |
1407 | Float_t r = GetIsolationCut()->GetConeSize(); | |
1408 | Int_t method = GetIsolationCut()->GetICMethod() ; | |
1409 | Int_t particle = GetIsolationCut()->GetParticleTypeInCone() ; | |
1410 | ||
1411 | TString sThreshold = ""; | |
47a27744 | 1412 | if ( method == AliIsolationCut::kSumPtIC ) sThreshold = Form(", %2.2f < #Sigma #it{p}_{T}^{in cone} < %2.2f GeV/#it{c}", GetIsolationCut()->GetSumPtThreshold(), GetIsolationCut()->GetSumPtThresholdMax()); |
1413 | else if ( method == AliIsolationCut::kPtThresIC) sThreshold = Form(", %2.2f < #it{p}_{T}^{th} < %2.2f GeV/#it{c}" , GetIsolationCut()->GetPtThreshold(), GetIsolationCut()->GetPtThresholdMax()); | |
1414 | else if ( method == AliIsolationCut::kPtFracIC) sThreshold = Form(", #Sigma #it{p}_{T}^{in cone}/#it{p}_{T}^{trig} = %2.2f" , GetIsolationCut()->GetPtFraction()); | |
7726e3a3 | 1415 | |
1416 | TString sParticle = ", x^{0,#pm}"; | |
1417 | if ( particle == AliIsolationCut::kOnlyNeutral ) sParticle = ", x^{0}"; | |
1418 | else if ( particle == AliIsolationCut::kOnlyCharged ) sParticle = ", x^{#pm}"; | |
1419 | ||
1420 | TString parTitle = Form("#it{R} = %2.2f%s%s",GetIsolationCut()->GetConeSize(), sThreshold.Data(),sParticle.Data()); | |
db6fb352 | 1421 | |
17af6e24 | 1422 | TString pileUpName[] = {"SPD","EMCAL","SPDOrEMCAL","SPDAndEMCAL","SPDAndNotEMCAL","EMCALAndNotSPD","NotSPDAndNotEMCAL"} ; |
1423 | ||
b5dbb99b | 1424 | if(!fMakeSeveralIC) |
1425 | { | |
7726e3a3 | 1426 | TString isoName [] = {"NoIso",""}; |
1427 | TString isoTitle[] = {"Not isolated" ,"isolated"}; | |
c8710850 | 1428 | |
72433939 | 1429 | fhEIso = new TH1F("hE", |
7726e3a3 | 1430 | Form("Number of isolated particles vs E, %s",parTitle.Data()), |
72433939 | 1431 | nptbins,ptmin,ptmax); |
9a97f32f | 1432 | fhEIso->SetYTitle("d$it{N} / d#it{E}"); |
1433 | fhEIso->SetXTitle("#it{E} (GeV/#it{c})"); | |
72433939 | 1434 | outputContainer->Add(fhEIso) ; |
1435 | ||
1436 | fhPtIso = new TH1F("hPt", | |
7726e3a3 | 1437 | Form("Number of isolated particles vs #it{p}_{T}, %s",parTitle.Data()), |
72433939 | 1438 | nptbins,ptmin,ptmax); |
9a97f32f | 1439 | fhPtIso->SetYTitle("d#it{N} / #it{p}_{T}"); |
dc9c6e78 | 1440 | fhPtIso->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
72433939 | 1441 | outputContainer->Add(fhPtIso) ; |
1442 | ||
7726e3a3 | 1443 | fhPtCentralityIso = new TH2F("hPtCentrality", |
1444 | Form("centrality vs #it{p}_{T} for isolated particles, %s",parTitle.Data()), | |
1445 | nptbins,ptmin,ptmax, 100,0,100); | |
72433939 | 1446 | fhPtCentralityIso->SetYTitle("centrality"); |
dc9c6e78 | 1447 | fhPtCentralityIso->SetXTitle("#it{p}_{T}(GeV/#it{c})"); |
72433939 | 1448 | outputContainer->Add(fhPtCentralityIso) ; |
1449 | ||
7726e3a3 | 1450 | fhPtEventPlaneIso = new TH2F("hPtEventPlane", |
1451 | Form("event plane angle vs #it{p}_{T} for isolated particles, %s",parTitle.Data()), | |
1452 | nptbins,ptmin,ptmax, 100,0,TMath::Pi()); | |
72433939 | 1453 | fhPtEventPlaneIso->SetYTitle("Event plane angle (rad)"); |
dc9c6e78 | 1454 | fhPtEventPlaneIso->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
72433939 | 1455 | outputContainer->Add(fhPtEventPlaneIso) ; |
1456 | ||
1457 | ||
1458 | fhPtNLocMaxIso = new TH2F("hPtNLocMax", | |
7726e3a3 | 1459 | Form("Number of isolated particles vs #it{p}_{T}, %s",parTitle.Data()), |
72433939 | 1460 | nptbins,ptmin,ptmax,10,0,10); |
9a97f32f | 1461 | fhPtNLocMaxIso->SetYTitle("#it{NLM}"); |
dc9c6e78 | 1462 | fhPtNLocMaxIso->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
72433939 | 1463 | outputContainer->Add(fhPtNLocMaxIso) ; |
1464 | ||
1465 | fhPhiIso = new TH2F("hPhi", | |
7726e3a3 | 1466 | Form("Number of isolated particles vs #phi, %s",parTitle.Data()), |
72433939 | 1467 | nptbins,ptmin,ptmax,nphibins,phimin,phimax); |
1468 | fhPhiIso->SetYTitle("#phi"); | |
dc9c6e78 | 1469 | fhPhiIso->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
72433939 | 1470 | outputContainer->Add(fhPhiIso) ; |
1471 | ||
1472 | fhEtaIso = new TH2F("hEta", | |
7726e3a3 | 1473 | Form("Number of isolated particles vs #eta, %s",parTitle.Data()), |
72433939 | 1474 | nptbins,ptmin,ptmax,netabins,etamin,etamax); |
1475 | fhEtaIso->SetYTitle("#eta"); | |
dc9c6e78 | 1476 | fhEtaIso->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
72433939 | 1477 | outputContainer->Add(fhEtaIso) ; |
1478 | ||
1479 | fhEtaPhiIso = new TH2F("hEtaPhiIso", | |
7726e3a3 | 1480 | Form("Number of isolated particles #eta vs #phi, %s",parTitle.Data()), |
72433939 | 1481 | netabins,etamin,etamax,nphibins,phimin,phimax); |
1482 | fhEtaPhiIso->SetXTitle("#eta"); | |
1483 | fhEtaPhiIso->SetYTitle("#phi"); | |
1484 | outputContainer->Add(fhEtaPhiIso) ; | |
1485 | ||
1486 | fhPtDecayIso = new TH1F("hPtDecayIso", | |
7726e3a3 | 1487 | Form("Number of isolated #pi^{0} decay particles vs #it{p}_{T}, %s",parTitle.Data()), |
72433939 | 1488 | nptbins,ptmin,ptmax); |
9a97f32f | 1489 | fhPtDecayIso->SetYTitle("#it{counts}"); |
dc9c6e78 | 1490 | fhPtDecayIso->SetXTitle("#it{p}_{T}(GeV/#it{c})"); |
72433939 | 1491 | outputContainer->Add(fhPtDecayIso) ; |
1492 | ||
1493 | fhEtaPhiDecayIso = new TH2F("hEtaPhiDecayIso", | |
7726e3a3 | 1494 | Form("Number of isolated Pi0 decay particles #eta vs #phi, %s",parTitle.Data()), |
72433939 | 1495 | netabins,etamin,etamax,nphibins,phimin,phimax); |
1496 | fhEtaPhiDecayIso->SetXTitle("#eta"); | |
1497 | fhEtaPhiDecayIso->SetYTitle("#phi"); | |
1498 | outputContainer->Add(fhEtaPhiDecayIso) ; | |
1499 | ||
1500 | fhConeSumPt = new TH2F("hConePtSum", | |
9a97f32f | 1501 | Form("Track and Cluster #Sigma #it{p}_{T} in isolation cone for #it{R} = %2.2f",r), |
72433939 | 1502 | nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 1503 | fhConeSumPt->SetYTitle("#Sigma #it{p}_{T}"); |
9a97f32f | 1504 | fhConeSumPt->SetXTitle("#it{p}_{T, trigger} (GeV/#it{c})"); |
72433939 | 1505 | outputContainer->Add(fhConeSumPt) ; |
1506 | ||
1507 | fhConeSumPtTrigEtaPhi = new TH2F("hConePtSumTrigEtaPhi", | |
9a97f32f | 1508 | Form("Trigger #eta vs #phi, #Sigma #it{p}_{T} in isolation cone for #it{R} = %2.2f",r), |
72433939 | 1509 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1510 | fhConeSumPtTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
72433939 | 1511 | fhConeSumPtTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1512 | fhConeSumPtTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1513 | outputContainer->Add(fhConeSumPtTrigEtaPhi) ; | |
1514 | ||
1515 | fhPtInCone = new TH2F("hPtInCone", | |
9a97f32f | 1516 | Form("#it{p}_{T} of clusters and tracks in isolation cone for #it{R} = %2.2f",r), |
72433939 | 1517 | nptbins,ptmin,ptmax,nptinconebins,ptinconemin,ptinconemax); |
9a97f32f | 1518 | fhPtInCone->SetYTitle("#it{p}_{T in cone} (GeV/#it{c})"); |
dc9c6e78 | 1519 | fhPtInCone->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
72433939 | 1520 | outputContainer->Add(fhPtInCone) ; |
1521 | ||
1522 | fhPtInConeCent = new TH2F("hPtInConeCent", | |
9a97f32f | 1523 | Form("#it{p}_{T} in isolation cone for #it{R} = %2.2f",r), |
72433939 | 1524 | 100,0,100,nptinconebins,ptinconemin,ptinconemax); |
9a97f32f | 1525 | fhPtInConeCent->SetYTitle("#it{p}_{T in cone} (GeV/#it{c})"); |
72433939 | 1526 | fhPtInConeCent->SetXTitle("centrality"); |
1527 | outputContainer->Add(fhPtInConeCent) ; | |
1528 | ||
1529 | // Cluster only histograms | |
1530 | if(GetIsolationCut()->GetParticleTypeInCone()!=AliIsolationCut::kOnlyCharged) | |
1531 | { | |
1532 | fhConeSumPtCluster = new TH2F("hConePtSumCluster", | |
9a97f32f | 1533 | Form("Cluster #Sigma #it{p}_{T} in isolation cone for #it{R} = %2.2f",r), |
72433939 | 1534 | nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 1535 | fhConeSumPtCluster->SetYTitle("#Sigma #it{p}_{T}"); |
9a97f32f | 1536 | fhConeSumPtCluster->SetXTitle("#it{p}_{T, trigger} (GeV/#it{c})"); |
72433939 | 1537 | outputContainer->Add(fhConeSumPtCluster) ; |
1538 | ||
9b01dc66 | 1539 | fhConeSumPtCell = new TH2F("hConePtSumCell", |
9a97f32f | 1540 | Form("Cell #Sigma #it{p}_{T} in isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 1541 | nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 1542 | fhConeSumPtCell->SetYTitle("#Sigma #it{p}_{T}"); |
9a97f32f | 1543 | fhConeSumPtCell->SetXTitle("#it{p}_{T, trigger} (GeV/#it{c})"); |
9b01dc66 | 1544 | outputContainer->Add(fhConeSumPtCell) ; |
1545 | ||
72433939 | 1546 | fhConeSumPtEtaBandUECluster = new TH2F("hConePtSumEtaBandUECluster", |
dc9c6e78 | 1547 | "#Sigma cluster #it{p}_{T} in UE Eta Band", |
72433939 | 1548 | nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 1549 | fhConeSumPtEtaBandUECluster->SetYTitle("#Sigma #it{p}_{T}"); |
9a97f32f | 1550 | fhConeSumPtEtaBandUECluster->SetXTitle("#it{p}_{T, trigger} (GeV/#it{c})"); |
72433939 | 1551 | outputContainer->Add(fhConeSumPtEtaBandUECluster) ; |
1552 | ||
1553 | fhConeSumPtPhiBandUECluster = new TH2F("hConePtSumPhiBandUECluster", | |
dc9c6e78 | 1554 | "#Sigma cluster #it{p}_{T} UE Phi Band", |
72433939 | 1555 | nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 1556 | fhConeSumPtPhiBandUECluster->SetYTitle("#Sigma #it{p}_{T}"); |
9a97f32f | 1557 | fhConeSumPtPhiBandUECluster->SetXTitle("#it{p}_{T, trigger} (GeV/#it{c})"); |
72433939 | 1558 | outputContainer->Add(fhConeSumPtPhiBandUECluster) ; |
1559 | ||
1560 | fhConeSumPtEtaBandUEClusterTrigEtaPhi = new TH2F("hConePtSumEtaBandUEClusterTrigEtaPhi", | |
dc9c6e78 | 1561 | "Trigger #eta vs #phi, #Sigma cluster #it{p}_{T} in UE Eta Band", |
72433939 | 1562 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1563 | fhConeSumPtEtaBandUEClusterTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
72433939 | 1564 | fhConeSumPtEtaBandUEClusterTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1565 | fhConeSumPtEtaBandUEClusterTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1566 | outputContainer->Add(fhConeSumPtEtaBandUEClusterTrigEtaPhi) ; | |
1567 | ||
1568 | fhConeSumPtPhiBandUEClusterTrigEtaPhi = new TH2F("hConePtSumPhiBandUEClusterTrigEtaPhi", | |
dc9c6e78 | 1569 | "Trigger #eta vs #phi, #Sigma cluster #it{p}_{T} UE Phi Band", |
72433939 | 1570 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1571 | fhConeSumPtPhiBandUEClusterTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
72433939 | 1572 | fhConeSumPtPhiBandUEClusterTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1573 | fhConeSumPtPhiBandUEClusterTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1574 | outputContainer->Add(fhConeSumPtPhiBandUEClusterTrigEtaPhi) ; | |
1575 | ||
9b01dc66 | 1576 | |
1577 | fhConeSumPtEtaBandUECell = new TH2F("hConePtSumEtaBandUECell", | |
dc9c6e78 | 1578 | "#Sigma cell #it{p}_{T} in UE Eta Band", |
9b01dc66 | 1579 | nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 1580 | fhConeSumPtEtaBandUECell->SetYTitle("#Sigma #it{p}_{T}"); |
9a97f32f | 1581 | fhConeSumPtEtaBandUECell->SetXTitle("#it{p}_{T, trigger} (GeV/#it{c})"); |
9b01dc66 | 1582 | outputContainer->Add(fhConeSumPtEtaBandUECell) ; |
1583 | ||
1584 | fhConeSumPtPhiBandUECell = new TH2F("hConePtSumPhiBandUECell", | |
dc9c6e78 | 1585 | "#Sigma cell #it{p}_{T} UE Phi Band", |
9b01dc66 | 1586 | nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 1587 | fhConeSumPtPhiBandUECell->SetYTitle("#Sigma #it{p}_{T}"); |
9a97f32f | 1588 | fhConeSumPtPhiBandUECell->SetXTitle("#it{p}_{T, trigger} (GeV/#it{c})"); |
9b01dc66 | 1589 | outputContainer->Add(fhConeSumPtPhiBandUECell) ; |
1590 | ||
1591 | fhConeSumPtEtaBandUECellTrigEtaPhi = new TH2F("hConePtSumEtaBandUECellTrigEtaPhi", | |
dc9c6e78 | 1592 | "Trigger #eta vs #phi, #Sigma cell #it{p}_{T} in UE Eta Band", |
9b01dc66 | 1593 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1594 | fhConeSumPtEtaBandUECellTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
9b01dc66 | 1595 | fhConeSumPtEtaBandUECellTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1596 | fhConeSumPtEtaBandUECellTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1597 | outputContainer->Add(fhConeSumPtEtaBandUECellTrigEtaPhi) ; | |
1598 | ||
1599 | fhConeSumPtPhiBandUECellTrigEtaPhi = new TH2F("hConePtSumPhiBandUECellTrigEtaPhi", | |
dc9c6e78 | 1600 | "Trigger #eta vs #phi, #Sigma cell #it{p}_{T} UE Phi Band", |
9b01dc66 | 1601 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1602 | fhConeSumPtPhiBandUECellTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
9b01dc66 | 1603 | fhConeSumPtPhiBandUECellTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1604 | fhConeSumPtPhiBandUECellTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1605 | outputContainer->Add(fhConeSumPtPhiBandUECellTrigEtaPhi) ; | |
1606 | ||
1607 | ||
72433939 | 1608 | fhPtClusterInCone = new TH2F("hPtClusterInCone", |
9a97f32f | 1609 | Form("#it{p}_{T} of clusters in isolation cone for #it{R} = %2.2f",r), |
72433939 | 1610 | nptbins,ptmin,ptmax,nptinconebins,ptinconemin,ptinconemax); |
9a97f32f | 1611 | fhPtClusterInCone->SetYTitle("#it{p}_{T in cone} (GeV/#it{c})"); |
dc9c6e78 | 1612 | fhPtClusterInCone->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
72433939 | 1613 | outputContainer->Add(fhPtClusterInCone) ; |
1614 | ||
1615 | fhEtaBandCluster = new TH2F("hEtaBandCluster", | |
9a97f32f | 1616 | Form("#eta vs #phi of clusters in #eta band isolation cone for #it{R} = %2.2f",r), |
72433939 | 1617 | netabins,-1,1,nphibins,0,TMath::TwoPi()); |
1618 | fhEtaBandCluster->SetXTitle("#eta"); | |
1619 | fhEtaBandCluster->SetYTitle("#phi"); | |
1620 | outputContainer->Add(fhEtaBandCluster) ; | |
1621 | ||
1622 | fhPhiBandCluster = new TH2F("hPhiBandCluster", | |
9a97f32f | 1623 | Form("#eta vs #phi of clusters in #phi band isolation cone for #it{R} = %2.2f",r), |
72433939 | 1624 | netabins,-1,1,nphibins,0,TMath::TwoPi()); |
1625 | fhPhiBandCluster->SetXTitle("#eta"); | |
1626 | fhPhiBandCluster->SetYTitle("#phi"); | |
1627 | outputContainer->Add(fhPhiBandCluster) ; | |
1628 | ||
c3327a30 | 1629 | fhEtaPhiInConeCluster= new TH2F("hEtaPhiInConeCluster", |
9a97f32f | 1630 | Form("#eta vs #phi of clusters in cone for #it{R} = %2.2f",r), |
c3327a30 | 1631 | netabins,-1,1,nphibins,0,TMath::TwoPi()); |
9004af1c | 1632 | fhEtaPhiInConeCluster->SetXTitle("#eta"); |
1633 | fhEtaPhiInConeCluster->SetYTitle("#phi"); | |
1634 | outputContainer->Add(fhEtaPhiInConeCluster) ; | |
1635 | ||
c3327a30 | 1636 | fhEtaPhiCluster= new TH2F("hEtaPhiCluster", |
1637 | Form("#eta vs #phi of all clusters"), | |
1638 | netabins,-1,1,nphibins,0,TMath::TwoPi()); | |
9004af1c | 1639 | fhEtaPhiCluster->SetXTitle("#eta"); |
1640 | fhEtaPhiCluster->SetYTitle("#phi"); | |
1641 | outputContainer->Add(fhEtaPhiCluster) ; | |
1642 | ||
c3327a30 | 1643 | fhPtCellInCone = new TH2F("hPtCellInCone", |
9a97f32f | 1644 | Form("#it{p}_{T} of cells in isolation cone for #it{R} = %2.2f",r), |
10a65cc6 | 1645 | nptbins,ptmin,ptmax,1000,0,50); |
9a97f32f | 1646 | fhPtCellInCone->SetYTitle("#it{p}_{T in cone} (GeV/#it{c})"); |
dc9c6e78 | 1647 | fhPtCellInCone->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
9b01dc66 | 1648 | outputContainer->Add(fhPtCellInCone) ; |
1649 | ||
1650 | fhEtaBandCell = new TH2F("hEtaBandCell", | |
9a97f32f | 1651 | Form("#col vs #row of cells in #eta band isolation cone for #it{R} = %2.2f",r), |
10a65cc6 | 1652 | 96,0,95,128,0,127); |
1653 | fhEtaBandCell->SetXTitle("#col"); | |
1654 | fhEtaBandCell->SetYTitle("#row"); | |
9b01dc66 | 1655 | outputContainer->Add(fhEtaBandCell) ; |
1656 | ||
1657 | fhPhiBandCell = new TH2F("hPhiBandCell", | |
9a97f32f | 1658 | Form("#col vs #row of cells in #phi band isolation cone for #it{R} = %2.2f",r), |
10a65cc6 | 1659 | 96,0,95,128,0,127); |
1660 | fhPhiBandCell->SetXTitle("#col"); | |
1661 | fhPhiBandCell->SetYTitle("#row"); | |
9b01dc66 | 1662 | outputContainer->Add(fhPhiBandCell) ; |
1663 | ||
72433939 | 1664 | fhConeSumPtEtaUESubCluster = new TH2F("hConeSumPtEtaUESubCluster", |
9a97f32f | 1665 | Form("Clusters #Sigma #it{p}_{T} after bkg subtraction from eta band in the isolation cone for #it{R} = %2.2f",r), |
72433939 | 1666 | nptbins,ptmin,ptmax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 1667 | fhConeSumPtEtaUESubCluster->SetYTitle("#Sigma #it{p}_{T}"); |
1668 | fhConeSumPtEtaUESubCluster->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
72433939 | 1669 | outputContainer->Add(fhConeSumPtEtaUESubCluster) ; |
1670 | ||
1671 | fhConeSumPtPhiUESubCluster = new TH2F("hConeSumPtPhiUESubCluster", | |
9a97f32f | 1672 | Form("Clusters #Sigma #it{p}_{T} after bkg subtraction from phi band in the isolation cone for #it{R} = %2.2f",r), |
72433939 | 1673 | nptbins,ptmin,ptmax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 1674 | fhConeSumPtPhiUESubCluster->SetYTitle("#Sigma #it{p}_{T}"); |
1675 | fhConeSumPtPhiUESubCluster->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
72433939 | 1676 | outputContainer->Add(fhConeSumPtPhiUESubCluster) ; |
1677 | ||
1678 | fhConeSumPtEtaUESubClusterTrigEtaPhi = new TH2F("hConeSumPtEtaUESubClusterTrigEtaPhi", | |
9a97f32f | 1679 | Form("Trigger #eta vs #phi, Clusters #Sigma #it{p}_{T} after bkg subtraction from eta band in the isolation cone for #it{R} = %2.2f",r), |
72433939 | 1680 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1681 | fhConeSumPtEtaUESubClusterTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
72433939 | 1682 | fhConeSumPtEtaUESubClusterTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1683 | fhConeSumPtEtaUESubClusterTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1684 | outputContainer->Add(fhConeSumPtEtaUESubClusterTrigEtaPhi) ; | |
1685 | ||
1686 | fhConeSumPtPhiUESubClusterTrigEtaPhi = new TH2F("hConeSumPtPhiUESubClusterTrigEtaPhi", | |
9a97f32f | 1687 | Form("Trigger #eta vs #phi, Clusters #Sigma #it{p}_{T} after bkg subtraction from phi band in the isolation cone for #it{R} = %2.2f",r), |
72433939 | 1688 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1689 | fhConeSumPtPhiUESubClusterTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
72433939 | 1690 | fhConeSumPtPhiUESubClusterTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1691 | fhConeSumPtPhiUESubClusterTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1692 | outputContainer->Add(fhConeSumPtPhiUESubClusterTrigEtaPhi) ; | |
1693 | ||
9b01dc66 | 1694 | |
1695 | fhConeSumPtEtaUESubCell = new TH2F("hConeSumPtEtaUESubCell", | |
9a97f32f | 1696 | Form("Cells #Sigma #it{p}_{T} after bkg subtraction from eta band in the isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 1697 | nptbins,ptmin,ptmax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 1698 | fhConeSumPtEtaUESubCell->SetYTitle("#Sigma #it{p}_{T}"); |
1699 | fhConeSumPtEtaUESubCell->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
9b01dc66 | 1700 | outputContainer->Add(fhConeSumPtEtaUESubCell) ; |
1701 | ||
1702 | fhConeSumPtPhiUESubCell = new TH2F("hConeSumPtPhiUESubCell", | |
9a97f32f | 1703 | Form("Cells #Sigma #it{p}_{T} after bkg subtraction from phi band in the isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 1704 | nptbins,ptmin,ptmax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 1705 | fhConeSumPtPhiUESubCell->SetYTitle("#Sigma #it{p}_{T}"); |
1706 | fhConeSumPtPhiUESubCell->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
9b01dc66 | 1707 | outputContainer->Add(fhConeSumPtPhiUESubCell) ; |
1708 | ||
1709 | fhConeSumPtEtaUESubCellTrigEtaPhi = new TH2F("hConeSumPtEtaUESubCellTrigEtaPhi", | |
9a97f32f | 1710 | Form("Trigger #eta vs #phi, Cells #Sigma #it{p}_{T} after bkg subtraction from eta band in the isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 1711 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1712 | fhConeSumPtEtaUESubCellTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
9b01dc66 | 1713 | fhConeSumPtEtaUESubCellTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1714 | fhConeSumPtEtaUESubCellTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1715 | outputContainer->Add(fhConeSumPtEtaUESubCellTrigEtaPhi) ; | |
1716 | ||
1717 | fhConeSumPtPhiUESubCellTrigEtaPhi = new TH2F("hConeSumPtPhiUESubCellTrigEtaPhi", | |
9a97f32f | 1718 | Form("Trigger #eta vs #phi, Cells #Sigma #it{p}_{T} after bkg subtraction from phi band in the isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 1719 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1720 | fhConeSumPtPhiUESubCellTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
9b01dc66 | 1721 | fhConeSumPtPhiUESubCellTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1722 | fhConeSumPtPhiUESubCellTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1723 | outputContainer->Add(fhConeSumPtPhiUESubCellTrigEtaPhi) ; | |
1724 | ||
1725 | ||
72433939 | 1726 | fhFractionClusterOutConeEta = new TH2F("hFractionClusterOutConeEta", |
9a97f32f | 1727 | Form("Fraction of the isolation cone #it{R} = %2.2f, out of clusters #eta acceptance",r), |
72433939 | 1728 | nptbins,ptmin,ptmax,100,0,1); |
9a97f32f | 1729 | fhFractionClusterOutConeEta->SetYTitle("#it{fraction}"); |
1730 | fhFractionClusterOutConeEta->SetXTitle("#it{p}_{T,trigger} (GeV/#it{c})"); | |
72433939 | 1731 | outputContainer->Add(fhFractionClusterOutConeEta) ; |
1732 | ||
1733 | fhFractionClusterOutConeEtaTrigEtaPhi = new TH2F("hFractionClusterOutConeEtaTrigEtaPhi", | |
9a97f32f | 1734 | Form("Fraction of the isolation cone #it{R} = %2.2f, out of clusters #eta acceptance, in trigger #eta-#phi ",r), |
72433939 | 1735 | netabins,etamin,etamax,nphibins,phimin,phimax); |
9a97f32f | 1736 | fhFractionClusterOutConeEtaTrigEtaPhi->SetZTitle("#it{fraction}"); |
72433939 | 1737 | fhFractionClusterOutConeEtaTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1738 | fhFractionClusterOutConeEtaTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1739 | outputContainer->Add(fhFractionClusterOutConeEtaTrigEtaPhi) ; | |
1740 | ||
1741 | fhFractionClusterOutConePhi = new TH2F("hFractionClusterOutConePhi", | |
9a97f32f | 1742 | Form("Fraction of the isolation cone #it{R} = %2.2f, out of clusters #phi acceptance",r), |
72433939 | 1743 | nptbins,ptmin,ptmax,100,0,1); |
9a97f32f | 1744 | fhFractionClusterOutConePhi->SetYTitle("#it{fraction}"); |
1745 | fhFractionClusterOutConePhi->SetXTitle("#it{p}_{T,trigger} (GeV/#it{c})"); | |
72433939 | 1746 | outputContainer->Add(fhFractionClusterOutConePhi) ; |
1747 | ||
1748 | fhFractionClusterOutConePhiTrigEtaPhi = new TH2F("hFractionClusterOutConePhiTrigEtaPhi", | |
9a97f32f | 1749 | Form("Fraction of the isolation cone #it{R} = %2.2f, out of clusters #phi acceptance, in trigger #eta-#phi ",r), |
72433939 | 1750 | netabins,etamin,etamax,nphibins,phimin,phimax); |
9a97f32f | 1751 | fhFractionClusterOutConePhiTrigEtaPhi->SetZTitle("#it{fraction}"); |
72433939 | 1752 | fhFractionClusterOutConePhiTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1753 | fhFractionClusterOutConePhiTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1754 | outputContainer->Add(fhFractionClusterOutConePhiTrigEtaPhi) ; | |
1755 | ||
b5d10017 | 1756 | fhConeSumPtSubvsConeSumPtTotPhiCluster = new TH2F("hConeSumPtSubvsConeSumPtTotPhiCluster", |
dc9c6e78 | 1757 | Form("#Sigma #it{p}_{T} in cone after bkg sub from #phi band vs #Sigma #it{p}_{T} in cone before bkg sub, R=%2.2f",r), |
b5d10017 | 1758 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
9a97f32f | 1759 | fhConeSumPtSubvsConeSumPtTotPhiCluster->SetXTitle("#Sigma #it{p}_{T, tot} (GeV/#it{c})"); |
1760 | fhConeSumPtSubvsConeSumPtTotPhiCluster->SetYTitle("#Sigma #it{p}_{T, sub} (GeV/#it{c})"); | |
b5d10017 | 1761 | outputContainer->Add(fhConeSumPtSubvsConeSumPtTotPhiCluster); |
1762 | ||
1763 | fhConeSumPtSubNormvsConeSumPtTotPhiCluster = new TH2F("hConeSumPtSubNormvsConeSumPtTotPhiCluster", | |
9a97f32f | 1764 | Form("#Sigma #it{p}_{T, norm} in cone after bkg sub from #phi band vs #Sigma #it{p}_{T} in cone before bkg sub, R=%2.2f",r), |
b5d10017 | 1765 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
9a97f32f | 1766 | fhConeSumPtSubNormvsConeSumPtTotPhiCluster->SetXTitle("#Sigma #it{p}_{T, tot} (GeV/#it{c})"); |
1767 | fhConeSumPtSubNormvsConeSumPtTotPhiCluster->SetYTitle("#Sigma #it{p}_{T, sub norm} (GeV/#it{c})"); | |
b5d10017 | 1768 | outputContainer->Add(fhConeSumPtSubNormvsConeSumPtTotPhiCluster); |
1769 | ||
1770 | fhConeSumPtSubvsConeSumPtTotEtaCluster = new TH2F("hConeSumPtSubvsConeSumPtTotEtaCluster", | |
dc9c6e78 | 1771 | Form("#Sigma #it{p}_{T} in cone after bkg sub from #eta band vs #Sigma #it{p}_{T} in cone before bkg sub, R=%2.2f",r), |
b5d10017 | 1772 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
9a97f32f | 1773 | fhConeSumPtSubvsConeSumPtTotEtaCluster->SetXTitle("#Sigma #it{p}_{T, tot} (GeV/#it{c})"); |
1774 | fhConeSumPtSubvsConeSumPtTotEtaCluster->SetYTitle("#Sigma #it{p}_{T, sub} (GeV/#it{c})"); | |
b5d10017 | 1775 | outputContainer->Add(fhConeSumPtSubvsConeSumPtTotEtaCluster); |
1776 | ||
1777 | fhConeSumPtSubNormvsConeSumPtTotEtaCluster = new TH2F("hConeSumPtSubNormvsConeSumPtTotEtaCluster", | |
9a97f32f | 1778 | Form("#Sigma #it{p}_{T, norm} in cone after bkg sub from #eta band vs #Sigma #it{p}_{T} in cone before bkg sub, R=%2.2f",r), |
b5d10017 | 1779 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
9a97f32f | 1780 | fhConeSumPtSubNormvsConeSumPtTotEtaCluster->SetXTitle("#Sigma #it{p}_{T, tot} (GeV/#it{c})"); |
1781 | fhConeSumPtSubNormvsConeSumPtTotEtaCluster->SetYTitle("#Sigma #it{p}_{T, sub norm} (GeV/#it{c})"); | |
b5d10017 | 1782 | outputContainer->Add(fhConeSumPtSubNormvsConeSumPtTotEtaCluster); |
1783 | ||
1784 | ||
9b01dc66 | 1785 | fhFractionCellOutConeEta = new TH2F("hFractionCellOutConeEta", |
9a97f32f | 1786 | Form("Fraction of the isolation cone #it{R} = %2.2f, out of cells #eta acceptance",r), |
9b01dc66 | 1787 | nptbins,ptmin,ptmax,100,0,1); |
9a97f32f | 1788 | fhFractionCellOutConeEta->SetYTitle("#it{fraction}"); |
1789 | fhFractionCellOutConeEta->SetXTitle("#it{p}_{T,trigger} (GeV/#it{c})"); | |
9b01dc66 | 1790 | outputContainer->Add(fhFractionCellOutConeEta) ; |
1791 | ||
1792 | fhFractionCellOutConeEtaTrigEtaPhi = new TH2F("hFractionCellOutConeEtaTrigEtaPhi", | |
9a97f32f | 1793 | Form("Fraction of the isolation cone #it{R} = %2.2f, out of cells #eta acceptance, in trigger #eta-#phi ",r), |
9b01dc66 | 1794 | netabins,etamin,etamax,nphibins,phimin,phimax); |
9a97f32f | 1795 | fhFractionCellOutConeEtaTrigEtaPhi->SetZTitle("#it{fraction}"); |
9b01dc66 | 1796 | fhFractionCellOutConeEtaTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1797 | fhFractionCellOutConeEtaTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1798 | outputContainer->Add(fhFractionCellOutConeEtaTrigEtaPhi) ; | |
1799 | ||
1800 | fhFractionCellOutConePhi = new TH2F("hFractionCellOutConePhi", | |
9a97f32f | 1801 | Form("Fraction of the isolation cone #it{R} = %2.2f, out of cells #phi acceptance",r), |
9b01dc66 | 1802 | nptbins,ptmin,ptmax,100,0,1); |
9a97f32f | 1803 | fhFractionCellOutConePhi->SetYTitle("#it{fraction}"); |
1804 | fhFractionCellOutConePhi->SetXTitle("#it{p}_{T,trigger} (GeV/#it{c})"); | |
9b01dc66 | 1805 | outputContainer->Add(fhFractionCellOutConePhi) ; |
1806 | ||
1807 | fhFractionCellOutConePhiTrigEtaPhi = new TH2F("hFractionCellOutConePhiTrigEtaPhi", | |
9a97f32f | 1808 | Form("Fraction of the isolation cone #it{R} = %2.2f, out of cells #phi acceptance, in trigger #eta-#phi ",r), |
9b01dc66 | 1809 | netabins,etamin,etamax,nphibins,phimin,phimax); |
9a97f32f | 1810 | fhFractionCellOutConePhiTrigEtaPhi->SetZTitle("#it{fraction}"); |
9b01dc66 | 1811 | fhFractionCellOutConePhiTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1812 | fhFractionCellOutConePhiTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1813 | outputContainer->Add(fhFractionCellOutConePhiTrigEtaPhi) ; | |
b5d10017 | 1814 | |
1815 | ||
1816 | fhConeSumPtSubvsConeSumPtTotPhiCell = new TH2F("hConeSumPtSubvsConeSumPtTotPhiCell", | |
dc9c6e78 | 1817 | Form("#Sigma #it{p}_{T} in cone after bkg sub from #phi band vs #Sigma #it{p}_{T} in cone before bkg sub, R=%2.2f",r), |
b5d10017 | 1818 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
9a97f32f | 1819 | fhConeSumPtSubvsConeSumPtTotPhiCell->SetXTitle("#Sigma #it{p}_{T, tot} (GeV/#it{c})"); |
1820 | fhConeSumPtSubvsConeSumPtTotPhiCell->SetYTitle("#Sigma #it{p}_{T, sub} (GeV/#it{c})"); | |
b5d10017 | 1821 | outputContainer->Add(fhConeSumPtSubvsConeSumPtTotPhiCell); |
1822 | ||
1823 | fhConeSumPtSubNormvsConeSumPtTotPhiCell = new TH2F("hConeSumPtSubNormvsConeSumPtTotPhiCell", | |
9a97f32f | 1824 | Form("#Sigma #it{p}_{T, norm} in cone after bkg sub from #phi band vs #Sigma #it{p}_{T} in cone before bkg sub, R=%2.2f",r), |
b5d10017 | 1825 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
9a97f32f | 1826 | fhConeSumPtSubNormvsConeSumPtTotPhiCell->SetXTitle("#Sigma #it{p}_{T, tot} (GeV/#it{c})"); |
1827 | fhConeSumPtSubNormvsConeSumPtTotPhiCell->SetYTitle("#Sigma #it{p}_{T, sub norm} (GeV/#it{c})"); | |
b5d10017 | 1828 | outputContainer->Add(fhConeSumPtSubNormvsConeSumPtTotPhiCell); |
1829 | ||
1830 | fhConeSumPtSubvsConeSumPtTotEtaCell = new TH2F("hConeSumPtSubvsConeSumPtTotEtaCell", | |
dc9c6e78 | 1831 | Form("#Sigma #it{p}_{T} in cone after bkg sub from #eta band vs #Sigma #it{p}_{T} in cone before bkg sub, R=%2.2f",r), |
b5d10017 | 1832 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
9a97f32f | 1833 | fhConeSumPtSubvsConeSumPtTotEtaCell->SetXTitle("#Sigma #it{p}_{T, tot} (GeV/#it{c})"); |
1834 | fhConeSumPtSubvsConeSumPtTotEtaCell->SetYTitle("#Sigma #it{p}_{T, sub} (GeV/#it{c})"); | |
b5d10017 | 1835 | outputContainer->Add(fhConeSumPtSubvsConeSumPtTotEtaCell); |
1836 | ||
1837 | fhConeSumPtSubNormvsConeSumPtTotEtaCell = new TH2F("hConeSumPtSubNormvsConeSumPtTotEtaCell", | |
9a97f32f | 1838 | Form("#Sigma #it{p}_{T, norm} in cone after bkg sub from #eta band vs #Sigma #it{p}_{T} in cone before bkg sub, R=%2.2f",r), |
b5d10017 | 1839 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
9a97f32f | 1840 | fhConeSumPtSubNormvsConeSumPtTotEtaCell->SetXTitle("#Sigma #it{p}_{T, tot} (GeV/#it{c})"); |
1841 | fhConeSumPtSubNormvsConeSumPtTotEtaCell->SetYTitle("#Sigma #it{p}_{T, sub norm} (GeV/#it{c})"); | |
b5d10017 | 1842 | outputContainer->Add(fhConeSumPtSubNormvsConeSumPtTotEtaCell); |
727a309a | 1843 | |
727a309a | 1844 | fhConeSumPtVSUEClusterEtaBand = new TH2F("hConeSumPtVSUEClusterEtaBand", |
dc9c6e78 | 1845 | Form("#Sigma #it{p}_{T} in cone versus #Sigma #it{p}_{T} in eta band for cluster (before normalization), R=%2.2f",r), |
727a309a | 1846 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,ptsummin,2*ptsummax); |
dc9c6e78 | 1847 | fhConeSumPtVSUEClusterEtaBand->SetXTitle("#Sigma #it{p}_{T} cone (GeV/#it{c})"); |
1848 | fhConeSumPtVSUEClusterEtaBand->SetYTitle("#Sigma #it{p}_{T} UE (GeV/#it{c})"); | |
727a309a | 1849 | outputContainer->Add(fhConeSumPtVSUEClusterEtaBand); |
1850 | ||
1851 | fhConeSumPtVSUEClusterPhiBand = new TH2F("hConeSumPtVSUEClusterPhiBand", | |
dc9c6e78 | 1852 | Form("#Sigma #it{p}_{T} in cone versus #Sigma #it{p}_{T} in phi band for cluster (before normalization), R=%2.2f",r), |
727a309a | 1853 | nptsumbins,ptsummin,ptsummax,8*nptsumbins,ptsummin,8*ptsummax); |
dc9c6e78 | 1854 | fhConeSumPtVSUEClusterPhiBand->SetXTitle("#Sigma #it{p}_{T} cone (GeV/#it{c})"); |
1855 | fhConeSumPtVSUEClusterPhiBand->SetYTitle("#Sigma #it{p}_{T} UE (GeV/#it{c})"); | |
727a309a | 1856 | outputContainer->Add(fhConeSumPtVSUEClusterPhiBand); |
b5d10017 | 1857 | |
72433939 | 1858 | } |
1859 | ||
1860 | // Track only histograms | |
1861 | if(GetIsolationCut()->GetParticleTypeInCone()!=AliIsolationCut::kOnlyNeutral) | |
1862 | { | |
1863 | fhConeSumPtTrack = new TH2F("hConePtSumTrack", | |
9a97f32f | 1864 | Form("Track #Sigma #it{p}_{T} in isolation cone for #it{R} = %2.2f",r), |
72433939 | 1865 | nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 1866 | fhConeSumPtTrack->SetYTitle("#Sigma #it{p}_{T}"); |
9a97f32f | 1867 | fhConeSumPtTrack->SetXTitle("#it{p}_{T, trigger} (GeV/#it{c})"); |
72433939 | 1868 | outputContainer->Add(fhConeSumPtTrack) ; |
1869 | ||
1870 | ||
1871 | fhConeSumPtEtaBandUETrack = new TH2F("hConePtSumEtaBandUETrack", | |
dc9c6e78 | 1872 | "#Sigma track #it{p}_{T} in UE Eta Band", |
72433939 | 1873 | nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 1874 | fhConeSumPtEtaBandUETrack->SetYTitle("#Sigma #it{p}_{T}"); |
9a97f32f | 1875 | fhConeSumPtEtaBandUETrack->SetXTitle("#it{p}_{T, trigger} (GeV/#it{c})"); |
72433939 | 1876 | outputContainer->Add(fhConeSumPtEtaBandUETrack) ; |
1877 | ||
1878 | fhConeSumPtPhiBandUETrack = new TH2F("hConePtSumPhiBandUETrack", | |
dc9c6e78 | 1879 | "#Sigma track #it{p}_{T} in UE Phi Band", |
72433939 | 1880 | nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax*8); |
dc9c6e78 | 1881 | fhConeSumPtPhiBandUETrack->SetYTitle("#Sigma #it{p}_{T}"); |
9a97f32f | 1882 | fhConeSumPtPhiBandUETrack->SetXTitle("#it{p}_{T, trigger} (GeV/#it{c})"); |
72433939 | 1883 | outputContainer->Add(fhConeSumPtPhiBandUETrack) ; |
1884 | ||
1885 | ||
1886 | fhConeSumPtEtaBandUETrackTrigEtaPhi = new TH2F("hConePtSumEtaBandUETrackTrigEtaPhi", | |
dc9c6e78 | 1887 | "Trigger #eta vs #phi, #Sigma track #it{p}_{T} in UE Eta Band", |
72433939 | 1888 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1889 | fhConeSumPtEtaBandUETrackTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
72433939 | 1890 | fhConeSumPtEtaBandUETrackTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1891 | fhConeSumPtEtaBandUETrackTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1892 | outputContainer->Add(fhConeSumPtEtaBandUETrackTrigEtaPhi) ; | |
1893 | ||
1894 | fhConeSumPtPhiBandUETrackTrigEtaPhi = new TH2F("hConePtSumPhiBandUETrackTrigEtaPhi", | |
dc9c6e78 | 1895 | "Trigger #eta vs #phi, #Sigma track #it{p}_{T} in UE Phi Band", |
72433939 | 1896 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1897 | fhConeSumPtPhiBandUETrackTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
72433939 | 1898 | fhConeSumPtPhiBandUETrackTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1899 | fhConeSumPtPhiBandUETrackTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1900 | outputContainer->Add(fhConeSumPtPhiBandUETrackTrigEtaPhi) ; | |
1901 | ||
1902 | ||
1903 | fhPtTrackInCone = new TH2F("hPtTrackInCone", | |
9a97f32f | 1904 | Form("#it{p}_{T} of tracks in isolation cone for #it{R} = %2.2f",r), |
72433939 | 1905 | nptbins,ptmin,ptmax,nptinconebins,ptinconemin,ptinconemax); |
9a97f32f | 1906 | fhPtTrackInCone->SetYTitle("#it{p}_{T in cone} (GeV/#it{c})"); |
dc9c6e78 | 1907 | fhPtTrackInCone->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
72433939 | 1908 | outputContainer->Add(fhPtTrackInCone) ; |
1909 | ||
1910 | ||
1911 | fhEtaBandTrack = new TH2F("hEtaBandTrack", | |
9a97f32f | 1912 | Form("#eta vs #phi of tracks in #eta band isolation cone for #it{R} = %2.2f",r), |
72433939 | 1913 | netabins,-1,1,nphibins,0,TMath::TwoPi()); |
1914 | fhEtaBandTrack->SetXTitle("#eta"); | |
1915 | fhEtaBandTrack->SetYTitle("#phi"); | |
1916 | outputContainer->Add(fhEtaBandTrack) ; | |
1917 | ||
1918 | fhPhiBandTrack = new TH2F("hPhiBandTrack", | |
9a97f32f | 1919 | Form("#eta vs #phi of tracks in #phi band isolation cone for #it{R} = %2.2f",r), |
72433939 | 1920 | netabins,-1,1,nphibins,0,TMath::TwoPi()); |
1921 | fhPhiBandTrack->SetXTitle("#eta"); | |
1922 | fhPhiBandTrack->SetYTitle("#phi"); | |
1923 | outputContainer->Add(fhPhiBandTrack) ; | |
1924 | ||
1925 | ||
1926 | fhConeSumPtEtaUESubTrack = new TH2F("hConeSumPtEtaUESubTrack", | |
9a97f32f | 1927 | Form("Tracks #Sigma #it{p}_{T} after bkg subtraction from eta band in the isolation cone for #it{R} = %2.2f",r), |
72433939 | 1928 | nptbins,ptmin,ptmax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 1929 | fhConeSumPtEtaUESubTrack->SetYTitle("#Sigma #it{p}_{T}"); |
1930 | fhConeSumPtEtaUESubTrack->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
72433939 | 1931 | outputContainer->Add(fhConeSumPtEtaUESubTrack) ; |
1932 | ||
1933 | fhConeSumPtPhiUESubTrack = new TH2F("hConeSumPtPhiUESubTrack", | |
9a97f32f | 1934 | Form("Tracks #Sigma #it{p}_{T} after bkg subtraction from phi band in the isolation cone for #it{R} = %2.2f",r), |
72433939 | 1935 | nptbins,ptmin,ptmax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 1936 | fhConeSumPtPhiUESubTrack->SetYTitle("#Sigma #it{p}_{T}"); |
1937 | fhConeSumPtPhiUESubTrack->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
72433939 | 1938 | outputContainer->Add(fhConeSumPtPhiUESubTrack) ; |
1939 | ||
1940 | fhConeSumPtEtaUESubTrackTrigEtaPhi = new TH2F("hConeSumPtEtaUESubTrackTrigEtaPhi", | |
9a97f32f | 1941 | Form("Trigger #eta vs #phi, Tracks #Sigma #it{p}_{T} after bkg subtraction from eta band in the isolation cone for #it{R} = %2.2f",r), |
72433939 | 1942 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1943 | fhConeSumPtEtaUESubTrackTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
72433939 | 1944 | fhConeSumPtEtaUESubTrackTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1945 | fhConeSumPtEtaUESubTrackTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1946 | outputContainer->Add(fhConeSumPtEtaUESubTrackTrigEtaPhi) ; | |
1947 | ||
1948 | fhConeSumPtPhiUESubTrackTrigEtaPhi = new TH2F("hConeSumPtPhiUESubTrackTrigEtaPhi", | |
9a97f32f | 1949 | Form("Trigger #eta vs #phi, Tracks #Sigma #it{p}_{T} after bkg subtraction from phi band in the isolation cone for #it{R} = %2.2f",r), |
72433939 | 1950 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 1951 | fhConeSumPtPhiUESubTrackTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
72433939 | 1952 | fhConeSumPtPhiUESubTrackTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1953 | fhConeSumPtPhiUESubTrackTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1954 | outputContainer->Add(fhConeSumPtPhiUESubTrackTrigEtaPhi) ; | |
1955 | ||
1956 | fhFractionTrackOutConeEta = new TH2F("hFractionTrackOutConeEta", | |
9a97f32f | 1957 | Form("Fraction of the isolation cone #it{R} = %2.2f, out of tracks #eta acceptance",r), |
72433939 | 1958 | nptbins,ptmin,ptmax,100,0,1); |
9a97f32f | 1959 | fhFractionTrackOutConeEta->SetYTitle("#it{fraction}"); |
1960 | fhFractionTrackOutConeEta->SetXTitle("#it{p}_{T,trigger} (GeV/#it{c})"); | |
72433939 | 1961 | outputContainer->Add(fhFractionTrackOutConeEta) ; |
1962 | ||
1963 | fhFractionTrackOutConeEtaTrigEtaPhi = new TH2F("hFractionTrackOutConeEtaTrigEtaPhi", | |
9a97f32f | 1964 | Form("Fraction of the isolation cone #it{R} = %2.2f, out of tracks #eta acceptance, in trigger #eta-#phi ",r), |
72433939 | 1965 | netabins,etamin,etamax,nphibins,phimin,phimax); |
9a97f32f | 1966 | fhFractionTrackOutConeEtaTrigEtaPhi->SetZTitle("#it{fraction}"); |
72433939 | 1967 | fhFractionTrackOutConeEtaTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
1968 | fhFractionTrackOutConeEtaTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
1969 | outputContainer->Add(fhFractionTrackOutConeEtaTrigEtaPhi) ; | |
1970 | ||
b5d10017 | 1971 | fhConeSumPtSubvsConeSumPtTotPhiTrack = new TH2F("hConeSumPtSubvsConeSumPtTotPhiTrack", |
dc9c6e78 | 1972 | Form("#Sigma #it{p}_{T} in cone after bkg sub from #phi band vs #Sigma #it{p}_{T} in cone before bkg sub, R=%2.2f",r), |
b5d10017 | 1973 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
9a97f32f | 1974 | fhConeSumPtSubvsConeSumPtTotPhiTrack->SetXTitle("#Sigma #it{p}_{T, tot} (GeV/#it{c})"); |
1975 | fhConeSumPtSubvsConeSumPtTotPhiTrack->SetYTitle("#Sigma #it{p}_{T, sub} (GeV/#it{c})"); | |
b5d10017 | 1976 | outputContainer->Add(fhConeSumPtSubvsConeSumPtTotPhiTrack); |
1977 | ||
1978 | fhConeSumPtSubNormvsConeSumPtTotPhiTrack = new TH2F("hConeSumPtSubNormvsConeSumPtTotPhiTrack", | |
9a97f32f | 1979 | Form("#Sigma #it{p}_{T, norm} in cone after bkg sub from #phi band vs #Sigma #it{p}_{T} in cone before bkg sub, R=%2.2f",r), |
b5d10017 | 1980 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
9a97f32f | 1981 | fhConeSumPtSubNormvsConeSumPtTotPhiTrack->SetXTitle("#Sigma #it{p}_{T, tot} (GeV/#it{c})"); |
1982 | fhConeSumPtSubNormvsConeSumPtTotPhiTrack->SetYTitle("#Sigma #it{p}_{T, sub norm} (GeV/#it{c})"); | |
b5d10017 | 1983 | outputContainer->Add(fhConeSumPtSubNormvsConeSumPtTotPhiTrack); |
1984 | ||
1985 | fhConeSumPtSubvsConeSumPtTotEtaTrack = new TH2F("hConeSumPtSubvsConeSumPtTotEtaTrack", | |
dc9c6e78 | 1986 | Form("#Sigma #it{p}_{T} in cone after bkg sub from #eta band vs #Sigma #it{p}_{T} in cone before bkg sub, R=%2.2f",r), |
b5d10017 | 1987 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
9a97f32f | 1988 | fhConeSumPtSubvsConeSumPtTotEtaTrack->SetXTitle("#Sigma #it{p}_{T, tot} (GeV/#it{c})"); |
1989 | fhConeSumPtSubvsConeSumPtTotEtaTrack->SetYTitle("#Sigma #it{p}_{T, sub} (GeV/#it{c})"); | |
b5d10017 | 1990 | outputContainer->Add(fhConeSumPtSubvsConeSumPtTotEtaTrack); |
1991 | ||
1992 | fhConeSumPtSubNormvsConeSumPtTotEtaTrack = new TH2F("hConeSumPtSubNormvsConeSumPtTotEtaTrack", | |
9a97f32f | 1993 | Form("#Sigma #it{p}_{T, norm} in cone after bkg sub from #eta band vs #Sigma #it{p}_{T} in cone before bkg sub, R=%2.2f",r), |
b5d10017 | 1994 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
9a97f32f | 1995 | fhConeSumPtSubNormvsConeSumPtTotEtaTrack->SetXTitle("#Sigma #it{p}_{T, tot} (GeV/#it{c})"); |
1996 | fhConeSumPtSubNormvsConeSumPtTotEtaTrack->SetYTitle("#Sigma #it{p}_{T, sub norm} (GeV/#it{c})"); | |
b5d10017 | 1997 | outputContainer->Add(fhConeSumPtSubNormvsConeSumPtTotEtaTrack); |
1998 | ||
72433939 | 1999 | // UE in perpendicular cone |
2000 | fhPerpConeSumPt = new TH2F("hPerpConePtSum", | |
9a97f32f | 2001 | Form("#Sigma #it{p}_{T} in isolation cone at #pm 45 degree phi from trigger particle, #it{R} = %2.2f",r), |
72433939 | 2002 | nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2003 | fhPerpConeSumPt->SetYTitle("#Sigma #it{p}_{T}"); |
2004 | fhPerpConeSumPt->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
72433939 | 2005 | outputContainer->Add(fhPerpConeSumPt) ; |
2006 | ||
2007 | fhPtInPerpCone = new TH2F("hPtInPerpCone", | |
9a97f32f | 2008 | Form("#it{p}_{T} in isolation cone at #pm 45 degree phi from trigger particle, #it{R} = %2.2f",r), |
72433939 | 2009 | nptbins,ptmin,ptmax,nptinconebins,ptinconemin,ptinconemax); |
9a97f32f | 2010 | fhPtInPerpCone->SetYTitle("#it{p}_{T in cone} (GeV/#it{c})"); |
dc9c6e78 | 2011 | fhPtInPerpCone->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
72433939 | 2012 | outputContainer->Add(fhPtInPerpCone) ; |
c3327a30 | 2013 | |
2014 | fhEtaPhiTrack= new TH2F("hEtaPhiTrack", | |
2015 | Form("#eta vs #phi of all Tracks"), | |
2016 | netabins,-1,1,nphibins,0,TMath::TwoPi()); | |
2017 | fhEtaPhiTrack->SetXTitle("#eta"); | |
2018 | fhEtaPhiTrack->SetYTitle("#phi"); | |
2019 | outputContainer->Add(fhEtaPhiTrack) ; | |
2020 | ||
2021 | fhEtaPhiInConeTrack= new TH2F("hEtaPhiInConeTrack", | |
9a97f32f | 2022 | Form("#eta vs #phi of Tracks in cone for #it{R} = %2.2f",r), |
c3327a30 | 2023 | netabins,-1,1,nphibins,0,TMath::TwoPi()); |
2024 | fhEtaPhiInConeTrack->SetXTitle("#eta"); | |
2025 | fhEtaPhiInConeTrack->SetYTitle("#phi"); | |
2026 | outputContainer->Add(fhEtaPhiInConeTrack) ; | |
2027 | ||
2028 | fhConeSumPtVSUETracksEtaBand = new TH2F("hConeSumPtVSUETracksEtaBand", | |
2029 | Form("#Sigma #it{p}_{T} in cone versus #Sigma #it{p}_{T} in eta band for tracks (before normalization), R=%2.2f",r), | |
2030 | nptsumbins,ptsummin,ptsummax,2*nptsumbins,ptsummin,2*ptsummax); | |
2031 | fhConeSumPtVSUETracksEtaBand->SetXTitle("#Sigma #it{p}_{T} cone (GeV/#it{c})"); | |
2032 | fhConeSumPtVSUETracksEtaBand->SetYTitle("#Sigma #it{p}_{T} UE (GeV/#it{c})"); | |
2033 | outputContainer->Add(fhConeSumPtVSUETracksEtaBand); | |
2034 | ||
2035 | fhConeSumPtVSUETracksPhiBand = new TH2F("hConeSumPtVSUETracksPhiBand", | |
2036 | Form("#Sigma #it{p}_{T} in cone versus #Sigma #it{p}_{T} in phi band for tracks (before normalization), R=%2.2f",r), | |
2037 | nptsumbins,ptsummin,ptsummax,8*nptsumbins,ptsummin,8*ptsummax); | |
2038 | fhConeSumPtVSUETracksPhiBand->SetXTitle("#Sigma #it{p}_{T} cone (GeV/#it{c})"); | |
2039 | fhConeSumPtVSUETracksPhiBand->SetYTitle("#Sigma #it{p}_{T} UE (GeV/#it{c})"); | |
2040 | outputContainer->Add(fhConeSumPtVSUETracksPhiBand); | |
72433939 | 2041 | } |
2042 | ||
2043 | if(GetIsolationCut()->GetParticleTypeInCone()==AliIsolationCut::kNeutralAndCharged) | |
2044 | { | |
2045 | fhConeSumPtEtaUESub = new TH2F("hConeSumPtEtaUESub", | |
9a97f32f | 2046 | Form("#Sigma #it{p}_{T} after bkg subtraction from eta band in the isolation cone for #it{R} = %2.2f",r), |
72433939 | 2047 | nptbins,ptmin,ptmax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 2048 | fhConeSumPtEtaUESub->SetYTitle("#Sigma #it{p}_{T}"); |
2049 | fhConeSumPtEtaUESub->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
72433939 | 2050 | outputContainer->Add(fhConeSumPtEtaUESub) ; |
2051 | ||
2052 | fhConeSumPtPhiUESub = new TH2F("hConeSumPtPhiUESub", | |
9a97f32f | 2053 | Form("#Sigma #it{p}_{T} after bkg subtraction from phi band in the isolation cone for #it{R} = %2.2f",r), |
72433939 | 2054 | nptbins,ptmin,ptmax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 2055 | fhConeSumPtPhiUESub->SetYTitle("#Sigma #it{p}_{T}"); |
2056 | fhConeSumPtPhiUESub->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
72433939 | 2057 | outputContainer->Add(fhConeSumPtPhiUESub) ; |
2058 | ||
2059 | fhConeSumPtEtaUESubTrigEtaPhi = new TH2F("hConeSumPtEtaUESubTrigEtaPhi", | |
9a97f32f | 2060 | Form("Trigger #eta vs #phi, #Sigma #it{p}_{T} after bkg subtraction from eta band in the isolation cone for #it{R} = %2.2f",r), |
72433939 | 2061 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 2062 | fhConeSumPtEtaUESubTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
72433939 | 2063 | fhConeSumPtEtaUESubTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
2064 | fhConeSumPtEtaUESubTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
2065 | outputContainer->Add(fhConeSumPtEtaUESubTrigEtaPhi) ; | |
2066 | ||
2067 | fhConeSumPtPhiUESubTrigEtaPhi = new TH2F("hConeSumPtPhiUESubTrigEtaPhi", | |
9a97f32f | 2068 | Form("Trigger #eta vs #phi, #Sigma #it{p}_{T} after bkg subtraction from phi band in the isolation cone for #it{R} = %2.2f",r), |
72433939 | 2069 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 2070 | fhConeSumPtPhiUESubTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
72433939 | 2071 | fhConeSumPtPhiUESubTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
2072 | fhConeSumPtPhiUESubTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
2073 | outputContainer->Add(fhConeSumPtPhiUESubTrigEtaPhi) ; | |
2074 | ||
2075 | fhConeSumPtClustervsTrack = new TH2F("hConePtSumClustervsTrack", | |
9a97f32f | 2076 | Form("Track vs Cluster #Sigma #it{p}_{T} in isolation cone for #it{R} = %2.2f",r), |
72433939 | 2077 | nptsumbins,ptsummin,ptsummax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2078 | fhConeSumPtClustervsTrack->SetXTitle("#Sigma #it{p}_{T} cluster"); |
2079 | fhConeSumPtClustervsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
72433939 | 2080 | outputContainer->Add(fhConeSumPtClustervsTrack) ; |
2081 | ||
2082 | fhConeSumPtEtaUESubClustervsTrack = new TH2F("hConePtSumEtaUESubClustervsTrack", | |
9a97f32f | 2083 | Form("Track vs Cluster #Sigma #it{p}_{T} UE sub eta band in isolation cone for #it{R} = %2.2f",r), |
72433939 | 2084 | 2*nptsumbins,-ptsummax,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 2085 | fhConeSumPtEtaUESubClustervsTrack->SetXTitle("#Sigma #it{p}_{T} cluster"); |
2086 | fhConeSumPtEtaUESubClustervsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
72433939 | 2087 | outputContainer->Add(fhConeSumPtEtaUESubClustervsTrack) ; |
2088 | ||
2089 | fhConeSumPtPhiUESubClustervsTrack = new TH2F("hConePhiUESubPtSumClustervsTrack", | |
9a97f32f | 2090 | Form("Track vs Cluster #Sigma #it{p}_{T} UE sub phi band in isolation cone for #it{R} = %2.2f",r), |
72433939 | 2091 | 2*nptsumbins,-ptsummax,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 2092 | fhConeSumPtPhiUESubClustervsTrack->SetXTitle("#Sigma #it{p}_{T} cluster"); |
2093 | fhConeSumPtPhiUESubClustervsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
72433939 | 2094 | outputContainer->Add(fhConeSumPtPhiUESubClustervsTrack) ; |
2095 | ||
2096 | fhEtaBandClustervsTrack = new TH2F("hEtaBandClustervsTrack", | |
7726e3a3 | 2097 | Form("Track vs Cluster #Sigma #it{p}_{T} in Eta band in isolation cone for #it{R} = %2.2f",r), |
72433939 | 2098 | nptsumbins,ptsummin,ptsummax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2099 | fhEtaBandClustervsTrack->SetXTitle("#Sigma #it{p}_{T} cluster"); |
2100 | fhEtaBandClustervsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
72433939 | 2101 | outputContainer->Add(fhEtaBandClustervsTrack) ; |
2102 | ||
2103 | fhPhiBandClustervsTrack = new TH2F("hPhiBandClustervsTrack", | |
7726e3a3 | 2104 | Form("Track vs Cluster #Sigma #it{p}_{T} in Phi band in isolation cone for #it{R} = %2.2f",r), |
72433939 | 2105 | nptsumbins,ptsummin,ptsummax*4,nptsumbins,ptsummin,ptsummax*8); |
dc9c6e78 | 2106 | fhPhiBandClustervsTrack->SetXTitle("#Sigma #it{p}_{T} cluster"); |
2107 | fhPhiBandClustervsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
72433939 | 2108 | outputContainer->Add(fhPhiBandClustervsTrack) ; |
2109 | ||
2110 | fhEtaBandNormClustervsTrack = new TH2F("hEtaBandNormClustervsTrack", | |
7726e3a3 | 2111 | Form("Track vs Cluster #Sigma #it{p}_{T} in Eta band in isolation cone for #it{R} = %2.2f",r), |
72433939 | 2112 | nptsumbins,ptsummin,ptsummax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2113 | fhEtaBandNormClustervsTrack->SetXTitle("#Sigma #it{p}_{T} cluster"); |
2114 | fhEtaBandNormClustervsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
72433939 | 2115 | outputContainer->Add(fhEtaBandNormClustervsTrack) ; |
2116 | ||
2117 | fhPhiBandNormClustervsTrack = new TH2F("hPhiBandNormClustervsTrack", | |
7726e3a3 | 2118 | Form("Track vs Cluster #Sigma #it{p}_{T} in Phi band in isolation cone for #it{R} = %2.2f",r), |
72433939 | 2119 | nptsumbins,ptsummin,ptsummax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2120 | fhPhiBandNormClustervsTrack->SetXTitle("#Sigma #it{p}_{T} cluster"); |
2121 | fhPhiBandNormClustervsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
72433939 | 2122 | outputContainer->Add(fhPhiBandNormClustervsTrack) ; |
9b01dc66 | 2123 | |
9004af1c | 2124 | |
9b01dc66 | 2125 | fhConeSumPtCellTrack = new TH2F("hConePtSumCellTrack", |
9a97f32f | 2126 | Form("Track and Cell #Sigma #it{p}_{T} in isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2127 | nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2128 | fhConeSumPtCellTrack->SetYTitle("#Sigma #it{p}_{T}"); |
9a97f32f | 2129 | fhConeSumPtCellTrack->SetXTitle("#it{p}_{T, trigger} (GeV/#it{c})"); |
9b01dc66 | 2130 | outputContainer->Add(fhConeSumPtCellTrack) ; |
2131 | ||
2132 | fhConeSumPtCellTrackTrigEtaPhi = new TH2F("hConePtSumCellTrackTrigEtaPhi", | |
9a97f32f | 2133 | Form("Trigger #eta vs #phi, #Sigma #it{p}_{T} in isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2134 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 2135 | fhConeSumPtCellTrackTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
9b01dc66 | 2136 | fhConeSumPtCellTrackTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
2137 | fhConeSumPtCellTrackTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
2138 | outputContainer->Add(fhConeSumPtCellTrackTrigEtaPhi) ; | |
2139 | ||
2140 | ||
2141 | fhConeSumPtEtaUESubClustervsTrack = new TH2F("hConePtSumEtaUESubClustervsTrack", | |
9a97f32f | 2142 | Form("Track vs Cluster #Sigma #it{p}_{T} UE sub eta band in isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2143 | 2*nptsumbins,-ptsummax,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 2144 | fhConeSumPtEtaUESubClustervsTrack->SetXTitle("#Sigma #it{p}_{T} cluster"); |
2145 | fhConeSumPtEtaUESubClustervsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
9b01dc66 | 2146 | outputContainer->Add(fhConeSumPtEtaUESubClustervsTrack) ; |
2147 | ||
2148 | fhConeSumPtPhiUESubClustervsTrack = new TH2F("hConePhiUESubPtSumClustervsTrack", | |
9a97f32f | 2149 | Form("Track vs Cluster #Sigma #it{p}_{T} UE sub phi band in isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2150 | 2*nptsumbins,-ptsummax,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 2151 | fhConeSumPtPhiUESubClustervsTrack->SetXTitle("#Sigma #it{p}_{T} cluster"); |
2152 | fhConeSumPtPhiUESubClustervsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
9b01dc66 | 2153 | outputContainer->Add(fhConeSumPtPhiUESubClustervsTrack) ; |
2154 | ||
2155 | fhConeSumPtCellvsTrack = new TH2F("hConePtSumCellvsTrack", | |
9a97f32f | 2156 | Form("Track vs cell #Sigma #it{p}_{T} in isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2157 | nptsumbins,ptsummin,ptsummax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2158 | fhConeSumPtCellvsTrack->SetXTitle("#Sigma #it{p}_{T} cell"); |
2159 | fhConeSumPtCellvsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
9b01dc66 | 2160 | outputContainer->Add(fhConeSumPtCellvsTrack) ; |
2161 | ||
2162 | fhConeSumPtEtaUESubCellvsTrack = new TH2F("hConePtSumEtaUESubCellvsTrack", | |
9a97f32f | 2163 | Form("Track vs Cell #Sigma #it{p}_{T} UE sub eta band in isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2164 | 2*nptsumbins,-ptsummax,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 2165 | fhConeSumPtEtaUESubCellvsTrack->SetXTitle("#Sigma #it{p}_{T} cell"); |
2166 | fhConeSumPtEtaUESubCellvsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
9b01dc66 | 2167 | outputContainer->Add(fhConeSumPtEtaUESubCellvsTrack) ; |
2168 | ||
2169 | fhConeSumPtPhiUESubCellvsTrack = new TH2F("hConePhiUESubPtSumCellvsTrack", | |
9a97f32f | 2170 | Form("Track vs Cell #Sigma #it{p}_{T} UE sub phi band in isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2171 | 2*nptsumbins,-ptsummax,ptsummax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 2172 | fhConeSumPtPhiUESubCellvsTrack->SetXTitle("#Sigma #it{p}_{T} cell"); |
2173 | fhConeSumPtPhiUESubCellvsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
9b01dc66 | 2174 | outputContainer->Add(fhConeSumPtPhiUESubCellvsTrack) ; |
2175 | ||
2176 | fhEtaBandCellvsTrack = new TH2F("hEtaBandCellvsTrack", | |
7726e3a3 | 2177 | Form("Track vs Cell #Sigma #it{p}_{T} in Eta band in isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2178 | nptsumbins,ptsummin,ptsummax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2179 | fhEtaBandCellvsTrack->SetXTitle("#Sigma #it{p}_{T} cell"); |
2180 | fhEtaBandCellvsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
9b01dc66 | 2181 | outputContainer->Add(fhEtaBandCellvsTrack) ; |
2182 | ||
2183 | fhPhiBandCellvsTrack = new TH2F("hPhiBandCellvsTrack", | |
7726e3a3 | 2184 | Form("Track vs Cell #Sigma #it{p}_{T} in Phi band in isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2185 | nptsumbins,ptsummin,ptsummax*4,nptsumbins,ptsummin,ptsummax*8); |
dc9c6e78 | 2186 | fhPhiBandCellvsTrack->SetXTitle("#Sigma #it{p}_{T} cell"); |
2187 | fhPhiBandCellvsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
9b01dc66 | 2188 | outputContainer->Add(fhPhiBandCellvsTrack) ; |
2189 | ||
2190 | fhEtaBandNormCellvsTrack = new TH2F("hEtaBandNormCellvsTrack", | |
7726e3a3 | 2191 | Form("Track vs Cell #Sigma #it{p}_{T} in Eta band in isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2192 | nptsumbins,ptsummin,ptsummax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2193 | fhEtaBandNormCellvsTrack->SetXTitle("#Sigma #it{p}_{T} cell"); |
2194 | fhEtaBandNormCellvsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
9b01dc66 | 2195 | outputContainer->Add(fhEtaBandNormCellvsTrack) ; |
2196 | ||
2197 | fhPhiBandNormCellvsTrack = new TH2F("hPhiBandNormCellvsTrack", | |
7726e3a3 | 2198 | Form("Track vs Cell #Sigma #it{p}_{T} in Phi band in isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2199 | nptsumbins,ptsummin,ptsummax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2200 | fhPhiBandNormCellvsTrack->SetXTitle("#Sigma #it{p}_{T} cell"); |
2201 | fhPhiBandNormCellvsTrack->SetYTitle("#Sigma #it{p}_{T} track"); | |
9b01dc66 | 2202 | outputContainer->Add(fhPhiBandNormCellvsTrack) ; |
2203 | ||
2204 | fhConeSumPtEtaUESubTrackCell = new TH2F("hConeSumPtEtaUESubTrackCell", | |
9a97f32f | 2205 | Form("Tracks #Sigma #it{p}_{T} after bkg subtraction from eta band in the isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2206 | nptbins,ptmin,ptmax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 2207 | fhConeSumPtEtaUESubTrackCell->SetYTitle("#Sigma #it{p}_{T}"); |
2208 | fhConeSumPtEtaUESubTrackCell->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
9b01dc66 | 2209 | outputContainer->Add(fhConeSumPtEtaUESubTrackCell) ; |
2210 | ||
2211 | fhConeSumPtPhiUESubTrackCell = new TH2F("hConeSumPtPhiUESubTrackCell", | |
9a97f32f | 2212 | Form("Tracks #Sigma #it{p}_{T} after bkg subtraction from phi band in the isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2213 | nptbins,ptmin,ptmax,2*nptsumbins,-ptsummax,ptsummax); |
dc9c6e78 | 2214 | fhConeSumPtPhiUESubTrackCell->SetYTitle("#Sigma #it{p}_{T}"); |
2215 | fhConeSumPtPhiUESubTrackCell->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
9b01dc66 | 2216 | outputContainer->Add(fhConeSumPtPhiUESubTrackCell) ; |
2217 | ||
2218 | fhConeSumPtEtaUESubTrackCellTrigEtaPhi = new TH2F("hConeSumPtEtaUESubTrackCellTrigEtaPhi", | |
9a97f32f | 2219 | Form("Trigger #eta vs #phi, Tracks #Sigma #it{p}_{T} after bkg subtraction from eta band in the isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2220 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 2221 | fhConeSumPtEtaUESubTrackCellTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
9b01dc66 | 2222 | fhConeSumPtEtaUESubTrackCellTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
2223 | fhConeSumPtEtaUESubTrackCellTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
2224 | outputContainer->Add(fhConeSumPtEtaUESubTrackCellTrigEtaPhi) ; | |
2225 | ||
2226 | fhConeSumPtPhiUESubTrackCellTrigEtaPhi = new TH2F("hConeSumPtPhiUESubTrackCellTrigEtaPhi", | |
9a97f32f | 2227 | Form("Trigger #eta vs #phi, Tracks #Sigma #it{p}_{T} after bkg subtraction from phi band in the isolation cone for #it{R} = %2.2f",r), |
9b01dc66 | 2228 | netabins,etamin,etamax,nphibins,phimin,phimax); |
dc9c6e78 | 2229 | fhConeSumPtPhiUESubTrackCellTrigEtaPhi->SetZTitle("#Sigma #it{p}_{T}"); |
9b01dc66 | 2230 | fhConeSumPtPhiUESubTrackCellTrigEtaPhi->SetXTitle("#eta_{trigger}"); |
2231 | fhConeSumPtPhiUESubTrackCellTrigEtaPhi->SetYTitle("#phi_{trigger} (rad)"); | |
2232 | outputContainer->Add(fhConeSumPtPhiUESubTrackCellTrigEtaPhi) ; | |
2233 | ||
72433939 | 2234 | } |
f6d2e552 | 2235 | |
ca134929 | 2236 | for(Int_t iso = 0; iso < 2; iso++) |
b5dbb99b | 2237 | { |
ca134929 | 2238 | if(fFillTMHisto) |
31ae6d59 | 2239 | { |
ca134929 | 2240 | fhTrackMatchedDEta[iso] = new TH2F |
7726e3a3 | 2241 | (Form("hTrackMatchedDEta%s",isoName[iso].Data()), |
2242 | Form("%s - d#eta of cluster-track vs cluster energy, %s",isoTitle[iso].Data(),parTitle.Data()), | |
72433939 | 2243 | nptbins,ptmin,ptmax,nresetabins,resetamin,resetamax); |
ca134929 | 2244 | fhTrackMatchedDEta[iso]->SetYTitle("d#eta"); |
2245 | fhTrackMatchedDEta[iso]->SetXTitle("E_{cluster} (GeV)"); | |
2246 | ||
2247 | fhTrackMatchedDPhi[iso] = new TH2F | |
7726e3a3 | 2248 | (Form("hTrackMatchedDPhi%s",isoName[iso].Data()), |
2249 | Form("%s - d#phi of cluster-track vs cluster energy, %s",isoTitle[iso].Data(),parTitle.Data()), | |
72433939 | 2250 | nptbins,ptmin,ptmax,nresphibins,resphimin,resphimax); |
ca134929 | 2251 | fhTrackMatchedDPhi[iso]->SetYTitle("d#phi (rad)"); |
2252 | fhTrackMatchedDPhi[iso]->SetXTitle("E_{cluster} (GeV)"); | |
2253 | ||
2254 | fhTrackMatchedDEtaDPhi[iso] = new TH2F | |
7726e3a3 | 2255 | (Form("hTrackMatchedDEtaDPhi%s",isoName[iso].Data()), |
2256 | Form("%s - d#eta vs d#phi of cluster-track, %s",isoTitle[iso].Data(),parTitle.Data()), | |
72433939 | 2257 | nresetabins,resetamin,resetamax,nresphibins,resphimin,resphimax); |
ca134929 | 2258 | fhTrackMatchedDEtaDPhi[iso]->SetYTitle("d#phi (rad)"); |
72433939 | 2259 | fhTrackMatchedDEtaDPhi[iso]->SetXTitle("d#eta"); |
ca134929 | 2260 | |
72433939 | 2261 | outputContainer->Add(fhTrackMatchedDEta[iso]) ; |
ca134929 | 2262 | outputContainer->Add(fhTrackMatchedDPhi[iso]) ; |
2263 | outputContainer->Add(fhTrackMatchedDEtaDPhi[iso]) ; | |
31ae6d59 | 2264 | |
ca134929 | 2265 | fhdEdx[iso] = new TH2F |
7726e3a3 | 2266 | (Form("hdEdx%s",isoName[iso].Data()), |
2267 | Form("%s - Matched track <d#it{E}/d#it{x}> vs cluster #it{E}, %s",isoTitle[iso].Data(),parTitle.Data()), | |
72433939 | 2268 | nptbins,ptmin,ptmax,ndedxbins, dedxmin, dedxmax); |
dc9c6e78 | 2269 | fhdEdx[iso]->SetXTitle("#it{E} (GeV)"); |
9a97f32f | 2270 | fhdEdx[iso]->SetYTitle("<d#it{E}/d#it{x}>"); |
72433939 | 2271 | outputContainer->Add(fhdEdx[iso]); |
31ae6d59 | 2272 | |
ca134929 | 2273 | fhEOverP[iso] = new TH2F |
7726e3a3 | 2274 | (Form("hEOverP%s",isoName[iso].Data()), |
2275 | Form("%s - Matched track #it{E}/#it{p} vs cluster, %s",isoTitle[iso].Data(),parTitle.Data()), | |
72433939 | 2276 | nptbins,ptmin,ptmax,nPoverEbins,pOverEmin,pOverEmax); |
dc9c6e78 | 2277 | fhEOverP[iso]->SetXTitle("#it{E} (GeV)"); |
9a97f32f | 2278 | fhEOverP[iso]->SetYTitle("#it{E}/#it{p}"); |
72433939 | 2279 | outputContainer->Add(fhEOverP[iso]); |
ca134929 | 2280 | |
2281 | if(IsDataMC()) | |
2282 | { | |
2283 | fhTrackMatchedMCParticle[iso] = new TH2F | |
7726e3a3 | 2284 | (Form("hTrackMatchedMCParticle%s",isoName[iso].Data()), |
2285 | Form("%s - Origin of particle vs cluster #it{E}, %s",isoTitle[iso].Data(),parTitle.Data()), | |
72433939 | 2286 | nptbins,ptmin,ptmax,8,0,8); |
dc9c6e78 | 2287 | fhTrackMatchedMCParticle[iso]->SetXTitle("#it{E} (GeV)"); |
ca134929 | 2288 | //fhTrackMatchedMCParticle[iso]->SetYTitle("Particle type"); |
2289 | ||
2290 | fhTrackMatchedMCParticle[iso]->GetYaxis()->SetBinLabel(1 ,"Photon"); | |
2291 | fhTrackMatchedMCParticle[iso]->GetYaxis()->SetBinLabel(2 ,"Electron"); | |
2292 | fhTrackMatchedMCParticle[iso]->GetYaxis()->SetBinLabel(3 ,"Meson Merged"); | |
2293 | fhTrackMatchedMCParticle[iso]->GetYaxis()->SetBinLabel(4 ,"Rest"); | |
2294 | fhTrackMatchedMCParticle[iso]->GetYaxis()->SetBinLabel(5 ,"Conv. Photon"); | |
2295 | fhTrackMatchedMCParticle[iso]->GetYaxis()->SetBinLabel(6 ,"Conv. Electron"); | |
2296 | fhTrackMatchedMCParticle[iso]->GetYaxis()->SetBinLabel(7 ,"Conv. Merged"); | |
2297 | fhTrackMatchedMCParticle[iso]->GetYaxis()->SetBinLabel(8 ,"Conv. Rest"); | |
2298 | ||
72433939 | 2299 | outputContainer->Add(fhTrackMatchedMCParticle[iso]); |
ca134929 | 2300 | } |
31ae6d59 | 2301 | } |
b5dbb99b | 2302 | |
ca134929 | 2303 | if(fFillSSHisto) |
b5dbb99b | 2304 | { |
ca134929 | 2305 | fhELambda0[iso] = new TH2F |
7726e3a3 | 2306 | (Form("hELambda0%s",isoName[iso].Data()), |
2307 | Form("%s cluster : #it{E} vs #lambda_{0}, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
ca134929 | 2308 | fhELambda0[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2309 | fhELambda0[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2310 | outputContainer->Add(fhELambda0[iso]) ; |
32d244b0 | 2311 | |
2312 | fhPtLambda0[iso] = new TH2F | |
7726e3a3 | 2313 | (Form("hPtLambda0%s",isoName[iso].Data()), |
2314 | Form("%s cluster : #it{p}_{T} vs #lambda_{0}, %s",isoTitle[iso].Data(), parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
32d244b0 | 2315 | fhPtLambda0[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2316 | fhPtLambda0[iso]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
32d244b0 | 2317 | outputContainer->Add(fhPtLambda0[iso]) ; |
ca134929 | 2318 | |
764ab1f4 | 2319 | if(IsDataMC()) |
2320 | { | |
32d244b0 | 2321 | fhPtLambda0MCPhotonPrompt[iso] = new TH2F |
7726e3a3 | 2322 | (Form("hPtLambda0%s_MCPhotonPrompt",isoName[iso].Data()), |
2323 | Form("%s cluster : #it{p}_{T} vs #lambda_{0}: #gamma_{prompt}, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
32d244b0 | 2324 | fhPtLambda0MCPhotonPrompt[iso]->SetYTitle("#lambda_{0}^{2}"); |
9a97f32f | 2325 | fhPtLambda0MCPhotonPrompt[iso]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
32d244b0 | 2326 | outputContainer->Add(fhPtLambda0MCPhotonPrompt[iso]) ; |
2327 | ||
2328 | fhPtLambda0MCPhotonFrag[iso] = new TH2F | |
7726e3a3 | 2329 | (Form("hPtLambda0%s_MCPhotonFrag",isoName[iso].Data()), |
2330 | Form("%s cluster : #it{p}_{T} vs #lambda_{0}: #gamma_{fragment}, %s",isoTitle[iso].Data(), parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
32d244b0 | 2331 | fhPtLambda0MCPhotonFrag[iso]->SetYTitle("#lambda_{0}^{2}"); |
9a97f32f | 2332 | fhPtLambda0MCPhotonFrag[iso]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
32d244b0 | 2333 | outputContainer->Add(fhPtLambda0MCPhotonFrag[iso]) ; |
2334 | ||
2335 | ||
764ab1f4 | 2336 | fhELambda0MCPhoton[iso] = new TH2F |
7726e3a3 | 2337 | (Form("hELambda0%s_MCPhoton",isoName[iso].Data()), |
2338 | Form("%s cluster : #it{E} vs #lambda_{0}: #gamma_{final state}, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
764ab1f4 | 2339 | fhELambda0MCPhoton[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2340 | fhELambda0MCPhoton[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2341 | outputContainer->Add(fhELambda0MCPhoton[iso]) ; |
764ab1f4 | 2342 | |
2343 | fhELambda0MCPi0[iso] = new TH2F | |
7726e3a3 | 2344 | (Form("hELambda0%s_MCPi0",isoName[iso].Data()), |
2345 | Form("%s cluster : #it{E} vs #lambda_{0}: Merged #pi^{0}_{2 #gamma}, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
764ab1f4 | 2346 | fhELambda0MCPi0[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2347 | fhELambda0MCPi0[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2348 | outputContainer->Add(fhELambda0MCPi0[iso]) ; |
764ab1f4 | 2349 | |
2350 | fhELambda0MCPi0Decay[iso] = new TH2F | |
7726e3a3 | 2351 | (Form("hELambda0%s_MCPi0Decay",isoName[iso].Data()), |
2352 | Form("%s cluster : #it{E} vs #lambda_{0}: #pi^{0}_{1 #gamma}, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
764ab1f4 | 2353 | fhELambda0MCPi0Decay[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2354 | fhELambda0MCPi0Decay[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2355 | outputContainer->Add(fhELambda0MCPi0Decay[iso]) ; |
764ab1f4 | 2356 | |
2357 | fhELambda0MCEtaDecay[iso] = new TH2F | |
7726e3a3 | 2358 | (Form("hELambda0%s_MCEtaDecay",isoName[iso].Data()), |
2359 | Form("%s cluster : #it{E} vs #lambda_{0}: #eta_{1 #gamma}, %s",isoTitle[iso].Data(), parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
764ab1f4 | 2360 | fhELambda0MCEtaDecay[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2361 | fhELambda0MCEtaDecay[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2362 | outputContainer->Add(fhELambda0MCEtaDecay[iso]) ; |
764ab1f4 | 2363 | |
2364 | fhELambda0MCOtherDecay[iso] = new TH2F | |
7726e3a3 | 2365 | (Form("hELambda0%s_MCOtherDecay",isoName[iso].Data()), |
2366 | Form("%s cluster : #it{E} vs #lambda_{0}: #gamma_{other decay}, %s",isoTitle[iso].Data(), parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
764ab1f4 | 2367 | fhELambda0MCOtherDecay[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2368 | fhELambda0MCOtherDecay[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2369 | outputContainer->Add(fhELambda0MCOtherDecay[iso]) ; |
764ab1f4 | 2370 | |
2371 | fhELambda0MCHadron[iso] = new TH2F | |
7726e3a3 | 2372 | (Form("hELambda0%s_MCHadron",isoName[iso].Data()), |
2373 | Form("%s cluster : #it{E} vs #lambda_{0}: hadron, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
764ab1f4 | 2374 | fhELambda0MCHadron[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2375 | fhELambda0MCHadron[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2376 | outputContainer->Add(fhELambda0MCHadron[iso]) ; |
2377 | } | |
764ab1f4 | 2378 | |
ca134929 | 2379 | fhELambda1[iso] = new TH2F |
7726e3a3 | 2380 | (Form("hELambda1%s",isoName[iso].Data()), |
2381 | Form("%s cluster: #it{E} vs #lambda_{1}, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
ca134929 | 2382 | fhELambda1[iso]->SetYTitle("#lambda_{1}^{2}"); |
dc9c6e78 | 2383 | fhELambda1[iso]->SetXTitle("#it{E} (GeV)"); |
db7b861a | 2384 | outputContainer->Add(fhELambda1[iso]) ; |
ca134929 | 2385 | |
2386 | if(fCalorimeter=="EMCAL") | |
7726e3a3 | 2387 | { |
32d244b0 | 2388 | fhPtLambda0TRD[iso] = new TH2F |
7726e3a3 | 2389 | (Form("hPtLambda0TRD%s",isoName[iso].Data()), |
2390 | Form("%s cluster: #it{p}_{T} vs #lambda_{0}, SM behind TRD, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
32d244b0 | 2391 | fhPtLambda0TRD[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2392 | fhPtLambda0TRD[iso]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
32d244b0 | 2393 | outputContainer->Add(fhPtLambda0TRD[iso]) ; |
2394 | ||
ca134929 | 2395 | fhELambda0TRD[iso] = new TH2F |
7726e3a3 | 2396 | (Form("hELambda0TRD%s",isoName[iso].Data()), |
2397 | Form("%s cluster: #it{E} vs #lambda_{0}, SM behind TRD, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
ca134929 | 2398 | fhELambda0TRD[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2399 | fhELambda0TRD[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2400 | outputContainer->Add(fhELambda0TRD[iso]) ; |
ca134929 | 2401 | |
2402 | fhELambda1TRD[iso] = new TH2F | |
7726e3a3 | 2403 | (Form("hELambda1TRD%s",isoName[iso].Data()), |
2404 | Form("%s cluster: #it{E} vs #lambda_{1}, SM behind TRD, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
ca134929 | 2405 | fhELambda1TRD[iso]->SetYTitle("#lambda_{1}^{2}"); |
dc9c6e78 | 2406 | fhELambda1TRD[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2407 | outputContainer->Add(fhELambda1TRD[iso]) ; |
ca134929 | 2408 | } |
2409 | ||
2410 | fhNLocMax[iso] = new TH2F | |
7726e3a3 | 2411 | (Form("hNLocMax%s",isoName[iso].Data()), |
2412 | Form("%s - Number of local maxima in cluster, %s",isoTitle[iso].Data(),parTitle.Data()), | |
72433939 | 2413 | nptbins,ptmin,ptmax,10,0,10); |
9a97f32f | 2414 | fhNLocMax[iso]->SetYTitle("#it{NLM}"); |
dc9c6e78 | 2415 | fhNLocMax[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2416 | outputContainer->Add(fhNLocMax[iso]) ; |
ca134929 | 2417 | |
2418 | fhELambda0LocMax1[iso] = new TH2F | |
7726e3a3 | 2419 | (Form("hELambda0LocMax1%s",isoName[iso].Data()), |
2420 | Form("%s cluster (#eta) pairs: #it{E} vs #lambda_{0}, #it{NLM}=1, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
ca134929 | 2421 | fhELambda0LocMax1[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2422 | fhELambda0LocMax1[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2423 | outputContainer->Add(fhELambda0LocMax1[iso]) ; |
ca134929 | 2424 | |
2425 | fhELambda1LocMax1[iso] = new TH2F | |
7726e3a3 | 2426 | (Form("hELambda1LocMax1%s",isoName[iso].Data()), |
2427 | Form("%s cluster (#eta) pairs: #it{E} vs #lambda_{1}, #it{NLM}=1, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
ca134929 | 2428 | fhELambda1LocMax1[iso]->SetYTitle("#lambda_{1}^{2}"); |
dc9c6e78 | 2429 | fhELambda1LocMax1[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2430 | outputContainer->Add(fhELambda1LocMax1[iso]) ; |
ca134929 | 2431 | |
2432 | fhELambda0LocMax2[iso] = new TH2F | |
7726e3a3 | 2433 | (Form("hELambda0LocMax2%s",isoName[iso].Data()), |
2434 | Form("%s cluster (#eta) pairs: #it{E} vs #lambda_{0}, #it{NLM}=2, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
ca134929 | 2435 | fhELambda0LocMax2[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2436 | fhELambda0LocMax2[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2437 | outputContainer->Add(fhELambda0LocMax2[iso]) ; |
ca134929 | 2438 | |
2439 | fhELambda1LocMax2[iso] = new TH2F | |
7726e3a3 | 2440 | (Form("hELambda1LocMax2%s",isoName[iso].Data()), |
2441 | Form("%s cluster (#eta) pairs: #it{E} vs #lambda_{1}, #it{NLM}=2, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
ca134929 | 2442 | fhELambda1LocMax2[iso]->SetYTitle("#lambda_{1}^{2}"); |
dc9c6e78 | 2443 | fhELambda1LocMax2[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2444 | outputContainer->Add(fhELambda1LocMax2[iso]) ; |
ca134929 | 2445 | |
2446 | fhELambda0LocMaxN[iso] = new TH2F | |
7726e3a3 | 2447 | ( Form("hELambda0LocMaxN%s",isoName[iso].Data()), |
2448 | Form("%s cluster (#eta) pairs: #it{E} vs #lambda_{0}, #it{NLM}>2, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
ca134929 | 2449 | fhELambda0LocMaxN[iso]->SetYTitle("#lambda_{0}^{2}"); |
dc9c6e78 | 2450 | fhELambda0LocMaxN[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2451 | outputContainer->Add(fhELambda0LocMaxN[iso]) ; |
ca134929 | 2452 | |
2453 | fhELambda1LocMaxN[iso] = new TH2F | |
7726e3a3 | 2454 | (Form("hELambda1LocMaxN%s",isoName[iso].Data()), |
2455 | Form("%s cluster (#eta) pairs: #it{E} vs #lambda_{1}, #it{NLM}>2, %s",isoTitle[iso].Data(),parTitle.Data()),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
ca134929 | 2456 | fhELambda1LocMaxN[iso]->SetYTitle("#lambda_{1}^{2}"); |
dc9c6e78 | 2457 | fhELambda1LocMaxN[iso]->SetXTitle("#it{E} (GeV)"); |
72433939 | 2458 | outputContainer->Add(fhELambda1LocMaxN[iso]) ; |
b5dbb99b | 2459 | } |
ca134929 | 2460 | } // control histograms for isolated and non isolated objects |
764ab1f4 | 2461 | |
fedea415 | 2462 | |
6c80c1bf | 2463 | if(fFillPileUpHistograms) |
2464 | { | |
fedea415 | 2465 | fhPtTrackInConeOtherBC = new TH2F("hPtTrackInConeOtherBC", |
9a97f32f | 2466 | Form("#it{p}_{T} of tracks in isolation cone for #it{R} = %2.2f, TOF from BC!=0",r), |
fedea415 | 2467 | nptbins,ptmin,ptmax,nptinconebins,ptinconemin,ptinconemax); |
9a97f32f | 2468 | fhPtTrackInConeOtherBC->SetYTitle("#it{p}_{T in cone} (GeV/#it{c})"); |
dc9c6e78 | 2469 | fhPtTrackInConeOtherBC->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
fedea415 | 2470 | outputContainer->Add(fhPtTrackInConeOtherBC) ; |
2471 | ||
2472 | fhPtTrackInConeOtherBCPileUpSPD = new TH2F("hPtTrackInConeOtherBCPileUpSPD", | |
9a97f32f | 2473 | Form("#it{p}_{T} of tracks in isolation cone for #it{R} = %2.2f, TOF from BC!=0, pile-up from SPD",r), |
72433939 | 2474 | nptbins,ptmin,ptmax,nptinconebins,ptinconemin,ptinconemax); |
9a97f32f | 2475 | fhPtTrackInConeOtherBCPileUpSPD->SetYTitle("#it{p}_{T in cone} (GeV/#it{c})"); |
dc9c6e78 | 2476 | fhPtTrackInConeOtherBCPileUpSPD->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
fedea415 | 2477 | outputContainer->Add(fhPtTrackInConeOtherBCPileUpSPD) ; |
72433939 | 2478 | |
2a9171b5 | 2479 | fhPtTrackInConeBC0 = new TH2F("hPtTrackInConeBC0", |
9a97f32f | 2480 | Form("#it{p}_{T} of tracks in isolation cone for #it{R} = %2.2f, TOF from BC==0",r), |
72433939 | 2481 | nptbins,ptmin,ptmax,nptinconebins,ptinconemin,ptinconemax); |
9a97f32f | 2482 | fhPtTrackInConeBC0->SetYTitle("#it{p}_{T in cone} (GeV/#it{c})"); |
dc9c6e78 | 2483 | fhPtTrackInConeBC0->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
2a9171b5 | 2484 | outputContainer->Add(fhPtTrackInConeBC0) ; |
2485 | ||
cc944149 | 2486 | fhPtTrackInConeVtxBC0 = new TH2F("hPtTrackInConeVtxBC0", |
9a97f32f | 2487 | Form("#it{p}_{T} of tracks in isolation cone for #it{R} = %2.2f, TOF from BC==0",r), |
72433939 | 2488 | nptbins,ptmin,ptmax,nptinconebins,ptinconemin,ptinconemax); |
9a97f32f | 2489 | fhPtTrackInConeVtxBC0->SetYTitle("#it{p}_{T in cone} (GeV/#it{c})"); |
dc9c6e78 | 2490 | fhPtTrackInConeVtxBC0->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
cc944149 | 2491 | outputContainer->Add(fhPtTrackInConeVtxBC0) ; |
72433939 | 2492 | |
cc944149 | 2493 | |
2a9171b5 | 2494 | fhPtTrackInConeBC0PileUpSPD = new TH2F("hPtTrackInConeBC0PileUpSPD", |
9a97f32f | 2495 | Form("#it{p}_{T} of tracks in isolation cone for #it{R} = %2.2f, TOF from BC==0, pile-up from SPD",r), |
72433939 | 2496 | nptbins,ptmin,ptmax,nptinconebins,ptinconemin,ptinconemax); |
9a97f32f | 2497 | fhPtTrackInConeBC0PileUpSPD->SetYTitle("#it{p}_{T in cone} (GeV/#it{c})"); |
dc9c6e78 | 2498 | fhPtTrackInConeBC0PileUpSPD->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
2a9171b5 | 2499 | outputContainer->Add(fhPtTrackInConeBC0PileUpSPD) ; |
72433939 | 2500 | |
fedea415 | 2501 | |
17af6e24 | 2502 | for (Int_t i = 0; i < 7 ; i++) |
2503 | { | |
2504 | fhPtInConePileUp[i] = new TH2F(Form("hPtInConePileUp%s",pileUpName[i].Data()), | |
9a97f32f | 2505 | Form("#it{p}_{T} in isolation cone for #it{R} = %2.2f, from pile-up (%s)",r,pileUpName[i].Data()), |
17af6e24 | 2506 | nptbins,ptmin,ptmax,nptinconebins,ptinconemin,ptinconemax); |
9a97f32f | 2507 | fhPtInConePileUp[i]->SetYTitle("#it{p}_{T in cone} (GeV/#it{c})"); |
dc9c6e78 | 2508 | fhPtInConePileUp[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
17af6e24 | 2509 | outputContainer->Add(fhPtInConePileUp[i]) ; |
2510 | } | |
6c80c1bf | 2511 | } |
2512 | ||
b5dbb99b | 2513 | if(IsDataMC()) |
2514 | { | |
7726e3a3 | 2515 | fhPtIsoPrompt = new TH1F |
2516 | ("hPtMCPrompt",Form("Number of isolated #gamma_{prompt}, %s",parTitle.Data()),nptbins,ptmin,ptmax); | |
9a97f32f | 2517 | fhPtIsoPrompt->SetYTitle("#it{counts}"); |
2518 | fhPtIsoPrompt->SetXTitle("#it{p}_{T #gamma}(GeV/#it{c})"); | |
1a31a9ab | 2519 | outputContainer->Add(fhPtIsoPrompt) ; |
2520 | ||
2521 | fhPhiIsoPrompt = new TH2F | |
7726e3a3 | 2522 | ("hPhiMCPrompt",Form("Number of isolated #gamma_{prompt}, %s",parTitle.Data()),nptbins,ptmin,ptmax,nphibins,phimin,phimax); |
1a31a9ab | 2523 | fhPhiIsoPrompt->SetYTitle("#phi"); |
9a97f32f | 2524 | fhPhiIsoPrompt->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
1a31a9ab | 2525 | outputContainer->Add(fhPhiIsoPrompt) ; |
2526 | ||
2527 | fhEtaIsoPrompt = new TH2F | |
7726e3a3 | 2528 | ("hEtaMCPrompt",Form("Number of isolated #gamma_{prompt}, %s",parTitle.Data()),nptbins,ptmin,ptmax,netabins,etamin,etamax); |
1a31a9ab | 2529 | fhEtaIsoPrompt->SetYTitle("#eta"); |
9a97f32f | 2530 | fhEtaIsoPrompt->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
1a31a9ab | 2531 | outputContainer->Add(fhEtaIsoPrompt) ; |
2532 | ||
7726e3a3 | 2533 | fhPtIsoFragmentation = new TH1F |
2534 | ("hPtMCFragmentation",Form("Number of isolated #gamma_{fragment}, %s",parTitle.Data()),nptbins,ptmin,ptmax); | |
9a97f32f | 2535 | fhPtIsoFragmentation->SetYTitle("#it{counts}"); |
2536 | fhPtIsoFragmentation->SetXTitle("#it{p}_{T #gamma}(GeV/#it{c})"); | |
1a31a9ab | 2537 | outputContainer->Add(fhPtIsoFragmentation) ; |
2538 | ||
2539 | fhPhiIsoFragmentation = new TH2F | |
7726e3a3 | 2540 | ("hPhiMCFragmentation",Form("Number of isolated #gamma_{fragment}, %s",parTitle.Data()),nptbins,ptmin,ptmax,nphibins,phimin,phimax); |
1a31a9ab | 2541 | fhPhiIsoFragmentation->SetYTitle("#phi"); |
9a97f32f | 2542 | fhPhiIsoFragmentation->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
1a31a9ab | 2543 | outputContainer->Add(fhPhiIsoFragmentation) ; |
2544 | ||
2545 | fhEtaIsoFragmentation = new TH2F | |
7726e3a3 | 2546 | ("hEtaMCFragmentation",Form("Number of isolated #gamma_{fragment}, %s",parTitle.Data()),nptbins,ptmin,ptmax,netabins,etamin,etamax); |
1a31a9ab | 2547 | fhEtaIsoFragmentation->SetYTitle("#eta"); |
9a97f32f | 2548 | fhEtaIsoFragmentation->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
1a31a9ab | 2549 | outputContainer->Add(fhEtaIsoFragmentation) ; |
2550 | ||
7726e3a3 | 2551 | fhPtIsoPi0 = new TH1F |
2552 | ("hPtMCPi0",Form("Number of isolated #gamma from #pi^{0} (2 #gamma), %s",parTitle.Data()),nptbins,ptmin,ptmax); | |
9a97f32f | 2553 | fhPtIsoPi0->SetYTitle("#it{counts}"); |
2554 | fhPtIsoPi0->SetXTitle("#it{p}_{T #gamma}(GeV/#it{c})"); | |
764ab1f4 | 2555 | outputContainer->Add(fhPtIsoPi0) ; |
2556 | ||
2557 | fhPhiIsoPi0 = new TH2F | |
7726e3a3 | 2558 | ("hPhiMCPi0",Form("Number of isolated #gamma from #pi^{0} (2 #gamma), %s",parTitle.Data()),nptbins,ptmin,ptmax,nphibins,phimin,phimax); |
764ab1f4 | 2559 | fhPhiIsoPi0->SetYTitle("#phi"); |
9a97f32f | 2560 | fhPhiIsoPi0->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
764ab1f4 | 2561 | outputContainer->Add(fhPhiIsoPi0) ; |
2562 | ||
2563 | fhEtaIsoPi0 = new TH2F | |
7726e3a3 | 2564 | ("hEtaMCPi0",Form("Number of isolated #gamma from #pi^{0} (2 #gamma), %s",parTitle.Data()),nptbins,ptmin,ptmax,netabins,etamin,etamax); |
764ab1f4 | 2565 | fhEtaIsoPi0->SetYTitle("#eta"); |
9a97f32f | 2566 | fhEtaIsoPi0->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
764ab1f4 | 2567 | outputContainer->Add(fhEtaIsoPi0) ; |
2568 | ||
7726e3a3 | 2569 | fhPtIsoPi0Decay = new TH1F |
2570 | ("hPtMCPi0Decay",Form("Number of isolated #gamma from #pi^{0} decay, %s",parTitle.Data()),nptbins,ptmin,ptmax); | |
9a97f32f | 2571 | fhPtIsoPi0Decay->SetYTitle("#it{counts}"); |
2572 | fhPtIsoPi0Decay->SetXTitle("#it{p}_{T #gamma}(GeV/#it{c})"); | |
1a31a9ab | 2573 | outputContainer->Add(fhPtIsoPi0Decay) ; |
2574 | ||
2575 | fhPhiIsoPi0Decay = new TH2F | |
7726e3a3 | 2576 | ("hPhiMCPi0Decay",Form("Number of isolated #gamma from #pi^{0} decay, %s",parTitle.Data()),nptbins,ptmin,ptmax,nphibins,phimin,phimax); |
1a31a9ab | 2577 | fhPhiIsoPi0Decay->SetYTitle("#phi"); |
9a97f32f | 2578 | fhPhiIsoPi0Decay->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
1a31a9ab | 2579 | outputContainer->Add(fhPhiIsoPi0Decay) ; |
2580 | ||
2581 | fhEtaIsoPi0Decay = new TH2F | |
7726e3a3 | 2582 | ("hEtaMCPi0Decay",Form("Number of isolated #gamma from #pi^{0} decay, %s",parTitle.Data()),nptbins,ptmin,ptmax,netabins,etamin,etamax); |
1a31a9ab | 2583 | fhEtaIsoPi0Decay->SetYTitle("#eta"); |
9a97f32f | 2584 | fhEtaIsoPi0Decay->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
1a31a9ab | 2585 | outputContainer->Add(fhEtaIsoPi0Decay) ; |
2586 | ||
7726e3a3 | 2587 | fhPtIsoEtaDecay = new TH1F |
2588 | ("hPtMCEtaDecay",Form("Number of isolated #gamma from #eta decay, %s",parTitle.Data()),nptbins,ptmin,ptmax); | |
9a97f32f | 2589 | fhPtIsoEtaDecay->SetYTitle("#it{counts}"); |
2590 | fhPtIsoEtaDecay->SetXTitle("#it{p}_{T #gamma}(GeV/#it{c})"); | |
803d06a8 | 2591 | outputContainer->Add(fhPtIsoEtaDecay) ; |
2592 | ||
2593 | fhPhiIsoEtaDecay = new TH2F | |
7726e3a3 | 2594 | ("hPhiMCEtaDecay",Form("Number of isolated #gamma from #eta decay, %s",parTitle.Data()),nptbins,ptmin,ptmax,nphibins,phimin,phimax); |
803d06a8 | 2595 | fhPhiIsoEtaDecay->SetYTitle("#phi"); |
9a97f32f | 2596 | fhPhiIsoEtaDecay->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
803d06a8 | 2597 | outputContainer->Add(fhPhiIsoEtaDecay) ; |
2598 | ||
2599 | fhEtaIsoEtaDecay = new TH2F | |
7726e3a3 | 2600 | ("hEtaMCEtaDecay",Form("Number of isolated #gamma from #eta decay, %s",parTitle.Data()),nptbins,ptmin,ptmax,netabins,etamin,etamax); |
803d06a8 | 2601 | fhEtaIsoEtaDecay->SetYTitle("#eta"); |
9a97f32f | 2602 | fhEtaIsoEtaDecay->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
803d06a8 | 2603 | outputContainer->Add(fhEtaIsoEtaDecay) ; |
2604 | ||
7726e3a3 | 2605 | fhPtIsoOtherDecay = new TH1F |
2606 | ("hPtMCOtherDecay",Form("Number of isolated #gamma from non-#pi^{0} decay, %s",parTitle.Data()),nptbins,ptmin,ptmax); | |
9a97f32f | 2607 | fhPtIsoOtherDecay->SetYTitle("#it{counts}"); |
2608 | fhPtIsoOtherDecay->SetXTitle("#it{p}_{T #gamma}(GeV/#it{c})"); | |
1a31a9ab | 2609 | outputContainer->Add(fhPtIsoOtherDecay) ; |
2610 | ||
2611 | fhPhiIsoOtherDecay = new TH2F | |
7726e3a3 | 2612 | ("hPhiMCOtherDecay",Form("Number of isolated #gamma from non-#pi^{0} decay, %s",parTitle.Data()),nptbins,ptmin,ptmax,nphibins,phimin,phimax); |
1a31a9ab | 2613 | fhPhiIsoOtherDecay->SetYTitle("#phi"); |
9a97f32f | 2614 | fhPhiIsoOtherDecay->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
1a31a9ab | 2615 | outputContainer->Add(fhPhiIsoOtherDecay) ; |
2616 | ||
2617 | fhEtaIsoOtherDecay = new TH2F | |
7726e3a3 | 2618 | ("hEtaMCOtherDecay",Form("Number of isolated #gamma non-#pi^{0} decay, %s",parTitle.Data()),nptbins,ptmin,ptmax,netabins,etamin,etamax); |
1a31a9ab | 2619 | fhEtaIsoOtherDecay->SetYTitle("#eta"); |
9a97f32f | 2620 | fhEtaIsoOtherDecay->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
1a31a9ab | 2621 | outputContainer->Add(fhEtaIsoOtherDecay) ; |
2622 | ||
764ab1f4 | 2623 | // fhPtIsoConversion = new TH1F("hPtMCConversion","Number of isolated converted #gamma",nptbins,ptmin,ptmax); |
9a97f32f | 2624 | // fhPtIsoConversion->SetYTitle("#it{counts}"); |
2625 | // fhPtIsoConversion->SetXTitle("#it{p}_{T #gamma}(GeV/#it{c})"); | |
764ab1f4 | 2626 | // outputContainer->Add(fhPtIsoConversion) ; |
2627 | // | |
2628 | // fhPhiIsoConversion = new TH2F | |
2629 | // ("hPhiMCConversion","Number of isolated converted #gamma",nptbins,ptmin,ptmax,nphibins,phimin,phimax); | |
2630 | // fhPhiIsoConversion->SetYTitle("#phi"); | |
9a97f32f | 2631 | // fhPhiIsoConversion->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
764ab1f4 | 2632 | // outputContainer->Add(fhPhiIsoConversion) ; |
2633 | // | |
2634 | // fhEtaIsoConversion = new TH2F | |
2635 | // ("hEtaMCConversion","Number of isolated converted #gamma",nptbins,ptmin,ptmax,netabins,etamin,etamax); | |
2636 | // fhEtaIsoConversion->SetYTitle("#eta"); | |
9a97f32f | 2637 | // fhEtaIsoConversion->SetXTitle("#it{p}_{T #gamma} (GeV/#it{c})"); |
764ab1f4 | 2638 | // outputContainer->Add(fhEtaIsoConversion) ; |
1a31a9ab | 2639 | |
7726e3a3 | 2640 | fhPtIsoHadron = new TH1F |
2641 | ("hPtMCHadron",Form("Number of isolated non-#gamma particles, %s",parTitle.Data()),nptbins,ptmin,ptmax); | |
9a97f32f | 2642 | fhPtIsoHadron->SetYTitle("#it{counts}"); |
dc9c6e78 | 2643 | fhPtIsoHadron->SetXTitle("#it{p}_{T}(GeV/#it{c})"); |
764ab1f4 | 2644 | outputContainer->Add(fhPtIsoHadron) ; |
1a31a9ab | 2645 | |
8736d400 | 2646 | |
764ab1f4 | 2647 | fhPhiIsoHadron = new TH2F |
7726e3a3 | 2648 | ("hPhiMCHadron",Form("Number of isolated non-#gamma particles, %s",parTitle.Data()),nptbins,ptmin,ptmax,nphibins,phimin,phimax); |
764ab1f4 | 2649 | fhPhiIsoHadron->SetYTitle("#phi"); |
dc9c6e78 | 2650 | fhPhiIsoHadron->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
764ab1f4 | 2651 | outputContainer->Add(fhPhiIsoHadron) ; |
1a31a9ab | 2652 | |
764ab1f4 | 2653 | fhEtaIsoHadron = new TH2F |
7726e3a3 | 2654 | ("hEtaMCHadron",Form("Number of isolated non-#gamma particles, %s",parTitle.Data()),nptbins,ptmin,ptmax,netabins,etamin,etamax); |
764ab1f4 | 2655 | fhEtaIsoHadron->SetYTitle("#eta"); |
dc9c6e78 | 2656 | fhEtaIsoHadron->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
764ab1f4 | 2657 | outputContainer->Add(fhEtaIsoHadron) ; |
dc9c6e78 | 2658 | |
2659 | ||
2660 | TString pptype[] = { "#gamma", "#gamma_{#pi decay}","#gamma_{other decay}","hadron?", | |
2661 | "#gamma_{prompt}","#gamma_{fragmentation}","#gamma_{ISR}"} ; | |
2662 | ||
2663 | TString ppname[] = { "Photon","PhotonPi0Decay","PhotonOtherDecay","Hadron", | |
2664 | "PhotonPrompt","PhotonFragmentation","PhotonISR"} ; | |
2665 | ||
2666 | for(Int_t i = 0; i < 7; i++) | |
2667 | { | |
2668 | fhEPrimMC[i] = new TH1F(Form("hEPrim_MC%s",ppname[i].Data()), | |
7726e3a3 | 2669 | Form("primary photon %s : #it{E}, %s",pptype[i].Data(),parTitle.Data()), |
dc9c6e78 | 2670 | nptbins,ptmin,ptmax); |
2671 | fhEPrimMC[i]->SetXTitle("#it{E} (GeV)"); | |
2672 | outputContainer->Add(fhEPrimMC[i]) ; | |
2673 | ||
2674 | fhPtPrimMCiso[i] = new TH1F(Form("hPtPrim_MCiso%s",ppname[i].Data()), | |
7726e3a3 | 2675 | Form("primary isolated photon %s : #it{p}_{T}, %s",pptype[i].Data(),parTitle.Data()), |
dc9c6e78 | 2676 | nptbins,ptmin,ptmax); |
2677 | fhPtPrimMCiso[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
2678 | outputContainer->Add(fhPtPrimMCiso[i]) ; | |
2679 | ||
2680 | fhEtaPrimMC[i] = new TH2F(Form("hEtaPrim_MC%s",ppname[i].Data()), | |
7726e3a3 | 2681 | Form("primary photon %s : #eta vs #it{p}_{T}, %s",pptype[i].Data(),parTitle.Data()), |
dc9c6e78 | 2682 | nptbins,ptmin,ptmax,200,-2,2); |
2683 | fhEtaPrimMC[i]->SetYTitle("#eta"); | |
2684 | fhEtaPrimMC[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
2685 | outputContainer->Add(fhEtaPrimMC[i]) ; | |
db4ffddf | 2686 | |
2687 | fhPhiPrimMC[i] = new TH2F(Form("hPhiPrim_MC%s",ppname[i].Data()), | |
7726e3a3 | 2688 | Form("primary photon %s : #phi vs #it{p}_{T}, %s",pptype[i].Data(),parTitle.Data()), |
db4ffddf | 2689 | nptbins,ptmin,ptmax,200,0.,TMath::TwoPi()); |
2690 | fhPhiPrimMC[i]->SetYTitle("#phi"); | |
2691 | fhPhiPrimMC[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
2692 | outputContainer->Add(fhPhiPrimMC[i]) ; | |
dc9c6e78 | 2693 | } |
1a31a9ab | 2694 | |
1a31a9ab | 2695 | }//Histos with MC |
2696 | ||
2697 | } | |
2698 | ||
db6fb352 | 2699 | // Not Isolated histograms, reference histograms |
2700 | ||
b1f720a7 | 2701 | fhENoIso = new TH1F("hENoIso", |
7726e3a3 | 2702 | Form("Number of not isolated leading particles vs #it{p}_{T}, %s",parTitle.Data()), |
b1f720a7 | 2703 | nptbins,ptmin,ptmax); |
9a97f32f | 2704 | fhENoIso->SetYTitle("#it{counts}"); |
dc9c6e78 | 2705 | fhENoIso->SetXTitle("E (GeV/#it{c})"); |
b1f720a7 | 2706 | outputContainer->Add(fhENoIso) ; |
2707 | ||
db6fb352 | 2708 | fhPtNoIso = new TH1F("hPtNoIso", |
7726e3a3 | 2709 | Form("Number of not isolated leading particles vs #it{p}_{T}, %s",parTitle.Data()), |
db6fb352 | 2710 | nptbins,ptmin,ptmax); |
9a97f32f | 2711 | fhPtNoIso->SetYTitle("#it{counts}"); |
dc9c6e78 | 2712 | fhPtNoIso->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
db6fb352 | 2713 | outputContainer->Add(fhPtNoIso) ; |
2714 | ||
8736d400 | 2715 | fhPtNLocMaxNoIso = new TH2F("hPtNLocMaxNoIso", |
7726e3a3 | 2716 | Form("Number of not isolated particles vs #it{p}_{T}, %s",parTitle.Data()), |
8736d400 | 2717 | nptbins,ptmin,ptmax,10,0,10); |
9a97f32f | 2718 | fhPtNLocMaxNoIso->SetYTitle("#it{NLM}"); |
dc9c6e78 | 2719 | fhPtNLocMaxNoIso->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
8736d400 | 2720 | outputContainer->Add(fhPtNLocMaxNoIso) ; |
db6fb352 | 2721 | |
2722 | fhEtaPhiNoIso = new TH2F("hEtaPhiNoIso", | |
7726e3a3 | 2723 | Form("Number of not isolated leading particles #eta vs #phi, %s",parTitle.Data()), |
db6fb352 | 2724 | netabins,etamin,etamax,nphibins,phimin,phimax); |
2725 | fhEtaPhiNoIso->SetXTitle("#eta"); | |
2726 | fhEtaPhiNoIso->SetYTitle("#phi"); | |
2727 | outputContainer->Add(fhEtaPhiNoIso) ; | |
2728 | ||
2729 | fhPtDecayNoIso = new TH1F("hPtDecayNoIso", | |
7726e3a3 | 2730 | Form("Number of not isolated leading pi0 decay particles vs #it{p}_{T}, %s",parTitle.Data()), |
db6fb352 | 2731 | nptbins,ptmin,ptmax); |
9a97f32f | 2732 | fhPtDecayNoIso->SetYTitle("#it{counts}"); |
dc9c6e78 | 2733 | fhPtDecayNoIso->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
db6fb352 | 2734 | outputContainer->Add(fhPtDecayNoIso) ; |
2735 | ||
2736 | fhEtaPhiDecayNoIso = new TH2F("hEtaPhiDecayNoIso", | |
7726e3a3 | 2737 | Form("Number of not isolated leading Pi0 decay particles #eta vs #phi, %s",parTitle.Data()), |
db6fb352 | 2738 | netabins,etamin,etamax,nphibins,phimin,phimax); |
2739 | fhEtaPhiDecayNoIso->SetXTitle("#eta"); | |
2740 | fhEtaPhiDecayNoIso->SetYTitle("#phi"); | |
2741 | outputContainer->Add(fhEtaPhiDecayNoIso) ; | |
2742 | ||
44e48e82 | 2743 | |
db6fb352 | 2744 | if(IsDataMC()) |
2745 | { | |
764ab1f4 | 2746 | fhPtNoIsoPi0 = new TH1F |
7726e3a3 | 2747 | ("hPtNoIsoPi0",Form("Number of not isolated leading #gamma from #pi^{0} (2 #gamma), %s",parTitle.Data()),nptbins,ptmin,ptmax); |
9a97f32f | 2748 | fhPtNoIsoPi0->SetYTitle("#it{counts}"); |
dc9c6e78 | 2749 | fhPtNoIsoPi0->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
764ab1f4 | 2750 | outputContainer->Add(fhPtNoIsoPi0) ; |
2751 | ||
db6fb352 | 2752 | fhPtNoIsoPi0Decay = new TH1F |
7726e3a3 | 2753 | ("hPtNoIsoPi0Decay",Form("Number of not isolated leading #gamma from #pi^{0} decay, %s",parTitle.Data()),nptbins,ptmin,ptmax); |
9a97f32f | 2754 | fhPtNoIsoPi0Decay->SetYTitle("#it{counts}"); |
dc9c6e78 | 2755 | fhPtNoIsoPi0Decay->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
db6fb352 | 2756 | outputContainer->Add(fhPtNoIsoPi0Decay) ; |
2757 | ||
2758 | fhPtNoIsoEtaDecay = new TH1F | |
7726e3a3 | 2759 | ("hPtNoIsoEtaDecay",Form("Number of not isolated leading #gamma from eta decay, %s",parTitle.Data()),nptbins,ptmin,ptmax); |
9a97f32f | 2760 | fhPtNoIsoEtaDecay->SetYTitle("#it{counts}"); |
dc9c6e78 | 2761 | fhPtNoIsoEtaDecay->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
db6fb352 | 2762 | outputContainer->Add(fhPtNoIsoEtaDecay) ; |
2763 | ||
2764 | fhPtNoIsoOtherDecay = new TH1F | |
7726e3a3 | 2765 | ("hPtNoIsoOtherDecay",Form("Number of not isolated leading #gamma from other decay, %s",parTitle.Data()),nptbins,ptmin,ptmax); |
9a97f32f | 2766 | fhPtNoIsoOtherDecay->SetYTitle("#it{counts}"); |
dc9c6e78 | 2767 | fhPtNoIsoOtherDecay->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
db6fb352 | 2768 | outputContainer->Add(fhPtNoIsoOtherDecay) ; |
2769 | ||
2770 | fhPtNoIsoPrompt = new TH1F | |
7726e3a3 | 2771 | ("hPtNoIsoPrompt",Form("Number of not isolated leading prompt #gamma, %s",parTitle.Data()),nptbins,ptmin,ptmax); |
9a97f32f | 2772 | fhPtNoIsoPrompt->SetYTitle("#it{counts}"); |
dc9c6e78 | 2773 | fhPtNoIsoPrompt->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
db6fb352 | 2774 | outputContainer->Add(fhPtNoIsoPrompt) ; |
2775 | ||
2776 | fhPtIsoMCPhoton = new TH1F | |
7726e3a3 | 2777 | ("hPtIsoMCPhoton",Form("Number of isolated leading #gamma, %s",parTitle.Data()),nptbins,ptmin,ptmax); |
9a97f32f | 2778 | fhPtIsoMCPhoton->SetYTitle("#it{counts}"); |
dc9c6e78 | 2779 | fhPtIsoMCPhoton->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
db6fb352 | 2780 | outputContainer->Add(fhPtIsoMCPhoton) ; |
2781 | ||
2782 | fhPtNoIsoMCPhoton = new TH1F | |
7726e3a3 | 2783 | ("hPtNoIsoMCPhoton",Form("Number of not isolated leading #gamma, %s",parTitle.Data()),nptbins,ptmin,ptmax); |
9a97f32f | 2784 | fhPtNoIsoMCPhoton->SetYTitle("#it{counts}"); |
dc9c6e78 | 2785 | fhPtNoIsoMCPhoton->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
db6fb352 | 2786 | outputContainer->Add(fhPtNoIsoMCPhoton) ; |
2787 | ||
764ab1f4 | 2788 | // fhPtNoIsoConversion = new TH1F |
2789 | // ("hPtNoIsoConversion","Number of not isolated leading conversion #gamma",nptbins,ptmin,ptmax); | |
9a97f32f | 2790 | // fhPtNoIsoConversion->SetYTitle("#it{counts}"); |
dc9c6e78 | 2791 | // fhPtNoIsoConversion->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
764ab1f4 | 2792 | // outputContainer->Add(fhPtNoIsoConversion) ; |
db6fb352 | 2793 | |
2794 | fhPtNoIsoFragmentation = new TH1F | |
7726e3a3 | 2795 | ("hPtNoIsoFragmentation",Form("Number of not isolated leading fragmentation #gamma, %s",parTitle.Data()),nptbins,ptmin,ptmax); |
9a97f32f | 2796 | fhPtNoIsoFragmentation->SetYTitle("#it{counts}"); |
dc9c6e78 | 2797 | fhPtNoIsoFragmentation->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
db6fb352 | 2798 | outputContainer->Add(fhPtNoIsoFragmentation) ; |
2799 | ||
764ab1f4 | 2800 | fhPtNoIsoHadron = new TH1F |
7726e3a3 | 2801 | ("hPtNoIsoHadron",Form("Number of not isolated leading hadrons, %s",parTitle.Data()),nptbins,ptmin,ptmax); |
9a97f32f | 2802 | fhPtNoIsoHadron->SetYTitle("#it{counts}"); |
dc9c6e78 | 2803 | fhPtNoIsoHadron->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
764ab1f4 | 2804 | outputContainer->Add(fhPtNoIsoHadron) ; |
db6fb352 | 2805 | |
2806 | }//Histos with MC | |
2807 | ||
2808 | ||
b5dbb99b | 2809 | if(fMakeSeveralIC) |
2810 | { | |
1a31a9ab | 2811 | const Int_t buffersize = 255; |
e4ef72be | 2812 | char name[buffersize]; |
2813 | char title[buffersize]; | |
2814 | for(Int_t icone = 0; icone<fNCones; icone++) | |
44e48e82 | 2815 | { |
2816 | // sum pt in cone vs. pt leading | |
2817 | snprintf(name, buffersize,"hSumPtLeadingPt_Cone_%d",icone); | |
9a97f32f | 2818 | snprintf(title, buffersize,"#Sigma #it{p}_{T} in isolation cone for #it{R} = %2.2f",fConeSizes[icone]); |
44e48e82 | 2819 | fhSumPtLeadingPt[icone] = new TH2F(name, title,nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2820 | fhSumPtLeadingPt[icone] ->SetYTitle("#sum_{cone}#it{p}_{T} (GeV/#it{c})");//#Sigma #it{p}_{T} |
2821 | fhSumPtLeadingPt[icone] ->SetXTitle("#it{p}_{T}^{leading} (GeV/#it{c})"); | |
44e48e82 | 2822 | outputContainer->Add(fhSumPtLeadingPt[icone]) ; |
2823 | ||
2824 | // pt in cone vs. pt leading | |
2825 | snprintf(name, buffersize,"hPtLeadingPt_Cone_%d",icone); | |
9a97f32f | 2826 | snprintf(title, buffersize,"#it{p}_{T} in isolation cone for #it{R} = %2.2f",fConeSizes[icone]); |
44e48e82 | 2827 | fhPtLeadingPt[icone] = new TH2F(name, title, nptbins,ptmin,ptmax,nptinconebins,ptinconemin,ptinconemax); |
dc9c6e78 | 2828 | fhPtLeadingPt[icone] ->SetYTitle("#it{p}_{T}^{cone} (GeV/#it{c})"); |
2829 | fhPtLeadingPt[icone] ->SetXTitle("#it{p}_{T}^{leading} (GeV/#it{c})"); | |
44e48e82 | 2830 | outputContainer->Add(fhPtLeadingPt[icone]) ; |
2831 | ||
2832 | // sum pt in cone vs. pt leading in the forward region (for background subtraction studies) | |
23130491 | 2833 | snprintf(name, buffersize,"hPerpSumPtLeadingPt_Cone_%d",icone); |
9a97f32f | 2834 | snprintf(title, buffersize,"#Sigma #it{p}_{T} in isolation cone for #it{R} = %2.2f",fConeSizes[icone]); |
23130491 | 2835 | fhPerpSumPtLeadingPt[icone] = new TH2F(name, title,nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2836 | fhPerpSumPtLeadingPt[icone] ->SetYTitle("#sum_{cone}#it{p}_{T} (GeV/#it{c})");//#Sigma #it{p}_{T} |
2837 | fhPerpSumPtLeadingPt[icone] ->SetXTitle("#it{p}_{T}^{leading} (GeV/#it{c})"); | |
23130491 | 2838 | outputContainer->Add(fhPerpSumPtLeadingPt[icone]) ; |
44e48e82 | 2839 | |
2840 | // pt in cone vs. pt leading in the forward region (for background subtraction studies) | |
23130491 | 2841 | snprintf(name, buffersize,"hPerpPtLeadingPt_Cone_%d",icone); |
9a97f32f | 2842 | snprintf(title, buffersize,"#it{p}_{T} in isolation cone for #it{R} = %2.2f",fConeSizes[icone]); |
23130491 | 2843 | fhPerpPtLeadingPt[icone] = new TH2F(name, title, nptbins,ptmin,ptmax,nptinconebins,ptinconemin,ptinconemax); |
dc9c6e78 | 2844 | fhPerpPtLeadingPt[icone] ->SetYTitle("#it{p}_{T}^{cone} (GeV/#it{c})"); |
2845 | fhPerpPtLeadingPt[icone] ->SetXTitle("#it{p}_{T}^{leading} (GeV/#it{c})"); | |
23130491 | 2846 | outputContainer->Add(fhPerpPtLeadingPt[icone]) ; |
44e48e82 | 2847 | |
2848 | ||
e4ef72be | 2849 | if(IsDataMC()) |
db6fb352 | 2850 | { |
b0a31c92 | 2851 | snprintf(name, buffersize,"hPtSumPrompt_Cone_%d",icone); |
9a97f32f | 2852 | snprintf(title, buffersize,"Candidate Prompt cone sum #it{p}_{T} for #it{R} = %2.2f vs candidate #it{p}_{T}",fConeSizes[icone]); |
b0a31c92 | 2853 | fhPtSumIsolatedPrompt[icone] = new TH2F(name, title,nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2854 | fhPtSumIsolatedPrompt[icone]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2855 | fhPtSumIsolatedPrompt[icone]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
b0a31c92 | 2856 | outputContainer->Add(fhPtSumIsolatedPrompt[icone]) ; |
2857 | ||
2858 | snprintf(name, buffersize,"hPtSumFragmentation_Cone_%d",icone); | |
9a97f32f | 2859 | snprintf(title, buffersize,"Candidate Fragmentation cone sum #it{p}_{T} for #it{R} = %2.2fvs candidate #it{p}_{T}",fConeSizes[icone]); |
b0a31c92 | 2860 | fhPtSumIsolatedFragmentation[icone] = new TH2F(name, title,nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2861 | fhPtSumIsolatedFragmentation[icone]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2862 | fhPtSumIsolatedFragmentation[icone]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
b0a31c92 | 2863 | outputContainer->Add(fhPtSumIsolatedFragmentation[icone]) ; |
2864 | ||
764ab1f4 | 2865 | snprintf(name, buffersize,"hPtSumPi0_Cone_%d",icone); |
9a97f32f | 2866 | snprintf(title, buffersize,"Candidate Pi0 cone sum #it{p}_{T} for #it{R} = %2.2f vs candidate #it{p}_{T}",fConeSizes[icone]); |
764ab1f4 | 2867 | fhPtSumIsolatedPi0[icone] = new TH2F(name, title,nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2868 | fhPtSumIsolatedPi0[icone]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2869 | fhPtSumIsolatedPi0[icone]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
764ab1f4 | 2870 | outputContainer->Add(fhPtSumIsolatedPi0[icone]) ; |
2871 | ||
b0a31c92 | 2872 | snprintf(name, buffersize,"hPtSumPi0Decay_Cone_%d",icone); |
9a97f32f | 2873 | snprintf(title, buffersize,"Candidate Pi0Decay cone sum #it{p}_{T} for #it{R} = %2.2f vs candidate #it{p}_{T}",fConeSizes[icone]); |
b0a31c92 | 2874 | fhPtSumIsolatedPi0Decay[icone] = new TH2F(name, title,nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2875 | fhPtSumIsolatedPi0Decay[icone]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2876 | fhPtSumIsolatedPi0Decay[icone]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
b0a31c92 | 2877 | outputContainer->Add(fhPtSumIsolatedPi0Decay[icone]) ; |
2878 | ||
2879 | snprintf(name, buffersize,"hPtSumEtaDecay_Cone_%d",icone); | |
9a97f32f | 2880 | snprintf(title, buffersize,"Candidate EtaDecay cone sum #it{p}_{T} for #it{R} = %2.2f vs candidate #it{p}_{T}",fConeSizes[icone]); |
b0a31c92 | 2881 | fhPtSumIsolatedEtaDecay[icone] = new TH2F(name, title,nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2882 | fhPtSumIsolatedEtaDecay[icone]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2883 | fhPtSumIsolatedEtaDecay[icone]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
b0a31c92 | 2884 | outputContainer->Add(fhPtSumIsolatedEtaDecay[icone]) ; |
2885 | ||
2886 | snprintf(name, buffersize,"hPtSumOtherDecay_Cone_%d",icone); | |
9a97f32f | 2887 | snprintf(title, buffersize,"Candidate OtherDecay cone sum #it{p}_{T} for #it{R} = %2.2f vs candidate #it{p}_{T}",fConeSizes[icone]); |
b0a31c92 | 2888 | fhPtSumIsolatedOtherDecay[icone] = new TH2F(name, title,nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2889 | fhPtSumIsolatedOtherDecay[icone]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2890 | fhPtSumIsolatedOtherDecay[icone]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
b0a31c92 | 2891 | outputContainer->Add(fhPtSumIsolatedOtherDecay[icone]) ; |
2892 | ||
764ab1f4 | 2893 | // snprintf(name, buffersize,"hPtSumConversion_Cone_%d",icone); |
9a97f32f | 2894 | // snprintf(title, buffersize,"Candidate Conversion cone sum #it{p}_{T} for #it{R} = %2.2f vs candidate #it{p}_{T}",fConeSizes[icone]); |
764ab1f4 | 2895 | // fhPtSumIsolatedConversion[icone] = new TH2F(name, title,nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2896 | // fhPtSumIsolatedConversion[icone]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2897 | // fhPtSumIsolatedConversion[icone]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
764ab1f4 | 2898 | // outputContainer->Add(fhPtSumIsolatedConversion[icone]) ; |
b0a31c92 | 2899 | |
764ab1f4 | 2900 | snprintf(name, buffersize,"hPtSumHadron_Cone_%d",icone); |
9a97f32f | 2901 | snprintf(title, buffersize,"Candidate Hadron cone sum #it{p}_{T} for #it{R} = %2.2f vs candidate #it{p}_{T}",fConeSizes[icone]); |
764ab1f4 | 2902 | fhPtSumIsolatedHadron[icone] = new TH2F(name, title,nptbins,ptmin,ptmax,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2903 | fhPtSumIsolatedHadron[icone]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2904 | fhPtSumIsolatedHadron[icone]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
764ab1f4 | 2905 | outputContainer->Add(fhPtSumIsolatedHadron[icone]) ; |
b0a31c92 | 2906 | |
e4ef72be | 2907 | }//Histos with MC |
2908 | ||
2909 | for(Int_t ipt = 0; ipt<fNPtThresFrac;ipt++) | |
2910 | { | |
44e48e82 | 2911 | |
b0a31c92 | 2912 | snprintf(name, buffersize,"hPtThres_Cone_%d_Pt%d",icone,ipt); |
9a97f32f | 2913 | snprintf(title, buffersize,"Isolated candidate #it{p}_{T} distribution for #it{R} = %2.2f and #it{p}_{T}^{th} = %2.2f GeV/#it{c}",fConeSizes[icone],fPtThresholds[ipt]); |
b0a31c92 | 2914 | fhPtThresIsolated[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 2915 | fhPtThresIsolated[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 2916 | outputContainer->Add(fhPtThresIsolated[icone][ipt]) ; |
2917 | ||
2918 | snprintf(name, buffersize,"hPtFrac_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 2919 | snprintf(title, buffersize,"Isolated candidate #it{p}_{T} distribution for #it{R} = %2.2f and #it{p}_{T}^{fr} = %2.2f GeV/#it{c}",fConeSizes[icone],fPtFractions[ipt]); |
b0a31c92 | 2920 | fhPtFracIsolated[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 2921 | fhPtFracIsolated[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 2922 | outputContainer->Add(fhPtFracIsolated[icone][ipt]) ; |
2923 | ||
2924 | ||
2925 | snprintf(name, buffersize,"hPtSum_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 2926 | snprintf(title, buffersize,"Isolated candidate #it{p}_{T} distribution for #it{R} = %2.2f and #it{p}_{T}^{sum} = %2.2f GeV/#it{c}",fConeSizes[icone],fSumPtThresholds[ipt]); |
b0a31c92 | 2927 | fhPtSumIsolated[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 2928 | // fhPtSumIsolated[icone][ipt]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2929 | fhPtSumIsolated[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
b0a31c92 | 2930 | outputContainer->Add(fhPtSumIsolated[icone][ipt]) ; |
2931 | ||
2932 | snprintf(name, buffersize,"hPtSumDensity_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 2933 | snprintf(title, buffersize,"Isolated candidate #it{p}_{T} distribution for density in #it{R} = %2.2f and #it{p}_{T}^{sum} = %2.2f GeV/#it{c}",fConeSizes[icone],fSumPtThresholds[ipt]); |
b0a31c92 | 2934 | fhPtSumDensityIso[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax);//,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2935 | //fhPtSumIsolated[icone][ipt]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2936 | fhPtSumDensityIso[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
b0a31c92 | 2937 | outputContainer->Add(fhPtSumDensityIso[icone][ipt]) ; |
2938 | ||
2939 | snprintf(name, buffersize,"hPtFracPtSum_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 2940 | snprintf(title, buffersize,"Isolated candidate #it{p}_{T} distribution for PtFracPtSum in #it{R} = %2.2f and #it{p}_{T}^{fr} = %2.2f GeV/#it{c}",fConeSizes[icone],fPtFractions[ipt]); |
b0a31c92 | 2941 | fhPtFracPtSumIso[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax);//,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2942 | //fhPtSumIsolated[icone][ipt]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2943 | fhPtFracPtSumIso[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
b0a31c92 | 2944 | outputContainer->Add(fhPtFracPtSumIso[icone][ipt]) ; |
2945 | ||
2946 | // pt decays isolated | |
2947 | snprintf(name, buffersize,"hPtThres_Decay_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 2948 | snprintf(title, buffersize,"Isolated decay candidate #it{p}_{T} distribution for #it{R} = %2.2f and #it{p}_{T}^{th} = %2.2f GeV/#it{c}",fConeSizes[icone],fPtThresholds[ipt]); |
b0a31c92 | 2949 | fhPtPtThresDecayIso[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 2950 | fhPtPtThresDecayIso[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 2951 | outputContainer->Add(fhPtPtThresDecayIso[icone][ipt]) ; |
2952 | ||
2953 | snprintf(name, buffersize,"hPtFrac_Decay_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 2954 | snprintf(title, buffersize,"Isolated decay candidate #it{p}_{T} distribution for #it{R} = %2.2f and #it{p}_{T}^{fr} = %2.2f GeV/#it{c}",fConeSizes[icone],fPtFractions[ipt]); |
b0a31c92 | 2955 | fhPtPtFracDecayIso[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 2956 | fhPtPtFracDecayIso[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 2957 | outputContainer->Add(fhPtPtFracDecayIso[icone][ipt]) ; |
2958 | ||
2959 | snprintf(name, buffersize,"hPtSum_Decay_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 2960 | snprintf(title, buffersize,"Isolated decay candidate #it{p}_{T} distribution for #it{R} = %2.2f and #it{p}_{T}^{sum} = %2.2f GeV/#it{c}",fConeSizes[icone],fSumPtThresholds[ipt]); |
b0a31c92 | 2961 | fhPtPtSumDecayIso[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax);//,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2962 | // fhPtPtSumDecayIso[icone]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2963 | fhPtPtSumDecayIso[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
b0a31c92 | 2964 | outputContainer->Add(fhPtPtSumDecayIso[icone][ipt]) ; |
2965 | ||
2966 | snprintf(name, buffersize,"hPtSumDensity_Decay_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 2967 | snprintf(title, buffersize,"Isolated decay candidate #it{p}_{T} distribution for density in #it{R} = %2.2f and #it{p}_{T}^{sum} = %2.2f GeV/#it{c}",fConeSizes[icone],fSumPtThresholds[ipt]); |
b0a31c92 | 2968 | fhPtSumDensityDecayIso[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax);//,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2969 | // fhPtPtSumDecayIso[icone]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2970 | fhPtSumDensityDecayIso[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
b0a31c92 | 2971 | outputContainer->Add(fhPtSumDensityDecayIso[icone][ipt]) ; |
2972 | ||
2973 | snprintf(name, buffersize,"hPtFracPtSum_Decay_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 2974 | snprintf(title, buffersize,"Isolated decay candidate #it{p}_{T} distribution for PtFracPtSum in #it{R} = %2.2f and #it{p}_{T}^{fr} = %2.2f GeV/#it{c}",fConeSizes[icone],fPtFractions[ipt]); |
b0a31c92 | 2975 | fhPtFracPtSumDecayIso[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax);//,nptsumbins,ptsummin,ptsummax); |
dc9c6e78 | 2976 | // fhPtPtSumDecayIso[icone]->SetYTitle("#Sigma #it{p}_{T} (GeV/#it{c})"); |
2977 | fhPtFracPtSumDecayIso[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
b0a31c92 | 2978 | outputContainer->Add(fhPtFracPtSumDecayIso[icone][ipt]) ; |
2979 | ||
2980 | ||
2981 | // eta:phi | |
2982 | snprintf(name, buffersize,"hEtaPhiPtThres_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 2983 | snprintf(title, buffersize,"Isolated candidate #eta:#phi distribution for #it{R} = %2.2f and #it{p}_{T}^{th} = %2.2f GeV/#it{c}",fConeSizes[icone],fPtThresholds[ipt]); |
b0a31c92 | 2984 | fhEtaPhiPtThresIso[icone][ipt] = new TH2F(name, title,netabins,etamin,etamax,nphibins,phimin,phimax); |
2985 | fhEtaPhiPtThresIso[icone][ipt]->SetXTitle("#eta"); | |
2986 | fhEtaPhiPtThresIso[icone][ipt]->SetYTitle("#phi"); | |
2987 | outputContainer->Add(fhEtaPhiPtThresIso[icone][ipt]) ; | |
2988 | ||
2989 | snprintf(name, buffersize,"hEtaPhiPtFrac_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 2990 | snprintf(title, buffersize,"Isolated candidate #eta:#phi distribution for #it{R} = %2.2f and #it{p}_{T}^{fr} = %2.2f GeV/#it{c}",fConeSizes[icone],fPtFractions[ipt]); |
b0a31c92 | 2991 | fhEtaPhiPtFracIso[icone][ipt] = new TH2F(name, title,netabins,etamin,etamax,nphibins,phimin,phimax); |
2992 | fhEtaPhiPtFracIso[icone][ipt]->SetXTitle("#eta"); | |
2993 | fhEtaPhiPtFracIso[icone][ipt]->SetYTitle("#phi"); | |
2994 | outputContainer->Add(fhEtaPhiPtFracIso[icone][ipt]) ; | |
2995 | ||
2996 | snprintf(name, buffersize,"hEtaPhiPtSum_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 2997 | snprintf(title, buffersize,"Isolated candidate #eta:#phi distribution for #it{R} = %2.2f and #it{p}_{T}^{sum} = %2.2f GeV/#it{c}",fConeSizes[icone],fSumPtThresholds[ipt]); |
b0a31c92 | 2998 | fhEtaPhiPtSumIso[icone][ipt] = new TH2F(name, title,netabins,etamin,etamax,nphibins,phimin,phimax); |
2999 | fhEtaPhiPtSumIso[icone][ipt]->SetXTitle("#eta"); | |
3000 | fhEtaPhiPtSumIso[icone][ipt]->SetYTitle("#phi"); | |
3001 | outputContainer->Add(fhEtaPhiPtSumIso[icone][ipt]) ; | |
3002 | ||
3003 | snprintf(name, buffersize,"hEtaPhiSumDensity_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 3004 | snprintf(title, buffersize,"Isolated candidate #eta:#phi distribution for density #it{R} = %2.2f and #it{p}_{T}^{sum} = %2.2f GeV/#it{c}",fConeSizes[icone],fSumPtThresholds[ipt]); |
b0a31c92 | 3005 | fhEtaPhiSumDensityIso[icone][ipt] = new TH2F(name, title,netabins,etamin,etamax,nphibins,phimin,phimax); |
3006 | fhEtaPhiSumDensityIso[icone][ipt]->SetXTitle("#eta"); | |
3007 | fhEtaPhiSumDensityIso[icone][ipt]->SetYTitle("#phi"); | |
3008 | outputContainer->Add(fhEtaPhiSumDensityIso[icone][ipt]) ; | |
3009 | ||
3010 | snprintf(name, buffersize,"hEtaPhiFracPtSum_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 3011 | snprintf(title, buffersize,"Isolated candidate #eta:#phi distribution for FracPtSum #it{R} = %2.2f and #it{p}_{T}^{fr} = %2.2f GeV/#it{c}",fConeSizes[icone],fPtFractions[ipt]); |
b0a31c92 | 3012 | fhEtaPhiFracPtSumIso[icone][ipt] = new TH2F(name, title,netabins,etamin,etamax,nphibins,phimin,phimax); |
3013 | fhEtaPhiFracPtSumIso[icone][ipt]->SetXTitle("#eta"); | |
3014 | fhEtaPhiFracPtSumIso[icone][ipt]->SetYTitle("#phi"); | |
3015 | outputContainer->Add(fhEtaPhiFracPtSumIso[icone][ipt]) ; | |
3016 | ||
3017 | // eta:phi decays | |
3018 | snprintf(name, buffersize,"hEtaPhiPtThres_Decay_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 3019 | snprintf(title, buffersize,"Isolated decay candidate #eta:#phi distribution for #it{R} = %2.2f and #it{p}_{T}^{th} = %2.2f GeV/#it{c}",fConeSizes[icone],fPtThresholds[ipt]); |
b0a31c92 | 3020 | fhEtaPhiPtThresDecayIso[icone][ipt] = new TH2F(name, title,netabins,etamin,etamax,nphibins,phimin,phimax); |
3021 | fhEtaPhiPtThresDecayIso[icone][ipt]->SetXTitle("#eta"); | |
3022 | fhEtaPhiPtThresDecayIso[icone][ipt]->SetYTitle("#phi"); | |
3023 | outputContainer->Add(fhEtaPhiPtThresDecayIso[icone][ipt]) ; | |
3024 | ||
3025 | snprintf(name, buffersize,"hEtaPhiPtFrac_Decay_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 3026 | snprintf(title, buffersize,"Isolated decay candidate #eta:#phi distribution for #it{R} = %2.2f and #it{p}_{T}^{fr} = %2.2f GeV/#it{c}",fConeSizes[icone],fPtFractions[ipt]); |
b0a31c92 | 3027 | fhEtaPhiPtFracDecayIso[icone][ipt] = new TH2F(name, title,netabins,etamin,etamax,nphibins,phimin,phimax); |
3028 | fhEtaPhiPtFracDecayIso[icone][ipt]->SetXTitle("#eta"); | |
3029 | fhEtaPhiPtFracDecayIso[icone][ipt]->SetYTitle("#phi"); | |
3030 | outputContainer->Add(fhEtaPhiPtFracDecayIso[icone][ipt]) ; | |
3031 | ||
3032 | ||
3033 | snprintf(name, buffersize,"hEtaPhiPtSum_Decay_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 3034 | snprintf(title, buffersize,"Isolated decay candidate #eta:#phi distribution for #it{R} = %2.2f and #it{p}_{T}^{sum} = %2.2f GeV/#it{c}",fConeSizes[icone],fSumPtThresholds[ipt]); |
b0a31c92 | 3035 | fhEtaPhiPtSumDecayIso[icone][ipt] = new TH2F(name, title,netabins,etamin,etamax,nphibins,phimin,phimax); |
3036 | fhEtaPhiPtSumDecayIso[icone][ipt]->SetXTitle("#eta"); | |
3037 | fhEtaPhiPtSumDecayIso[icone][ipt]->SetYTitle("#phi"); | |
3038 | outputContainer->Add(fhEtaPhiPtSumDecayIso[icone][ipt]) ; | |
3039 | ||
3040 | snprintf(name, buffersize,"hEtaPhiSumDensity_Decay_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 3041 | snprintf(title, buffersize,"Isolated decay candidate #eta:#phi distribution for density #it{R} = %2.2f and #it{p}_{T}^{sum} = %2.2f GeV/#it{c}",fConeSizes[icone],fSumPtThresholds[ipt]); |
b0a31c92 | 3042 | fhEtaPhiSumDensityDecayIso[icone][ipt] = new TH2F(name, title,netabins,etamin,etamax,nphibins,phimin,phimax); |
3043 | fhEtaPhiSumDensityDecayIso[icone][ipt]->SetXTitle("#eta"); | |
3044 | fhEtaPhiSumDensityDecayIso[icone][ipt]->SetYTitle("#phi"); | |
3045 | outputContainer->Add(fhEtaPhiSumDensityDecayIso[icone][ipt]) ; | |
3046 | ||
3047 | snprintf(name, buffersize,"hEtaPhiFracPtSum_Decay_Cone_%d_Pt%d",icone,ipt); | |
9a97f32f | 3048 | snprintf(title, buffersize,"Isolated decay candidate #eta:#phi distribution for FracPtSum #it{R} = %2.2f and #it{p}_{T}^{fr} = %2.2f GeV/#it{c}",fConeSizes[icone],fPtFractions[ipt]); |
b0a31c92 | 3049 | fhEtaPhiFracPtSumDecayIso[icone][ipt] = new TH2F(name, title,netabins,etamin,etamax,nphibins,phimin,phimax); |
3050 | fhEtaPhiFracPtSumDecayIso[icone][ipt]->SetXTitle("#eta"); | |
3051 | fhEtaPhiFracPtSumDecayIso[icone][ipt]->SetYTitle("#phi"); | |
3052 | outputContainer->Add(fhEtaPhiFracPtSumDecayIso[icone][ipt]) ; | |
3053 | ||
3054 | ||
3055 | if(IsDataMC()) | |
3056 | { | |
3057 | snprintf(name, buffersize,"hPtThresMCPrompt_Cone_%d_Pt%d",icone,ipt); | |
dc9c6e78 | 3058 | snprintf(title, buffersize,"Isolated candidate Prompt #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
b0a31c92 | 3059 | fhPtThresIsolatedPrompt[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3060 | fhPtThresIsolatedPrompt[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 3061 | outputContainer->Add(fhPtThresIsolatedPrompt[icone][ipt]) ; |
3062 | ||
3063 | snprintf(name, buffersize,"hPtFracMCPrompt_Cone_%d_Pt%d",icone,ipt); | |
dc9c6e78 | 3064 | snprintf(title, buffersize,"Isolated candidate Prompt #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
b0a31c92 | 3065 | fhPtFracIsolatedPrompt[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3066 | fhPtFracIsolatedPrompt[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 3067 | outputContainer->Add(fhPtFracIsolatedPrompt[icone][ipt]) ; |
3068 | ||
3069 | snprintf(name, buffersize,"hPtThresMCFragmentation_Cone_%d_Pt%d",icone,ipt); | |
dc9c6e78 | 3070 | snprintf(title, buffersize,"Isolated candidate Fragmentation #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
b0a31c92 | 3071 | fhPtThresIsolatedFragmentation[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3072 | fhPtThresIsolatedFragmentation[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 3073 | outputContainer->Add(fhPtThresIsolatedFragmentation[icone][ipt]) ; |
3074 | ||
3075 | snprintf(name, buffersize,"hPtFracMCFragmentation_Cone_%d_Pt%d",icone,ipt); | |
dc9c6e78 | 3076 | snprintf(title, buffersize,"Isolated candidate Fragmentation #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
b0a31c92 | 3077 | fhPtFracIsolatedFragmentation[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3078 | fhPtFracIsolatedFragmentation[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 3079 | outputContainer->Add(fhPtFracIsolatedFragmentation[icone][ipt]) ; |
3080 | ||
764ab1f4 | 3081 | snprintf(name, buffersize,"hPtThresMCPi0_Cone_%d_Pt%d",icone,ipt); |
dc9c6e78 | 3082 | snprintf(title, buffersize,"Isolated candidate Pi0 #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
764ab1f4 | 3083 | fhPtThresIsolatedPi0[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3084 | fhPtThresIsolatedPi0[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
764ab1f4 | 3085 | outputContainer->Add(fhPtThresIsolatedPi0[icone][ipt]) ; |
3086 | ||
3087 | snprintf(name, buffersize,"hPtFracMCPi0_Cone_%d_Pt%d",icone,ipt); | |
dc9c6e78 | 3088 | snprintf(title, buffersize,"Isolated candidate Pi0 #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
764ab1f4 | 3089 | fhPtFracIsolatedPi0[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3090 | fhPtFracIsolatedPi0[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
764ab1f4 | 3091 | outputContainer->Add(fhPtFracIsolatedPi0[icone][ipt]) ; |
3092 | ||
b0a31c92 | 3093 | snprintf(name, buffersize,"hPtThresMCPi0Decay_Cone_%d_Pt%d",icone,ipt); |
dc9c6e78 | 3094 | snprintf(title, buffersize,"Isolated candidate Pi0Decay #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
b0a31c92 | 3095 | fhPtThresIsolatedPi0Decay[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3096 | fhPtThresIsolatedPi0Decay[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 3097 | outputContainer->Add(fhPtThresIsolatedPi0Decay[icone][ipt]) ; |
3098 | ||
3099 | snprintf(name, buffersize,"hPtFracMCPi0Decay_Cone_%d_Pt%d",icone,ipt); | |
dc9c6e78 | 3100 | snprintf(title, buffersize,"Isolated candidate Pi0Decay #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
b0a31c92 | 3101 | fhPtFracIsolatedPi0Decay[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3102 | fhPtFracIsolatedPi0Decay[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 3103 | outputContainer->Add(fhPtFracIsolatedPi0Decay[icone][ipt]) ; |
3104 | ||
3105 | snprintf(name, buffersize,"hPtThresMCEtaDecay_Cone_%d_Pt%d",icone,ipt); | |
dc9c6e78 | 3106 | snprintf(title, buffersize,"Isolated candidate EtaDecay #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
b0a31c92 | 3107 | fhPtThresIsolatedEtaDecay[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3108 | fhPtThresIsolatedEtaDecay[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 3109 | outputContainer->Add(fhPtThresIsolatedEtaDecay[icone][ipt]) ; |
3110 | ||
3111 | snprintf(name, buffersize,"hPtFracMCEtaDecay_Cone_%d_Pt%d",icone,ipt); | |
dc9c6e78 | 3112 | snprintf(title, buffersize,"Isolated candidate EtaDecay #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
b0a31c92 | 3113 | fhPtFracIsolatedEtaDecay[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3114 | fhPtFracIsolatedEtaDecay[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 3115 | outputContainer->Add(fhPtFracIsolatedEtaDecay[icone][ipt]) ; |
3116 | ||
3117 | ||
3118 | snprintf(name, buffersize,"hPtThresMCOtherDecay_Cone_%d_Pt%d",icone,ipt); | |
dc9c6e78 | 3119 | snprintf(title, buffersize,"Isolated candidate OtherDecay #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
b0a31c92 | 3120 | fhPtThresIsolatedOtherDecay[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3121 | fhPtThresIsolatedOtherDecay[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 3122 | outputContainer->Add(fhPtThresIsolatedOtherDecay[icone][ipt]) ; |
3123 | ||
3124 | snprintf(name, buffersize,"hPtFracMCOtherDecay_Cone_%d_Pt%d",icone,ipt); | |
dc9c6e78 | 3125 | snprintf(title, buffersize,"Isolated candidate OtherDecay #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
b0a31c92 | 3126 | fhPtFracIsolatedOtherDecay[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3127 | fhPtFracIsolatedOtherDecay[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b0a31c92 | 3128 | outputContainer->Add(fhPtFracIsolatedOtherDecay[icone][ipt]) ; |
3129 | ||
764ab1f4 | 3130 | // snprintf(name, buffersize,"hPtThresMCConversion_Cone_%d_Pt%d",icone,ipt); |
dc9c6e78 | 3131 | // snprintf(title, buffersize,"Isolated candidate Conversion #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
764ab1f4 | 3132 | // fhPtThresIsolatedConversion[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3133 | // fhPtThresIsolatedConversion[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
764ab1f4 | 3134 | // outputContainer->Add(fhPtThresIsolatedConversion[icone][ipt]) ; |
b0a31c92 | 3135 | |
764ab1f4 | 3136 | // snprintf(name, buffersize,"hPtFracMCConversion_Cone_%d_Pt%d",icone,ipt); |
dc9c6e78 | 3137 | // snprintf(title, buffersize,"Isolated candidate Conversion #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
764ab1f4 | 3138 | // fhPtFracIsolatedConversion[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3139 | // fhPtFracIsolatedConversion[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
764ab1f4 | 3140 | // outputContainer->Add(fhPtFracIsolatedConversion[icone][ipt]) ; |
b0a31c92 | 3141 | |
764ab1f4 | 3142 | snprintf(name, buffersize,"hPtThresMCHadron_Cone_%d_Pt%d",icone,ipt); |
dc9c6e78 | 3143 | snprintf(title, buffersize,"Isolated candidate Hadron #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
764ab1f4 | 3144 | fhPtThresIsolatedHadron[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3145 | fhPtThresIsolatedHadron[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
764ab1f4 | 3146 | outputContainer->Add(fhPtThresIsolatedHadron[icone][ipt]) ; |
b0a31c92 | 3147 | |
764ab1f4 | 3148 | snprintf(name, buffersize,"hPtFracMCHadron_Cone_%d_Pt%d",icone,ipt); |
dc9c6e78 | 3149 | snprintf(title, buffersize,"Isolated candidate Hadron #it{p}_{T} distribution for cone size %d and #it{p}_{T}^{th} %d",icone,ipt); |
764ab1f4 | 3150 | fhPtFracIsolatedHadron[icone][ipt] = new TH1F(name, title,nptbins,ptmin,ptmax); |
dc9c6e78 | 3151 | fhPtFracIsolatedHadron[icone][ipt]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
764ab1f4 | 3152 | outputContainer->Add(fhPtFracIsolatedHadron[icone][ipt]) ; |
b0a31c92 | 3153 | |
e4ef72be | 3154 | }//Histos with MC |
3155 | }//icone loop | |
3156 | }//ipt loop | |
1a31a9ab | 3157 | } |
3158 | ||
2ad19c3d | 3159 | if(fFillPileUpHistograms) |
3160 | { | |
17af6e24 | 3161 | for (Int_t i = 0; i < 7 ; i++) |
3162 | { | |
3163 | fhEIsoPileUp[i] = new TH1F(Form("hEPileUp%s",pileUpName[i].Data()), | |
7726e3a3 | 3164 | Form("Number of isolated particles vs E, %s, pile-up event by %s",parTitle.Data(),pileUpName[i].Data()), |
17af6e24 | 3165 | nptbins,ptmin,ptmax); |
03b86424 | 3166 | fhEIsoPileUp[i]->SetYTitle("d#it{N} / d#it{E}"); |
dc9c6e78 | 3167 | fhEIsoPileUp[i]->SetXTitle("#it{E} (GeV)"); |
17af6e24 | 3168 | outputContainer->Add(fhEIsoPileUp[i]) ; |
3169 | ||
3170 | fhPtIsoPileUp[i] = new TH1F(Form("hPtPileUp%s",pileUpName[i].Data()), | |
7726e3a3 | 3171 | Form("Number of isolated particles vs #it{p}_{T}, %s, pile-up event by %s",parTitle.Data(),pileUpName[i].Data()), |
17af6e24 | 3172 | nptbins,ptmin,ptmax); |
03b86424 | 3173 | fhPtIsoPileUp[i]->SetYTitle("d#it{N} / #it{p}_{T}"); |
dc9c6e78 | 3174 | fhPtIsoPileUp[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
17af6e24 | 3175 | outputContainer->Add(fhPtIsoPileUp[i]) ; |
3176 | ||
3177 | fhENoIsoPileUp[i] = new TH1F(Form("hENoIsoPileUp%s",pileUpName[i].Data()), | |
7726e3a3 | 3178 | Form("Number of not isolated particles vs E, %s, pile-up event by %s",parTitle.Data(),pileUpName[i].Data()), |
17af6e24 | 3179 | nptbins,ptmin,ptmax); |
03b86424 | 3180 | fhENoIsoPileUp[i]->SetYTitle("d#it{N} / dE"); |
dc9c6e78 | 3181 | fhENoIsoPileUp[i]->SetXTitle("#it{E} (GeV)"); |
17af6e24 | 3182 | outputContainer->Add(fhENoIsoPileUp[i]) ; |
3183 | ||
3184 | fhPtNoIsoPileUp[i] = new TH1F(Form("hPtNoIsoPileUp%s",pileUpName[i].Data()), | |
7726e3a3 | 3185 | Form("Number of not isolated particles vs #it{p}_{T}, %s, pile-up event by %s",parTitle.Data(),pileUpName[i].Data()), |
17af6e24 | 3186 | nptbins,ptmin,ptmax); |
03b86424 | 3187 | fhPtNoIsoPileUp[i]->SetYTitle("d#it{N} / #it{p}_{T}"); |
dc9c6e78 | 3188 | fhPtNoIsoPileUp[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
17af6e24 | 3189 | outputContainer->Add(fhPtNoIsoPileUp[i]) ; |
3190 | } | |
b1f720a7 | 3191 | |
2ad19c3d | 3192 | fhTimeENoCut = new TH2F ("hTimeE_NoCut","time of cluster vs E of clusters, no cut", nptbins,ptmin,ptmax, ntimebins,timemin,timemax); |
dc9c6e78 | 3193 | fhTimeENoCut->SetXTitle("#it{E} (GeV)"); |
03b86424 | 3194 | fhTimeENoCut->SetYTitle("#it{time} (ns)"); |
2ad19c3d | 3195 | outputContainer->Add(fhTimeENoCut); |
3196 | ||
3197 | fhTimeESPD = new TH2F ("hTimeE_SPD","time of cluster vs E of clusters, SPD cut", nptbins,ptmin,ptmax, ntimebins,timemin,timemax); | |
dc9c6e78 | 3198 | fhTimeESPD->SetXTitle("#it{E} (GeV)"); |
03b86424 | 3199 | fhTimeESPD->SetYTitle("#it{time} (ns)"); |
2ad19c3d | 3200 | outputContainer->Add(fhTimeESPD); |
3201 | ||
3202 | fhTimeESPDMulti = new TH2F ("hTimeE_SPDMulti","time of cluster vs E of clusters, SPD multi cut", nptbins,ptmin,ptmax, ntimebins,timemin,timemax); | |
dc9c6e78 | 3203 | fhTimeESPDMulti->SetXTitle("#it{E} (GeV)"); |
03b86424 | 3204 | fhTimeESPDMulti->SetYTitle("#it{time} (ns)"); |
2ad19c3d | 3205 | outputContainer->Add(fhTimeESPDMulti); |
3206 | ||
3207 | fhTimeNPileUpVertSPD = new TH2F ("hTime_NPileUpVertSPD","time of cluster vs N pile-up SPD vertex", ntimebins,timemin,timemax,50,0,50); | |
3208 | fhTimeNPileUpVertSPD->SetYTitle("# vertex "); | |
03b86424 | 3209 | fhTimeNPileUpVertSPD->SetXTitle("#it{time} (ns)"); |
2ad19c3d | 3210 | outputContainer->Add(fhTimeNPileUpVertSPD); |
3211 | ||
3212 | fhTimeNPileUpVertTrack = new TH2F ("hTime_NPileUpVertTracks","time of cluster vs N pile-up Tracks vertex", ntimebins,timemin,timemax, 50,0,50 ); | |
3213 | fhTimeNPileUpVertTrack->SetYTitle("# vertex "); | |
03b86424 | 3214 | fhTimeNPileUpVertTrack->SetXTitle("#it{time} (ns)"); |
2ad19c3d | 3215 | outputContainer->Add(fhTimeNPileUpVertTrack); |
3216 | ||
3217 | fhTimeNPileUpVertContributors = new TH2F ("hTime_NPileUpVertContributors","time of cluster vs N constributors to pile-up SPD vertex", ntimebins,timemin,timemax,50,0,50); | |
3218 | fhTimeNPileUpVertContributors->SetYTitle("# vertex "); | |
03b86424 | 3219 | fhTimeNPileUpVertContributors->SetXTitle("#it{time} (ns)"); |
2ad19c3d | 3220 | outputContainer->Add(fhTimeNPileUpVertContributors); |
3221 | ||
3222 | fhTimePileUpMainVertexZDistance = new TH2F ("hTime_PileUpMainVertexZDistance","time of cluster vs distance in Z pile-up SPD vertex - main SPD vertex",ntimebins,timemin,timemax,100,0,50); | |
03b86424 | 3223 | fhTimePileUpMainVertexZDistance->SetYTitle("distance #it{z} (cm) "); |
3224 | fhTimePileUpMainVertexZDistance->SetXTitle("#it{time} (ns)"); | |
2ad19c3d | 3225 | outputContainer->Add(fhTimePileUpMainVertexZDistance); |
3226 | ||
3227 | fhTimePileUpMainVertexZDiamond = new TH2F ("hTime_PileUpMainVertexZDiamond","time of cluster vs distance in Z pile-up SPD vertex - z diamond",ntimebins,timemin,timemax,100,0,50); | |
03b86424 | 3228 | fhTimePileUpMainVertexZDiamond->SetYTitle("diamond distance #it{z} (cm) "); |
3229 | fhTimePileUpMainVertexZDiamond->SetXTitle("#it{time} (ns)"); | |
2ad19c3d | 3230 | outputContainer->Add(fhTimePileUpMainVertexZDiamond); |
2ad19c3d | 3231 | } |
3232 | ||
1a31a9ab | 3233 | return outputContainer ; |
3234 | ||
3235 | } | |
3236 | ||
03bae431 | 3237 | //__________________________________ |
3238 | void AliAnaParticleIsolation::Init() | |
3239 | { | |
3240 | // Do some checks and init stuff | |
3241 | ||
3242 | // In case of several cone and thresholds analysis, open the cuts for the filling of the | |
3243 | // track and cluster reference arrays in cone when done in the MakeAnalysisFillAOD(). | |
3244 | // The different cones, thresholds are tested for this list of tracks, clusters. | |
3245 | if(fMakeSeveralIC) | |
3246 | { | |
3247 | printf("AliAnaParticleIsolation::Init() - Open default isolation cuts for multiple Isolation analysis\n"); | |
3248 | GetIsolationCut()->SetPtThreshold(100); | |
3249 | GetIsolationCut()->SetPtFraction(100); | |
3250 | GetIsolationCut()->SetConeSize(1); | |
3251 | } | |
373ffbac | 3252 | |
3253 | if(!GetReader()->IsCTSSwitchedOn() && GetIsolationCut()->GetParticleTypeInCone()!=AliIsolationCut::kOnlyNeutral) | |
3254 | AliFatal("STOP!: You want to use CTS tracks in analysis but not read!! \n!!Check the configuration file!!\n"); | |
3255 | ||
3256 | ||
03bae431 | 3257 | } |
3258 | ||
803d06a8 | 3259 | //____________________________________________ |
3260 | void AliAnaParticleIsolation::InitParameters() | |
3261 | { | |
3262 | ||
3263 | //Initialize the parameters of the analysis. | |
3264 | SetInputAODName("PWG4Particle"); | |
3265 | SetAODObjArrayName("IsolationCone"); | |
3266 | AddToHistogramsName("AnaIsolation_"); | |
3267 | ||
3268 | fCalorimeter = "PHOS" ; | |
3269 | fReMakeIC = kFALSE ; | |
3270 | fMakeSeveralIC = kFALSE ; | |
3271 | ||
3272 | //----------- Several IC----------------- | |
db6fb352 | 3273 | fNCones = 5 ; |
3274 | fNPtThresFrac = 5 ; | |
3275 | fConeSizes [0] = 0.1; fConeSizes [1] = 0.2; fConeSizes [2] = 0.3; fConeSizes [3] = 0.4; fConeSizes [4] = 0.5; | |
3276 | fPtThresholds [0] = 1.; fPtThresholds [1] = 2.; fPtThresholds [2] = 3.; fPtThresholds [3] = 4.; fPtThresholds [4] = 5.; | |
3277 | fPtFractions [0] = 0.05; fPtFractions [1] = 0.075; fPtFractions [2] = 0.1; fPtFractions [3] = 1.25; fPtFractions [4] = 1.5; | |
3278 | fSumPtThresholds[0] = 1.; fSumPtThresholds[1] = 2.; fSumPtThresholds[2] = 3.; fSumPtThresholds[3] = 4.; fSumPtThresholds[4] = 5.; | |
803d06a8 | 3279 | |
3280 | //------------- Histograms settings ------- | |
3281 | fHistoNPtSumBins = 100 ; | |
3282 | fHistoPtSumMax = 50 ; | |
3283 | fHistoPtSumMin = 0. ; | |
3284 | ||
3285 | fHistoNPtInConeBins = 100 ; | |
3286 | fHistoPtInConeMax = 50 ; | |
3287 | fHistoPtInConeMin = 0. ; | |
3288 | ||
3289 | } | |
3290 | ||
3291 | //__________________________________________________ | |
1a31a9ab | 3292 | void AliAnaParticleIsolation::MakeAnalysisFillAOD() |
3293 | { | |
3294 | //Do analysis and fill aods | |
3295 | //Search for the isolated photon in fCalorimeter with pt > GetMinPt() | |
3296 | ||
b5dbb99b | 3297 | if(!GetInputAODBranch()) |
373ffbac | 3298 | AliFatal(Form("No input particles in AOD with name branch < %s >, STOP",GetInputAODName().Data())); |
3299 | ||
1a31a9ab | 3300 | |
b5dbb99b | 3301 | if(strcmp(GetInputAODBranch()->GetClass()->GetName(), "AliAODPWG4ParticleCorrelation")) |
373ffbac | 3302 | AliFatal(Form("Wrong type of AOD object, change AOD class name in input AOD: It should be <AliAODPWG4ParticleCorrelation> and not <%s> \n",GetInputAODBranch()->GetClass()->GetName())); |
b0a31c92 | 3303 | |
1a31a9ab | 3304 | Int_t n = 0, nfrac = 0; |
3305 | Bool_t isolated = kFALSE ; | |
1a31a9ab | 3306 | Float_t coneptsum = 0 ; |
3307 | TObjArray * pl = 0x0; ; | |
3308 | ||
3309 | //Select the calorimeter for candidate isolation with neutral particles | |
b5dbb99b | 3310 | if (fCalorimeter == "PHOS" ) |
1a31a9ab | 3311 | pl = GetPHOSClusters(); |
3312 | else if (fCalorimeter == "EMCAL") | |
3313 | pl = GetEMCALClusters(); | |
3314 | ||
3315 | //Loop on AOD branch, filled previously in AliAnaPhoton, find leading particle to do isolation only with it | |
3316 | Double_t ptLeading = 0. ; | |
3317 | Int_t idLeading = -1 ; | |
3318 | TLorentzVector mom ; | |
3319 | Int_t naod = GetInputAODBranch()->GetEntriesFast(); | |
3320 | if(GetDebug() > 0) printf("AliAnaParticleIsolation::MakeAnalysisFillAOD() - Input aod branch entries %d\n", naod); | |
3321 | ||
b5dbb99b | 3322 | for(Int_t iaod = 0; iaod < naod; iaod++) |
3323 | { | |
1a31a9ab | 3324 | AliAODPWG4ParticleCorrelation * aodinput = (AliAODPWG4ParticleCorrelation*) (GetInputAODBranch()->At(iaod)); |
81a5e27b | 3325 | |
1a31a9ab | 3326 | //If too small or too large pt, skip |
3327 | if(aodinput->Pt() < GetMinPt() || aodinput->Pt() > GetMaxPt() ) continue ; | |
3328 | ||
03bae431 | 3329 | //check if it is low pt trigger particle |
3330 | if((aodinput->Pt() < GetIsolationCut()->GetPtThreshold() || | |
3331 | aodinput->Pt() < GetIsolationCut()->GetSumPtThreshold()) && | |
3332 | !fMakeSeveralIC) | |
b5dbb99b | 3333 | { |
1a31a9ab | 3334 | continue ; //trigger should not come from underlying event |
b5dbb99b | 3335 | } |
1a31a9ab | 3336 | |
3337 | //vertex cut in case of mixing | |
04f7a616 | 3338 | Int_t check = CheckMixedEventVertex(aodinput->GetCaloLabel(0), aodinput->GetTrackLabel(0)); |
3339 | if(check == 0) continue; | |
3340 | if(check == -1) return; | |
1a31a9ab | 3341 | |
3342 | //find the leading particles with highest momentum | |
547c2f01 | 3343 | if ( aodinput->Pt() > ptLeading ) |
b5dbb99b | 3344 | { |
1a31a9ab | 3345 | ptLeading = aodinput->Pt() ; |
226b95ba | 3346 | idLeading = iaod ; |
1a31a9ab | 3347 | } |
b5dbb99b | 3348 | |
226b95ba | 3349 | aodinput->SetLeadingParticle(kFALSE); |
b5dbb99b | 3350 | |
1a31a9ab | 3351 | }//finish searching for leading trigger particle |
3352 | ||
3353 | // Check isolation of leading particle | |
3354 | if(idLeading < 0) return; | |
226b95ba | 3355 | |
1a31a9ab | 3356 | AliAODPWG4ParticleCorrelation * aodinput = (AliAODPWG4ParticleCorrelation*) (GetInputAODBranch()->At(idLeading)); |
db6fb352 | 3357 | aodinput->SetLeadingParticle(kTRUE); |
547c2f01 | 3358 | |
3359 | // Check isolation only of clusters in fiducial region | |
3360 | if(IsFiducialCutOn()) | |
3361 | { | |
050ad675 | 3362 | Bool_t in = GetFiducialCut()->IsInFiducialCut(*aodinput->Momentum(),aodinput->GetDetector()) ; |
547c2f01 | 3363 | if(! in ) return ; |
3364 | } | |
3365 | ||
1a31a9ab | 3366 | //After cuts, study isolation |
3367 | n=0; nfrac = 0; isolated = kFALSE; coneptsum = 0; | |
ac5111f9 | 3368 | GetIsolationCut()->MakeIsolationCut(GetCTSTracks(),pl, |
3369 | GetReader(), GetCaloPID(), | |
727a309a | 3370 | kTRUE, aodinput, GetAODObjArrayName(), |
b5dbb99b | 3371 | n,nfrac,coneptsum, isolated); |
3d187b6c | 3372 | |
3373 | if(!fMakeSeveralIC) aodinput->SetIsolated(isolated); | |
2ad19c3d | 3374 | |
b5dbb99b | 3375 | if(GetDebug() > 1) |
3376 | { | |
1a31a9ab | 3377 | if(isolated)printf("AliAnaParticleIsolation::MakeAnalysisFillAOD() : Particle %d IS ISOLATED \n",idLeading); |
3378 | printf("AliAnaParticleIsolation::MakeAnalysisFillAOD() - End fill AODs \n"); | |
3379 | } | |
3380 | ||
3381 | } | |
3382 | ||
803d06a8 | 3383 | //_________________________________________________________ |
1a31a9ab | 3384 | void AliAnaParticleIsolation::MakeAnalysisFillHistograms() |
3385 | { | |
3386 | //Do analysis and fill histograms | |
dc9c6e78 | 3387 | |
3388 | //In case of simulated data, fill acceptance histograms | |
3389 | if(IsDataMC()) FillAcceptanceHistograms(); | |
3390 | ||
db6fb352 | 3391 | |
23130491 | 3392 | //Loop on stored AOD |
1a31a9ab | 3393 | Int_t naod = GetInputAODBranch()->GetEntriesFast(); |
3394 | if(GetDebug() > 0) printf("AliAnaParticleIsolation::MakeAnalysisFillHistograms() - Histo aod branch entries %d\n", naod); | |
23130491 | 3395 | |
b5dbb99b | 3396 | for(Int_t iaod = 0; iaod < naod ; iaod++) |
3397 | { | |
1a31a9ab | 3398 | AliAODPWG4ParticleCorrelation* aod = (AliAODPWG4ParticleCorrelation*) (GetInputAODBranch()->At(iaod)); |
3399 | ||
3400 | if(!aod->IsLeadingParticle()) continue; // Try to isolate only leading cluster or track | |
3401 | ||
547c2f01 | 3402 | // Check isolation only of clusters in fiducial region |
3403 | if(IsFiducialCutOn()) | |
3404 | { | |
050ad675 | 3405 | Bool_t in = GetFiducialCut()->IsInFiducialCut(*aod->Momentum(),aod->GetDetector()) ; |
547c2f01 | 3406 | if(! in ) continue ; |
3407 | } | |
3408 | ||
23130491 | 3409 | Float_t pt = aod->Pt(); |
3410 | //If too small or too large pt, skip | |
3411 | if(pt < GetMinPt() || pt > GetMaxPt() ) continue ; | |
3412 | ||
3413 | Bool_t isolated = aod->IsIsolated(); | |
803d06a8 | 3414 | Bool_t decay = aod->IsTagged(); |
0fb69ade | 3415 | Float_t energy = aod->E(); |
1a31a9ab | 3416 | Float_t phi = aod->Phi(); |
3417 | Float_t eta = aod->Eta(); | |
23130491 | 3418 | |
1a31a9ab | 3419 | // --- In case of redoing isolation from delta AOD ---- |
db6fb352 | 3420 | |
23130491 | 3421 | if (fMakeSeveralIC) |
03bae431 | 3422 | { |
1a31a9ab | 3423 | //Analysis of multiple IC at same time |
3424 | MakeSeveralICAnalysis(aod); | |
03bae431 | 3425 | continue; |
1a31a9ab | 3426 | } |
b5dbb99b | 3427 | else if(fReMakeIC) |
3428 | { | |
1a31a9ab | 3429 | //In case a more strict IC is needed in the produced AOD |
23130491 | 3430 | isolated = kFALSE; |
3431 | Int_t n = 0, nfrac = 0; | |
3432 | Float_t coneptsum = 0 ; | |
727a309a | 3433 | |
23130491 | 3434 | //Recover reference arrays with clusters and tracks |
3435 | TObjArray * refclusters = aod->GetObjArray(GetAODObjArrayName()+"Clusters"); | |
3436 | TObjArray * reftracks = aod->GetObjArray(GetAODObjArrayName()+"Tracks"); | |
3437 | ||
ac5111f9 | 3438 | GetIsolationCut()->MakeIsolationCut(reftracks, refclusters, |
3439 | GetReader(), GetCaloPID(), | |
b5dbb99b | 3440 | kFALSE, aod, "", |
3441 | n,nfrac,coneptsum, isolated); | |
23130491 | 3442 | |
3443 | fhConeSumPt ->Fill(pt, coneptsum); | |
3444 | fhConeSumPtTrigEtaPhi->Fill(eta,phi,coneptsum); | |
3445 | ||
3446 | if(GetDebug() > 0) printf("AliAnaParticleIsolation::MakeAnalysisFillHistograms() - Energy Sum in Isolation Cone %2.2f\n", coneptsum); | |
1a31a9ab | 3447 | } |
23130491 | 3448 | else |
b5dbb99b | 3449 | { |
23130491 | 3450 | if(GetDebug() > 0) printf(" AliAnaParticleIsolation::MakeAnalysisFillHistograms() - pt %1.1f, eta %1.1f, phi %1.1f\n",pt, eta, phi); |
b7ce43b4 | 3451 | |
727a309a | 3452 | FillTrackMatchingShowerShapeControlHistograms(aod,GetCaloPID()); |
23130491 | 3453 | |
3454 | //Fill pt/sum pT distribution of particles in cone or in UE band | |
3455 | Float_t coneptsumCluster = 0; | |
3456 | Float_t coneptsumTrack = 0; | |
9b01dc66 | 3457 | Float_t coneptsumCell = 0; |
727a309a | 3458 | Float_t etaBandptsumClusterNorm = 0; |
3459 | Float_t etaBandptsumTrackNorm = 0; | |
3460 | ||
9b01dc66 | 3461 | CalculateTrackSignalInCone (aod,coneptsumTrack ); |
3462 | CalculateCaloSignalInCone (aod,coneptsumCluster); | |
3463 | CalculateCaloCellSignalInCone(aod,coneptsumCell ); | |
0fb69ade | 3464 | |
72433939 | 3465 | if(GetIsolationCut()->GetParticleTypeInCone()==AliIsolationCut::kNeutralAndCharged) |
9b01dc66 | 3466 | { |
3467 | fhConeSumPtClustervsTrack ->Fill(coneptsumCluster,coneptsumTrack); | |
3468 | fhConeSumPtCellvsTrack ->Fill(coneptsumCell, coneptsumTrack); | |
3469 | fhConeSumPtCellTrack ->Fill(pt, coneptsumTrack+coneptsumCell); | |
3470 | fhConeSumPtCellTrackTrigEtaPhi->Fill(eta,phi,coneptsumTrack+coneptsumCell); | |
9004af1c | 3471 | } |
9b01dc66 | 3472 | |
72433939 | 3473 | fhConeSumPt ->Fill(pt, coneptsumTrack+coneptsumCluster); |
3474 | fhConeSumPtTrigEtaPhi ->Fill(eta,phi,coneptsumTrack+coneptsumCluster); | |
9004af1c | 3475 | |
23130491 | 3476 | if(GetDebug() > 1) |
3477 | printf("AliAnaParticleIsolation::MakeAnalysisFillHistograms() - Particle %d Energy Sum in Isolation Cone %2.2f\n", iaod, coneptsumTrack+coneptsumCluster); | |
3478 | ||
3479 | //normalize phi/eta band per area unit | |
727a309a | 3480 | CalculateNormalizeUEBandPerUnitArea(aod, coneptsumCluster, coneptsumCell, coneptsumTrack, etaBandptsumTrackNorm, etaBandptsumClusterNorm) ; |
3481 | ||
3482 | // printf("Histograms analysis : cluster pt = %f, etaBandTrack = %f, etaBandCluster = %f, isolation = %d\n",aod->Pt(),etaBandptsumTrackNorm,etaBandptsumClusterNorm,aod->IsIsolated()); | |
3483 | ||
1a31a9ab | 3484 | } |
6c80c1bf | 3485 | |
b5dbb99b | 3486 | Int_t mcTag = aod->GetTag() ; |
23130491 | 3487 | |
3488 | if(isolated) | |
3489 | { | |
db6fb352 | 3490 | if(GetDebug() > 1) printf("AliAnaParticleIsolation::MakeAnalysisFillHistograms() - Particle %d ISOLATED: fill histograms\n", iaod); |
6c80c1bf | 3491 | |
2ad19c3d | 3492 | // Fill histograms to undertand pile-up before other cuts applied |
3493 | // Remember to relax time cuts in the reader | |
23130491 | 3494 | FillPileUpHistograms(aod->GetCaloLabel(0)); |
2ad19c3d | 3495 | |
b5dbb99b | 3496 | fhEIso ->Fill(energy); |
3497 | fhPtIso ->Fill(pt); | |
3498 | fhPhiIso ->Fill(pt,phi); | |
3499 | fhEtaIso ->Fill(pt,eta); | |
0fb69ade | 3500 | fhEtaPhiIso ->Fill(eta,phi); |
c8710850 | 3501 | |
23130491 | 3502 | fhPtNLocMaxIso ->Fill(pt,aod->GetFiducialArea()) ; |
3503 | fhPtCentralityIso ->Fill(pt,GetEventCentrality()) ; | |
3504 | fhPtEventPlaneIso ->Fill(pt,GetEventPlaneAngle() ) ; | |
db6fb352 | 3505 | |
3506 | if(decay) | |
3f150b4b | 3507 | { |
23130491 | 3508 | fhPtDecayIso ->Fill(pt); |
3f150b4b | 3509 | fhEtaPhiDecayIso->Fill(eta,phi); |
3510 | } | |
1a31a9ab | 3511 | |
17af6e24 | 3512 | if(fFillPileUpHistograms) |
b1f720a7 | 3513 | { |
17af6e24 | 3514 | if(GetReader()->IsPileUpFromSPD()) { fhEIsoPileUp[0] ->Fill(energy) ; fhPtIsoPileUp[0]->Fill(pt) ; } |
3515 | if(GetReader()->IsPileUpFromEMCal()) { fhEIsoPileUp[1] ->Fill(energy) ; fhPtIsoPileUp[1]->Fill(pt) ; } | |
3516 | if(GetReader()->IsPileUpFromSPDOrEMCal()) { fhEIsoPileUp[2] ->Fill(energy) ; fhPtIsoPileUp[2]->Fill(pt) ; } | |
3517 | if(GetReader()->IsPileUpFromSPDAndEMCal()) { fhEIsoPileUp[3] ->Fill(energy) ; fhPtIsoPileUp[3]->Fill(pt) ; } | |
3518 | if(GetReader()->IsPileUpFromSPDAndNotEMCal()) { fhEIsoPileUp[4] ->Fill(energy) ; fhPtIsoPileUp[4]->Fill(pt) ; } | |
3519 | if(GetReader()->IsPileUpFromEMCalAndNotSPD()) { fhEIsoPileUp[5] ->Fill(energy) ; fhPtIsoPileUp[5]->Fill(pt) ; } | |
3520 | if(GetReader()->IsPileUpFromNotSPDAndNotEMCal()) { fhEIsoPileUp[6] ->Fill(energy) ; fhPtIsoPileUp[6]->Fill(pt) ; } | |
3521 | } | |
b1f720a7 | 3522 | |
b5dbb99b | 3523 | if(IsDataMC()) |
3524 | { | |
1a31a9ab | 3525 | |
b5dbb99b | 3526 | if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPhoton)) |
803d06a8 | 3527 | { |
3528 | fhPtIsoMCPhoton ->Fill(pt); | |
3529 | } | |
3530 | ||
db6fb352 | 3531 | if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPrompt)) |
3532 | { | |
1a31a9ab | 3533 | fhPtIsoPrompt ->Fill(pt); |
3534 | fhPhiIsoPrompt ->Fill(pt,phi); | |
3535 | fhEtaIsoPrompt ->Fill(pt,eta); | |
3536 | } | |
b5dbb99b | 3537 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCFragmentation)) |
1a31a9ab | 3538 | { |
3539 | fhPtIsoFragmentation ->Fill(pt); | |
3540 | fhPhiIsoFragmentation ->Fill(pt,phi); | |
3541 | fhEtaIsoFragmentation ->Fill(pt,eta); | |
3542 | } | |
764ab1f4 | 3543 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPi0)) |
3544 | { | |
3545 | fhPtIsoPi0 ->Fill(pt); | |
3546 | fhPhiIsoPi0 ->Fill(pt,phi); | |
3547 | fhEtaIsoPi0 ->Fill(pt,eta); | |
3548 | } | |
b5dbb99b | 3549 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPi0Decay)) |
1a31a9ab | 3550 | { |
3551 | fhPtIsoPi0Decay ->Fill(pt); | |
3552 | fhPhiIsoPi0Decay ->Fill(pt,phi); | |
3553 | fhEtaIsoPi0Decay ->Fill(pt,eta); | |
3554 | } | |
b5dbb99b | 3555 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCEtaDecay)) |
803d06a8 | 3556 | { |
3557 | fhPtIsoEtaDecay ->Fill(pt); | |
3558 | fhPhiIsoEtaDecay ->Fill(pt,phi); | |
3559 | fhEtaIsoEtaDecay ->Fill(pt,eta); | |
3560 | } | |
b5dbb99b | 3561 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCOtherDecay)) |
1a31a9ab | 3562 | { |
3563 | fhPtIsoOtherDecay ->Fill(pt); | |
3564 | fhPhiIsoOtherDecay ->Fill(pt,phi); | |
3565 | fhEtaIsoOtherDecay ->Fill(pt,eta); | |
3566 | } | |
6c80c1bf | 3567 | // else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCConversion)) |
3568 | // { | |
3569 | // fhPtIsoConversion ->Fill(pt); | |
3570 | // fhPhiIsoConversion ->Fill(pt,phi); | |
3571 | // fhEtaIsoConversion ->Fill(pt,eta); | |
3572 | // } | |
764ab1f4 | 3573 | else if(!GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCElectron))// anything else but electrons |
1a31a9ab | 3574 | { |
764ab1f4 | 3575 | fhPtIsoHadron ->Fill(pt); |
3576 | fhPhiIsoHadron ->Fill(pt,phi); | |
3577 | fhEtaIsoHadron ->Fill(pt,eta); | |
1a31a9ab | 3578 | } |
3579 | }//Histograms with MC | |
3580 | ||
3581 | }//Isolated histograms | |
ca134929 | 3582 | else // NON isolated |
1a31a9ab | 3583 | { |
db6fb352 | 3584 | if(GetDebug() > 1) printf("AliAnaParticleIsolation::MakeAnalysisFillHistograms() - Particle %d NOT ISOLATED, fill histograms\n", iaod); |
3585 | ||
b1f720a7 | 3586 | fhENoIso ->Fill(energy); |
3587 | fhPtNoIso ->Fill(pt); | |
3588 | fhEtaPhiNoIso ->Fill(eta,phi); | |
23130491 | 3589 | fhPtNLocMaxNoIso->Fill(pt,aod->GetFiducialArea()); |
3590 | ||
17af6e24 | 3591 | if(fFillPileUpHistograms) |
b1f720a7 | 3592 | { |
17af6e24 | 3593 | if(GetReader()->IsPileUpFromSPD()) { fhENoIsoPileUp[0] ->Fill(energy) ; fhPtNoIsoPileUp[0]->Fill(pt) ; } |
3594 | if(GetReader()->IsPileUpFromEMCal()) { fhENoIsoPileUp[1] ->Fill(energy) ; fhPtNoIsoPileUp[1]->Fill(pt) ; } | |
3595 | if(GetReader()->IsPileUpFromSPDOrEMCal()) { fhENoIsoPileUp[2] ->Fill(energy) ; fhPtNoIsoPileUp[2]->Fill(pt) ; } | |
3596 | if(GetReader()->IsPileUpFromSPDAndEMCal()) { fhENoIsoPileUp[3] ->Fill(energy) ; fhPtNoIsoPileUp[3]->Fill(pt) ; } | |
3597 | if(GetReader()->IsPileUpFromSPDAndNotEMCal()) { fhENoIsoPileUp[4] ->Fill(energy) ; fhPtNoIsoPileUp[4]->Fill(pt) ; } | |
3598 | if(GetReader()->IsPileUpFromEMCalAndNotSPD()) { fhENoIsoPileUp[5] ->Fill(energy) ; fhPtNoIsoPileUp[5]->Fill(pt) ; } | |
3599 | if(GetReader()->IsPileUpFromNotSPDAndNotEMCal()) { fhENoIsoPileUp[6] ->Fill(energy) ; fhPtNoIsoPileUp[6]->Fill(pt) ; } | |
b1f720a7 | 3600 | } |
3601 | ||
db6fb352 | 3602 | if(decay) |
3f150b4b | 3603 | { |
db6fb352 | 3604 | fhPtDecayNoIso ->Fill(pt); |
3f150b4b | 3605 | fhEtaPhiDecayNoIso->Fill(eta,phi); |
3606 | } | |
1a31a9ab | 3607 | |
b5dbb99b | 3608 | if(IsDataMC()) |
3609 | { | |
db6fb352 | 3610 | if (GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPhoton)) fhPtNoIsoMCPhoton ->Fill(pt); |
764ab1f4 | 3611 | if (GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPi0)) fhPtNoIsoPi0 ->Fill(pt); |
3612 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPi0Decay)) fhPtNoIsoPi0Decay ->Fill(pt); | |
db6fb352 | 3613 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCEtaDecay)) fhPtNoIsoEtaDecay ->Fill(pt); |
3614 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCOtherDecay)) fhPtNoIsoOtherDecay ->Fill(pt); | |
3615 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCPrompt)) fhPtNoIsoPrompt ->Fill(pt); | |
3616 | else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCFragmentation)) fhPtNoIsoFragmentation->Fill(pt); | |
6c80c1bf | 3617 | // else if(GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCConversion)) fhPtNoIsoConversion ->Fill(pt); |
764ab1f4 | 3618 | else if(!GetMCAnalysisUtils()->CheckTagBit(mcTag,AliMCAnalysisUtils::kMCElectron)) fhPtNoIsoHadron ->Fill(pt); |
1a31a9ab | 3619 | } |
3620 | } | |
1a31a9ab | 3621 | }// aod loop |
3622 | ||
3623 | } | |
3624 | ||
dc9c6e78 | 3625 | //___________________________________________ |
3626 | void AliAnaParticleIsolation::FillAcceptanceHistograms() | |
3627 | { | |
3628 | //Fill acceptance histograms if MC data is available | |
3629 | ||
6aac3409 | 3630 | //Double_t photonY = -100 ; |
dc9c6e78 | 3631 | Double_t photonE = -1 ; |
3632 | Double_t photonPt = -1 ; | |
3633 | Double_t photonPhi = 100 ; | |
3634 | Double_t photonEta = -1 ; | |
3635 | ||
3636 | Int_t pdg = 0 ; | |
3637 | Int_t tag = 0 ; | |
3638 | Int_t mcIndex = 0 ; | |
3639 | Bool_t inacceptance = kFALSE; | |
3640 | ||
3641 | if(GetReader()->ReadStack()) | |
3642 | { | |
3643 | AliStack * stack = GetMCStack(); | |
3644 | if(stack) | |
3645 | { | |
3646 | for(Int_t i=0 ; i<stack->GetNtrack(); i++) | |
3647 | { | |
3648 | if(GetReader()->AcceptOnlyHIJINGLabels() && !GetReader()->IsHIJINGLabel(i)) continue ; | |
3649 | ||
3650 | TParticle * prim = stack->Particle(i) ; | |
3651 | pdg = prim->GetPdgCode(); | |
3652 | //printf("i %d, %s %d %s %d \n",i, stack->Particle(i)->GetName(), stack->Particle(i)->GetPdgCode(), | |
3653 | // prim->GetName(), prim->GetPdgCode()); | |
3654 | ||
3655 | if(pdg == 22) | |
3656 | { | |
3657 | // Get tag of this particle photon from fragmentation, decay, prompt ... | |
3658 | tag = GetMCAnalysisUtils()->CheckOrigin(i,GetReader()); | |
3659 | ||
3660 | if(!GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPhoton)) | |
3661 | { | |
3662 | //A conversion photon from a hadron, skip this kind of photon | |
3663 | // printf("AliAnaPhoton::FillAcceptanceHistograms() - not a photon, weird!\n "); | |
3664 | // GetMCAnalysisUtils()->PrintMCTag(tag); | |
3665 | ||
3666 | return; | |
3667 | } | |
3668 | ||
3669 | //Get photon kinematics | |
3670 | if(prim->Energy() == TMath::Abs(prim->Pz())) continue ; //Protection against floating point exception | |
3671 | ||
6aac3409 | 3672 | //photonY = 0.5*TMath::Log((prim->Energy()-prim->Pz())/(prim->Energy()+prim->Pz())) ; |
dc9c6e78 | 3673 | photonE = prim->Energy() ; |
3674 | photonPt = prim->Pt() ; | |
db4ffddf | 3675 | photonPhi = prim->Phi() ; |
dc9c6e78 | 3676 | if(photonPhi < 0) photonPhi+=TMath::TwoPi(); |
3677 | photonEta = prim->Eta() ; | |
3678 | ||
3679 | //Check if photons hit the Calorimeter | |
3680 | TLorentzVector lv; | |
3681 | prim->Momentum(lv); | |
3682 | inacceptance = kFALSE; | |
3683 | if (fCalorimeter == "PHOS") | |
3684 | { | |
3685 | if(GetPHOSGeometry() && GetCaloUtils()->IsPHOSGeoMatrixSet()) | |
3686 | { | |
3687 | Int_t mod ; | |
3688 | Double_t x,z ; | |
3689 | if(GetPHOSGeometry()->ImpactOnEmc(prim,mod,z,x)) | |
3690 | inacceptance = kTRUE; | |
3691 | if(GetDebug() > 2) printf("In %s Real acceptance? %d\n",fCalorimeter.Data(),inacceptance); | |
3692 | } | |
3693 | else | |
3694 | { | |
3695 | if(GetFiducialCut()->IsInFiducialCut(lv,fCalorimeter)) | |
3696 | inacceptance = kTRUE ; | |
3697 | if(GetDebug() > 2) printf("In %s fiducial cut acceptance? %d\n",fCalorimeter.Data(),inacceptance); | |
3698 | } | |
3699 | } | |
3700 | else if(fCalorimeter == "EMCAL" /*&& GetCaloUtils()->IsEMCALGeoMatrixSet()*/) | |
3701 | { | |
3702 | // if(GetEMCALGeometry()) | |
3703 | // { | |
3704 | // Int_t absID=0; | |
3705 | // GetEMCALGeometry()->GetAbsCellIdFromEtaPhi(prim->Eta(),prim->Phi(),absID); | |
3706 | // | |
3707 | // //if( absID >= 0){ | |
3708 | // if(GetFiducialCut()->IsInFiducialCut(lv,fCalorimeter)) | |
3709 | // inacceptance = kTRUE; | |
3710 | // | |
3711 | // if(GetDebug() > 2) printf("In %s Real acceptance? %d\n",fCalorimeter.Data(),inacceptance); | |
3712 | // } | |
3713 | // else | |
3714 | { | |
3715 | if(GetFiducialCut()->IsInFiducialCut(lv,fCalorimeter)) | |
3716 | inacceptance = kTRUE ; | |
3717 | ||
3718 | if(GetDebug() > 2) printf("In %s fiducial cut acceptance? %d\n",fCalorimeter.Data(),inacceptance); | |
3719 | } | |
3720 | } //In EMCAL | |
3721 | ||
3722 | if(inacceptance) | |
3723 | { | |
3724 | fhEtaPrimMC[kmcPPhoton]->Fill(photonPt , photonEta) ; | |
db4ffddf | 3725 | fhPhiPrimMC[kmcPPhoton]->Fill(photonPt , photonPhi) ; |
dc9c6e78 | 3726 | fhEPrimMC [kmcPPhoton]->Fill(photonE) ; |
3727 | } | |
3728 | ||
3729 | //Origin of photon | |
3730 | if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPrompt) ) | |
3731 | { | |
3732 | mcIndex = kmcPPrompt; | |
3733 | } | |
3734 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCFragmentation) ) | |
3735 | { | |
3736 | mcIndex = kmcPFragmentation ; | |
3737 | } | |
3738 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCISR)) | |
3739 | { | |
3740 | mcIndex = kmcPISR; | |
3741 | } | |
3742 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0Decay)) | |
3743 | { | |
3744 | mcIndex = kmcPPi0Decay; | |
3745 | } | |
3746 | else if( (GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCEtaDecay) || | |
3747 | GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCOtherDecay))) | |
3748 | { | |
3749 | mcIndex = kmcPOtherDecay; | |
3750 | } | |
3751 | else | |
3752 | { | |
3753 | mcIndex = kmcPOther; | |
3754 | }//Other origin | |
3755 | ||
3756 | // ////////////////////ISO MC///////////////////////// | |
3757 | Double_t sumpt = 0; Double_t dR=0. ; | |
3758 | Int_t nprim = stack->GetNtrack(); | |
3759 | for(Int_t ip = 0; ip < nprim ; ip++) | |
3760 | { | |
3761 | ||
3762 | TParticle *mcisop = static_cast<TParticle*>(stack->Particle(ip)); | |
3763 | ||
3764 | if(!mcisop) | |
3765 | continue; | |
3766 | ||
3767 | if(ip==i) | |
3768 | continue; | |
3769 | if(mcisop->GetStatusCode()!=1) | |
3770 | continue; | |
3771 | ||
3772 | if(mcisop->GetMother(0) == i) | |
3773 | continue; | |
3774 | ||
3775 | if(mcisop->Pt()<0.2) | |
3776 | continue; | |
3777 | ||
3778 | // TVector3 vmcv(mcisop->Px(),mcisop->Py(), mcisop->Pz()); | |
3779 | // if(vmcv.Perp()>1) | |
3780 | // continue; | |
3781 | ||
3782 | dR = GetIsolationCut()->Radius(photonEta, photonPhi, mcisop->Eta(), mcisop->Phi()); | |
dc9c6e78 | 3783 | |
3784 | if(dR > GetIsolationCut()->GetConeSize()) | |
3785 | continue; | |
3786 | ||
3787 | sumpt += mcisop->Pt(); | |
3788 | } | |
3789 | ||
3790 | ///////END ISO MC///////////////////////// | |
3791 | ||
3792 | if(inacceptance) | |
3793 | { | |
3794 | fhEtaPrimMC[mcIndex]->Fill(photonPt , photonEta) ; | |
db4ffddf | 3795 | fhPhiPrimMC[mcIndex]->Fill(photonPt , photonPhi) ; |
dc9c6e78 | 3796 | fhEPrimMC [mcIndex]->Fill(photonE ) ; |
3797 | ||
3798 | if(sumpt < GetIsolationCut()->GetPtThreshold()) | |
3799 | { | |
3800 | fhPtPrimMCiso [mcIndex] ->Fill(photonPt) ; | |
3801 | fhPtPrimMCiso [kmcPPhoton]->Fill(photonPt) ; | |
3802 | } | |
3803 | }// end acceptance | |
3804 | ||
3805 | }// Primary photon PDG22 | |
3806 | }//loop on primaries | |
3807 | }//stack exists and data is MC | |
3808 | }//read stack | |
3809 | ||
3810 | else if(GetReader()->ReadAODMCParticles()) | |
3811 | { | |
3812 | TClonesArray * mcparticles = GetReader()->GetAODMCParticles(); | |
3813 | if(mcparticles) | |
3814 | { | |
3815 | Int_t nprim = mcparticles->GetEntriesFast(); | |
3816 | ||
3817 | for(Int_t i=0; i < nprim; i++) | |
3818 | { | |
3819 | if(GetReader()->AcceptOnlyHIJINGLabels() && !GetReader()->IsHIJINGLabel(i)) continue ; | |
3820 | ||
3821 | AliAODMCParticle * prim = (AliAODMCParticle *) mcparticles->At(i); | |
3822 | ||
3823 | pdg = prim->GetPdgCode(); | |
3824 | ||
3825 | if(pdg == 22) | |
3826 | { | |
3827 | // Get tag of this particle photon from fragmentation, decay, prompt ... | |
3828 | tag = GetMCAnalysisUtils()->CheckOrigin(i,GetReader()); | |
3829 | ||
3830 | if(!GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPhoton)) | |
3831 | { | |
3832 | //A conversion photon from a hadron, skip this kind of photon | |
3833 | // printf("AliAnaPhoton::FillAcceptanceHistograms() - not a photon, weird!\n "); | |
3834 | // GetMCAnalysisUtils()->PrintMCTag(tag); | |
3835 | ||
3836 | return; | |
3837 | } | |
3838 | ||
3839 | //Get photon kinematics | |
3840 | if(prim->E() == TMath::Abs(prim->Pz())) continue ; //Protection against floating point exception | |
3841 | ||
6aac3409 | 3842 | //photonY = 0.5*TMath::Log((prim->E()-prim->Pz())/(prim->E()+prim->Pz())) ; |
dc9c6e78 | 3843 | photonE = prim->E() ; |
3844 | photonPt = prim->Pt() ; | |
3845 | photonPhi = prim->Phi() ; | |
3846 | if(photonPhi < 0) photonPhi+=TMath::TwoPi(); | |
3847 | photonEta = prim->Eta() ; | |
3848 | ||
3849 | //Check if photons hit the Calorimeter | |
3850 | TLorentzVector lv; | |
3851 | lv.SetPxPyPzE(prim->Px(),prim->Py(),prim->Pz(),prim->E()); | |
3852 | inacceptance = kFALSE; | |
3853 | if (fCalorimeter == "PHOS") | |
3854 | { | |
3855 | if(GetPHOSGeometry() && GetCaloUtils()->IsPHOSGeoMatrixSet()) | |
3856 | { | |
3857 | Int_t mod ; | |
3858 | Double_t x,z ; | |
3859 | Double_t vtx[]={prim->Xv(),prim->Yv(),prim->Zv()}; | |
3860 | if(GetPHOSGeometry()->ImpactOnEmc(vtx, prim->Theta(),prim->Phi(),mod,z,x)) | |
3861 | inacceptance = kTRUE; | |
3862 | if(GetDebug() > 2) printf("In %s Real acceptance? %d\n",fCalorimeter.Data(),inacceptance); | |
3863 | } | |
3864 | else | |
3865 | { | |
3866 | if(GetFiducialCut()->IsInFiducialCut(lv,fCalorimeter)) | |
3867 | inacceptance = kTRUE ; | |
3868 | if(GetDebug() > 2) printf("In %s fiducial cut acceptance? %d\n",fCalorimeter.Data(),inacceptance); | |
3869 | } | |
3870 | } | |
3871 | else if(fCalorimeter == "EMCAL" /*&& GetCaloUtils()->IsEMCALGeoMatrixSet()*/) | |
3872 | { | |
3873 | // if(GetEMCALGeometry()) | |
3874 | // { | |
3875 | // Int_t absID=0; | |
3876 | // | |
3877 | // //GetEMCALGeometry()->GetAbsCellIdFromEtaPhi(prim->Eta(),prim->Phi(),absID); | |
3878 | // | |
3879 | // //if( absID >= 0){ | |
3880 | // if(GetFiducialCut()->IsInFiducialCut(lv,fCalorimeter)) | |
3881 | // inacceptance = kTRUE; | |
3882 | // | |
3883 | // if(GetDebug() > 2) printf("In %s Real acceptance? %d\n",fCalorimeter.Data(),inacceptance); | |
3884 | // } | |
3885 | // else | |
3886 | { | |
3887 | if(GetFiducialCut()->IsInFiducialCut(lv,fCalorimeter)) | |
3888 | inacceptance = kTRUE ; | |
3889 | ||
3890 | if(GetDebug() > 2) printf("In %s fiducial cut acceptance? %d\n",fCalorimeter.Data(),inacceptance); | |
3891 | } | |
3892 | } //In EMCAL | |
3893 | ||
3894 | //Fill histograms | |
3895 | if(inacceptance) | |
3896 | { | |
3897 | fhEtaPrimMC[kmcPPhoton]->Fill(photonPt, photonEta) ; | |
db4ffddf | 3898 | fhPhiPrimMC[kmcPPhoton]->Fill(photonPt, photonPhi) ; |
dc9c6e78 | 3899 | fhEPrimMC [kmcPPhoton]->Fill(photonE) ; |
3900 | } | |
3901 | ||
3902 | //Origin of photon | |
3903 | if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPrompt)) | |
3904 | { | |
3905 | mcIndex = kmcPPrompt; | |
3906 | } | |
3907 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCFragmentation)) | |
3908 | { | |
3909 | mcIndex = kmcPFragmentation ; | |
3910 | } | |
3911 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCISR)) | |
3912 | { | |
3913 | mcIndex = kmcPISR; | |
3914 | } | |
3915 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0Decay)) | |
3916 | { | |
3917 | mcIndex = kmcPPi0Decay; | |
3918 | } | |
3919 | else if( (GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCEtaDecay) || | |
3920 | GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCOtherDecay))) | |
3921 | { | |
3922 | mcIndex = kmcPOtherDecay; | |
3923 | } | |
3924 | else | |
3925 | { | |
3926 | mcIndex = kmcPOther; | |
3927 | }//Other origin | |
3928 | ||
3929 | ////////////////////ISO MC///////////////////////// | |
3930 | Double_t sumpt = 0; Double_t dR=0. ; | |
3931 | for(Int_t ip = 0; ip < nprim ; ip++) | |
3932 | { | |
3933 | AliAODMCParticle * mcisop = (AliAODMCParticle *) mcparticles->At(ip); | |
3934 | ||
3935 | if(!mcisop) | |
3936 | continue; | |
3937 | ||
3938 | if(ip==i) | |
3939 | continue; | |
3940 | ||
3941 | if(mcisop->GetStatus()!=1) | |
3942 | continue; | |
3943 | ||
3944 | if(mcisop->GetMother() == i) | |
3945 | continue; | |
3946 | ||
3947 | if(mcisop->Pt()<0.2) | |
3948 | continue; | |
3949 | ||
3950 | // TVector3 vmcv(mcisop->Px(),mcisop->Py(), mcisop->Pz()); | |
3951 | // if(vmcv.Perp()>1) | |
3952 | // continue; | |
3953 | ||
3954 | dR = GetIsolationCut()->Radius(photonEta, photonPhi, mcisop->Eta(), mcisop->Phi()); | |
dc9c6e78 | 3955 | |
3956 | if(dR> GetIsolationCut()->GetConeSize()) | |
3957 | continue; | |
3958 | ||
3959 | sumpt += mcisop->Pt(); | |
3960 | } | |
3961 | ///////////////////END ISO MC///////////////////////// | |
3962 | ||
3963 | if(inacceptance) | |
3964 | { | |
3965 | fhEtaPrimMC[mcIndex]->Fill(photonPt , photonEta) ; | |
db4ffddf | 3966 | fhPhiPrimMC[mcIndex]->Fill(photonPt , photonPhi) ; |
dc9c6e78 | 3967 | fhEPrimMC [mcIndex]->Fill(photonE) ; |
3968 | ||
3969 | if(sumpt < GetIsolationCut()->GetPtThreshold()) | |
3970 | { | |
3971 | fhPtPrimMCiso [mcIndex] ->Fill(photonPt) ; | |
3972 | fhPtPrimMCiso [kmcPPhoton]->Fill(photonPt) ; | |
3973 | } | |
3974 | }//acceptance | |
3975 | ||
3976 | }// Primary photon | |
3977 | }//loop on primaries | |
3978 | ||
3979 | }//kmc array exists and data is MC | |
3980 | } // read AOD MC | |
3981 | ||
3982 | } | |
3983 | ||
3984 | ||
803d06a8 | 3985 | //_____________________________________________________________________________________ |
1a31a9ab | 3986 | void AliAnaParticleIsolation::MakeSeveralICAnalysis(AliAODPWG4ParticleCorrelation* ph) |
3987 | { | |
1a31a9ab | 3988 | |
db6fb352 | 3989 | //Isolation Cut Analysis for both methods and different pt cuts and cones |
3990 | Float_t ptC = ph->Pt(); | |
3991 | Float_t etaC = ph->Eta(); | |
3992 | Float_t phiC = ph->Phi(); | |
3993 | Int_t tag = ph->GetTag(); | |
3994 | Bool_t decay = ph->IsTagged(); | |
b0a31c92 | 3995 | |
03bae431 | 3996 | if(GetDebug() > 0) printf("AliAnaParticleIsolation::MakeSeveralICAnalysis() - Isolate pT %2.2f\n",ptC); |
3997 | ||
1a31a9ab | 3998 | //Keep original setting used when filling AODs, reset at end of analysis |
3999 | Float_t ptthresorg = GetIsolationCut()->GetPtThreshold(); | |
4000 | Float_t ptfracorg = GetIsolationCut()->GetPtFraction(); | |
4001 | Float_t rorg = GetIsolationCut()->GetConeSize(); | |
4002 | ||
b7ce43b4 | 4003 | Float_t coneptsum = 0 ; |
db6fb352 | 4004 | Int_t n [10][10];//[fNCones][fNPtThresFrac]; |
4005 | Int_t nfrac[10][10];//[fNCones][fNPtThresFrac]; | |
ca134929 | 4006 | Bool_t isolated = kFALSE; |
4007 | Int_t nCone = 0; | |
4008 | Int_t nFracCone = 0; | |
44e48e82 | 4009 | |
727a309a | 4010 | // Fill hist with all particles before isolation criteria |
db6fb352 | 4011 | fhPtNoIso ->Fill(ptC); |
4012 | fhEtaPhiNoIso->Fill(etaC,phiC); | |
4013 | ||
4014 | if(IsDataMC()) | |
4015 | { | |
4016 | if (GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPhoton)) fhPtNoIsoMCPhoton ->Fill(ptC); | |
764ab1f4 | 4017 | if (GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0)) fhPtNoIsoPi0 ->Fill(ptC); |
4018 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0Decay)) fhPtNoIsoPi0Decay ->Fill(ptC); | |
db6fb352 | 4019 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCEtaDecay)) fhPtNoIsoEtaDecay ->Fill(ptC); |
4020 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCOtherDecay)) fhPtNoIsoOtherDecay ->Fill(ptC); | |
4021 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPrompt)) fhPtNoIsoPrompt ->Fill(ptC); | |
4022 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCFragmentation)) fhPtNoIsoFragmentation->Fill(ptC); | |
764ab1f4 | 4023 | // else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCConversion)) fhPtNoIsoConversion ->Fill(ptC); |
4024 | else if(!GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCElectron)) fhPtNoIsoHadron ->Fill(ptC); | |
db6fb352 | 4025 | } |
4026 | ||
4027 | if(decay) | |
4028 | { | |
4029 | fhPtDecayNoIso ->Fill(ptC); | |
4030 | fhEtaPhiDecayNoIso->Fill(etaC,phiC); | |
4031 | } | |
44e48e82 | 4032 | //Get vertex for photon momentum calculation |
4033 | Double_t vertex[] = {0,0,0} ; //vertex ; | |
4034 | if(GetReader()->GetDataType() != AliCaloTrackReader::kMC) | |
44e48e82 | 4035 | GetReader()->GetVertex(vertex); |
44e48e82 | 4036 | |
1a31a9ab | 4037 | //Loop on cone sizes |
b5dbb99b | 4038 | for(Int_t icone = 0; icone<fNCones; icone++) |
4039 | { | |
44e48e82 | 4040 | //Recover reference arrays with clusters and tracks |
4041 | TObjArray * refclusters = ph->GetObjArray(GetAODObjArrayName()+"Clusters"); | |
4042 | TObjArray * reftracks = ph->GetObjArray(GetAODObjArrayName()+"Tracks"); | |
4043 | ||
4044 | //If too small or too large pt, skip | |
4045 | if(ptC < GetMinPt() || ptC > GetMaxPt() ) continue ; | |
4046 | ||
4047 | //In case a more strict IC is needed in the produced AOD | |
4048 | ||
b7ce43b4 | 4049 | nCone=0; nFracCone = 0; isolated = kFALSE; coneptsum = 0; |
44e48e82 | 4050 | |
4051 | GetIsolationCut()->SetSumPtThreshold(100); | |
4052 | GetIsolationCut()->SetPtThreshold(100); | |
4053 | GetIsolationCut()->SetPtFraction(100); | |
4054 | GetIsolationCut()->SetConeSize(fConeSizes[icone]); | |
4055 | GetIsolationCut()->MakeIsolationCut(reftracks, refclusters, | |
4056 | GetReader(), GetCaloPID(), | |
727a309a | 4057 | kFALSE, ph, "", |
4058 | nCone,nFracCone,coneptsum, isolated); | |
44e48e82 | 4059 | |
4060 | fhSumPtLeadingPt[icone]->Fill(ptC,coneptsum); | |
db6fb352 | 4061 | |
44e48e82 | 4062 | // retreive pt tracks to fill histo vs. pt leading |
4063 | //Fill pt distribution of particles in cone | |
23130491 | 4064 | //fhPtLeadingPt(),fhPerpSumPtLeadingPt(),fhPerpPtLeadingPt(), |
44e48e82 | 4065 | |
4066 | //Tracks | |
4067 | coneptsum = 0; | |
23130491 | 4068 | Double_t sumptPerp = 0. ; |
44e48e82 | 4069 | TObjArray * trackList = GetCTSTracks() ; |
4070 | for(Int_t itrack=0; itrack < trackList->GetEntriesFast(); itrack++) | |
4071 | { | |
4072 | AliVTrack* track = (AliVTrack *) trackList->At(itrack); | |
4073 | //fill the histograms at forward range | |
4074 | if(!track) | |
4075 | { | |
4076 | printf("AliAnaParticleIsolation::MakeAnalysisFillHistograms() - Track not available?"); | |
4077 | continue; | |
4078 | } | |
4079 | ||
4080 | Double_t dPhi = phiC - track->Phi() + TMath::PiOver2(); | |
4081 | Double_t dEta = etaC - track->Eta(); | |
4082 | Double_t arg = dPhi*dPhi + dEta*dEta; | |
4083 | if(TMath::Sqrt(arg) < fConeSizes[icone]) | |
4084 | { | |
23130491 | 4085 | fhPerpPtLeadingPt[icone]->Fill(ptC,TMath::Sqrt(track->Px()*track->Px()+track->Py()*track->Py())); |
4086 | sumptPerp+=track->Pt(); | |
44e48e82 | 4087 | } |
4088 | ||
4089 | dPhi = phiC - track->Phi() - TMath::PiOver2(); | |
4090 | arg = dPhi*dPhi + dEta*dEta; | |
4091 | if(TMath::Sqrt(arg) < fConeSizes[icone]) | |
4092 | { | |
23130491 | 4093 | fhPerpPtLeadingPt[icone]->Fill(ptC,TMath::Sqrt(track->Px()*track->Px()+track->Py()*track->Py())); |
4094 | sumptPerp+=track->Pt(); | |
44e48e82 | 4095 | } |
4096 | } | |
23130491 | 4097 | |
4098 | fhPerpSumPtLeadingPt[icone]->Fill(ptC,sumptPerp); | |
4099 | ||
44e48e82 | 4100 | if(reftracks) |
4101 | { | |
4102 | for(Int_t itrack=0; itrack < reftracks->GetEntriesFast(); itrack++) | |
4103 | { | |
4104 | AliVTrack* track = (AliVTrack *) reftracks->At(itrack); | |
4105 | fhPtLeadingPt[icone]->Fill(ptC,TMath::Sqrt(track->Px()*track->Px()+track->Py()*track->Py())); | |
4106 | coneptsum+=track->Pt(); | |
4107 | } | |
23130491 | 4108 | } |
4109 | ||
44e48e82 | 4110 | //CaloClusters |
4111 | if(refclusters) | |
4112 | { | |
4113 | TLorentzVector mom ; | |
4114 | for(Int_t icalo=0; icalo < refclusters->GetEntriesFast(); icalo++) | |
4115 | { | |
4116 | AliVCluster* calo = (AliVCluster *) refclusters->At(icalo); | |
4117 | calo->GetMomentum(mom,vertex) ;//Assume that come from vertex in straight line | |
4118 | ||
4119 | fhPtLeadingPt[icone]->Fill(ptC, mom.Pt()); | |
4120 | coneptsum+=mom.Pt(); | |
4121 | } | |
4122 | } | |
4123 | /////////////////// | |
4124 | ||
4125 | ||
1a31a9ab | 4126 | //Loop on ptthresholds |
b5dbb99b | 4127 | for(Int_t ipt = 0; ipt<fNPtThresFrac ;ipt++) |
4128 | { | |
db6fb352 | 4129 | n [icone][ipt]=0; |
1a31a9ab | 4130 | nfrac[icone][ipt]=0; |
4131 | GetIsolationCut()->SetPtThreshold(fPtThresholds[ipt]); | |
db6fb352 | 4132 | GetIsolationCut()->SetPtFraction(fPtFractions[ipt]) ; |
4133 | GetIsolationCut()->SetSumPtThreshold(fSumPtThresholds[ipt]); | |
4134 | ||
44e48e82 | 4135 | GetIsolationCut()->MakeIsolationCut(reftracks, refclusters, |
ac5111f9 | 4136 | GetReader(), GetCaloPID(), |
b5dbb99b | 4137 | kFALSE, ph, "", |
4138 | n[icone][ipt],nfrac[icone][ipt],coneptsum, isolated); | |
1a31a9ab | 4139 | |
db6fb352 | 4140 | if(!isolated) continue; |
1a31a9ab | 4141 | //Normal ptThreshold cut |
db6fb352 | 4142 | |
4143 | if(GetDebug() > 0) printf(" AliAnaParticleIsolation::MakeSeveralICAnalysis() - cone size %1.1f, ptThres %1.1f, sumptThresh %1.1f, n %d, nfrac %d, coneptsum %2.2f, isolated %d\n", | |
4144 | fConeSizes[icone],fPtThresholds[ipt],fSumPtThresholds[ipt],n[icone][ipt],nfrac[icone][ipt],coneptsum, isolated); | |
4145 | if(GetDebug() > 0) printf(" AliAnaParticleIsolation::MakeSeveralICAnalysis() - pt %1.1f, eta %1.1f, phi %1.1f\n",ptC, etaC, phiC); | |
4146 | ||
b5dbb99b | 4147 | if(n[icone][ipt] == 0) |
4148 | { | |
db6fb352 | 4149 | if(GetDebug()>0) printf(" AliAnaParticleIsolation::MakeSeveralICAnalysis() - filling pt threshold loop\n"); |
1a31a9ab | 4150 | fhPtThresIsolated[icone][ipt]->Fill(ptC); |
db6fb352 | 4151 | fhEtaPhiPtThresIso[icone][ipt]->Fill(etaC,phiC); |
4152 | ||
4153 | if(decay) | |
4154 | { | |
4155 | fhPtPtThresDecayIso[icone][ipt]->Fill(ptC); | |
4156 | // fhEtaPhiPtThresDecayIso[icone][ipt]->Fill(etaC,phiC); | |
4157 | } | |
4158 | ||
b5dbb99b | 4159 | if(IsDataMC()) |
4160 | { | |
803d06a8 | 4161 | if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPrompt)) fhPtThresIsolatedPrompt[icone][ipt] ->Fill(ptC) ; |
764ab1f4 | 4162 | // else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCConversion)) fhPtThresIsolatedConversion[icone][ipt] ->Fill(ptC) ; |
803d06a8 | 4163 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCFragmentation)) fhPtThresIsolatedFragmentation[icone][ipt]->Fill(ptC) ; |
764ab1f4 | 4164 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0)) fhPtThresIsolatedPi0[icone][ipt] ->Fill(ptC) ; |
803d06a8 | 4165 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0Decay)) fhPtThresIsolatedPi0Decay[icone][ipt] ->Fill(ptC) ; |
4166 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCEtaDecay)) fhPtThresIsolatedEtaDecay[icone][ipt] ->Fill(ptC) ; | |
4167 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCOtherDecay)) fhPtThresIsolatedOtherDecay[icone][ipt] ->Fill(ptC) ; | |
764ab1f4 | 4168 | else if(!GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCElectron)) fhPtThresIsolatedHadron[icone][ipt] ->Fill(ptC) ; |
1a31a9ab | 4169 | } |
4170 | } | |
4171 | ||
db6fb352 | 4172 | // pt in cone fraction |
b5dbb99b | 4173 | if(nfrac[icone][ipt] == 0) |
4174 | { | |
db6fb352 | 4175 | if(GetDebug()>0) printf(" AliAnaParticleIsolation::MakeSeveralICAnalysis() - filling frac loop\n"); |
1a31a9ab | 4176 | fhPtFracIsolated[icone][ipt]->Fill(ptC); |
db6fb352 | 4177 | fhEtaPhiPtFracIso[icone][ipt]->Fill(etaC,phiC); |
4178 | ||
4179 | if(decay) | |
4180 | { | |
4181 | fhPtPtFracDecayIso[icone][ipt]->Fill(ptC); | |
b0a31c92 | 4182 | fhEtaPhiPtFracDecayIso[icone][ipt]->Fill(etaC,phiC); |
db6fb352 | 4183 | } |
4184 | ||
b5dbb99b | 4185 | if(IsDataMC()) |
4186 | { | |
803d06a8 | 4187 | if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPrompt)) fhPtFracIsolatedPrompt[icone][ipt] ->Fill(ptC) ; |
764ab1f4 | 4188 | // else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCConversion)) fhPtFracIsolatedConversion[icone][ipt] ->Fill(ptC) ; |
803d06a8 | 4189 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCFragmentation)) fhPtFracIsolatedFragmentation[icone][ipt]->Fill(ptC) ; |
764ab1f4 | 4190 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0)) fhPtFracIsolatedPi0[icone][ipt] ->Fill(ptC) ; |
803d06a8 | 4191 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0Decay)) fhPtFracIsolatedPi0Decay[icone][ipt] ->Fill(ptC) ; |
4192 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCEtaDecay)) fhPtFracIsolatedEtaDecay[icone][ipt] ->Fill(ptC) ; | |
4193 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCOtherDecay)) fhPtFracIsolatedOtherDecay[icone][ipt] ->Fill(ptC) ; | |
764ab1f4 | 4194 | else if(!GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCElectron)) fhPtFracIsolatedHadron[icone][ipt]->Fill(ptC) ; |
1a31a9ab | 4195 | } |
4196 | } | |
db6fb352 | 4197 | |
4198 | if(GetDebug()>0) printf(" AliAnaParticleIsolation::MakeSeveralICAnalysis() - checking IC method : %i\n",GetIsolationCut()->GetICMethod()); | |
4199 | ||
4200 | //Pt threshold on pt cand/ sum in cone histograms | |
4201 | if(coneptsum<fSumPtThresholds[ipt]) | |
4202 | {// if((GetIsolationCut()->GetICMethod())==1){//kSumPtIC){ | |
4203 | if(GetDebug()>0) printf(" AliAnaParticleIsolation::MakeSeveralICAnalysis() - filling sum loop\n"); | |
4204 | fhPtSumIsolated[icone][ipt]->Fill(ptC) ; | |
b0a31c92 | 4205 | fhEtaPhiPtSumIso[icone][ipt]->Fill(etaC, phiC) ; |
db6fb352 | 4206 | if(decay) |
4207 | { | |
4208 | fhPtPtSumDecayIso[icone][ipt]->Fill(ptC); | |
b0a31c92 | 4209 | fhEtaPhiPtSumDecayIso[icone][ipt]->Fill(etaC, phiC) ; |
db6fb352 | 4210 | } |
4211 | } | |
4212 | ||
44e48e82 | 4213 | // pt sum pt frac method |
bb5fc123 | 4214 | // if( ((fPtFractions[ipt]*ptC < fSumPtThresholds[ipt]) && (coneptsum < fSumPtThresholds[ipt])) || ((fPtFractions[ipt]*ptC > fSumPtThresholds[ipt]) && (coneptsum < fPtFractions[ipt]*ptC)) ) |
4215 | ||
4216 | if(coneptsum < fPtFractions[ipt]*ptC) | |
4217 | { | |
b0a31c92 | 4218 | if(GetDebug()>0) printf(" AliAnaParticleIsolation::MakeSeveralICAnalysis() - filling PtFrac PtSum loop\n"); |
4219 | fhPtFracPtSumIso[icone][ipt]->Fill(ptC) ; | |
4220 | fhEtaPhiFracPtSumIso[icone][ipt]->Fill(etaC,phiC) ; | |
4221 | ||
4222 | if(decay) | |
4223 | { | |
4224 | fhPtFracPtSumDecayIso[icone][ipt]->Fill(ptC); | |
4225 | fhEtaPhiFracPtSumDecayIso[icone][ipt]->Fill(etaC,phiC); | |
4226 | } | |
4227 | } | |
4228 | ||
4229 | // density method | |
db6fb352 | 4230 | Float_t cellDensity = GetIsolationCut()->GetCellDensity( ph, GetReader()); |
4231 | if(coneptsum<fSumPtThresholds[ipt]*cellDensity) | |
4232 | {//(GetIsolationCut()->GetICMethod())==4){//kSumDensityIC) { | |
4233 | if(GetDebug()>0) printf(" AliAnaParticleIsolation::MakeSeveralICAnalysis() - filling density loop\n"); | |
4234 | fhPtSumDensityIso[icone][ipt]->Fill(ptC) ; | |
b0a31c92 | 4235 | fhEtaPhiSumDensityIso[icone][ipt]->Fill(etaC,phiC) ; |
4236 | ||
db6fb352 | 4237 | if(decay) |
4238 | { | |
4239 | fhPtSumDensityDecayIso[icone][ipt]->Fill(ptC); | |
b0a31c92 | 4240 | fhEtaPhiSumDensityDecayIso[icone][ipt]->Fill(etaC, phiC); |
db6fb352 | 4241 | } |
4242 | ||
4243 | } | |
1a31a9ab | 4244 | }//pt thresh loop |
4245 | ||
b5dbb99b | 4246 | if(IsDataMC()) |
4247 | { | |
803d06a8 | 4248 | if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPrompt)) fhPtSumIsolatedPrompt[icone] ->Fill(ptC,coneptsum) ; |
764ab1f4 | 4249 | // else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCConversion)) fhPtSumIsolatedConversion[icone] ->Fill(ptC,coneptsum) ; |
803d06a8 | 4250 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCFragmentation)) fhPtSumIsolatedFragmentation[icone]->Fill(ptC,coneptsum) ; |
764ab1f4 | 4251 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0)) fhPtSumIsolatedPi0[icone] ->Fill(ptC,coneptsum) ; |
803d06a8 | 4252 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0Decay)) fhPtSumIsolatedPi0Decay[icone] ->Fill(ptC,coneptsum) ; |
4253 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCEtaDecay)) fhPtSumIsolatedEtaDecay[icone] ->Fill(ptC,coneptsum) ; | |
4254 | else if( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCOtherDecay)) fhPtSumIsolatedOtherDecay[icone] ->Fill(ptC,coneptsum) ; | |
764ab1f4 | 4255 | else if(!GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCElectron)) fhPtSumIsolatedHadron[icone]->Fill(ptC,coneptsum) ; |
1a31a9ab | 4256 | } |
4257 | ||
4258 | }//cone size loop | |
4259 | ||
4260 | //Reset original parameters for AOD analysis | |
4261 | GetIsolationCut()->SetPtThreshold(ptthresorg); | |
4262 | GetIsolationCut()->SetPtFraction(ptfracorg); | |
4263 | GetIsolationCut()->SetConeSize(rorg); | |
4264 | ||
4265 | } | |
4266 | ||
803d06a8 | 4267 | //_____________________________________________________________ |
1a31a9ab | 4268 | void AliAnaParticleIsolation::Print(const Option_t * opt) const |
4269 | { | |
4270 | ||
4271 | //Print some relevant parameters set for the analysis | |
4272 | if(! opt) | |
4273 | return; | |
4274 | ||
4275 | printf("**** Print %s %s ****\n", GetName(), GetTitle() ) ; | |
745913ae | 4276 | AliAnaCaloTrackCorrBaseClass::Print(" "); |
1a31a9ab | 4277 | |
4278 | printf("ReMake Isolation = %d \n", fReMakeIC) ; | |
4279 | printf("Make Several Isolation = %d \n", fMakeSeveralIC) ; | |
4280 | printf("Calorimeter for isolation = %s \n", fCalorimeter.Data()) ; | |
4281 | ||
b5dbb99b | 4282 | if(fMakeSeveralIC) |
4283 | { | |
1a31a9ab | 4284 | printf("N Cone Sizes = %d\n", fNCones) ; |
4285 | printf("Cone Sizes = \n") ; | |
4286 | for(Int_t i = 0; i < fNCones; i++) | |
4287 | printf(" %1.2f;", fConeSizes[i]) ; | |
4288 | printf(" \n") ; | |
4289 | ||
4290 | printf("N pT thresholds/fractions = %d\n", fNPtThresFrac) ; | |
4291 | printf(" pT thresholds = \n") ; | |
4292 | for(Int_t i = 0; i < fNPtThresFrac; i++) | |
4293 | printf(" %2.2f;", fPtThresholds[i]) ; | |
4294 | ||
4295 | printf(" \n") ; | |
4296 | ||
4297 | printf(" pT fractions = \n") ; | |
4298 | for(Int_t i = 0; i < fNPtThresFrac; i++) | |
4299 | printf(" %2.2f;", fPtFractions[i]) ; | |
4300 | ||
db6fb352 | 4301 | printf(" \n") ; |
4302 | ||
4303 | printf("sum pT thresholds = \n") ; | |
4304 | for(Int_t i = 0; i < fNPtThresFrac; i++) | |
4305 | printf(" %2.2f;", fSumPtThresholds[i]) ; | |
4306 | ||
4307 | ||
1a31a9ab | 4308 | } |
4309 | ||
b5dbb99b | 4310 | printf("Histograms: %3.1f < pT sum < %3.1f, Nbin = %d\n", fHistoPtSumMin, fHistoPtSumMax, fHistoNPtSumBins ); |
1a31a9ab | 4311 | printf("Histograms: %3.1f < pT in cone < %3.1f, Nbin = %d\n", fHistoPtInConeMin, fHistoPtInConeMax, fHistoNPtInConeBins); |
4312 | ||
4313 | printf(" \n") ; | |
4314 | ||
4315 | } | |
4316 |