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