]>
Commit | Line | Data |
---|---|---|
477d6cee | 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 * | |
21a4b1c0 | 8 | * documentation strictly for non-commercial purposes is hereby granted * |
477d6cee | 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 | **************************************************************************/ | |
477d6cee | 15 | |
16 | //_________________________________________________________________________ | |
17 | // Class for the analysis of high pT pi0 event by event | |
09273901 | 18 | // Pi0/Eta identified by one of the following: |
477d6cee | 19 | // -Invariant mass of 2 cluster in calorimeter |
20 | // -Shower shape analysis in calorimeter | |
21a4b1c0 | 21 | // -Invariant mass of one cluster in calorimeter and one photon reconstructed in CTS |
477d6cee | 22 | // |
23 | // -- Author: Gustavo Conesa (LNF-INFN) & Raphaelle Ichou (SUBATECH) | |
24 | ////////////////////////////////////////////////////////////////////////////// | |
85c4406e | 25 | |
26 | ||
27 | // --- ROOT system --- | |
477d6cee | 28 | #include <TList.h> |
29 | #include <TClonesArray.h> | |
0c1383b5 | 30 | #include <TObjString.h> |
477d6cee | 31 | |
85c4406e | 32 | // --- Analysis system --- |
33 | #include "AliAnaPi0EbE.h" | |
477d6cee | 34 | #include "AliCaloTrackReader.h" |
35 | #include "AliIsolationCut.h" | |
36 | #include "AliNeutralMesonSelection.h" | |
37 | #include "AliCaloPID.h" | |
38 | #include "AliMCAnalysisUtils.h" | |
477d6cee | 39 | #include "AliStack.h" |
ff45398a | 40 | #include "AliFiducialCut.h" |
477d6cee | 41 | #include "TParticle.h" |
0ae57829 | 42 | #include "AliVCluster.h" |
2ad19c3d | 43 | #include "AliESDEvent.h" |
477d6cee | 44 | #include "AliAODEvent.h" |
591cc579 | 45 | #include "AliAODMCParticle.h" |
477d6cee | 46 | |
47 | ClassImp(AliAnaPi0EbE) | |
34c16486 | 48 | |
85c4406e | 49 | //____________________________ |
50 | AliAnaPi0EbE::AliAnaPi0EbE() : | |
3a4c49b7 | 51 | AliAnaCaloTrackCorrBaseClass(), fAnaType(kIMCalo), fCalorimeter(""), |
52 | fMinDist(0.),fMinDist2(0.), fMinDist3(0.), | |
53 | fNLMCutMin(-1), fNLMCutMax(10), | |
54 | fTimeCutMin(-10000), fTimeCutMax(10000), | |
85c4406e | 55 | fRejectTrackMatch(kTRUE), |
56 | fFillPileUpHistograms(0), | |
3a4c49b7 | 57 | fFillWeightHistograms(kFALSE), fFillTMHisto(0), |
58 | fFillSelectClHisto(0), fFillOnlySimpleSSHisto(1), fFillEMCALBCHistograms(0), | |
85c4406e | 59 | fInputAODGammaConvName(""), |
9f48b3f0 | 60 | fCheckSplitDistToBad(0), |
85c4406e | 61 | // Histograms |
3a4c49b7 | 62 | fhPt(0), fhE(0), |
3a4c49b7 | 63 | fhPtEta(0), fhPtPhi(0), fhEtaPhi(0), |
64 | fhEtaPhiEMCALBC0(0), fhEtaPhiEMCALBC1(0), fhEtaPhiEMCALBCN(0), | |
126b8c62 | 65 | fhTimeTriggerEMCALBC0UMReMatchOpenTime(0), |
66 | fhTimeTriggerEMCALBC0UMReMatchCheckNeigh(0), | |
67 | fhTimeTriggerEMCALBC0UMReMatchBoth(0), | |
3a4c49b7 | 68 | fhPtCentrality(), fhPtEventPlane(0), |
69 | fhPtReject(0), fhEReject(0), | |
08c09f10 | 70 | fhPtEtaReject(0), fhPtPhiReject(0), fhEtaPhiReject(0), |
3a4c49b7 | 71 | fhMass(0), fhMassPt(0), fhMassSplitPt(0), |
08c09f10 | 72 | fhSelectedMass(), fhSelectedMassPt(0), fhSelectedMassSplitPt(0), |
3a4c49b7 | 73 | fhMassNoOverlap(0), fhMassPtNoOverlap(0), fhMassSplitPtNoOverlap(0), |
74 | fhSelectedMassNoOverlap(0), fhSelectedMassPtNoOverlap(0), fhSelectedMassSplitPtNoOverlap(0), | |
1e90d4df | 75 | fhMCPi0PtRecoPtPrim(0), fhMCEtaPtRecoPtPrim(0), |
76 | fhMCPi0PtRecoPtPrimNoOverlap(0), fhMCEtaPtRecoPtPrimNoOverlap(0), | |
77 | fhMCPi0SplitPtRecoPtPrim(0), fhMCEtaSplitPtRecoPtPrim(0), | |
1253480f | 78 | fhMCPi0SplitPtRecoPtPrimNoOverlap(0), fhMCEtaSplitPtRecoPtPrimNoOverlap(0), |
79 | fhMCPi0SelectedPtRecoPtPrim(0), fhMCEtaSelectedPtRecoPtPrim(0), | |
80 | fhMCPi0SelectedPtRecoPtPrimNoOverlap(0), fhMCEtaSelectedPtRecoPtPrimNoOverlap(0), | |
81 | fhMCPi0SelectedSplitPtRecoPtPrim(0), fhMCEtaSelectedSplitPtRecoPtPrim(0), | |
82 | fhMCPi0SelectedSplitPtRecoPtPrimNoOverlap(0), fhMCEtaSelectedSplitPtRecoPtPrimNoOverlap(0), | |
3a4c49b7 | 83 | fhAsymmetry(0), fhSelectedAsymmetry(0), |
84 | fhSplitE(0), fhSplitPt(0), | |
85 | fhSplitPtEta(0), fhSplitPtPhi(0), | |
85c4406e | 86 | fhNLocMaxSplitPt(0), |
3a4c49b7 | 87 | fhPtDecay(0), fhEDecay(0), |
85c4406e | 88 | // Shower shape histos |
08c09f10 | 89 | fhPtDispersion(0), fhPtLambda0(0), fhPtLambda1(0), |
90 | fhPtLambda0NoTRD(0), fhPtLambda0FracMaxCellCut(0), | |
91 | fhPtFracMaxCell(0), fhPtFracMaxCellNoTRD(0), | |
92 | fhPtNCells(0), fhPtTime(0), fhEPairDiffTime(0), | |
93 | fhPtDispEta(0), fhPtDispPhi(0), | |
94 | fhPtSumEta(0), fhPtSumPhi(0), fhPtSumEtaPhi(0), | |
95 | fhPtDispEtaPhiDiff(0), fhPtSphericity(0), | |
85c4406e | 96 | |
97 | // MC histos | |
3a4c49b7 | 98 | fhMCE(), fhMCPt(), |
08c09f10 | 99 | fhMCPtPhi(), fhMCPtEta(), |
3a4c49b7 | 100 | fhMCEReject(), fhMCPtReject(), |
85c4406e | 101 | fhMCPtCentrality(), |
3a4c49b7 | 102 | fhMCPi0PtGenRecoFraction(0), fhMCEtaPtGenRecoFraction(0), |
103 | fhMCPi0DecayPt(0), fhMCPi0DecayPtFraction(0), | |
104 | fhMCEtaDecayPt(0), fhMCEtaDecayPtFraction(0), | |
85c4406e | 105 | fhMCOtherDecayPt(0), |
3a4c49b7 | 106 | fhMassPairMCPi0(0), fhMassPairMCEta(0), |
107 | fhAnglePairMCPi0(0), fhAnglePairMCEta(0), | |
4bbe6213 | 108 | fhMCPi0PtOrigin(0x0), fhMCEtaPtOrigin(0x0), |
109 | fhMCPi0ProdVertex(0), fhMCEtaProdVertex(0), | |
4bbe6213 | 110 | |
85c4406e | 111 | // Weight studies |
3a4c49b7 | 112 | fhECellClusterRatio(0), fhECellClusterLogRatio(0), |
113 | fhEMaxCellClusterRatio(0), fhEMaxCellClusterLogRatio(0), | |
114 | fhTrackMatchedDEta(0), fhTrackMatchedDPhi(0), fhTrackMatchedDEtaDPhi(0), | |
115 | fhTrackMatchedDEtaPos(0), fhTrackMatchedDPhiPos(0), fhTrackMatchedDEtaDPhiPos(0), | |
116 | fhTrackMatchedDEtaNeg(0), fhTrackMatchedDPhiNeg(0), fhTrackMatchedDEtaDPhiNeg(0), | |
08c09f10 | 117 | fhTrackMatchedMCParticlePt(0), |
3a4c49b7 | 118 | fhTrackMatchedMCParticleDEta(0), fhTrackMatchedMCParticleDPhi(0), |
119 | fhdEdx(0), fhEOverP(0), fhEOverPNoTRD(0), | |
85c4406e | 120 | // Number of local maxima in cluster |
08c09f10 | 121 | fhNLocMaxPt(0), fhNLocMaxPtReject(0), |
85c4406e | 122 | // PileUp |
3a4c49b7 | 123 | fhTimePtNoCut(0), fhTimePtSPD(0), fhTimePtSPDMulti(0), |
85c4406e | 124 | fhTimeNPileUpVertSPD(0), fhTimeNPileUpVertTrack(0), |
125 | fhTimeNPileUpVertContributors(0), | |
126 | fhTimePileUpMainVertexZDistance(0), fhTimePileUpMainVertexZDiamond(0), | |
127 | fhPtNPileUpSPDVtx(0), fhPtNPileUpTrkVtx(0), | |
128 | fhPtNPileUpSPDVtxTimeCut(0), fhPtNPileUpTrkVtxTimeCut(0), | |
129 | fhPtNPileUpSPDVtxTimeCut2(0), fhPtNPileUpTrkVtxTimeCut2(0) | |
477d6cee | 130 | { |
131 | //default ctor | |
132 | ||
34c16486 | 133 | for(Int_t i = 0; i < 6; i++) |
134 | { | |
40d3ce60 | 135 | fhMCE [i] = 0; |
3455f821 | 136 | fhMCPt [i] = 0; |
08c09f10 | 137 | fhMCPtPhi [i] = 0; |
138 | fhMCPtEta [i] = 0; | |
17f5b4b6 | 139 | fhMCPtCentrality [i] = 0; |
140 | ||
cfdf2b91 | 141 | fhMCSplitE [i] = 0; |
142 | fhMCSplitPt [i] = 0; | |
29250849 | 143 | fhMCSplitPtPhi [i] = 0; |
144 | fhMCSplitPtEta [i] = 0; | |
3a4c49b7 | 145 | |
146 | fhMCNLocMaxPt [i] = 0; | |
6e66993c | 147 | fhMCNLocMaxSplitPt [i] = 0; |
3a4c49b7 | 148 | fhMCNLocMaxPtReject[i] = 0; |
cfdf2b91 | 149 | |
08c09f10 | 150 | fhMCPtLambda0 [i] = 0; |
151 | fhMCPtLambda0NoTRD [i] = 0; | |
152 | fhMCPtLambda0FracMaxCellCut[i]= 0; | |
153 | fhMCPtFracMaxCell [i] = 0; | |
154 | fhMCPtLambda1 [i] = 0; | |
155 | fhMCPtDispersion [i] = 0; | |
34c16486 | 156 | |
08c09f10 | 157 | fhMCPtDispEta [i] = 0; |
158 | fhMCPtDispPhi [i] = 0; | |
159 | fhMCPtSumEtaPhi [i] = 0; | |
160 | fhMCPtDispEtaPhiDiff[i] = 0; | |
161 | fhMCPtSphericity [i] = 0; | |
162 | fhMCPtAsymmetry [i] = 0; | |
85c4406e | 163 | |
29250849 | 164 | fhMCMassPt [i]=0; |
165 | fhMCMassSplitPt [i]=0; | |
166 | fhMCSelectedMassPt [i]=0; | |
167 | fhMCSelectedMassSplitPt[i]=0; | |
168 | ||
1253480f | 169 | fhMCMassPtNoOverlap [i]=0; |
170 | fhMCMassSplitPtNoOverlap [i]=0; | |
171 | fhMCSelectedMassPtNoOverlap [i]=0; | |
172 | fhMCSelectedMassSplitPtNoOverlap[i]=0; | |
173 | ||
d2655d46 | 174 | for(Int_t j = 0; j < 7; j++) |
85c4406e | 175 | { |
bfdcf7fb | 176 | fhMCLambda0DispEta [j][i] = 0; |
177 | fhMCLambda0DispPhi [j][i] = 0; | |
85c4406e | 178 | fhMCDispEtaDispPhi [j][i] = 0; |
179 | fhMCAsymmetryLambda0 [j][i] = 0; | |
180 | fhMCAsymmetryDispEta [j][i] = 0; | |
bfdcf7fb | 181 | fhMCAsymmetryDispPhi [j][i] = 0; |
182 | } | |
34c16486 | 183 | } |
184 | ||
d2655d46 | 185 | for(Int_t j = 0; j < 7; j++) |
85c4406e | 186 | { |
bfdcf7fb | 187 | fhLambda0DispEta [j] = 0; |
188 | fhLambda0DispPhi [j] = 0; | |
85c4406e | 189 | fhDispEtaDispPhi [j] = 0; |
190 | fhAsymmetryLambda0 [j] = 0; | |
191 | fhAsymmetryDispEta [j] = 0; | |
bfdcf7fb | 192 | fhAsymmetryDispPhi [j] = 0; |
5e5e056f | 193 | |
126b8c62 | 194 | fhPtPileUp [j] = 0; |
5e5e056f | 195 | } |
bfdcf7fb | 196 | |
34c16486 | 197 | for(Int_t i = 0; i < 3; i++) |
198 | { | |
08c09f10 | 199 | fhPtLambda0LocMax [i] = 0; |
200 | fhPtLambda1LocMax [i] = 0; | |
201 | fhPtDispersionLocMax [i] = 0; | |
202 | fhPtDispEtaLocMax [i] = 0; | |
203 | fhPtDispPhiLocMax [i] = 0; | |
204 | fhPtSumEtaPhiLocMax [i] = 0; | |
205 | fhPtDispEtaPhiDiffLocMax[i] = 0; | |
206 | fhPtSphericityLocMax [i] = 0; | |
207 | fhPtAsymmetryLocMax [i] = 0; | |
208 | fhMassPtLocMax [i] = 0; | |
209 | fhSelectedMassPtLocMax [i] = 0; | |
210 | for(Int_t ipart = 0; ipart<6; ipart++) | |
211 | { | |
212 | fhMCPtLambda0LocMax [ipart][i] = 0; | |
213 | fhMCSelectedMassPtLocMax[ipart][i] = 0; | |
214 | } | |
afba5771 | 215 | |
216 | fhMCPi0PtRecoPtPrimLocMax [i] = 0; | |
217 | fhMCEtaPtRecoPtPrimLocMax [i] = 0; | |
218 | fhMCPi0SplitPtRecoPtPrimLocMax [i] = 0; | |
219 | fhMCEtaSplitPtRecoPtPrimLocMax [i] = 0; | |
220 | ||
221 | fhMCPi0SelectedPtRecoPtPrimLocMax [i] = 0; | |
222 | fhMCEtaSelectedPtRecoPtPrimLocMax [i] = 0; | |
223 | fhMCPi0SelectedSplitPtRecoPtPrimLocMax[i] = 0; | |
224 | fhMCEtaSelectedSplitPtRecoPtPrimLocMax[i] = 0; | |
225 | ||
521636d2 | 226 | } |
227 | ||
78a28af3 | 228 | //Weight studies |
1a72f6c5 | 229 | for(Int_t i =0; i < 14; i++){ |
78a28af3 | 230 | fhLambda0ForW0[i] = 0; |
1a72f6c5 | 231 | //fhLambda1ForW0[i] = 0; |
3c1d9afb | 232 | if(i<8)fhMassPairLocMax[i] = 0; |
78a28af3 | 233 | } |
234 | ||
afb3af8a | 235 | for(Int_t i = 0; i < 11; i++) |
c2a62a94 | 236 | { |
370169ad | 237 | fhEtaPhiTriggerEMCALBC [i] = 0 ; |
238 | fhTimeTriggerEMCALBC [i] = 0 ; | |
239 | fhTimeTriggerEMCALBCPileUpSPD[i] = 0 ; | |
afb3af8a | 240 | |
241 | fhEtaPhiTriggerEMCALBCUM [i] = 0 ; | |
242 | fhTimeTriggerEMCALBCUM [i] = 0 ; | |
85c4406e | 243 | |
c2a62a94 | 244 | } |
245 | ||
9605388f | 246 | for(Int_t iSM = 0; iSM < 22; iSM++) |
247 | { | |
248 | fhNLocMaxPtSM[iSM] = 0; | |
249 | for(Int_t inlm = 0; inlm < 3; inlm++) | |
250 | { | |
251 | fhSelectedMassPtLocMaxSM [inlm][iSM] = 0; | |
252 | fhSelectedLambda0PtLocMaxSM [inlm][iSM] = 0; | |
253 | } | |
254 | } | |
477d6cee | 255 | //Initialize parameters |
256 | InitParameters(); | |
257 | ||
258 | } | |
477d6cee | 259 | |
b94e038e | 260 | //___________________________________________________________________________________ |
261 | void AliAnaPi0EbE::FillPileUpHistograms(Float_t pt, Float_t time, AliVCluster * calo) | |
2ad19c3d | 262 | { |
263 | // Fill some histograms to understand pile-up | |
264 | if(!fFillPileUpHistograms) return; | |
265 | ||
266 | //printf("E %f, time %f\n",energy,time); | |
267 | AliVEvent * event = GetReader()->GetInputEvent(); | |
268 | ||
126b8c62 | 269 | fhTimePtNoCut->Fill(pt,time); |
270 | if(GetReader()->IsPileUpFromSPD()) | |
2ad19c3d | 271 | |
126b8c62 | 272 | if(GetReader()->IsPileUpFromSPD()) { fhPtPileUp[0]->Fill(pt); fhTimePtSPD ->Fill(pt,time); } |
273 | if(GetReader()->IsPileUpFromEMCal()) fhPtPileUp[1]->Fill(pt); | |
274 | if(GetReader()->IsPileUpFromSPDOrEMCal()) fhPtPileUp[2]->Fill(pt); | |
275 | if(GetReader()->IsPileUpFromSPDAndEMCal()) fhPtPileUp[3]->Fill(pt); | |
276 | if(GetReader()->IsPileUpFromSPDAndNotEMCal()) fhPtPileUp[4]->Fill(pt); | |
277 | if(GetReader()->IsPileUpFromEMCalAndNotSPD()) fhPtPileUp[5]->Fill(pt); | |
278 | if(GetReader()->IsPileUpFromNotSPDAndNotEMCal()) fhPtPileUp[6]->Fill(pt); | |
279 | ||
280 | if(event->IsPileupFromSPDInMultBins()) fhTimePtSPDMulti->Fill(pt,time); | |
281 | ||
282 | // cells in cluster | |
283 | ||
284 | AliVCaloCells* cells = 0; | |
285 | if(fCalorimeter == "EMCAL") cells = GetEMCALCells(); | |
286 | else cells = GetPHOSCells(); | |
287 | ||
288 | Float_t maxCellFraction = 0.; | |
289 | Int_t absIdMax = GetCaloUtils()->GetMaxEnergyCell(cells,calo,maxCellFraction); | |
290 | ||
291 | Double_t tmax = cells->GetCellTime(absIdMax); | |
292 | GetCaloUtils()->RecalibrateCellTime(tmax, fCalorimeter, absIdMax,GetReader()->GetInputEvent()->GetBunchCrossNumber()); | |
293 | tmax*=1.e9; | |
294 | ||
295 | //Loop on cells inside cluster, max cell must be over 100 MeV and time in BC=0 | |
296 | if(cells->GetCellAmplitude(absIdMax) > 0.1 && TMath::Abs(tmax) < 30) | |
297 | { | |
298 | for (Int_t ipos = 0; ipos < calo->GetNCells(); ipos++) | |
299 | { | |
300 | Int_t absId = calo->GetCellsAbsId()[ipos]; | |
301 | ||
302 | if( absId == absIdMax ) continue ; | |
303 | ||
304 | Double_t timecell = cells->GetCellTime(absId); | |
305 | Float_t amp = cells->GetCellAmplitude(absId); | |
306 | Int_t bc = GetReader()->GetInputEvent()->GetBunchCrossNumber(); | |
307 | GetCaloUtils()->GetEMCALRecoUtils()->AcceptCalibrateCell(absId,bc,amp,timecell,cells); | |
308 | timecell*=1e9; | |
309 | ||
310 | Float_t diff = (tmax-timecell); | |
311 | ||
36769d30 | 312 | if( cells->GetCellAmplitude(absIdMax) < 0.1 ) continue ; |
126b8c62 | 313 | |
314 | if(GetReader()->IsPileUpFromSPD()) | |
315 | { | |
316 | fhPtCellTimePileUp[0]->Fill(pt, timecell); | |
317 | fhPtTimeDiffPileUp[0]->Fill(pt, diff); | |
318 | } | |
319 | ||
320 | if(GetReader()->IsPileUpFromEMCal()) | |
321 | { | |
322 | fhPtCellTimePileUp[1]->Fill(pt, timecell); | |
323 | fhPtTimeDiffPileUp[1]->Fill(pt, diff); | |
324 | } | |
325 | ||
326 | if(GetReader()->IsPileUpFromSPDOrEMCal()) | |
327 | { | |
328 | fhPtCellTimePileUp[2]->Fill(pt, timecell); | |
329 | fhPtTimeDiffPileUp[2]->Fill(pt, diff); | |
330 | } | |
331 | ||
332 | if(GetReader()->IsPileUpFromSPDAndEMCal()) | |
333 | { | |
334 | fhPtCellTimePileUp[3]->Fill(pt, timecell); | |
335 | fhPtTimeDiffPileUp[3]->Fill(pt, diff); | |
336 | } | |
337 | ||
338 | if(GetReader()->IsPileUpFromSPDAndNotEMCal()) | |
339 | { | |
340 | fhPtCellTimePileUp[4]->Fill(pt, timecell); | |
341 | fhPtTimeDiffPileUp[4]->Fill(pt, diff); | |
342 | } | |
343 | ||
344 | if(GetReader()->IsPileUpFromEMCalAndNotSPD()) | |
345 | { | |
346 | fhPtCellTimePileUp[5]->Fill(pt, timecell); | |
347 | fhPtTimeDiffPileUp[5]->Fill(pt, diff); | |
348 | } | |
349 | ||
350 | if(GetReader()->IsPileUpFromNotSPDAndNotEMCal()) | |
351 | { | |
352 | fhPtCellTimePileUp[6]->Fill(pt, timecell); | |
353 | fhPtTimeDiffPileUp[6]->Fill(pt, diff); | |
354 | } | |
355 | }//loop | |
356 | } | |
357 | ||
358 | if(pt < 8) return; // Fill time figures for high energy clusters not too close to trigger threshold | |
2ad19c3d | 359 | |
360 | AliESDEvent* esdEv = dynamic_cast<AliESDEvent*> (event); | |
361 | AliAODEvent* aodEv = dynamic_cast<AliAODEvent*> (event); | |
362 | ||
363 | // N pile up vertices | |
0f7e7205 | 364 | Int_t nVtxSPD = -1; |
365 | Int_t nVtxTrk = -1; | |
2ad19c3d | 366 | |
367 | if (esdEv) | |
368 | { | |
0f7e7205 | 369 | nVtxSPD = esdEv->GetNumberOfPileupVerticesSPD(); |
370 | nVtxTrk = esdEv->GetNumberOfPileupVerticesTracks(); | |
2ad19c3d | 371 | |
372 | }//ESD | |
373 | else if (aodEv) | |
374 | { | |
0f7e7205 | 375 | nVtxSPD = aodEv->GetNumberOfPileupVerticesSPD(); |
376 | nVtxTrk = aodEv->GetNumberOfPileupVerticesTracks(); | |
2ad19c3d | 377 | }//AOD |
378 | ||
0f7e7205 | 379 | fhTimeNPileUpVertSPD ->Fill(time,nVtxSPD); |
380 | fhTimeNPileUpVertTrack->Fill(time,nVtxTrk); | |
2ad19c3d | 381 | |
85c4406e | 382 | fhPtNPileUpSPDVtx->Fill(pt,nVtxSPD); |
0f7e7205 | 383 | fhPtNPileUpTrkVtx->Fill(pt,nVtxTrk); |
384 | ||
385 | if(TMath::Abs(time) < 25) | |
85c4406e | 386 | { |
387 | fhPtNPileUpSPDVtxTimeCut ->Fill(pt,nVtxSPD); | |
388 | fhPtNPileUpTrkVtxTimeCut ->Fill(pt,nVtxTrk); | |
389 | } | |
390 | ||
391 | if(time < 75 && time > -25) | |
392 | { | |
393 | fhPtNPileUpSPDVtxTimeCut2->Fill(pt,nVtxSPD); | |
394 | fhPtNPileUpTrkVtxTimeCut2->Fill(pt,nVtxTrk); | |
395 | } | |
396 | ||
397 | //printf("Is SPD %d, Is SPD Multi %d, n spd %d, n track %d\n", | |
0f7e7205 | 398 | // GetReader()->IsPileUpFromSPD(),event->IsPileupFromSPDInMultBins(),nVtxSPD,nVtxTracks); |
2ad19c3d | 399 | |
400 | Int_t ncont = -1; | |
5559f30a | 401 | Float_t z1 = -1, z2 = -1; |
2ad19c3d | 402 | Float_t diamZ = -1; |
0f7e7205 | 403 | for(Int_t iVert=0; iVert<nVtxSPD;iVert++) |
2ad19c3d | 404 | { |
405 | if (esdEv) | |
406 | { | |
407 | const AliESDVertex* pv=esdEv->GetPileupVertexSPD(iVert); | |
408 | ncont=pv->GetNContributors(); | |
409 | z1 = esdEv->GetPrimaryVertexSPD()->GetZ(); | |
410 | z2 = pv->GetZ(); | |
411 | diamZ = esdEv->GetDiamondZ(); | |
412 | }//ESD | |
413 | else if (aodEv) | |
414 | { | |
415 | AliAODVertex *pv=aodEv->GetVertex(iVert); | |
416 | if(pv->GetType()!=AliAODVertex::kPileupSPD) continue; | |
417 | ncont=pv->GetNContributors(); | |
418 | z1=aodEv->GetPrimaryVertexSPD()->GetZ(); | |
419 | z2=pv->GetZ(); | |
420 | diamZ = aodEv->GetDiamondZ(); | |
421 | }// AOD | |
422 | ||
423 | Double_t distZ = TMath::Abs(z2-z1); | |
424 | diamZ = TMath::Abs(z2-diamZ); | |
425 | ||
426 | fhTimeNPileUpVertContributors ->Fill(time,ncont); | |
427 | fhTimePileUpMainVertexZDistance->Fill(time,distZ); | |
428 | fhTimePileUpMainVertexZDiamond ->Fill(time,diamZ); | |
429 | ||
126b8c62 | 430 | }// vertex loop |
2ad19c3d | 431 | } |
432 | ||
40d3ce60 | 433 | |
b94e038e | 434 | //______________________________________________________________________________________________ |
435 | void AliAnaPi0EbE::FillRejectedClusterHistograms(TLorentzVector mom, Int_t mctag, Int_t nMaxima) | |
40d3ce60 | 436 | { |
85c4406e | 437 | // Fill histograms that do not pass the identification (SS case only) |
40d3ce60 | 438 | |
439 | Float_t ener = mom.E(); | |
440 | Float_t pt = mom.Pt(); | |
441 | Float_t phi = mom.Phi(); | |
442 | if(phi < 0) phi+=TMath::TwoPi(); | |
443 | Float_t eta = mom.Eta(); | |
444 | ||
445 | fhPtReject ->Fill(pt); | |
446 | fhEReject ->Fill(ener); | |
447 | ||
08c09f10 | 448 | fhPtEtaReject ->Fill(ener,eta); |
449 | fhPtPhiReject ->Fill(ener,phi); | |
40d3ce60 | 450 | fhEtaPhiReject ->Fill(eta,phi); |
451 | ||
3a4c49b7 | 452 | fhNLocMaxPtReject->Fill(pt,nMaxima); |
453 | ||
40d3ce60 | 454 | if(IsDataMC()) |
455 | { | |
456 | Int_t mcIndex = GetMCIndex(mctag); | |
457 | fhMCEReject [mcIndex] ->Fill(ener); | |
458 | fhMCPtReject [mcIndex] ->Fill(pt); | |
3a4c49b7 | 459 | fhMCNLocMaxPtReject[mcIndex]->Fill(pt,nMaxima); |
85c4406e | 460 | } |
40d3ce60 | 461 | } |
462 | ||
b94e038e | 463 | //___________________________________________________________________________________ |
08c09f10 | 464 | void AliAnaPi0EbE::FillSelectedClusterHistograms(AliVCluster* cluster, Float_t pt, Int_t nMaxima, |
b94e038e | 465 | Int_t tag, Float_t asy) |
5c46c992 | 466 | { |
42d47cb7 | 467 | // Fill shower shape, timing and other histograms for selected clusters from decay |
468 | ||
08c09f10 | 469 | Float_t ener = cluster->E(); |
42d47cb7 | 470 | Float_t disp = cluster->GetDispersion()*cluster->GetDispersion(); |
471 | Float_t l0 = cluster->GetM02(); | |
85c4406e | 472 | Float_t l1 = cluster->GetM20(); |
42d47cb7 | 473 | Int_t nSM = GetModuleNumber(cluster); |
85c4406e | 474 | |
08c09f10 | 475 | Int_t ptbin = -1; |
476 | if (pt < 2 ) ptbin = 0; | |
477 | else if (pt < 4 ) ptbin = 1; | |
478 | else if (pt < 6 ) ptbin = 2; | |
479 | else if (pt < 10) ptbin = 3; | |
480 | else if (pt < 15) ptbin = 4; | |
481 | else if (pt < 20) ptbin = 5; | |
482 | else ptbin = 6; | |
85c4406e | 483 | |
bfdcf7fb | 484 | Int_t indexMax = -1; |
485 | if (nMaxima==1) indexMax = 0 ; | |
85c4406e | 486 | else if(nMaxima==2) indexMax = 1 ; |
487 | else indexMax = 2 ; | |
bfdcf7fb | 488 | |
489 | ||
85c4406e | 490 | AliVCaloCells * cell = 0x0; |
491 | if(fCalorimeter == "PHOS") | |
42d47cb7 | 492 | cell = GetPHOSCells(); |
85c4406e | 493 | else |
42d47cb7 | 494 | cell = GetEMCALCells(); |
495 | ||
496 | Float_t maxCellFraction = 0; | |
497 | GetCaloUtils()->GetMaxEnergyCell(cell, cluster, maxCellFraction); | |
08c09f10 | 498 | fhPtFracMaxCell->Fill(pt,maxCellFraction); |
42d47cb7 | 499 | |
500 | FillWeightHistograms(cluster); | |
501 | ||
08c09f10 | 502 | fhPtDispersion->Fill(pt, disp); |
503 | fhPtLambda0 ->Fill(pt, l0 ); | |
504 | fhPtLambda1 ->Fill(pt, l1 ); | |
42d47cb7 | 505 | |
34c16486 | 506 | Float_t ll0 = 0., ll1 = 0.; |
85c4406e | 507 | Float_t dispp= 0., dEta = 0., dPhi = 0.; |
508 | Float_t sEta = 0., sPhi = 0., sEtaPhi = 0.; | |
764ab1f4 | 509 | if(fCalorimeter == "EMCAL" && !fFillOnlySimpleSSHisto) |
34c16486 | 510 | { |
511 | GetCaloUtils()->GetEMCALRecoUtils()->RecalculateClusterShowerShapeParameters(GetEMCALGeometry(), GetReader()->GetInputEvent()->GetEMCALCells(), cluster, | |
512 | ll0, ll1, dispp, dEta, dPhi, sEta, sPhi, sEtaPhi); | |
764ab1f4 | 513 | |
08c09f10 | 514 | fhPtDispEta -> Fill(pt,dEta); |
515 | fhPtDispPhi -> Fill(pt,dPhi); | |
516 | fhPtSumEta -> Fill(pt,sEta); | |
517 | fhPtSumPhi -> Fill(pt,sPhi); | |
518 | fhPtSumEtaPhi -> Fill(pt,sEtaPhi); | |
519 | fhPtDispEtaPhiDiff-> Fill(pt,dPhi-dEta); | |
520 | if(dEta+dPhi>0)fhPtSphericity-> Fill(pt,(dPhi-dEta)/(dEta+dPhi)); | |
34c16486 | 521 | |
08c09f10 | 522 | fhDispEtaDispPhi[ptbin]->Fill(dEta,dPhi); |
523 | fhLambda0DispEta[ptbin]->Fill(l0 ,dEta); | |
524 | fhLambda0DispPhi[ptbin]->Fill(l0 ,dPhi); | |
34c16486 | 525 | |
bfdcf7fb | 526 | if (fAnaType==kSSCalo) |
527 | { | |
528 | // Asymmetry histograms | |
08c09f10 | 529 | fhAsymmetryLambda0[ptbin]->Fill(l0 ,asy); |
530 | fhAsymmetryDispEta[ptbin]->Fill(dEta,asy); | |
531 | fhAsymmetryDispPhi[ptbin]->Fill(dPhi,asy); | |
bfdcf7fb | 532 | } |
85c4406e | 533 | } |
34c16486 | 534 | |
08c09f10 | 535 | fhNLocMaxPt->Fill(pt,nMaxima); |
764ab1f4 | 536 | |
9f48b3f0 | 537 | if(nSM < GetCaloUtils()->GetNumberOfSuperModulesUsed() && nSM >=0) |
2dc84d31 | 538 | fhNLocMaxPtSM[nSM]->Fill(pt,nMaxima); |
539 | ||
08c09f10 | 540 | fhPtLambda0LocMax [indexMax]->Fill(pt,l0); |
541 | fhPtLambda1LocMax [indexMax]->Fill(pt,l1); | |
542 | fhPtDispersionLocMax[indexMax]->Fill(pt,disp); | |
543 | ||
85c4406e | 544 | if(fCalorimeter=="EMCAL" && !fFillOnlySimpleSSHisto) |
34c16486 | 545 | { |
08c09f10 | 546 | fhPtDispEtaLocMax [indexMax]-> Fill(pt,dEta); |
547 | fhPtDispPhiLocMax [indexMax]-> Fill(pt,dPhi); | |
548 | fhPtSumEtaPhiLocMax [indexMax]-> Fill(pt,sEtaPhi); | |
549 | fhPtDispEtaPhiDiffLocMax[indexMax]-> Fill(pt,dPhi-dEta); | |
550 | if(dEta+dPhi>0) fhPtSphericityLocMax[indexMax]->Fill(pt,(dPhi-dEta)/(dEta+dPhi)); | |
551 | if(fAnaType==kSSCalo) fhPtAsymmetryLocMax [indexMax]->Fill(pt ,asy); | |
bfdcf7fb | 552 | |
34c16486 | 553 | } |
554 | ||
4d1d8f00 | 555 | if(fCalorimeter=="EMCAL" && GetFirstSMCoveredByTRD() >= 0 && |
556 | GetModuleNumber(cluster) < GetFirstSMCoveredByTRD() ) | |
b5dbb99b | 557 | { |
08c09f10 | 558 | fhPtLambda0NoTRD ->Fill(pt, l0 ); |
559 | fhPtFracMaxCellNoTRD->Fill(pt,maxCellFraction); | |
42d47cb7 | 560 | } |
561 | ||
85c4406e | 562 | if(maxCellFraction < 0.5) |
08c09f10 | 563 | fhPtLambda0FracMaxCellCut->Fill(pt, l0 ); |
42d47cb7 | 564 | |
08c09f10 | 565 | fhPtTime ->Fill(pt, cluster->GetTOF()*1.e9); |
566 | fhPtNCells->Fill(pt, cluster->GetNCells()); | |
42d47cb7 | 567 | |
09273901 | 568 | // Fill Track matching control histograms |
b5dbb99b | 569 | if(fFillTMHisto) |
570 | { | |
09273901 | 571 | Float_t dZ = cluster->GetTrackDz(); |
572 | Float_t dR = cluster->GetTrackDx(); | |
85c4406e | 573 | |
b5dbb99b | 574 | if(cluster->IsEMCAL() && GetCaloUtils()->IsRecalculationOfClusterTrackMatchingOn()) |
575 | { | |
09273901 | 576 | dR = 2000., dZ = 2000.; |
31ae6d59 | 577 | GetCaloUtils()->GetEMCALRecoUtils()->GetMatchedResiduals(cluster->GetID(),dZ,dR); |
85c4406e | 578 | } |
09273901 | 579 | //printf("Pi0EbE: dPhi %f, dEta %f\n",dR,dZ); |
85c4406e | 580 | |
b2e375c7 | 581 | AliVTrack *track = GetCaloUtils()->GetMatchedTrack(cluster, GetReader()->GetInputEvent()); |
582 | ||
583 | Bool_t positive = kFALSE; | |
584 | if(track) positive = (track->Charge()>0); | |
585 | ||
b5dbb99b | 586 | if(fhTrackMatchedDEta && TMath::Abs(dR) < 999) |
587 | { | |
08c09f10 | 588 | fhTrackMatchedDEta->Fill(pt,dZ); |
589 | fhTrackMatchedDPhi->Fill(pt,dR); | |
590 | if(ener > 0.5) fhTrackMatchedDEtaDPhi->Fill(dZ,dR); | |
b2e375c7 | 591 | |
592 | if(track) | |
593 | { | |
594 | if(positive) | |
595 | { | |
08c09f10 | 596 | fhTrackMatchedDEtaPos->Fill(pt,dZ); |
597 | fhTrackMatchedDPhiPos->Fill(pt,dR); | |
598 | if(ener > 0.5) fhTrackMatchedDEtaDPhiPos->Fill(dZ,dR); | |
b2e375c7 | 599 | } |
600 | else | |
601 | { | |
08c09f10 | 602 | fhTrackMatchedDEtaNeg->Fill(pt,dZ); |
603 | fhTrackMatchedDPhiNeg->Fill(pt,dR); | |
604 | if(ener > 0.5) fhTrackMatchedDEtaDPhiNeg->Fill(dZ,dR); | |
b2e375c7 | 605 | } |
606 | } | |
09273901 | 607 | } |
31ae6d59 | 608 | // Check dEdx and E/p of matched clusters |
609 | ||
610 | if(TMath::Abs(dZ) < 0.05 && TMath::Abs(dR) < 0.05) | |
b2e375c7 | 611 | { |
85c4406e | 612 | if(track) |
34c16486 | 613 | { |
31ae6d59 | 614 | Float_t dEdx = track->GetTPCsignal(); |
08c09f10 | 615 | fhdEdx->Fill(pt, dEdx); |
31ae6d59 | 616 | |
08c09f10 | 617 | Float_t eOverp = cluster->E()/track->P(); |
618 | fhEOverP->Fill(pt, eOverp); | |
4bfeae64 | 619 | |
08c09f10 | 620 | // Change nSM for year > 2011 (< 4 in 2012-13, none after) |
4d1d8f00 | 621 | if(fCalorimeter=="EMCAL" && GetFirstSMCoveredByTRD() >= 0 && |
622 | GetModuleNumber(cluster) < GetFirstSMCoveredByTRD() ) | |
623 | fhEOverPNoTRD->Fill(pt, eOverp); | |
85c4406e | 624 | |
31ae6d59 | 625 | } |
85c4406e | 626 | //else |
4bfeae64 | 627 | // printf("AliAnaPi0EbE::FillSelectedClusterHistograms() - Residual OK but (dR, dZ)= (%2.4f,%2.4f) no track associated WHAT? \n", dR,dZ); |
628 | ||
b5dbb99b | 629 | if(IsDataMC()) |
630 | { | |
f7d8e6b8 | 631 | Float_t mctag = -1; |
31ae6d59 | 632 | if ( !GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCConversion) ) |
633 | { | |
634 | if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0) || | |
08c09f10 | 635 | GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCEta) ) mctag = 2.5 ; |
5dde270e | 636 | else if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPhoton) ) mctag = 0.5 ; |
637 | else if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCElectron) ) mctag = 1.5 ; | |
638 | else mctag = 3.5 ; | |
31ae6d59 | 639 | |
640 | } | |
641 | else | |
642 | { | |
643 | if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0) || | |
08c09f10 | 644 | GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCEta) ) mctag = 6.5 ; |
5dde270e | 645 | else if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPhoton) ) mctag = 4.5 ; |
646 | else if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCElectron) ) mctag = 5.5 ; | |
647 | else mctag = 7.5 ; | |
648 | } | |
649 | ||
08c09f10 | 650 | fhTrackMatchedMCParticlePt ->Fill(pt, mctag); |
5dde270e | 651 | fhTrackMatchedMCParticleDEta->Fill(dZ, mctag); |
652 | fhTrackMatchedMCParticleDPhi->Fill(dR, mctag); | |
653 | ||
654 | } // MC | |
31ae6d59 | 655 | } |
85c4406e | 656 | }// Track matching histograms |
09273901 | 657 | |
85c4406e | 658 | if(IsDataMC()) |
b5dbb99b | 659 | { |
3455f821 | 660 | Int_t mcIndex = GetMCIndex(tag); |
34c16486 | 661 | |
08c09f10 | 662 | fhMCPtLambda0[mcIndex] ->Fill(pt, l0); |
663 | fhMCPtLambda1[mcIndex] ->Fill(pt, l1); | |
664 | fhMCPtDispersion[mcIndex] ->Fill(pt, disp); | |
665 | fhMCPtFracMaxCell[mcIndex]->Fill(pt,maxCellFraction); | |
34c16486 | 666 | |
08c09f10 | 667 | fhMCPtLambda0LocMax [mcIndex][indexMax]->Fill(pt,l0); |
668 | ||
4d1d8f00 | 669 | if(fCalorimeter=="EMCAL" && GetFirstSMCoveredByTRD() >= 0 && |
670 | GetModuleNumber(cluster) < GetFirstSMCoveredByTRD() ) | |
08c09f10 | 671 | fhMCPtLambda0NoTRD[mcIndex]->Fill(pt, l0 ); |
764ab1f4 | 672 | |
85c4406e | 673 | if(maxCellFraction < 0.5) |
08c09f10 | 674 | fhMCPtLambda0FracMaxCellCut[mcIndex]->Fill(pt, l0 ); |
34c16486 | 675 | |
764ab1f4 | 676 | if(fCalorimeter == "EMCAL" && !fFillOnlySimpleSSHisto) |
34c16486 | 677 | { |
08c09f10 | 678 | fhMCPtDispEta [mcIndex]-> Fill(pt,dEta); |
679 | fhMCPtDispPhi [mcIndex]-> Fill(pt,dPhi); | |
680 | fhMCPtSumEtaPhi [mcIndex]-> Fill(pt,sEtaPhi); | |
681 | fhMCPtDispEtaPhiDiff [mcIndex]-> Fill(pt,dPhi-dEta); | |
682 | if(dEta+dPhi>0)fhMCPtSphericity[mcIndex]-> Fill(pt,(dPhi-dEta)/(dEta+dPhi)); | |
85c4406e | 683 | |
bfdcf7fb | 684 | if (fAnaType==kSSCalo) |
685 | { | |
08c09f10 | 686 | fhMCAsymmetryLambda0[ptbin][mcIndex]->Fill(l0 ,asy); |
687 | fhMCAsymmetryDispEta[ptbin][mcIndex]->Fill(dEta,asy); | |
688 | fhMCAsymmetryDispPhi[ptbin][mcIndex]->Fill(dPhi,asy); | |
bfdcf7fb | 689 | } |
690 | ||
08c09f10 | 691 | fhMCDispEtaDispPhi[ptbin][mcIndex]->Fill(dEta,dPhi); |
692 | fhMCLambda0DispEta[ptbin][mcIndex]->Fill(l0 ,dEta); | |
693 | fhMCLambda0DispPhi[ptbin][mcIndex]->Fill(l0 ,dPhi); | |
34c16486 | 694 | |
695 | } | |
696 | ||
42d47cb7 | 697 | }//MC |
bfdcf7fb | 698 | |
42d47cb7 | 699 | } |
700 | ||
701 | //________________________________________________________ | |
702 | void AliAnaPi0EbE::FillWeightHistograms(AliVCluster *clus) | |
703 | { | |
704 | // Calculate weights and fill histograms | |
705 | ||
706 | if(!fFillWeightHistograms || GetMixedEvent()) return; | |
707 | ||
708 | AliVCaloCells* cells = 0; | |
709 | if(fCalorimeter == "EMCAL") cells = GetEMCALCells(); | |
710 | else cells = GetPHOSCells(); | |
711 | ||
712 | // First recalculate energy in case non linearity was applied | |
713 | Float_t energy = 0; | |
85c4406e | 714 | Float_t ampMax = 0; |
715 | for (Int_t ipos = 0; ipos < clus->GetNCells(); ipos++) | |
b5dbb99b | 716 | { |
42d47cb7 | 717 | |
718 | Int_t id = clus->GetCellsAbsId()[ipos]; | |
719 | ||
720 | //Recalibrate cell energy if needed | |
721 | Float_t amp = cells->GetCellAmplitude(id); | |
dbba06ca | 722 | GetCaloUtils()->RecalibrateCellAmplitude(amp,fCalorimeter, id); |
42d47cb7 | 723 | |
724 | energy += amp; | |
725 | ||
85c4406e | 726 | if(amp> ampMax) |
42d47cb7 | 727 | ampMax = amp; |
728 | ||
85c4406e | 729 | } // energy loop |
42d47cb7 | 730 | |
85c4406e | 731 | if(energy <=0 ) |
b5dbb99b | 732 | { |
42d47cb7 | 733 | printf("AliAnaPi0EbE::WeightHistograms()- Wrong calculated energy %f\n",energy); |
734 | return; | |
735 | } | |
736 | ||
737 | fhEMaxCellClusterRatio ->Fill(energy,ampMax/energy); | |
738 | fhEMaxCellClusterLogRatio->Fill(energy,TMath::Log(ampMax/energy)); | |
739 | ||
740 | //Get the ratio and log ratio to all cells in cluster | |
85c4406e | 741 | for (Int_t ipos = 0; ipos < clus->GetNCells(); ipos++) |
b5dbb99b | 742 | { |
42d47cb7 | 743 | Int_t id = clus->GetCellsAbsId()[ipos]; |
744 | ||
745 | //Recalibrate cell energy if needed | |
746 | Float_t amp = cells->GetCellAmplitude(id); | |
dbba06ca | 747 | GetCaloUtils()->RecalibrateCellAmplitude(amp,fCalorimeter, id); |
42d47cb7 | 748 | |
749 | fhECellClusterRatio ->Fill(energy,amp/energy); | |
750 | fhECellClusterLogRatio->Fill(energy,TMath::Log(amp/energy)); | |
85c4406e | 751 | } |
42d47cb7 | 752 | |
753 | //Recalculate shower shape for different W0 | |
754 | if(fCalorimeter=="EMCAL"){ | |
755 | ||
756 | Float_t l0org = clus->GetM02(); | |
757 | Float_t l1org = clus->GetM20(); | |
758 | Float_t dorg = clus->GetDispersion(); | |
759 | ||
b5dbb99b | 760 | for(Int_t iw = 0; iw < 14; iw++) |
761 | { | |
85c4406e | 762 | GetCaloUtils()->GetEMCALRecoUtils()->SetW0(1+iw*0.5); |
42d47cb7 | 763 | GetCaloUtils()->GetEMCALRecoUtils()->RecalculateClusterShowerShapeParameters(GetEMCALGeometry(), cells, clus); |
764 | ||
765 | fhLambda0ForW0[iw]->Fill(energy,clus->GetM02()); | |
1a72f6c5 | 766 | //fhLambda1ForW0[iw]->Fill(energy,clus->GetM20()); |
42d47cb7 | 767 | |
768 | } // w0 loop | |
769 | ||
770 | // Set the original values back | |
771 | clus->SetM02(l0org); | |
772 | clus->SetM20(l1org); | |
773 | clus->SetDispersion(dorg); | |
774 | ||
775 | }// EMCAL | |
776 | } | |
777 | ||
b5dbb99b | 778 | //__________________________________________ |
779 | TObjString * AliAnaPi0EbE::GetAnalysisCuts() | |
85c4406e | 780 | { |
0c1383b5 | 781 | //Save parameters used for analysis |
521636d2 | 782 | TString parList ; //this will be list of parameters used for this analysis. |
783 | const Int_t buffersize = 255; | |
784 | char onePar[buffersize] ; | |
785 | ||
786 | snprintf(onePar,buffersize,"--- AliAnaPi0EbE ---\n") ; | |
85c4406e | 787 | parList+=onePar ; |
521636d2 | 788 | snprintf(onePar,buffersize,"fAnaType=%d (Pi0 selection type) \n",fAnaType) ; |
789 | parList+=onePar ; | |
790 | ||
b5dbb99b | 791 | if(fAnaType == kSSCalo) |
792 | { | |
521636d2 | 793 | snprintf(onePar,buffersize,"Calorimeter: %s\n",fCalorimeter.Data()) ; |
794 | parList+=onePar ; | |
795 | snprintf(onePar,buffersize,"fMinDist =%2.2f (Minimal distance to bad channel to accept cluster) \n",fMinDist) ; | |
796 | parList+=onePar ; | |
797 | snprintf(onePar,buffersize,"fMinDist2=%2.2f (Cuts on Minimal distance to study acceptance evaluation) \n",fMinDist2) ; | |
798 | parList+=onePar ; | |
799 | snprintf(onePar,buffersize,"fMinDist3=%2.2f (One more cut on distance used for acceptance-efficiency study) \n",fMinDist3) ; | |
800 | parList+=onePar ; | |
801 | } | |
802 | ||
803 | //Get parameters set in base class. | |
804 | parList += GetBaseParametersList() ; | |
805 | ||
806 | //Get parameters set in PID class. | |
807 | if(fAnaType == kSSCalo) parList += GetCaloPID()->GetPIDParametersList() ; | |
808 | ||
809 | return new TObjString(parList) ; | |
0c1383b5 | 810 | } |
811 | ||
78a28af3 | 812 | //_____________________________________________ |
477d6cee | 813 | TList * AliAnaPi0EbE::GetCreateOutputObjects() |
85c4406e | 814 | { |
815 | // Create histograms to be saved in output file and | |
477d6cee | 816 | // store them in outputContainer |
85c4406e | 817 | TList * outputContainer = new TList() ; |
818 | outputContainer->SetName("Pi0EbEHistos") ; | |
477d6cee | 819 | |
745913ae | 820 | Int_t nptbins = GetHistogramRanges()->GetHistoPtBins(); Float_t ptmax = GetHistogramRanges()->GetHistoPtMax(); Float_t ptmin = GetHistogramRanges()->GetHistoPtMin(); |
821 | Int_t nphibins = GetHistogramRanges()->GetHistoPhiBins(); Float_t phimax = GetHistogramRanges()->GetHistoPhiMax(); Float_t phimin = GetHistogramRanges()->GetHistoPhiMin(); | |
822 | Int_t netabins = GetHistogramRanges()->GetHistoEtaBins(); Float_t etamax = GetHistogramRanges()->GetHistoEtaMax(); Float_t etamin = GetHistogramRanges()->GetHistoEtaMin(); | |
823 | Int_t ssbins = GetHistogramRanges()->GetHistoShowerShapeBins(); Float_t ssmax = GetHistogramRanges()->GetHistoShowerShapeMax(); Float_t ssmin = GetHistogramRanges()->GetHistoShowerShapeMin(); | |
824 | Int_t tdbins = GetHistogramRanges()->GetHistoDiffTimeBins() ; Float_t tdmax = GetHistogramRanges()->GetHistoDiffTimeMax(); Float_t tdmin = GetHistogramRanges()->GetHistoDiffTimeMin(); | |
825 | Int_t tbins = GetHistogramRanges()->GetHistoTimeBins() ; Float_t tmax = GetHistogramRanges()->GetHistoTimeMax(); Float_t tmin = GetHistogramRanges()->GetHistoTimeMin(); | |
85c4406e | 826 | Int_t nbins = GetHistogramRanges()->GetHistoNClusterCellBins(); Int_t nmax = GetHistogramRanges()->GetHistoNClusterCellMax(); Int_t nmin = GetHistogramRanges()->GetHistoNClusterCellMin(); |
827 | ||
828 | Int_t nmassbins = GetHistogramRanges()->GetHistoMassBins(); | |
829 | Float_t massmin = GetHistogramRanges()->GetHistoMassMin(); | |
b5dbb99b | 830 | Float_t massmax = GetHistogramRanges()->GetHistoMassMax(); |
831 | ||
85c4406e | 832 | Int_t nresetabins = GetHistogramRanges()->GetHistoTrackResidualEtaBins(); |
833 | Float_t resetamax = GetHistogramRanges()->GetHistoTrackResidualEtaMax(); | |
09273901 | 834 | Float_t resetamin = GetHistogramRanges()->GetHistoTrackResidualEtaMin(); |
85c4406e | 835 | Int_t nresphibins = GetHistogramRanges()->GetHistoTrackResidualPhiBins(); |
836 | Float_t resphimax = GetHistogramRanges()->GetHistoTrackResidualPhiMax(); | |
09273901 | 837 | Float_t resphimin = GetHistogramRanges()->GetHistoTrackResidualPhiMin(); |
838 | ||
85c4406e | 839 | Int_t ndedxbins = GetHistogramRanges()->GetHistodEdxBins(); |
840 | Float_t dedxmax = GetHistogramRanges()->GetHistodEdxMax(); | |
31ae6d59 | 841 | Float_t dedxmin = GetHistogramRanges()->GetHistodEdxMin(); |
85c4406e | 842 | Int_t nPoverEbins = GetHistogramRanges()->GetHistoPOverEBins(); |
843 | Float_t pOverEmax = GetHistogramRanges()->GetHistoPOverEMax(); | |
31ae6d59 | 844 | Float_t pOverEmin = GetHistogramRanges()->GetHistoPOverEMin(); |
845 | ||
5ba76d0d | 846 | Int_t ntimptbins = GetHistogramRanges()->GetHistoTimeBins(); |
847 | Float_t timemax = GetHistogramRanges()->GetHistoTimeMax(); | |
848 | Float_t timemin = GetHistogramRanges()->GetHistoTimeMin(); | |
2ad19c3d | 849 | |
5ba76d0d | 850 | TString nlm[] = {"1 Local Maxima","2 Local Maxima", "NLM > 2"}; |
851 | TString ptype[] = {"#gamma","#gamma->e^{#pm}","#pi^{0}","#eta","e^{#pm}", "hadron"}; | |
852 | TString pname[] = {"Photon","Conversion", "Pi0", "Eta", "Electron","Hadron"}; | |
d2655d46 | 853 | Int_t bin[] = {0,2,4,6,10,15,20,100}; // energy bins |
85c4406e | 854 | |
855 | fhPt = new TH1F("hPt","Number of identified #pi^{0} (#eta) decay",nptbins,ptmin,ptmax); | |
5ba76d0d | 856 | fhPt->SetYTitle("#it{N}"); |
857 | fhPt->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
85c4406e | 858 | outputContainer->Add(fhPt) ; |
09273901 | 859 | |
85c4406e | 860 | fhE = new TH1F("hE","Number of identified #pi^{0} (#eta) decay pairs",nptbins,ptmin,ptmax); |
5ba76d0d | 861 | fhE->SetYTitle("#it{N}"); |
862 | fhE->SetXTitle("#it{E} (GeV)"); | |
85c4406e | 863 | outputContainer->Add(fhE) ; |
09273901 | 864 | |
08c09f10 | 865 | fhPtPhi = new TH2F |
5ba76d0d | 866 | ("hPtPhi","Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #phi",nptbins,ptmin,ptmax, nphibins,phimin,phimax); |
08c09f10 | 867 | fhPtPhi->SetYTitle("#phi (rad)"); |
5ba76d0d | 868 | fhPtPhi->SetXTitle("#it{E} (GeV)"); |
08c09f10 | 869 | outputContainer->Add(fhPtPhi) ; |
09273901 | 870 | |
08c09f10 | 871 | fhPtEta = new TH2F |
5ba76d0d | 872 | ("hPtEta","Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #eta",nptbins,ptmin,ptmax,netabins,etamin,etamax); |
08c09f10 | 873 | fhPtEta->SetYTitle("#eta"); |
5ba76d0d | 874 | fhPtEta->SetXTitle("#it{E} (GeV)"); |
08c09f10 | 875 | outputContainer->Add(fhPtEta) ; |
85c4406e | 876 | |
09273901 | 877 | fhEtaPhi = new TH2F |
85c4406e | 878 | ("hEtaPhi","Selected #pi^{0} (#eta) pairs: #eta vs #phi",netabins,etamin,etamax, nphibins,phimin,phimax); |
b9947879 | 879 | fhEtaPhi->SetYTitle("#phi (rad)"); |
880 | fhEtaPhi->SetXTitle("#eta"); | |
85c4406e | 881 | outputContainer->Add(fhEtaPhi) ; |
09273901 | 882 | |
c2a62a94 | 883 | if(fCalorimeter=="EMCAL" && fFillEMCALBCHistograms) |
884 | { | |
885 | fhEtaPhiEMCALBC0 = new TH2F | |
5ba76d0d | 886 | ("hEtaPhiEMCALBC0","cluster, #it{E} > 2 GeV, #eta vs #phi, for clusters with |#it{t}| < 25 ns, EMCAL-BC=0",netabins,etamin,etamax,nphibins,phimin,phimax); |
c2a62a94 | 887 | fhEtaPhiEMCALBC0->SetYTitle("#phi (rad)"); |
888 | fhEtaPhiEMCALBC0->SetXTitle("#eta"); | |
889 | outputContainer->Add(fhEtaPhiEMCALBC0) ; | |
890 | ||
891 | fhEtaPhiEMCALBC1 = new TH2F | |
5ba76d0d | 892 | ("hEtaPhiEMCALBC1","cluster, #it{E} > 2 GeV, #eta vs #phi, for clusters with 25 < |#it{t}| < 75 ns, EMCAL-BC=1",netabins,etamin,etamax,nphibins,phimin,phimax); |
c2a62a94 | 893 | fhEtaPhiEMCALBC1->SetYTitle("#phi (rad)"); |
894 | fhEtaPhiEMCALBC1->SetXTitle("#eta"); | |
895 | outputContainer->Add(fhEtaPhiEMCALBC1) ; | |
896 | ||
897 | fhEtaPhiEMCALBCN = new TH2F | |
5ba76d0d | 898 | ("hEtaPhiEMCALBCN","cluster, #it{E} > 2 GeV, #eta vs #phi, for clusters with |#it{t}| > 75 ns, EMCAL-BC>1",netabins,etamin,etamax,nphibins,phimin,phimax); |
c2a62a94 | 899 | fhEtaPhiEMCALBCN->SetYTitle("#phi (rad)"); |
900 | fhEtaPhiEMCALBCN->SetXTitle("#eta"); | |
901 | outputContainer->Add(fhEtaPhiEMCALBCN) ; | |
902 | ||
afb3af8a | 903 | for(Int_t i = 0; i < 11; i++) |
c2a62a94 | 904 | { |
905 | fhEtaPhiTriggerEMCALBC[i] = new TH2F | |
906 | (Form("hEtaPhiTriggerEMCALBC%d",i-5), | |
5ba76d0d | 907 | Form("meson #it{E} > 2 GeV, #eta vs #phi, Trigger EMCAL-BC=%d",i-5), |
c2a62a94 | 908 | netabins,etamin,etamax,nphibins,phimin,phimax); |
909 | fhEtaPhiTriggerEMCALBC[i]->SetYTitle("#phi (rad)"); | |
910 | fhEtaPhiTriggerEMCALBC[i]->SetXTitle("#eta"); | |
911 | outputContainer->Add(fhEtaPhiTriggerEMCALBC[i]) ; | |
912 | ||
913 | fhTimeTriggerEMCALBC[i] = new TH2F | |
914 | (Form("hTimeTriggerEMCALBC%d",i-5), | |
5ba76d0d | 915 | Form("meson #it{t} vs #it{E}, Trigger EMCAL-BC=%d",i-5), |
08c09f10 | 916 | nptbins,ptmin,ptmax, ntimptbins,timemin,timemax); |
5ba76d0d | 917 | fhTimeTriggerEMCALBC[i]->SetXTitle("#it{E} (GeV)"); |
918 | fhTimeTriggerEMCALBC[i]->SetYTitle("#it{t} (ns)"); | |
c2a62a94 | 919 | outputContainer->Add(fhTimeTriggerEMCALBC[i]); |
920 | ||
921 | fhTimeTriggerEMCALBCPileUpSPD[i] = new TH2F | |
922 | (Form("hTimeTriggerEMCALBC%dPileUpSPD",i-5), | |
5ba76d0d | 923 | Form("meson #it{t} vs #it{E}, Trigger EMCAL-BC=%d",i-5), |
08c09f10 | 924 | nptbins,ptmin,ptmax, ntimptbins,timemin,timemax); |
5ba76d0d | 925 | fhTimeTriggerEMCALBCPileUpSPD[i]->SetXTitle("#it{E} (GeV)"); |
926 | fhTimeTriggerEMCALBCPileUpSPD[i]->SetYTitle("#it{t} (ns)"); | |
c2a62a94 | 927 | outputContainer->Add(fhTimeTriggerEMCALBCPileUpSPD[i]); |
afb3af8a | 928 | |
929 | fhEtaPhiTriggerEMCALBCUM[i] = new TH2F | |
930 | (Form("hEtaPhiTriggerEMCALBC%d_UnMatch",i-5), | |
5ba76d0d | 931 | Form("meson #it{E} > 2 GeV, #eta vs #phi, unmatched trigger EMCAL-BC=%d",i-5), |
afb3af8a | 932 | netabins,etamin,etamax,nphibins,phimin,phimax); |
933 | fhEtaPhiTriggerEMCALBCUM[i]->SetYTitle("#phi (rad)"); | |
934 | fhEtaPhiTriggerEMCALBCUM[i]->SetXTitle("#eta"); | |
935 | outputContainer->Add(fhEtaPhiTriggerEMCALBCUM[i]) ; | |
936 | ||
937 | fhTimeTriggerEMCALBCUM[i] = new TH2F | |
938 | (Form("hTimeTriggerEMCALBC%d_UnMatch",i-5), | |
5ba76d0d | 939 | Form("meson #it{t} vs #it{E}, unmatched trigger EMCAL-BC=%d",i-5), |
08c09f10 | 940 | nptbins,ptmin,ptmax, ntimptbins,timemin,timemax); |
5ba76d0d | 941 | fhTimeTriggerEMCALBCUM[i]->SetXTitle("#it{E} (GeV)"); |
942 | fhTimeTriggerEMCALBCUM[i]->SetYTitle("#it{t} (ns)"); | |
afb3af8a | 943 | outputContainer->Add(fhTimeTriggerEMCALBCUM[i]); |
85c4406e | 944 | |
c2a62a94 | 945 | } |
126b8c62 | 946 | |
947 | fhTimeTriggerEMCALBC0UMReMatchOpenTime = new TH2F("hTimeTriggerBC0_UnMatch_ReMatch_OpenTime", | |
5ba76d0d | 948 | "cluster #it{t} vs #it{E} of clusters, no match, rematch open time", |
08c09f10 | 949 | nptbins,ptmin,ptmax, ntimptbins,timemin,timemax); |
5ba76d0d | 950 | fhTimeTriggerEMCALBC0UMReMatchOpenTime->SetXTitle("#it{E} (GeV)"); |
951 | fhTimeTriggerEMCALBC0UMReMatchOpenTime->SetYTitle("#it{t} (ns)"); | |
126b8c62 | 952 | outputContainer->Add(fhTimeTriggerEMCALBC0UMReMatchOpenTime); |
953 | ||
954 | ||
955 | fhTimeTriggerEMCALBC0UMReMatchCheckNeigh = new TH2F("hTimeTriggerBC0_UnMatch_ReMatch_CheckNeighbours", | |
5ba76d0d | 956 | "cluster #it{t} vs #it{E} of clusters, no match, rematch with neigbour parches", |
08c09f10 | 957 | nptbins,ptmin,ptmax, ntimptbins,timemin,timemax); |
5ba76d0d | 958 | fhTimeTriggerEMCALBC0UMReMatchCheckNeigh->SetXTitle("#it{E} (GeV)"); |
959 | fhTimeTriggerEMCALBC0UMReMatchCheckNeigh->SetYTitle("#it{t} (ns)"); | |
126b8c62 | 960 | outputContainer->Add(fhTimeTriggerEMCALBC0UMReMatchCheckNeigh); |
961 | ||
962 | fhTimeTriggerEMCALBC0UMReMatchBoth = new TH2F("hTimeTriggerBC0_UnMatch_ReMatch_Both", | |
5ba76d0d | 963 | "cluster #it{t} vs #it{E} of clusters, no match, rematch open time and neigbour", |
08c09f10 | 964 | nptbins,ptmin,ptmax, ntimptbins,timemin,timemax); |
5ba76d0d | 965 | fhTimeTriggerEMCALBC0UMReMatchBoth->SetXTitle("#it{E} (GeV)"); |
966 | fhTimeTriggerEMCALBC0UMReMatchBoth->SetYTitle("#it{t} (ns)"); | |
126b8c62 | 967 | outputContainer->Add(fhTimeTriggerEMCALBC0UMReMatchBoth); |
968 | ||
c2a62a94 | 969 | } |
970 | ||
5ba76d0d | 971 | fhPtCentrality = new TH2F("hPtCentrality","centrality vs #it{p}_{T}",nptbins,ptmin,ptmax, 100,0,100); |
c8710850 | 972 | fhPtCentrality->SetYTitle("centrality"); |
5ba76d0d | 973 | fhPtCentrality->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
c8710850 | 974 | outputContainer->Add(fhPtCentrality) ; |
975 | ||
5ba76d0d | 976 | fhPtEventPlane = new TH2F("hPtEventPlane","event plane angle vs #it{p}_{T}",nptbins,ptmin,ptmax, 100,0,TMath::Pi()); |
c8710850 | 977 | fhPtEventPlane->SetYTitle("Event plane angle (rad)"); |
5ba76d0d | 978 | fhPtEventPlane->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
c8710850 | 979 | outputContainer->Add(fhPtEventPlane) ; |
980 | ||
40d3ce60 | 981 | if(fAnaType == kSSCalo) |
982 | { | |
85c4406e | 983 | fhPtReject = new TH1F("hPtReject","Number of rejected as #pi^{0} (#eta) decay",nptbins,ptmin,ptmax); |
5ba76d0d | 984 | fhPtReject->SetYTitle("#it{N}"); |
985 | fhPtReject->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
85c4406e | 986 | outputContainer->Add(fhPtReject) ; |
40d3ce60 | 987 | |
85c4406e | 988 | fhEReject = new TH1F("hEReject","Number of rejected as #pi^{0} (#eta) decay pairs",nptbins,ptmin,ptmax); |
5ba76d0d | 989 | fhEReject->SetYTitle("#it{N}"); |
990 | fhEReject->SetXTitle("#it{E} (GeV)"); | |
85c4406e | 991 | outputContainer->Add(fhEReject) ; |
40d3ce60 | 992 | |
08c09f10 | 993 | fhPtPhiReject = new TH2F |
5ba76d0d | 994 | ("hPtPhiReject","Rejected #pi^{0} (#eta) cluster: #it{p}_{T} vs #phi",nptbins,ptmin,ptmax, nphibins,phimin,phimax); |
08c09f10 | 995 | fhPtPhiReject->SetYTitle("#phi (rad)"); |
5ba76d0d | 996 | fhPtPhiReject->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 997 | outputContainer->Add(fhPtPhiReject) ; |
40d3ce60 | 998 | |
08c09f10 | 999 | fhPtEtaReject = new TH2F |
5ba76d0d | 1000 | ("hPtEtaReject","Rejected #pi^{0} (#eta) cluster: #it{p}_{T} vs #eta",nptbins,ptmin,ptmax,netabins,etamin,etamax); |
08c09f10 | 1001 | fhPtEtaReject->SetYTitle("#eta"); |
5ba76d0d | 1002 | fhPtEtaReject->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1003 | outputContainer->Add(fhPtEtaReject) ; |
40d3ce60 | 1004 | |
1005 | fhEtaPhiReject = new TH2F | |
85c4406e | 1006 | ("hEtaPhiReject","Rejected #pi^{0} (#eta) cluster: #eta vs #phi",netabins,etamin,etamax, nphibins,phimin,phimax); |
40d3ce60 | 1007 | fhEtaPhiReject->SetYTitle("#phi (rad)"); |
1008 | fhEtaPhiReject->SetXTitle("#eta"); | |
85c4406e | 1009 | outputContainer->Add(fhEtaPhiReject) ; |
40d3ce60 | 1010 | } |
1011 | ||
f02db2c0 | 1012 | fhMass = new TH2F |
5ba76d0d | 1013 | ("hMass","all pairs #it{M}: #it{E} vs #it{M}",nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
1014 | fhMass->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1015 | fhMass->SetXTitle("#it{E} (GeV)"); | |
85c4406e | 1016 | outputContainer->Add(fhMass) ; |
f02db2c0 | 1017 | |
1018 | fhSelectedMass = new TH2F | |
5ba76d0d | 1019 | ("hSelectedMass","Selected #pi^{0} (#eta) pairs #it{M}: E vs #it{M}",nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
1020 | fhSelectedMass->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1021 | fhSelectedMass->SetXTitle("#it{E} (GeV)"); | |
85c4406e | 1022 | outputContainer->Add(fhSelectedMass) ; |
1023 | ||
08c09f10 | 1024 | if(fAnaType == kSSCalo) |
1253480f | 1025 | { |
08c09f10 | 1026 | |
1027 | fhMassPt = new TH2F | |
5ba76d0d | 1028 | ("hMassPt","all pairs #it{M}: #it{p}_{T} vs #it{M}",nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
1029 | fhMassPt->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1030 | fhMassPt->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
08c09f10 | 1031 | outputContainer->Add(fhMassPt) ; |
1032 | ||
1033 | fhSelectedMassPt = new TH2F | |
5ba76d0d | 1034 | ("hSelectedMassPt","Selected #pi^{0} (#eta) pairs #it{M}: #it{p}_{T} vs #it{M}",nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
1035 | fhSelectedMassPt->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1036 | fhSelectedMassPt->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
08c09f10 | 1037 | outputContainer->Add(fhSelectedMassPt) ; |
1038 | ||
1039 | for(Int_t inlm = 0; inlm < 3; inlm++) | |
1040 | { | |
1041 | fhMassPtLocMax[inlm] = new TH2F | |
5ba76d0d | 1042 | (Form("hMassPtNLocMax%d",inlm+1),Form("all pairs #it{M}: #it{p}_{T} vs #it{M} and NLM=%s",nlm[inlm].Data()),nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
1043 | fhMassPtLocMax[inlm]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1044 | fhMassPtLocMax[inlm]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
08c09f10 | 1045 | outputContainer->Add(fhMassPtLocMax[inlm]) ; |
1046 | ||
1047 | fhSelectedMassPtLocMax[inlm] = new TH2F | |
5ba76d0d | 1048 | (Form("hSelectedMassPtLocMax%d",inlm+1),Form("Selected #pi^{0} (#eta) pairs #it{M}: #it{p}_{T} vs #it{M}, NLM=%s",nlm[inlm].Data()),nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
1049 | fhSelectedMassPtLocMax[inlm]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1050 | fhSelectedMassPtLocMax[inlm]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
08c09f10 | 1051 | outputContainer->Add(fhSelectedMassPtLocMax[inlm]) ; |
1052 | ||
9f48b3f0 | 1053 | for(Int_t iSM = 0; iSM < GetCaloUtils()->GetNumberOfSuperModulesUsed(); iSM++) |
9605388f | 1054 | { |
1055 | fhSelectedMassPtLocMaxSM[inlm][iSM] = new TH2F | |
5ba76d0d | 1056 | (Form("hSelectedMassPtLocMax%d_SM%d",inlm+1,iSM),Form("Selected #pi^{0} (#eta) pairs #it{M}: #it{p}_{T} vs #it{M}, NLM=%s for SM=%d",nlm[inlm].Data(),iSM),nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
1057 | fhSelectedMassPtLocMaxSM[inlm][iSM]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1058 | fhSelectedMassPtLocMaxSM[inlm][iSM]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
9605388f | 1059 | outputContainer->Add(fhSelectedMassPtLocMaxSM[inlm][iSM]) ; |
1060 | ||
1061 | fhSelectedLambda0PtLocMaxSM[inlm][iSM] = new TH2F | |
5ba76d0d | 1062 | (Form("hSelectedLambda0PtLocMax%d_SM%d",inlm+1,iSM),Form("Selected #pi^{0} (#eta) pairs #lambda_{0}^{2}: #it{p}_{T} vs #it{M}, NLM=%s for SM=%d",nlm[inlm].Data(),iSM),nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
9605388f | 1063 | fhSelectedLambda0PtLocMaxSM[inlm][iSM]->SetYTitle("#lambda_{0}^{2}"); |
5ba76d0d | 1064 | fhSelectedLambda0PtLocMaxSM[inlm][iSM]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
9605388f | 1065 | outputContainer->Add(fhSelectedLambda0PtLocMaxSM[inlm][iSM]) ; |
1066 | } | |
1067 | ||
08c09f10 | 1068 | if(IsDataMC()) |
1069 | { | |
1070 | for(Int_t ipart = 0; ipart < 6; ipart++) | |
1071 | { | |
1072 | fhMCSelectedMassPtLocMax[ipart][inlm] = new TH2F | |
1073 | (Form("hSelectedMassPtLocMax%d_MC%s",inlm+1,pname[ipart].Data()), | |
5ba76d0d | 1074 | Form("Selected #pi^{0} (#eta) pairs #it{M}: #it{p}_{T} vs #it{M}, NLM=%s, %s",nlm[inlm].Data(),pname[ipart].Data()), |
08c09f10 | 1075 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 1076 | fhMCSelectedMassPtLocMax[ipart][inlm]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
1077 | fhMCSelectedMassPtLocMax[ipart][inlm]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
08c09f10 | 1078 | outputContainer->Add(fhMCSelectedMassPtLocMax[ipart][inlm]) ; |
1079 | } | |
1080 | } | |
1081 | } | |
1082 | ||
1083 | if(IsDataMC()) | |
1084 | { | |
1085 | fhMassNoOverlap = new TH2F | |
5ba76d0d | 1086 | ("hMassNoOverlap","all pairs #it{M}: #it{E} vs #it{M}, no overlap",nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
1087 | fhMassNoOverlap->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1088 | fhMassNoOverlap->SetXTitle("#it{E} (GeV)"); | |
08c09f10 | 1089 | outputContainer->Add(fhMassNoOverlap) ; |
1090 | ||
1091 | fhSelectedMassNoOverlap = new TH2F | |
5ba76d0d | 1092 | ("hSelectedMassNoOverlap","Selected #pi^{0} (#eta) pairs #it{M}: #it{E} vs #it{M}, no overlap",nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
1093 | fhSelectedMassNoOverlap->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1094 | fhSelectedMassNoOverlap->SetXTitle("#it{E} (GeV)"); | |
08c09f10 | 1095 | outputContainer->Add(fhSelectedMassNoOverlap) ; |
1096 | ||
1097 | fhMassPtNoOverlap = new TH2F | |
5ba76d0d | 1098 | ("hMassPtNoOverlap","all pairs #it{M}: #it{p}_{T} vs #it{M}, no overlap",nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
1099 | fhMassPtNoOverlap->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1100 | fhMassPtNoOverlap->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
08c09f10 | 1101 | outputContainer->Add(fhMassPtNoOverlap) ; |
1102 | ||
1103 | fhSelectedMassPtNoOverlap = new TH2F | |
5ba76d0d | 1104 | ("hSelectedMassPtNoOverlap","Selected #pi^{0} (#eta) pairs #it{M}: #it{p}_{T} vs #it{M}, no overlap",nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
1105 | fhSelectedMassPtNoOverlap->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1106 | fhSelectedMassPtNoOverlap->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
08c09f10 | 1107 | outputContainer->Add(fhSelectedMassPtNoOverlap) ; |
1108 | } | |
1253480f | 1109 | } |
85c4406e | 1110 | |
34c16486 | 1111 | if(fAnaType != kSSCalo) |
1112 | { | |
85c4406e | 1113 | fhPtDecay = new TH1F("hPtDecay","Number of identified #pi^{0} (#eta) decay photons",nptbins,ptmin,ptmax); |
5ba76d0d | 1114 | fhPtDecay->SetYTitle("#it{N}"); |
1115 | fhPtDecay->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
85c4406e | 1116 | outputContainer->Add(fhPtDecay) ; |
34c16486 | 1117 | |
85c4406e | 1118 | fhEDecay = new TH1F("hEDecay","Number of identified #pi^{0} (#eta) decay photons",nptbins,ptmin,ptmax); |
5ba76d0d | 1119 | fhEDecay->SetYTitle("#it{N}"); |
1120 | fhEDecay->SetXTitle("#it{E} (GeV)"); | |
85c4406e | 1121 | outputContainer->Add(fhEDecay) ; |
34c16486 | 1122 | } |
57b97dc6 | 1123 | |
c4a7d28a | 1124 | //////// |
57b97dc6 | 1125 | |
34c16486 | 1126 | if( fFillSelectClHisto ) |
b5dbb99b | 1127 | { |
08c09f10 | 1128 | fhPtDispersion = new TH2F |
5ba76d0d | 1129 | ("hPtDispersion","Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs dispersion",nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1130 | fhPtDispersion->SetYTitle("D^{2}"); |
5ba76d0d | 1131 | fhPtDispersion->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1132 | outputContainer->Add(fhPtDispersion) ; |
1133 | ||
1134 | fhPtLambda0 = new TH2F | |
5ba76d0d | 1135 | ("hPtLambda0","Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #lambda_{0}",nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1136 | fhPtLambda0->SetYTitle("#lambda_{0}^{2}"); |
5ba76d0d | 1137 | fhPtLambda0->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1138 | outputContainer->Add(fhPtLambda0) ; |
1139 | ||
1140 | fhPtLambda1 = new TH2F | |
5ba76d0d | 1141 | ("hPtLambda1","Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #lambda_{1}",nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1142 | fhPtLambda1->SetYTitle("#lambda_{1}^{2}"); |
5ba76d0d | 1143 | fhPtLambda1->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1144 | outputContainer->Add(fhPtLambda1) ; |
1145 | ||
1146 | fhPtLambda0FracMaxCellCut = new TH2F | |
5ba76d0d | 1147 | ("hPtLambda0FracMaxCellCut","Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #lambda_{0}, Max cell fraction of energy < 0.5",nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1148 | fhPtLambda0FracMaxCellCut->SetYTitle("#lambda_{0}^{2}"); |
5ba76d0d | 1149 | fhPtLambda0FracMaxCellCut->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1150 | outputContainer->Add(fhPtLambda0FracMaxCellCut) ; |
1151 | ||
1152 | fhPtFracMaxCell = new TH2F | |
5ba76d0d | 1153 | ("hPtFracMaxCell","Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #lambda_{0}, Max cell fraction of energy",nptbins,ptmin,ptmax,100,0,1); |
08c09f10 | 1154 | fhPtFracMaxCell->SetYTitle("Fraction"); |
5ba76d0d | 1155 | fhPtFracMaxCell->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1156 | outputContainer->Add(fhPtFracMaxCell) ; |
5c46c992 | 1157 | |
4d1d8f00 | 1158 | if(fCalorimeter=="EMCAL" && GetFirstSMCoveredByTRD() >=0 ) |
06e81356 | 1159 | { |
08c09f10 | 1160 | fhPtLambda0NoTRD = new TH2F |
5ba76d0d | 1161 | ("hPtLambda0NoTRD","Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #lambda_{0}, not behind TRD",nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1162 | fhPtLambda0NoTRD->SetYTitle("#lambda_{0}^{2}"); |
5ba76d0d | 1163 | fhPtLambda0NoTRD->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1164 | outputContainer->Add(fhPtLambda0NoTRD) ; |
1165 | ||
1166 | fhPtFracMaxCellNoTRD = new TH2F | |
5ba76d0d | 1167 | ("hPtFracMaxCellNoTRD","Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #lambda_{0}, Max cell fraction of energy, not behind TRD",nptbins,ptmin,ptmax,100,0,1); |
08c09f10 | 1168 | fhPtFracMaxCellNoTRD->SetYTitle("Fraction"); |
5ba76d0d | 1169 | fhPtFracMaxCellNoTRD->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1170 | outputContainer->Add(fhPtFracMaxCellNoTRD) ; |
34c16486 | 1171 | |
764ab1f4 | 1172 | if(!fFillOnlySimpleSSHisto) |
34c16486 | 1173 | { |
5ba76d0d | 1174 | fhPtDispEta = new TH2F ("hPtDispEta","#sigma^{2}_{#eta #eta} = #Sigma w_{i}(#eta_{i} - <#eta>)^{2}/ #Sigma w_{i} vs #it{p}_{T}", nptbins,ptmin,ptmax, ssbins,ssmin,ssmax); |
1175 | fhPtDispEta->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
08c09f10 | 1176 | fhPtDispEta->SetYTitle("#sigma^{2}_{#eta #eta}"); |
1177 | outputContainer->Add(fhPtDispEta); | |
1178 | ||
5ba76d0d | 1179 | fhPtDispPhi = new TH2F ("hPtDispPhi","#sigma^{2}_{#phi #phi} = #Sigma w_{i}(#phi_{i} - <#phi>)^{2} / #Sigma w_{i} vs #it{p}_{T}", nptbins,ptmin,ptmax, ssbins,ssmin,ssmax); |
1180 | fhPtDispPhi->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
08c09f10 | 1181 | fhPtDispPhi->SetYTitle("#sigma^{2}_{#phi #phi}"); |
1182 | outputContainer->Add(fhPtDispPhi); | |
1183 | ||
5ba76d0d | 1184 | fhPtSumEta = new TH2F ("hPtSumEta","#sigma^{2}_{#eta #eta} = #Sigma w_{i}(#eta_{i})^{2} / #Sigma w_{i} - <#eta>^{2} vs #it{p}_{T}", nptbins,ptmin,ptmax, ssbins,ssmin,ssmax); |
1185 | fhPtSumEta->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
08c09f10 | 1186 | fhPtSumEta->SetYTitle("#delta^{2}_{#eta #eta}"); |
1187 | outputContainer->Add(fhPtSumEta); | |
1188 | ||
5ba76d0d | 1189 | fhPtSumPhi = new TH2F ("hPtSumPhi","#sigma^{2}_{#phi #phi} = #Sigma w_{i}(#phi_{i})^{2}/ #Sigma w_{i} - <#phi>^{2} vs #it{p}_{T}", |
85c4406e | 1190 | nptbins,ptmin,ptmax, ssbins,ssmin,ssmax); |
5ba76d0d | 1191 | fhPtSumPhi->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1192 | fhPtSumPhi->SetYTitle("#delta^{2}_{#phi #phi}"); |
1193 | outputContainer->Add(fhPtSumPhi); | |
764ab1f4 | 1194 | |
5ba76d0d | 1195 | fhPtSumEtaPhi = new TH2F ("hPtSumEtaPhi","#delta^{2}_{#eta #phi} = #Sigma w_{i}(#phi_{i} #eta_{i} ) / #Sigma w_{i} - <#phi><#eta> vs #it{p}_{T}", |
85c4406e | 1196 | nptbins,ptmin,ptmax, 2*ssbins,-ssmax,ssmax); |
5ba76d0d | 1197 | fhPtSumEtaPhi->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1198 | fhPtSumEtaPhi->SetYTitle("#delta^{2}_{#eta #phi}"); |
1199 | outputContainer->Add(fhPtSumEtaPhi); | |
bfdcf7fb | 1200 | |
5ba76d0d | 1201 | fhPtDispEtaPhiDiff = new TH2F ("hPtDispEtaPhiDiff","#sigma^{2}_{#phi #phi} - #sigma^{2}_{#eta #eta} vs #it{p}_{T}", |
85c4406e | 1202 | nptbins,ptmin,ptmax,200, -10,10); |
5ba76d0d | 1203 | fhPtDispEtaPhiDiff->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1204 | fhPtDispEtaPhiDiff->SetYTitle("#sigma^{2}_{#phi #phi}-#sigma^{2}_{#eta #eta}"); |
1205 | outputContainer->Add(fhPtDispEtaPhiDiff); | |
bfdcf7fb | 1206 | |
5ba76d0d | 1207 | fhPtSphericity = new TH2F ("hPtSphericity","(#sigma^{2}_{#phi #phi} - #sigma^{2}_{#eta #eta}) / (#sigma^{2}_{#eta #eta} + #sigma^{2}_{#phi #phi}) vs #it{p}_{T} (GeV/#it{c})", |
85c4406e | 1208 | nptbins,ptmin,ptmax, 200, -1,1); |
5ba76d0d | 1209 | fhPtSphericity->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1210 | fhPtSphericity->SetYTitle("s = (#sigma^{2}_{#phi #phi} - #sigma^{2}_{#eta #eta}) / (#sigma^{2}_{#eta #eta} + #sigma^{2}_{#phi #phi})"); |
1211 | outputContainer->Add(fhPtSphericity); | |
bfdcf7fb | 1212 | |
764ab1f4 | 1213 | for(Int_t i = 0; i < 7; i++) |
1214 | { | |
85c4406e | 1215 | fhDispEtaDispPhi[i] = new TH2F (Form("hDispEtaDispPhi_EBin%d",i),Form("#sigma^{2}_{#phi #phi} vs #sigma^{2}_{#eta #eta} for %d < E < %d GeV",bin[i],bin[i+1]), |
1216 | ssbins,ssmin,ssmax , ssbins,ssmin,ssmax); | |
764ab1f4 | 1217 | fhDispEtaDispPhi[i]->SetXTitle("#sigma^{2}_{#eta #eta}"); |
1218 | fhDispEtaDispPhi[i]->SetYTitle("#sigma^{2}_{#phi #phi}"); | |
85c4406e | 1219 | outputContainer->Add(fhDispEtaDispPhi[i]); |
764ab1f4 | 1220 | |
85c4406e | 1221 | fhLambda0DispEta[i] = new TH2F (Form("hLambda0DispEta_EBin%d",i),Form("#lambda^{2}_{0} vs #sigma^{2}_{#eta #eta} for %d < E < %d GeV",bin[i],bin[i+1]), |
1222 | ssbins,ssmin,ssmax , ssbins,ssmin,ssmax); | |
764ab1f4 | 1223 | fhLambda0DispEta[i]->SetXTitle("#lambda^{2}_{0}"); |
1224 | fhLambda0DispEta[i]->SetYTitle("#sigma^{2}_{#eta #eta}"); | |
85c4406e | 1225 | outputContainer->Add(fhLambda0DispEta[i]); |
764ab1f4 | 1226 | |
85c4406e | 1227 | fhLambda0DispPhi[i] = new TH2F (Form("hLambda0DispPhi_EBin%d",i),Form("#lambda^{2}_{0}} vs #sigma^{2}_{#phi #phi} for %d < E < %d GeV",bin[i],bin[i+1]), |
1228 | ssbins,ssmin,ssmax , ssbins,ssmin,ssmax); | |
764ab1f4 | 1229 | fhLambda0DispPhi[i]->SetXTitle("#lambda^{2}_{0}"); |
1230 | fhLambda0DispPhi[i]->SetYTitle("#sigma^{2}_{#phi #phi}"); | |
85c4406e | 1231 | outputContainer->Add(fhLambda0DispPhi[i]); |
764ab1f4 | 1232 | |
1233 | } | |
34c16486 | 1234 | } |
85c4406e | 1235 | } |
08c09f10 | 1236 | |
1237 | fhNLocMaxPt = new TH2F("hNLocMaxPt","Number of local maxima in cluster, selected clusters", | |
1238 | nptbins,ptmin,ptmax,20,0,20); | |
1239 | fhNLocMaxPt ->SetYTitle("N maxima"); | |
5ba76d0d | 1240 | fhNLocMaxPt ->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1241 | outputContainer->Add(fhNLocMaxPt) ; |
1242 | ||
9f48b3f0 | 1243 | for(Int_t iSM = 0; iSM < GetCaloUtils()->GetNumberOfSuperModulesUsed(); iSM++) |
2dc84d31 | 1244 | { |
1245 | fhNLocMaxPtSM[iSM] = new TH2F(Form("hNLocMaxPt_SM%d",iSM),Form("Number of local maxima in cluster, selected clusters in SM %d",iSM), | |
1246 | nptbins,ptmin,ptmax,20,0,20); | |
1247 | fhNLocMaxPtSM[iSM] ->SetYTitle("N maxima"); | |
5ba76d0d | 1248 | fhNLocMaxPtSM[iSM] ->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
2dc84d31 | 1249 | outputContainer->Add(fhNLocMaxPtSM[iSM]) ; |
1250 | } | |
1251 | ||
6e66993c | 1252 | if(fAnaType == kSSCalo) |
1253 | { | |
3a4c49b7 | 1254 | |
1255 | fhNLocMaxPtReject = new TH2F("hNLocMaxPtReject","Number of local maxima in cluster, rejected clusters", | |
08c09f10 | 1256 | nptbins,ptmin,ptmax,20,0,20); |
3a4c49b7 | 1257 | fhNLocMaxPtReject ->SetYTitle("N maxima"); |
5ba76d0d | 1258 | fhNLocMaxPtReject ->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
3a4c49b7 | 1259 | outputContainer->Add(fhNLocMaxPtReject) ; |
6e66993c | 1260 | } |
521636d2 | 1261 | |
85c4406e | 1262 | for (Int_t i = 0; i < 3; i++) |
34c16486 | 1263 | { |
08c09f10 | 1264 | fhPtLambda0LocMax[i] = new TH2F(Form("hPtLambda0LocMax%d",i+1), |
5ba76d0d | 1265 | Form("Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #lambda_{0}, NLM=%s",nlm[i].Data()), |
85c4406e | 1266 | nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1267 | fhPtLambda0LocMax[i]->SetYTitle("#lambda_{0}^{2}"); |
5ba76d0d | 1268 | fhPtLambda0LocMax[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1269 | outputContainer->Add(fhPtLambda0LocMax[i]) ; |
1270 | ||
1271 | if(IsDataMC()) | |
1272 | { | |
1273 | for(Int_t ipart = 0; ipart < 6; ipart++) | |
1274 | { | |
1275 | fhMCPtLambda0LocMax[ipart][i] = new TH2F | |
1276 | (Form("hPtLambda0LocMax%d_MC%s",i+1,pname[ipart].Data()), | |
5ba76d0d | 1277 | Form("Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #lambda_{0}, NLM=%s, MC %s",nlm[i].Data(),pname[ipart].Data()), |
08c09f10 | 1278 | nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
1279 | fhMCPtLambda0LocMax[ipart][i]->SetYTitle("#lambda_{0}^{2}"); | |
5ba76d0d | 1280 | fhMCPtLambda0LocMax[ipart][i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1281 | outputContainer->Add(fhMCPtLambda0LocMax[ipart][i]) ; |
1282 | } | |
1283 | } | |
34c16486 | 1284 | |
08c09f10 | 1285 | fhPtLambda1LocMax[i] = new TH2F(Form("hPtLambda1LocMax%d",i+1), |
5ba76d0d | 1286 | Form("Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #lambda_{1}, %s",nlm[i].Data()), |
85c4406e | 1287 | nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1288 | fhPtLambda1LocMax[i]->SetYTitle("#lambda_{1}^{2}"); |
5ba76d0d | 1289 | fhPtLambda1LocMax[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1290 | outputContainer->Add(fhPtLambda1LocMax[i]) ; |
34c16486 | 1291 | |
08c09f10 | 1292 | fhPtDispersionLocMax[i] = new TH2F(Form("hPtDispersionLocMax%d",i+1), |
5ba76d0d | 1293 | Form("Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs dispersion^{2}, %s",nlm[i].Data()), |
85c4406e | 1294 | nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1295 | fhPtDispersionLocMax[i]->SetYTitle("dispersion^{2}"); |
5ba76d0d | 1296 | fhPtDispersionLocMax[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1297 | outputContainer->Add(fhPtDispersionLocMax[i]) ; |
34c16486 | 1298 | |
764ab1f4 | 1299 | if(fCalorimeter == "EMCAL" && !fFillOnlySimpleSSHisto) |
34c16486 | 1300 | { |
08c09f10 | 1301 | fhPtDispEtaLocMax[i] = new TH2F(Form("hPtDispEtaLocMax%d",i+1), |
5ba76d0d | 1302 | Form("Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #sigma_{#eta #eta}, %s",nlm[i].Data()), |
85c4406e | 1303 | nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1304 | fhPtDispEtaLocMax[i]->SetYTitle("#sigma_{#eta #eta}"); |
5ba76d0d | 1305 | fhPtDispEtaLocMax[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1306 | outputContainer->Add(fhPtDispEtaLocMax[i]) ; |
34c16486 | 1307 | |
08c09f10 | 1308 | fhPtDispPhiLocMax[i] = new TH2F(Form("hPtDispPhiLocMax%d",i+1), |
5ba76d0d | 1309 | Form("Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #sigma_{#phi #phi}, %s",nlm[i].Data()), |
85c4406e | 1310 | nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1311 | fhPtDispPhiLocMax[i]->SetYTitle("#sigma_{#phi #phi}"); |
5ba76d0d | 1312 | fhPtDispPhiLocMax[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1313 | outputContainer->Add(fhPtDispPhiLocMax[i]) ; |
34c16486 | 1314 | |
08c09f10 | 1315 | fhPtSumEtaPhiLocMax[i] = new TH2F(Form("hPtSumEtaPhiLocMax%d",i+1), |
5ba76d0d | 1316 | Form("Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #sigma_{#eta #phi}, %s",nlm[i].Data()), |
85c4406e | 1317 | nptbins,ptmin,ptmax,2*ssbins,-ssmax,ssmax); |
08c09f10 | 1318 | fhPtSumEtaPhiLocMax[i]->SetYTitle("#sigma_{#eta #phi}"); |
5ba76d0d | 1319 | fhPtSumEtaPhiLocMax[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1320 | outputContainer->Add(fhPtSumEtaPhiLocMax[i]) ; |
34c16486 | 1321 | |
08c09f10 | 1322 | fhPtDispEtaPhiDiffLocMax[i] = new TH2F(Form("hPtDispEtaPhiDiffLocMax%d",i+1), |
5ba76d0d | 1323 | Form("Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #sigma_{#phi #phi} - #sigma_{#eta #eta}, %s",nlm[i].Data()), |
85c4406e | 1324 | nptbins,ptmin,ptmax,200, -10,10); |
08c09f10 | 1325 | fhPtDispEtaPhiDiffLocMax[i]->SetYTitle("#sigma_{#phi #phi} - #sigma_{#eta #eta}"); |
5ba76d0d | 1326 | fhPtDispEtaPhiDiffLocMax[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1327 | outputContainer->Add(fhPtDispEtaPhiDiffLocMax[i]) ; |
34c16486 | 1328 | |
08c09f10 | 1329 | fhPtSphericityLocMax[i] = new TH2F(Form("hPtSphericityLocMax%d",i+1), |
5ba76d0d | 1330 | Form("Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #sigma_{#phi #phi} - #sigma_{#eta #eta} / (#sigma_{#phi #phi} + #sigma_{#eta #eta}), %s",nlm[i].Data()), |
85c4406e | 1331 | nptbins,ptmin,ptmax,200, -1,1); |
08c09f10 | 1332 | fhPtSphericityLocMax[i]->SetYTitle("#sigma_{#phi #phi} - #sigma_{#eta #eta} / (#sigma_{#phi #phi} + #sigma_{#eta #eta})"); |
5ba76d0d | 1333 | fhPtSphericityLocMax[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1334 | outputContainer->Add(fhPtSphericityLocMax[i]) ; |
34c16486 | 1335 | } |
34c16486 | 1336 | |
85c4406e | 1337 | } |
1338 | ||
08c09f10 | 1339 | fhPtNCells = new TH2F ("hPtNCells","N cells in cluster vs E ", nptbins,ptmin,ptmax, nbins,nmin,nmax); |
5ba76d0d | 1340 | fhPtNCells->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1341 | fhPtNCells->SetYTitle("# of cells in cluster"); |
1342 | outputContainer->Add(fhPtNCells); | |
42d47cb7 | 1343 | |
08c09f10 | 1344 | fhPtTime = new TH2F("hPtTime","cluster time vs pair E",nptbins,ptmin,ptmax, tbins,tmin,tmax); |
5ba76d0d | 1345 | fhPtTime->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1346 | fhPtTime->SetYTitle("t (ns)"); |
1347 | outputContainer->Add(fhPtTime); | |
521636d2 | 1348 | |
764ab1f4 | 1349 | } |
e7fd282f | 1350 | |
85c4406e | 1351 | |
1352 | fhEPairDiffTime = new TH2F("hEPairDiffTime","cluster pair time difference vs E",nptbins,ptmin,ptmax, tdbins,tdmin,tdmax); | |
5ba76d0d | 1353 | fhEPairDiffTime->SetXTitle("#it{E}_{pair} (GeV)"); |
85c4406e | 1354 | fhEPairDiffTime->SetYTitle("#Delta t (ns)"); |
1355 | outputContainer->Add(fhEPairDiffTime); | |
a1fd1b69 | 1356 | |
1357 | if(fAnaType == kIMCalo) | |
1358 | { | |
3c1d9afb | 1359 | TString combiName [] = {"1LocMax","2LocMax","NLocMax","1LocMax2LocMax","1LocMaxNLocMax","2LocMaxNLocMax","1LocMaxSSBad","NLocMaxSSGood"}; |
5c46c992 | 1360 | TString combiTitle[] = {"1 Local Maxima in both clusters","2 Local Maxima in both clusters","more than 2 Local Maxima in both clusters", |
1361 | "1 Local Maxima paired with 2 Local Maxima","1 Local Maxima paired with more than 2 Local Maxima", | |
3c1d9afb | 1362 | "2 Local Maxima paired with more than 2 Local Maxima", |
1363 | "1 Local Maxima paired with #lambda_{0}^{2}>0.3","N Local Maxima paired with 0.1<#lambda_{0}^{2}<0.3"}; | |
85c4406e | 1364 | |
1365 | for (Int_t i = 0; i < 8 ; i++) | |
5c46c992 | 1366 | { |
85c4406e | 1367 | |
1368 | if (fAnaType == kIMCaloTracks && i > 2 ) continue ; | |
1369 | ||
5c46c992 | 1370 | fhMassPairLocMax[i] = new TH2F |
1371 | (Form("MassPairLocMax%s",combiName[i].Data()), | |
5ba76d0d | 1372 | Form("#it{M} for decay #gamma pair vs #it{E}_{pair}, origin #pi^{0}, %s", combiTitle[i].Data()), |
85c4406e | 1373 | nptbins,ptmin,ptmax,nmassbins,massmin,massmax); |
5ba76d0d | 1374 | fhMassPairLocMax[i]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
1375 | fhMassPairLocMax[i]->SetXTitle("#it{E}_{pair} (GeV)"); | |
85c4406e | 1376 | outputContainer->Add(fhMassPairLocMax[i]) ; |
5c46c992 | 1377 | } |
e7fd282f | 1378 | } |
477d6cee | 1379 | |
b5dbb99b | 1380 | if(fFillTMHisto) |
1381 | { | |
09273901 | 1382 | fhTrackMatchedDEta = new TH2F |
31ae6d59 | 1383 | ("hTrackMatchedDEta", |
5ba76d0d | 1384 | "d#eta of cluster-track vs cluster #it{p}_{T}", |
85c4406e | 1385 | nptbins,ptmin,ptmax,nresetabins,resetamin,resetamax); |
09273901 | 1386 | fhTrackMatchedDEta->SetYTitle("d#eta"); |
5ba76d0d | 1387 | fhTrackMatchedDEta->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
09273901 | 1388 | |
1389 | fhTrackMatchedDPhi = new TH2F | |
31ae6d59 | 1390 | ("hTrackMatchedDPhi", |
5ba76d0d | 1391 | "d#phi of cluster-track vs cluster #it{p}_{T}", |
85c4406e | 1392 | nptbins,ptmin,ptmax,nresphibins,resphimin,resphimax); |
09273901 | 1393 | fhTrackMatchedDPhi->SetYTitle("d#phi (rad)"); |
5ba76d0d | 1394 | fhTrackMatchedDPhi->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
09273901 | 1395 | |
1396 | fhTrackMatchedDEtaDPhi = new TH2F | |
31ae6d59 | 1397 | ("hTrackMatchedDEtaDPhi", |
08c09f10 | 1398 | "d#eta vs d#phi of cluster-track", |
85c4406e | 1399 | nresetabins,resetamin,resetamax,nresphibins,resphimin,resphimax); |
09273901 | 1400 | fhTrackMatchedDEtaDPhi->SetYTitle("d#phi (rad)"); |
85c4406e | 1401 | fhTrackMatchedDEtaDPhi->SetXTitle("d#eta"); |
09273901 | 1402 | |
85c4406e | 1403 | outputContainer->Add(fhTrackMatchedDEta) ; |
09273901 | 1404 | outputContainer->Add(fhTrackMatchedDPhi) ; |
1405 | outputContainer->Add(fhTrackMatchedDEtaDPhi) ; | |
b2e375c7 | 1406 | |
1407 | fhTrackMatchedDEtaPos = new TH2F | |
1408 | ("hTrackMatchedDEtaPos", | |
5ba76d0d | 1409 | "d#eta of cluster-track vs cluster #it{p}_{T}", |
b2e375c7 | 1410 | nptbins,ptmin,ptmax,nresetabins,resetamin,resetamax); |
1411 | fhTrackMatchedDEtaPos->SetYTitle("d#eta"); | |
5ba76d0d | 1412 | fhTrackMatchedDEtaPos->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b2e375c7 | 1413 | |
1414 | fhTrackMatchedDPhiPos = new TH2F | |
1415 | ("hTrackMatchedDPhiPos", | |
5ba76d0d | 1416 | "d#phi of cluster-track vs cluster #it{p}_{T}", |
b2e375c7 | 1417 | nptbins,ptmin,ptmax,nresphibins,resphimin,resphimax); |
1418 | fhTrackMatchedDPhiPos->SetYTitle("d#phi (rad)"); | |
5ba76d0d | 1419 | fhTrackMatchedDPhiPos->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b2e375c7 | 1420 | |
1421 | fhTrackMatchedDEtaDPhiPos = new TH2F | |
1422 | ("hTrackMatchedDEtaDPhiPos", | |
08c09f10 | 1423 | "d#eta vs d#phi of cluster-track", |
b2e375c7 | 1424 | nresetabins,resetamin,resetamax,nresphibins,resphimin,resphimax); |
1425 | fhTrackMatchedDEtaDPhiPos->SetYTitle("d#phi (rad)"); | |
1426 | fhTrackMatchedDEtaDPhiPos->SetXTitle("d#eta"); | |
1427 | ||
1428 | outputContainer->Add(fhTrackMatchedDEtaPos) ; | |
1429 | outputContainer->Add(fhTrackMatchedDPhiPos) ; | |
1430 | outputContainer->Add(fhTrackMatchedDEtaDPhiPos) ; | |
1431 | ||
1432 | fhTrackMatchedDEtaNeg = new TH2F | |
1433 | ("hTrackMatchedDEtaNeg", | |
5ba76d0d | 1434 | "d#eta of cluster-track vs cluster #it{p}_{T}", |
b2e375c7 | 1435 | nptbins,ptmin,ptmax,nresetabins,resetamin,resetamax); |
1436 | fhTrackMatchedDEtaNeg->SetYTitle("d#eta"); | |
5ba76d0d | 1437 | fhTrackMatchedDEtaNeg->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b2e375c7 | 1438 | |
1439 | fhTrackMatchedDPhiNeg = new TH2F | |
1440 | ("hTrackMatchedDPhiNeg", | |
5ba76d0d | 1441 | "d#phi of cluster-track vs cluster #it{p}_{T}", |
b2e375c7 | 1442 | nptbins,ptmin,ptmax,nresphibins,resphimin,resphimax); |
1443 | fhTrackMatchedDPhiNeg->SetYTitle("d#phi (rad)"); | |
5ba76d0d | 1444 | fhTrackMatchedDPhiNeg->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
b2e375c7 | 1445 | |
1446 | fhTrackMatchedDEtaDPhiNeg = new TH2F | |
1447 | ("hTrackMatchedDEtaDPhiNeg", | |
08c09f10 | 1448 | "d#eta vs d#phi of cluster-track", |
b2e375c7 | 1449 | nresetabins,resetamin,resetamax,nresphibins,resphimin,resphimax); |
1450 | fhTrackMatchedDEtaDPhiNeg->SetYTitle("d#phi (rad)"); | |
1451 | fhTrackMatchedDEtaDPhiNeg->SetXTitle("d#eta"); | |
1452 | ||
1453 | outputContainer->Add(fhTrackMatchedDEtaNeg) ; | |
1454 | outputContainer->Add(fhTrackMatchedDPhiNeg) ; | |
1455 | outputContainer->Add(fhTrackMatchedDEtaDPhiNeg) ; | |
31ae6d59 | 1456 | |
5ba76d0d | 1457 | fhdEdx = new TH2F ("hdEdx","matched track <dE/dx> vs cluster #it{p}_{T}", nptbins,ptmin,ptmax,ndedxbins, dedxmin, dedxmax); |
1458 | fhdEdx->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
1459 | fhdEdx->SetYTitle("<#it{dE}/#it{dx}>"); | |
85c4406e | 1460 | outputContainer->Add(fhdEdx); |
31ae6d59 | 1461 | |
5ba76d0d | 1462 | fhEOverP = new TH2F ("hEOverP","matched track E/p vs cluster #it{p}_{T}", nptbins,ptmin,ptmax,nPoverEbins,pOverEmin,pOverEmax); |
1463 | fhEOverP->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
1464 | fhEOverP->SetYTitle("#it{E}/#it{p}"); | |
85c4406e | 1465 | outputContainer->Add(fhEOverP); |
b5dbb99b | 1466 | |
4d1d8f00 | 1467 | if(fCalorimeter=="EMCAL" && GetFirstSMCoveredByTRD() >=0) |
b5dbb99b | 1468 | { |
85c4406e | 1469 | fhEOverPNoTRD = new TH2F ("hEOverPNoTRD","matched track E/p vs cluster E, SM not behind TRD ", nptbins,ptmin,ptmax,nPoverEbins,pOverEmin,pOverEmax); |
5ba76d0d | 1470 | fhEOverPNoTRD->SetXTitle("#it{E} (GeV)"); |
1471 | fhEOverPNoTRD->SetYTitle("#it{E}/#it{p}"); | |
85c4406e | 1472 | outputContainer->Add(fhEOverPNoTRD); |
1473 | } | |
31ae6d59 | 1474 | |
764ab1f4 | 1475 | if(IsDataMC() && fFillTMHisto) |
31ae6d59 | 1476 | { |
08c09f10 | 1477 | fhTrackMatchedMCParticlePt = new TH2F |
1478 | ("hTrackMatchedMCParticlePt", | |
31ae6d59 | 1479 | "Origin of particle vs energy", |
85c4406e | 1480 | nptbins,ptmin,ptmax,8,0,8); |
5ba76d0d | 1481 | fhTrackMatchedMCParticlePt->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1482 | //fhTrackMatchedMCParticlePt->SetYTitle("Particle type"); |
5dde270e | 1483 | |
08c09f10 | 1484 | fhTrackMatchedMCParticlePt->GetYaxis()->SetBinLabel(1 ,"Photon"); |
1485 | fhTrackMatchedMCParticlePt->GetYaxis()->SetBinLabel(2 ,"Electron"); | |
1486 | fhTrackMatchedMCParticlePt->GetYaxis()->SetBinLabel(3 ,"Meson Merged"); | |
1487 | fhTrackMatchedMCParticlePt->GetYaxis()->SetBinLabel(4 ,"Rest"); | |
1488 | fhTrackMatchedMCParticlePt->GetYaxis()->SetBinLabel(5 ,"Conv. Photon"); | |
1489 | fhTrackMatchedMCParticlePt->GetYaxis()->SetBinLabel(6 ,"Conv. Electron"); | |
1490 | fhTrackMatchedMCParticlePt->GetYaxis()->SetBinLabel(7 ,"Conv. Merged"); | |
1491 | fhTrackMatchedMCParticlePt->GetYaxis()->SetBinLabel(8 ,"Conv. Rest"); | |
5dde270e | 1492 | |
08c09f10 | 1493 | outputContainer->Add(fhTrackMatchedMCParticlePt); |
5dde270e | 1494 | |
1495 | fhTrackMatchedMCParticleDEta = new TH2F | |
1496 | ("hTrackMatchedMCParticleDEta", | |
1497 | "Origin of particle vs #eta residual", | |
1498 | nresetabins,resetamin,resetamax,8,0,8); | |
1499 | fhTrackMatchedMCParticleDEta->SetXTitle("#Delta #eta"); | |
1500 | //fhTrackMatchedMCParticleDEta->SetYTitle("Particle type"); | |
31ae6d59 | 1501 | |
5dde270e | 1502 | fhTrackMatchedMCParticleDEta->GetYaxis()->SetBinLabel(1 ,"Photon"); |
1503 | fhTrackMatchedMCParticleDEta->GetYaxis()->SetBinLabel(2 ,"Electron"); | |
1504 | fhTrackMatchedMCParticleDEta->GetYaxis()->SetBinLabel(3 ,"Meson Merged"); | |
1505 | fhTrackMatchedMCParticleDEta->GetYaxis()->SetBinLabel(4 ,"Rest"); | |
1506 | fhTrackMatchedMCParticleDEta->GetYaxis()->SetBinLabel(5 ,"Conv. Photon"); | |
1507 | fhTrackMatchedMCParticleDEta->GetYaxis()->SetBinLabel(6 ,"Conv. Electron"); | |
1508 | fhTrackMatchedMCParticleDEta->GetYaxis()->SetBinLabel(7 ,"Conv. Merged"); | |
1509 | fhTrackMatchedMCParticleDEta->GetYaxis()->SetBinLabel(8 ,"Conv. Rest"); | |
1510 | ||
1511 | outputContainer->Add(fhTrackMatchedMCParticleDEta); | |
85c4406e | 1512 | |
5dde270e | 1513 | fhTrackMatchedMCParticleDPhi = new TH2F |
1514 | ("hTrackMatchedMCParticleDPhi", | |
1515 | "Origin of particle vs #phi residual", | |
1516 | nresphibins,resphimin,resphimax,8,0,8); | |
1517 | fhTrackMatchedMCParticleDPhi->SetXTitle("#Delta #phi"); | |
1518 | //fhTrackMatchedMCParticleDPhi->SetYTitle("Particle type"); | |
1519 | ||
1520 | fhTrackMatchedMCParticleDPhi->GetYaxis()->SetBinLabel(1 ,"Photon"); | |
1521 | fhTrackMatchedMCParticleDPhi->GetYaxis()->SetBinLabel(2 ,"Electron"); | |
1522 | fhTrackMatchedMCParticleDPhi->GetYaxis()->SetBinLabel(3 ,"Meson Merged"); | |
1523 | fhTrackMatchedMCParticleDPhi->GetYaxis()->SetBinLabel(4 ,"Rest"); | |
1524 | fhTrackMatchedMCParticleDPhi->GetYaxis()->SetBinLabel(5 ,"Conv. Photon"); | |
1525 | fhTrackMatchedMCParticleDPhi->GetYaxis()->SetBinLabel(6 ,"Conv. Electron"); | |
1526 | fhTrackMatchedMCParticleDPhi->GetYaxis()->SetBinLabel(7 ,"Conv. Merged"); | |
1527 | fhTrackMatchedMCParticleDPhi->GetYaxis()->SetBinLabel(8 ,"Conv. Rest"); | |
1528 | ||
1529 | outputContainer->Add(fhTrackMatchedMCParticleDPhi); | |
85c4406e | 1530 | |
31ae6d59 | 1531 | |
31ae6d59 | 1532 | } |
85c4406e | 1533 | } |
09273901 | 1534 | |
b5dbb99b | 1535 | if(fFillWeightHistograms) |
1536 | { | |
78a28af3 | 1537 | fhECellClusterRatio = new TH2F ("hECellClusterRatio"," cell energy / cluster energy vs cluster energy, for selected decay photons from neutral meson", |
85c4406e | 1538 | nptbins,ptmin,ptmax, 100,0,1.); |
5ba76d0d | 1539 | fhECellClusterRatio->SetXTitle("#it{E}_{cluster} (GeV) "); |
1540 | fhECellClusterRatio->SetYTitle("#it{E}_{cell i}/#it{E}_{cluster}"); | |
78a28af3 | 1541 | outputContainer->Add(fhECellClusterRatio); |
1542 | ||
1543 | fhECellClusterLogRatio = new TH2F ("hECellClusterLogRatio"," Log(cell energy / cluster energy) vs cluster energy, for selected decay photons from neutral meson", | |
85c4406e | 1544 | nptbins,ptmin,ptmax, 100,-10,0); |
5ba76d0d | 1545 | fhECellClusterLogRatio->SetXTitle("#it{E}_{cluster} (GeV) "); |
1546 | fhECellClusterLogRatio->SetYTitle("Log (#it{E}_{max cell}/#it{E}_{cluster})"); | |
78a28af3 | 1547 | outputContainer->Add(fhECellClusterLogRatio); |
1548 | ||
1549 | fhEMaxCellClusterRatio = new TH2F ("hEMaxCellClusterRatio"," max cell energy / cluster energy vs cluster energy, for selected decay photons from neutral meson", | |
85c4406e | 1550 | nptbins,ptmin,ptmax, 100,0,1.); |
5ba76d0d | 1551 | fhEMaxCellClusterRatio->SetXTitle("#it{E}_{cluster} (GeV) "); |
1552 | fhEMaxCellClusterRatio->SetYTitle("#it{E}_{max cell}/#it{E}_{cluster}"); | |
78a28af3 | 1553 | outputContainer->Add(fhEMaxCellClusterRatio); |
1554 | ||
1555 | fhEMaxCellClusterLogRatio = new TH2F ("hEMaxCellClusterLogRatio"," Log(max cell energy / cluster energy) vs cluster energy, for selected decay photons from neutral meson", | |
85c4406e | 1556 | nptbins,ptmin,ptmax, 100,-10,0); |
5ba76d0d | 1557 | fhEMaxCellClusterLogRatio->SetXTitle("#it{E}_{cluster} (GeV) "); |
1558 | fhEMaxCellClusterLogRatio->SetYTitle("Log (#it{E}_{max cell}/#it{E}_{cluster})"); | |
78a28af3 | 1559 | outputContainer->Add(fhEMaxCellClusterLogRatio); |
1560 | ||
b5dbb99b | 1561 | for(Int_t iw = 0; iw < 14; iw++) |
1562 | { | |
1a72f6c5 | 1563 | fhLambda0ForW0[iw] = new TH2F (Form("hLambda0ForW0%d",iw),Form("shower shape, #lambda^{2}_{0} vs E, w0 = %1.1f, for selected decay photons from neutral meson",1+0.5*iw), |
85c4406e | 1564 | nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
5ba76d0d | 1565 | fhLambda0ForW0[iw]->SetXTitle("#it{E}_{cluster}"); |
78a28af3 | 1566 | fhLambda0ForW0[iw]->SetYTitle("#lambda^{2}_{0}"); |
85c4406e | 1567 | outputContainer->Add(fhLambda0ForW0[iw]); |
78a28af3 | 1568 | |
85c4406e | 1569 | // fhLambda1ForW0[iw] = new TH2F (Form("hLambda1ForW0%d",iw),Form("shower shape, #lambda^{2}_{1} vs E, w0 = %1.1f, for selected decay photons from neutral meson",0.5+0.5*iw), |
1570 | // nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); | |
5ba76d0d | 1571 | // fhLambda1ForW0[iw]->SetXTitle("#it{E}_{cluster}"); |
85c4406e | 1572 | // fhLambda1ForW0[iw]->SetYTitle("#lambda^{2}_{1}"); |
1573 | // outputContainer->Add(fhLambda1ForW0[iw]); | |
78a28af3 | 1574 | |
1575 | } | |
85c4406e | 1576 | } |
78a28af3 | 1577 | |
85c4406e | 1578 | if(IsDataMC()) |
b5dbb99b | 1579 | { |
4bbe6213 | 1580 | // Origin |
1581 | ||
1582 | fhMCPi0PtOrigin = new TH2F("hMCPi0PtOrigin","Reconstructed pair from generated #pi^{0} #it{p}_{T} vs origin",nptbins,ptmin,ptmax,11,0,11) ; | |
1583 | fhMCPi0PtOrigin->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
1584 | fhMCPi0PtOrigin->SetYTitle("Origin"); | |
1585 | fhMCPi0PtOrigin->GetYaxis()->SetBinLabel(1 ,"Status 21"); | |
1586 | fhMCPi0PtOrigin->GetYaxis()->SetBinLabel(2 ,"Quark"); | |
1587 | fhMCPi0PtOrigin->GetYaxis()->SetBinLabel(3 ,"qq Resonances"); | |
1588 | fhMCPi0PtOrigin->GetYaxis()->SetBinLabel(4 ,"Resonances"); | |
1589 | fhMCPi0PtOrigin->GetYaxis()->SetBinLabel(5 ,"#rho"); | |
1590 | fhMCPi0PtOrigin->GetYaxis()->SetBinLabel(6 ,"#omega"); | |
1591 | fhMCPi0PtOrigin->GetYaxis()->SetBinLabel(7 ,"K"); | |
1592 | fhMCPi0PtOrigin->GetYaxis()->SetBinLabel(8 ,"Other"); | |
1593 | fhMCPi0PtOrigin->GetYaxis()->SetBinLabel(9 ,"#eta"); | |
1594 | fhMCPi0PtOrigin->GetYaxis()->SetBinLabel(10 ,"#eta prime"); | |
1595 | outputContainer->Add(fhMCPi0PtOrigin) ; | |
1596 | ||
1597 | fhMCEtaPtOrigin = new TH2F("hMCEtaPtOrigin","Reconstructed pair from generated #pi^{0} #it{p}_{T} vs origin",nptbins,ptmin,ptmax,7,0,7) ; | |
1598 | fhMCEtaPtOrigin->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
1599 | fhMCEtaPtOrigin->SetYTitle("Origin"); | |
1600 | fhMCEtaPtOrigin->GetYaxis()->SetBinLabel(1 ,"Status 21"); | |
1601 | fhMCEtaPtOrigin->GetYaxis()->SetBinLabel(2 ,"Quark"); | |
1602 | fhMCEtaPtOrigin->GetYaxis()->SetBinLabel(3 ,"qq Resonances"); | |
1603 | fhMCEtaPtOrigin->GetYaxis()->SetBinLabel(4 ,"Resonances"); | |
1604 | fhMCEtaPtOrigin->GetYaxis()->SetBinLabel(5 ,"Other"); | |
1605 | fhMCEtaPtOrigin->GetYaxis()->SetBinLabel(6 ,"#eta prime"); | |
1606 | outputContainer->Add(fhMCEtaPtOrigin) ; | |
1607 | ||
d4546932 | 1608 | fhMCPi0ProdVertex = new TH2F("hMCPi0ProdVertex","Selected reco pair from generated #pi^{0} #it{p}_{T} vs production vertex",200,ptmin,20+ptmin,5000,0,500) ; |
4bbe6213 | 1609 | fhMCPi0ProdVertex->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
1610 | fhMCPi0ProdVertex->SetYTitle("#it{R} (cm)"); | |
1611 | outputContainer->Add(fhMCPi0ProdVertex) ; | |
1612 | ||
d4546932 | 1613 | fhMCEtaProdVertex = new TH2F("hMCEtaProdVertex","Selected reco pair from generated #eta #it{p}_{T} vs production vertex",200,ptmin,20+ptmin,5000,0,500) ; |
4bbe6213 | 1614 | fhMCEtaProdVertex->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
1615 | fhMCEtaProdVertex->SetYTitle("#it{R} (cm)"); | |
1616 | outputContainer->Add(fhMCEtaProdVertex) ; | |
1617 | ||
3455f821 | 1618 | if(GetReader()->GetDataType() != AliCaloTrackReader::kMC && fAnaType==kSSCalo) |
1619 | { | |
5ba76d0d | 1620 | fhMCPi0PtGenRecoFraction = new TH2F("hMCPi0PtGenRecoFraction","Number of clusters from #pi^{0} (2 #gamma) identified as #pi^{0} (#eta), #it{p}_{T} versus E primary #pi^{0} / E reco", |
85c4406e | 1621 | nptbins,ptmin,ptmax,200,0,2); |
5ba76d0d | 1622 | fhMCPi0PtGenRecoFraction->SetXTitle("#it{p}^{rec}_{T} (GeV/#it{c})"); |
1623 | fhMCPi0PtGenRecoFraction->SetYTitle("#it{E}^{#pi^{0} mother} / #it{E}^{rec}"); | |
85c4406e | 1624 | outputContainer->Add(fhMCPi0PtGenRecoFraction) ; |
1625 | ||
5ba76d0d | 1626 | fhMCEtaPtGenRecoFraction = new TH2F("hMCEtaPtGenRecoFraction","Number of clusters from #eta (2 #gamma) identified as #pi^{0} (#eta),#it{p}_{T} versus E primary #eta / E reco", |
85c4406e | 1627 | nptbins,ptmin,ptmax,200,0,2); |
5ba76d0d | 1628 | fhMCEtaPtGenRecoFraction->SetXTitle("#it{p}^{rec}_{T} (GeV/#it{c})"); |
1629 | fhMCEtaPtGenRecoFraction->SetYTitle("#it{E}^{ #eta mother} / #it{E}^{rec}"); | |
85c4406e | 1630 | outputContainer->Add(fhMCEtaPtGenRecoFraction) ; |
51a0ace5 | 1631 | |
85c4406e | 1632 | fhMCPi0DecayPt = new TH1F("hMCPi0DecayPt","Number of #gamma from #pi^{0} decay identified as #pi^{0} (#eta)",nptbins,ptmin,ptmax); |
5ba76d0d | 1633 | fhMCPi0DecayPt->SetYTitle("#it{N}"); |
1634 | fhMCPi0DecayPt->SetXTitle("#it{p}^{rec}_{T} (GeV/#it{c})"); | |
85c4406e | 1635 | outputContainer->Add(fhMCPi0DecayPt) ; |
3455f821 | 1636 | |
5ba76d0d | 1637 | fhMCPi0DecayPtFraction = new TH2F("hMCPi0DecayPtFraction","Number of #gamma from #pi^{0} decay identified as #pi^{0} (#eta), #it{p}_{T} versus E primary #gamma / #it{E} primary #pi^{0}", |
85c4406e | 1638 | nptbins,ptmin,ptmax,100,0,1); |
5ba76d0d | 1639 | fhMCPi0DecayPtFraction->SetXTitle("p^{rec}_{T} (GeV/#it{c})"); |
883411b2 | 1640 | fhMCPi0DecayPtFraction->SetYTitle("E^{gen} / E^{gen-mother}"); |
85c4406e | 1641 | outputContainer->Add(fhMCPi0DecayPtFraction) ; |
3455f821 | 1642 | |
85c4406e | 1643 | fhMCEtaDecayPt = new TH1F("hMCEtaDecayPt","Number of #gamma from #eta decay identified as #pi^{0} (#eta)",nptbins,ptmin,ptmax); |
5ba76d0d | 1644 | fhMCEtaDecayPt->SetYTitle("#it{N}"); |
1645 | fhMCEtaDecayPt->SetXTitle("#it{p}^{rec}_{T} (GeV/#it{c})"); | |
85c4406e | 1646 | outputContainer->Add(fhMCEtaDecayPt) ; |
3455f821 | 1647 | |
5ba76d0d | 1648 | fhMCEtaDecayPtFraction = new TH2F("hMCEtaDecayPtFraction","Number of #gamma from #eta decay identified as #pi^{0} (#eta), #it{p}_{T} versus E primary #gamma / E primary #eta", |
85c4406e | 1649 | nptbins,ptmin,ptmax,100,0,1); |
5ba76d0d | 1650 | fhMCEtaDecayPtFraction->SetXTitle("#it{p}^{rec}_{T} (GeV/#it{c})"); |
1651 | fhMCEtaDecayPtFraction->SetYTitle("#it{E}^{gen} / #it{E}^{gen-mother}"); | |
85c4406e | 1652 | outputContainer->Add(fhMCEtaDecayPtFraction) ; |
3455f821 | 1653 | |
85c4406e | 1654 | fhMCOtherDecayPt = new TH1F("hMCOtherDecayPt","Number of #gamma decay (not #eta or #pi^{0}) identified as #pi^{0} (#eta)",nptbins,ptmin,ptmax); |
5ba76d0d | 1655 | fhMCOtherDecayPt->SetYTitle("#it{N}"); |
1656 | fhMCOtherDecayPt->SetXTitle("#it{p}^{rec}_{T} (GeV/#it{c})"); | |
85c4406e | 1657 | outputContainer->Add(fhMCOtherDecayPt) ; |
3455f821 | 1658 | |
1659 | } | |
85c4406e | 1660 | |
1661 | if((GetReader()->GetDataType() == AliCaloTrackReader::kMC && fAnaType!=kSSCalo) || | |
b5dbb99b | 1662 | GetReader()->GetDataType() != AliCaloTrackReader::kMC) |
1663 | { | |
477d6cee | 1664 | |
b5dbb99b | 1665 | fhAnglePairMCPi0 = new TH2F |
1666 | ("AnglePairMCPi0", | |
5ba76d0d | 1667 | "Angle between decay #gamma pair vs #it{E}_{pair}, origin #pi^{0}",nptbins,ptmin,ptmax,250,0,0.5); |
b5dbb99b | 1668 | fhAnglePairMCPi0->SetYTitle("#alpha (rad)"); |
5ba76d0d | 1669 | fhAnglePairMCPi0->SetXTitle("#it{E}_{pair} (GeV)"); |
85c4406e | 1670 | outputContainer->Add(fhAnglePairMCPi0) ; |
1671 | ||
af722ce4 | 1672 | if (fAnaType!= kSSCalo) |
1673 | { | |
1674 | fhAnglePairMCEta = new TH2F | |
1675 | ("AnglePairMCEta", | |
5ba76d0d | 1676 | "Angle between decay #gamma pair vs #it{E}_{pair}, origin #eta",nptbins,ptmin,ptmax,250,0,0.5); |
af722ce4 | 1677 | fhAnglePairMCEta->SetYTitle("#alpha (rad)"); |
5ba76d0d | 1678 | fhAnglePairMCEta->SetXTitle("#it{E}_{pair} (GeV)"); |
85c4406e | 1679 | outputContainer->Add(fhAnglePairMCEta) ; |
af722ce4 | 1680 | |
1681 | fhMassPairMCPi0 = new TH2F | |
1682 | ("MassPairMCPi0", | |
5ba76d0d | 1683 | "#it{M} for decay #gamma pair vs #it{E}_{pair}, origin #pi^{0}",nptbins,ptmin,ptmax,nmassbins,massmin,massmax); |
1684 | fhMassPairMCPi0->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1685 | fhMassPairMCPi0->SetXTitle("#it{E}_{pair} (GeV)"); | |
85c4406e | 1686 | outputContainer->Add(fhMassPairMCPi0) ; |
af722ce4 | 1687 | |
1688 | fhMassPairMCEta = new TH2F | |
1689 | ("MassPairMCEta", | |
5ba76d0d | 1690 | "#it{M} for decay #gamma pair vs #it{E}_{pair}, origin #eta",nptbins,ptmin,ptmax,nmassbins,massmin,massmax); |
1691 | fhMassPairMCEta->SetYTitle("#it{M} (GeV/#it{c}^{2})"); | |
1692 | fhMassPairMCEta->SetXTitle("#it{E}_{pair} (GeV)"); | |
85c4406e | 1693 | outputContainer->Add(fhMassPairMCEta) ; |
af722ce4 | 1694 | } |
e4ef72be | 1695 | |
3455f821 | 1696 | for(Int_t i = 0; i < 6; i++) |
85c4406e | 1697 | { |
3455f821 | 1698 | |
40d3ce60 | 1699 | fhMCE[i] = new TH1F |
2928c46d | 1700 | (Form("hE_MC%s",pname[i].Data()), |
40d3ce60 | 1701 | Form("Identified as #pi^{0} (#eta), cluster from %s", |
1702 | ptype[i].Data()), | |
85c4406e | 1703 | nptbins,ptmin,ptmax); |
5ba76d0d | 1704 | fhMCE[i]->SetYTitle("#it{N}"); |
1705 | fhMCE[i]->SetXTitle("#it{E} (GeV)"); | |
85c4406e | 1706 | outputContainer->Add(fhMCE[i]) ; |
40d3ce60 | 1707 | |
3455f821 | 1708 | fhMCPt[i] = new TH1F |
1709 | (Form("hPt_MC%s",pname[i].Data()), | |
1710 | Form("Identified as #pi^{0} (#eta), cluster from %s", | |
1711 | ptype[i].Data()), | |
85c4406e | 1712 | nptbins,ptmin,ptmax); |
5ba76d0d | 1713 | fhMCPt[i]->SetYTitle("#it{N}"); |
1714 | fhMCPt[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
85c4406e | 1715 | outputContainer->Add(fhMCPt[i]) ; |
3455f821 | 1716 | |
17f5b4b6 | 1717 | fhMCPtCentrality[i] = new TH2F |
1718 | (Form("hPtCentrality_MC%s",pname[i].Data()), | |
1719 | Form("Identified as #pi^{0} (#eta), cluster from %s", | |
1720 | ptype[i].Data()), | |
1721 | nptbins,ptmin,ptmax, 100,0,100); | |
1722 | fhMCPtCentrality[i]->SetYTitle("centrality"); | |
5ba76d0d | 1723 | fhMCPtCentrality[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
17f5b4b6 | 1724 | outputContainer->Add(fhMCPtCentrality[i]) ; |
1725 | ||
40d3ce60 | 1726 | if(fAnaType == kSSCalo) |
1727 | { | |
6e66993c | 1728 | fhMCNLocMaxPt[i] = new TH2F |
1729 | (Form("hNLocMaxPt_MC%s",pname[i].Data()), | |
5ba76d0d | 1730 | Form("cluster from %s, #it{p}_{T} of cluster vs NLM, accepted",ptype[i].Data()), |
08c09f10 | 1731 | nptbins,ptmin,ptmax,20,0,20); |
5ba76d0d | 1732 | fhMCNLocMaxPt[i] ->SetYTitle("#it{NLM}"); |
1733 | fhMCNLocMaxPt[i] ->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
6e66993c | 1734 | outputContainer->Add(fhMCNLocMaxPt[i]) ; |
3a4c49b7 | 1735 | |
1736 | fhMCNLocMaxPtReject[i] = new TH2F | |
1737 | (Form("hNLocMaxPtReject_MC%s",pname[i].Data()), | |
5ba76d0d | 1738 | Form("cluster from %s, #it{p}_{T} of cluster vs NLM, rejected",ptype[i].Data()), |
08c09f10 | 1739 | nptbins,ptmin,ptmax,20,0,20); |
5ba76d0d | 1740 | fhMCNLocMaxPtReject[i] ->SetYTitle("#it{NLM}"); |
1741 | fhMCNLocMaxPtReject[i] ->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
3a4c49b7 | 1742 | outputContainer->Add(fhMCNLocMaxPtReject[i]) ; |
85c4406e | 1743 | |
40d3ce60 | 1744 | fhMCEReject[i] = new TH1F |
1745 | (Form("hEReject_MC%s",pname[i].Data()), | |
1746 | Form("Rejected as #pi^{0} (#eta), cluster from %s", | |
1747 | ptype[i].Data()), | |
85c4406e | 1748 | nptbins,ptmin,ptmax); |
5ba76d0d | 1749 | fhMCEReject[i]->SetYTitle("#it{N}"); |
1750 | fhMCEReject[i]->SetXTitle("#it{E} (GeV)"); | |
85c4406e | 1751 | outputContainer->Add(fhMCEReject[i]) ; |
40d3ce60 | 1752 | |
1753 | fhMCPtReject[i] = new TH1F | |
1754 | (Form("hPtReject_MC%s",pname[i].Data()), | |
1755 | Form("Rejected as #pi^{0} (#eta), cluster from %s", | |
1756 | ptype[i].Data()), | |
85c4406e | 1757 | nptbins,ptmin,ptmax); |
5ba76d0d | 1758 | fhMCPtReject[i]->SetYTitle("#it{N}"); |
1759 | fhMCPtReject[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
85c4406e | 1760 | outputContainer->Add(fhMCPtReject[i]) ; |
40d3ce60 | 1761 | } |
1762 | ||
08c09f10 | 1763 | fhMCPtPhi[i] = new TH2F |
1764 | (Form("hPtPhi_MC%s",pname[i].Data()), | |
3455f821 | 1765 | Form("Identified as #pi^{0} (#eta), cluster from %s",ptype[i].Data()), |
85c4406e | 1766 | nptbins,ptmin,ptmax,nphibins,phimin,phimax); |
08c09f10 | 1767 | fhMCPtPhi[i]->SetYTitle("#phi"); |
5ba76d0d | 1768 | fhMCPtPhi[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1769 | outputContainer->Add(fhMCPtPhi[i]) ; |
3455f821 | 1770 | |
08c09f10 | 1771 | fhMCPtEta[i] = new TH2F |
1772 | (Form("hPtEta_MC%s",pname[i].Data()), | |
3455f821 | 1773 | Form("Identified as #pi^{0} (#eta), cluster from %s", |
85c4406e | 1774 | ptype[i].Data()),nptbins,ptmin,ptmax,netabins,etamin,etamax); |
08c09f10 | 1775 | fhMCPtEta[i]->SetYTitle("#eta"); |
5ba76d0d | 1776 | fhMCPtEta[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1777 | outputContainer->Add(fhMCPtEta[i]) ; |
85c4406e | 1778 | |
29250849 | 1779 | fhMCMassPt[i] = new TH2F |
1780 | (Form("hMassPt_MC%s",pname[i].Data()), | |
5ba76d0d | 1781 | Form("all pairs #it{M}: #it{p}_{T} vs #it{M} from %s",ptype[i].Data()), |
29250849 | 1782 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 1783 | fhMCMassPt[i]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
1784 | fhMCMassPt[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
29250849 | 1785 | outputContainer->Add(fhMCMassPt[i]) ; |
3455f821 | 1786 | |
29250849 | 1787 | fhMCSelectedMassPt[i] = new TH2F |
1788 | (Form("hSelectedMassPt_MC%s",pname[i].Data()), | |
5ba76d0d | 1789 | Form("Selected #pi^{0} (#eta) pairs #it{M}: #it{p}_{T} vs #it{M} from %s",ptype[i].Data()), |
29250849 | 1790 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 1791 | fhMCSelectedMassPt[i]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
1792 | fhMCSelectedMassPt[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
29250849 | 1793 | outputContainer->Add(fhMCSelectedMassPt[i]) ; |
85c4406e | 1794 | |
1253480f | 1795 | if(fAnaType == kSSCalo) |
1796 | { | |
1797 | fhMCMassPtNoOverlap[i] = new TH2F | |
1798 | (Form("hMassPtNoOverlap_MC%s",pname[i].Data()), | |
5ba76d0d | 1799 | Form("all pairs #it{M}: #it{p}_{T} vs #it{M} from %s, no overlap",ptype[i].Data()), |
1253480f | 1800 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 1801 | fhMCMassPt[i]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
1802 | fhMCMassPt[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
1253480f | 1803 | outputContainer->Add(fhMCMassPtNoOverlap[i]) ; |
1804 | ||
1805 | fhMCSelectedMassPtNoOverlap[i] = new TH2F | |
1806 | (Form("hSelectedMassPtNoOverlap_MC%s",pname[i].Data()), | |
5ba76d0d | 1807 | Form("Selected #pi^{0} (#eta) pairs #it{M}: #it{p}_{T} vs #it{M} from %s, no overlap",ptype[i].Data()), |
1253480f | 1808 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 1809 | fhMCSelectedMassPtNoOverlap[i]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
1810 | fhMCSelectedMassPtNoOverlap[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
1253480f | 1811 | outputContainer->Add(fhMCSelectedMassPtNoOverlap[i]) ; |
1812 | } | |
3455f821 | 1813 | |
1814 | if( fFillSelectClHisto ) | |
1815 | { | |
08c09f10 | 1816 | fhMCPtLambda0[i] = new TH2F(Form("hELambda0_MC%s",pname[i].Data()), |
5ba76d0d | 1817 | Form("Selected pair, cluster from %s : #it{p}_{T} vs #lambda_{0}^{2}",ptype[i].Data()), |
85c4406e | 1818 | nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1819 | fhMCPtLambda0[i]->SetYTitle("#lambda_{0}^{2}"); |
5ba76d0d | 1820 | fhMCPtLambda0[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1821 | outputContainer->Add(fhMCPtLambda0[i]) ; |
34c16486 | 1822 | |
08c09f10 | 1823 | fhMCPtLambda1[i] = new TH2F(Form("hELambda1_MC%s",pname[i].Data()), |
5ba76d0d | 1824 | Form("Selected pair, cluster from %s : #it{p}_{T} vs #lambda_{1}^{2}",ptype[i].Data()), |
85c4406e | 1825 | nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1826 | fhMCPtLambda1[i]->SetYTitle("#lambda_{1}^{2}"); |
5ba76d0d | 1827 | fhMCPtLambda1[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1828 | outputContainer->Add(fhMCPtLambda1[i]) ; |
34c16486 | 1829 | |
08c09f10 | 1830 | fhMCPtDispersion[i] = new TH2F(Form("hEDispersion_MC%s",pname[i].Data()), |
5ba76d0d | 1831 | Form("Selected pair, cluster from %s : #it{p}_{T} vs dispersion^{2}",ptype[i].Data()), |
85c4406e | 1832 | nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
5ba76d0d | 1833 | fhMCPtDispersion[i]->SetYTitle("#it{D}^{2}"); |
1834 | fhMCPtDispersion[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
08c09f10 | 1835 | outputContainer->Add(fhMCPtDispersion[i]) ; |
34c16486 | 1836 | |
4d1d8f00 | 1837 | if(fCalorimeter=="EMCAL" && GetFirstSMCoveredByTRD() >= 0) |
34c16486 | 1838 | { |
08c09f10 | 1839 | fhMCPtLambda0NoTRD[i] = new TH2F(Form("hELambda0NoTRD_MC%s",pname[i].Data()), |
5ba76d0d | 1840 | Form("Selected pair, cluster from %s : #it{p}_{T} vs #lambda_{0}^{2}, NoTRD",ptype[i].Data()), |
85c4406e | 1841 | nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1842 | fhMCPtLambda0NoTRD[i]->SetYTitle("#lambda_{0}^{2}"); |
5ba76d0d | 1843 | fhMCPtLambda0NoTRD[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1844 | outputContainer->Add(fhMCPtLambda0NoTRD[i]) ; |
bfdcf7fb | 1845 | |
764ab1f4 | 1846 | if(!fFillOnlySimpleSSHisto) |
e4ef72be | 1847 | { |
08c09f10 | 1848 | fhMCPtDispEta[i] = new TH2F (Form("hPtDispEta_MC%s",pname[i].Data()), |
5ba76d0d | 1849 | Form("cluster from %s : #sigma^{2}_{#eta #eta} = #Sigma w_{i}(#eta_{i} - <#eta>)^{2}/ #Sigma w_{i} vs #it{p}_{T}",ptype[i].Data()), |
85c4406e | 1850 | nptbins,ptmin,ptmax, ssbins,ssmin,ssmax); |
5ba76d0d | 1851 | fhMCPtDispEta[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1852 | fhMCPtDispEta[i]->SetYTitle("#sigma^{2}_{#eta #eta}"); |
1853 | outputContainer->Add(fhMCPtDispEta[i]); | |
764ab1f4 | 1854 | |
08c09f10 | 1855 | fhMCPtDispPhi[i] = new TH2F (Form("hPtDispPhi_MC%s",pname[i].Data()), |
5ba76d0d | 1856 | Form("cluster from %s : #sigma^{2}_{#phi #phi} = #Sigma w_{i}(#phi_{i} - <#phi>)^{2} / #Sigma w_{i} vs #it{p}_{T}",ptype[i].Data()), |
85c4406e | 1857 | nptbins,ptmin,ptmax, ssbins,ssmin,ssmax); |
5ba76d0d | 1858 | fhMCPtDispPhi[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1859 | fhMCPtDispPhi[i]->SetYTitle("#sigma^{2}_{#phi #phi}"); |
1860 | outputContainer->Add(fhMCPtDispPhi[i]); | |
764ab1f4 | 1861 | |
08c09f10 | 1862 | fhMCPtSumEtaPhi[i] = new TH2F (Form("hPtSumEtaPhi_MC%s",pname[i].Data()), |
5ba76d0d | 1863 | Form("cluster from %s : #delta^{2}_{#eta #phi} = #Sigma w_{i}(#phi_{i} #eta_{i} ) / #Sigma w_{i} - <#phi><#eta> vs #it{p}_{T}",ptype[i].Data()), |
85c4406e | 1864 | nptbins,ptmin,ptmax, 2*ssbins,-ssmax,ssmax); |
5ba76d0d | 1865 | fhMCPtSumEtaPhi[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1866 | fhMCPtSumEtaPhi[i]->SetYTitle("#delta^{2}_{#eta #phi}"); |
1867 | outputContainer->Add(fhMCPtSumEtaPhi[i]); | |
e4ef72be | 1868 | |
08c09f10 | 1869 | fhMCPtDispEtaPhiDiff[i] = new TH2F (Form("hPtDispEtaPhiDiff_MC%s",pname[i].Data()), |
5ba76d0d | 1870 | Form("cluster from %s : #sigma^{2}_{#phi #phi} - #sigma^{2}_{#eta #eta} vs #it{p}_{T}",ptype[i].Data()), |
85c4406e | 1871 | nptbins,ptmin,ptmax,200,-10,10); |
5ba76d0d | 1872 | fhMCPtDispEtaPhiDiff[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
08c09f10 | 1873 | fhMCPtDispEtaPhiDiff[i]->SetYTitle("#sigma^{2}_{#phi #phi}-#sigma^{2}_{#eta #eta}"); |
1874 | outputContainer->Add(fhMCPtDispEtaPhiDiff[i]); | |
e4ef72be | 1875 | |
08c09f10 | 1876 | fhMCPtSphericity[i] = new TH2F (Form("hPtSphericity_MC%s",pname[i].Data()), |
85c4406e | 1877 | Form("cluster from %s : (#sigma^{2}_{#phi #phi} - #sigma^{2}_{#eta #eta}) / (#sigma^{2}_{#eta #eta} + #sigma^{2}_{#phi #phi}) vs E",ptype[i].Data()), |
1878 | nptbins,ptmin,ptmax, 200,-1,1); | |
5ba76d0d | 1879 | fhMCPtSphericity[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
1880 | fhMCPtSphericity[i]->SetYTitle("#it{s} = (#sigma^{2}_{#phi #phi} - #sigma^{2}_{#eta #eta}) / (#sigma^{2}_{#eta #eta} + #sigma^{2}_{#phi #phi})"); | |
08c09f10 | 1881 | outputContainer->Add(fhMCPtSphericity[i]); |
e4ef72be | 1882 | |
764ab1f4 | 1883 | for(Int_t ie = 0; ie < 7; ie++) |
1884 | { | |
1885 | fhMCDispEtaDispPhi[ie][i] = new TH2F (Form("hMCDispEtaDispPhi_EBin%d_MC%s",ie,pname[i].Data()), | |
85c4406e | 1886 | Form("cluster from %s : #sigma^{2}_{#phi #phi} vs #sigma^{2}_{#eta #eta} for %d < E < %d GeV",pname[i].Data(),bin[ie],bin[ie+1]), |
1887 | ssbins,ssmin,ssmax , ssbins,ssmin,ssmax); | |
764ab1f4 | 1888 | fhMCDispEtaDispPhi[ie][i]->SetXTitle("#sigma^{2}_{#eta #eta}"); |
1889 | fhMCDispEtaDispPhi[ie][i]->SetYTitle("#sigma^{2}_{#phi #phi}"); | |
85c4406e | 1890 | outputContainer->Add(fhMCDispEtaDispPhi[ie][i]); |
764ab1f4 | 1891 | |
1892 | fhMCLambda0DispEta[ie][i] = new TH2F (Form("hMCLambda0DispEta_EBin%d_MC%s",ie,pname[i].Data()), | |
85c4406e | 1893 | Form("cluster from %s : #lambda^{2}_{0} vs #sigma^{2}_{#eta #eta} for %d < E < %d GeV",pname[i].Data(),bin[ie],bin[ie+1]), |
1894 | ssbins,ssmin,ssmax , ssbins,ssmin,ssmax); | |
764ab1f4 | 1895 | fhMCLambda0DispEta[ie][i]->SetXTitle("#lambda^{2}_{0}"); |
1896 | fhMCLambda0DispEta[ie][i]->SetYTitle("#sigma^{2}_{#phi #phi}"); | |
85c4406e | 1897 | outputContainer->Add(fhMCLambda0DispEta[ie][i]); |
764ab1f4 | 1898 | |
1899 | fhMCLambda0DispPhi[ie][i] = new TH2F (Form("hMCLambda0DispPhi_EBin%d_MC%s",ie,pname[i].Data()), | |
85c4406e | 1900 | Form("cluster from %s :#lambda^{2}_{0} vs #sigma^{2}_{#phi #phi} for %d < E < %d GeV",pname[i].Data(),bin[ie],bin[ie+1]), |
1901 | ssbins,ssmin,ssmax , ssbins,ssmin,ssmax); | |
764ab1f4 | 1902 | fhMCLambda0DispPhi[ie][i]->SetXTitle("#lambda^{2}_{0}"); |
1903 | fhMCLambda0DispPhi[ie][i]->SetYTitle("#sigma^{2}_{#phi #phi}"); | |
85c4406e | 1904 | outputContainer->Add(fhMCLambda0DispPhi[ie][i]); |
764ab1f4 | 1905 | |
85c4406e | 1906 | } |
764ab1f4 | 1907 | } |
e4ef72be | 1908 | } |
1909 | ||
08c09f10 | 1910 | fhMCPtLambda0FracMaxCellCut[i] = new TH2F(Form("hELambda0FracMaxCellCut_MC%s",pname[i].Data()), |
5ba76d0d | 1911 | Form("Selected pair, cluster from %s : #it{p}_{T} vs #lambda_{0}^{2}, Max cell fraction of energy < 0.5 ",ptype[i].Data()), |
85c4406e | 1912 | nptbins,ptmin,ptmax,ssbins,ssmin,ssmax); |
08c09f10 | 1913 | fhMCPtLambda0FracMaxCellCut[i]->SetYTitle("#lambda_{0}^{2}"); |
5ba76d0d | 1914 | fhMCPtLambda0FracMaxCellCut[i]->SetXTitle("#it{E} (GeV)"); |
08c09f10 | 1915 | outputContainer->Add(fhMCPtLambda0FracMaxCellCut[i]) ; |
e4ef72be | 1916 | |
08c09f10 | 1917 | fhMCPtFracMaxCell[i] = new TH2F(Form("hEFracMaxCell_MC%s",pname[i].Data()), |
5ba76d0d | 1918 | Form("Selected pair, cluster from %s : #it{p}_{T} vs Max cell fraction of energy",ptype[i].Data()), |
85c4406e | 1919 | nptbins,ptmin,ptmax,100,0,1); |
5ba76d0d | 1920 | fhMCPtFracMaxCell[i]->SetYTitle("#it{Fraction}"); |
1921 | fhMCPtFracMaxCell[i]->SetXTitle("#it{E} (GeV)"); | |
08c09f10 | 1922 | outputContainer->Add(fhMCPtFracMaxCell[i]) ; |
e4ef72be | 1923 | |
1924 | }// | |
1925 | } // shower shape histo | |
34c16486 | 1926 | |
521636d2 | 1927 | } //Not MC reader |
477d6cee | 1928 | }//Histos with MC |
1929 | ||
4650f5cf | 1930 | if(fAnaType==kSSCalo) |
1931 | { | |
5ba76d0d | 1932 | fhAsymmetry = new TH2F ("hAsymmetry","#it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} ) vs #it{E}", |
85c4406e | 1933 | nptbins,ptmin,ptmax, 200, -1,1); |
5ba76d0d | 1934 | fhAsymmetry->SetXTitle("#it{E} (GeV)"); |
1935 | fhAsymmetry->SetYTitle("#it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} )"); | |
4650f5cf | 1936 | outputContainer->Add(fhAsymmetry); |
1937 | ||
5ba76d0d | 1938 | fhSelectedAsymmetry = new TH2F ("hSelectedAsymmetry","#it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} ) vs #it{E}", |
85c4406e | 1939 | nptbins,ptmin,ptmax, 200, -1,1); |
5ba76d0d | 1940 | fhSelectedAsymmetry->SetXTitle("#it{E} (GeV)"); |
1941 | fhSelectedAsymmetry->SetYTitle("#it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} )"); | |
4650f5cf | 1942 | outputContainer->Add(fhSelectedAsymmetry); |
1943 | ||
cfdf2b91 | 1944 | fhSplitE = new TH1F |
1945 | ("hSplitE","Selected #pi^{0} (#eta) pairs energy sum of split sub-clusters",nptbins,ptmin,ptmax); | |
1946 | fhSplitE->SetYTitle("counts"); | |
5ba76d0d | 1947 | fhSplitE->SetXTitle("#it{E} (GeV)"); |
cfdf2b91 | 1948 | outputContainer->Add(fhSplitE) ; |
1949 | ||
1950 | fhSplitPt = new TH1F | |
5ba76d0d | 1951 | ("hSplitPt","Selected #pi^{0} (#eta) pairs #it{p}_{T} sum of split sub-clusters",nptbins,ptmin,ptmax); |
cfdf2b91 | 1952 | fhSplitPt->SetYTitle("counts"); |
5ba76d0d | 1953 | fhSplitPt->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
cfdf2b91 | 1954 | outputContainer->Add(fhSplitPt) ; |
1955 | ||
29250849 | 1956 | |
1957 | fhSplitPtPhi = new TH2F | |
5ba76d0d | 1958 | ("hSplitPtPhi","Selected #pi^{0} (#eta) pairs: sum split sub-cluster #it{p}_{T} vs #phi",nptbins,ptmin,ptmax, nphibins,phimin,phimax); |
29250849 | 1959 | fhSplitPtPhi->SetYTitle("#phi (rad)"); |
5ba76d0d | 1960 | fhSplitPtPhi->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
29250849 | 1961 | outputContainer->Add(fhSplitPtPhi) ; |
1962 | ||
1963 | fhSplitPtEta = new TH2F | |
5ba76d0d | 1964 | ("hSplitPtEta","Selected #pi^{0} (#eta) pairs: sum split sub-cluster #it{p}_{T} vs #eta",nptbins,ptmin,ptmax,netabins,etamin,etamax); |
29250849 | 1965 | fhSplitPtEta->SetYTitle("#eta"); |
5ba76d0d | 1966 | fhSplitPtEta->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
29250849 | 1967 | outputContainer->Add(fhSplitPtEta) ; |
85c4406e | 1968 | |
29250849 | 1969 | |
6e66993c | 1970 | fhNLocMaxSplitPt = new TH2F("hNLocMaxSplitPt","Number of local maxima in cluster", |
08c09f10 | 1971 | nptbins,ptmin,ptmax,20,0,20); |
5ba76d0d | 1972 | fhNLocMaxSplitPt ->SetYTitle("#it{NLM}"); |
1973 | fhNLocMaxSplitPt ->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
6e66993c | 1974 | outputContainer->Add(fhNLocMaxSplitPt) ; |
85c4406e | 1975 | |
6e66993c | 1976 | |
29250849 | 1977 | fhMassSplitPt = new TH2F |
5ba76d0d | 1978 | ("hMassSplitPt","all pairs #it{M}: sum split sub-cluster #it{p}_{T} vs #it{M}", |
1253480f | 1979 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 1980 | fhMassSplitPt->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
1981 | fhMassSplitPt->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
29250849 | 1982 | outputContainer->Add(fhMassSplitPt) ; |
1983 | ||
1984 | fhSelectedMassSplitPt = new TH2F | |
5ba76d0d | 1985 | ("hSelectedMassSplitPt","Selected #pi^{0} (#eta) pairs #it{M}: sum split sub-cluster #it{p}_{T} vs #it{M}", |
1253480f | 1986 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 1987 | fhSelectedMassSplitPt->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
1988 | fhSelectedMassSplitPt->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
29250849 | 1989 | outputContainer->Add(fhSelectedMassSplitPt) ; |
1990 | ||
4650f5cf | 1991 | if(IsDataMC()) |
1992 | { | |
1253480f | 1993 | fhMassSplitPtNoOverlap = new TH2F |
5ba76d0d | 1994 | ("hMassSplitPtNoOverlap","all pairs #it{M}: sum split sub-cluster #it{p}_{T} vs #it{M}, no overlap", |
1253480f | 1995 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 1996 | fhMassSplitPtNoOverlap->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
1997 | fhMassSplitPtNoOverlap->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
1253480f | 1998 | outputContainer->Add(fhMassSplitPtNoOverlap) ; |
1999 | ||
2000 | fhSelectedMassSplitPtNoOverlap = new TH2F | |
5ba76d0d | 2001 | ("hSelectedMassSplitPtNoOverlap","Selected #pi^{0} (#eta) pairs #it{M}: sum split sub-cluster #it{p}_{T} vs #it{M}, no overlap", |
1253480f | 2002 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 2003 | fhSelectedMassSplitPtNoOverlap->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
2004 | fhSelectedMassSplitPtNoOverlap->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
1253480f | 2005 | outputContainer->Add(fhSelectedMassSplitPtNoOverlap) ; |
2006 | ||
2007 | ||
2008 | fhMCPi0PtRecoPtPrim = new TH2F | |
5ba76d0d | 2009 | ("hMCPi0PtRecoPtPrim","#it{p}_{T,reco} vs #it{p}_{T,gen}", |
1253480f | 2010 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2011 | fhMCPi0PtRecoPtPrim ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2012 | fhMCPi0PtRecoPtPrim ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2013 | outputContainer->Add(fhMCPi0PtRecoPtPrim ) ; |
2014 | ||
2015 | fhMCPi0PtRecoPtPrimNoOverlap = new TH2F | |
5ba76d0d | 2016 | ("hMCPi0PtRecoPtPrimNoOverlap","#it{p}_{T,reco} vs #it{p}_{T,gen}, no overlap", |
1253480f | 2017 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2018 | fhMCPi0PtRecoPtPrimNoOverlap ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2019 | fhMCPi0PtRecoPtPrimNoOverlap ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2020 | outputContainer->Add(fhMCPi0PtRecoPtPrimNoOverlap ) ; |
2021 | ||
2022 | fhMCPi0SelectedPtRecoPtPrim = new TH2F | |
5ba76d0d | 2023 | ("hMCPi0SelectedPtRecoPtPrim","#it{p}_{T,reco} vs #it{p}_{T,gen}", |
1253480f | 2024 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2025 | fhMCPi0SelectedPtRecoPtPrim ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2026 | fhMCPi0SelectedPtRecoPtPrim ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2027 | outputContainer->Add(fhMCPi0SelectedPtRecoPtPrim ) ; |
2028 | ||
2029 | fhMCPi0SelectedPtRecoPtPrimNoOverlap = new TH2F | |
5ba76d0d | 2030 | ("hMCPi0SelectedPtRecoPtPrimNoOverlap","#it{p}_{T,reco} vs #it{p}_{T,gen}, no overlap", |
1253480f | 2031 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2032 | fhMCPi0SelectedPtRecoPtPrimNoOverlap ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2033 | fhMCPi0SelectedPtRecoPtPrimNoOverlap ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2034 | outputContainer->Add(fhMCPi0SelectedPtRecoPtPrimNoOverlap ) ; |
2035 | ||
2036 | ||
2037 | fhMCPi0SplitPtRecoPtPrim = new TH2F | |
5ba76d0d | 2038 | ("hMCPi0SplitPtRecoPtPrim","#it{p}_{T,reco} (split sum) vs #it{p}_{T,gen}", |
1253480f | 2039 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2040 | fhMCPi0SplitPtRecoPtPrim ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2041 | fhMCPi0SplitPtRecoPtPrim ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2042 | outputContainer->Add(fhMCPi0SplitPtRecoPtPrim ) ; |
2043 | ||
2044 | fhMCPi0SplitPtRecoPtPrimNoOverlap = new TH2F | |
5ba76d0d | 2045 | ("hMCPi0SplitPtRecoPtPrimNoOverlap","#it{p}_{T,reco} (split sum) vs #it{p}_{T,gen}, no overlap", |
1253480f | 2046 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2047 | fhMCPi0SplitPtRecoPtPrimNoOverlap ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2048 | fhMCPi0SplitPtRecoPtPrimNoOverlap ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2049 | outputContainer->Add(fhMCPi0SplitPtRecoPtPrimNoOverlap ) ; |
2050 | ||
2051 | fhMCPi0SelectedSplitPtRecoPtPrim = new TH2F | |
5ba76d0d | 2052 | ("hMCPi0SelectedSplitPtRecoPtPrim","#it{p}_{T,reco} (split sum) vs #it{p}_{T,gen}", |
1253480f | 2053 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2054 | fhMCPi0SelectedSplitPtRecoPtPrim ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2055 | fhMCPi0SelectedSplitPtRecoPtPrim ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2056 | outputContainer->Add(fhMCPi0SelectedSplitPtRecoPtPrim ) ; |
2057 | ||
2058 | fhMCPi0SelectedSplitPtRecoPtPrimNoOverlap = new TH2F | |
5ba76d0d | 2059 | ("hMCPi0SelectedSplitPtRecoPtPrimNoOverlap","#it{p}_{T,reco} (split sum) vs #it{p}_{T,gen}, no overlap", |
1253480f | 2060 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2061 | fhMCPi0SelectedSplitPtRecoPtPrimNoOverlap ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2062 | fhMCPi0SelectedSplitPtRecoPtPrimNoOverlap ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2063 | outputContainer->Add(fhMCPi0SelectedSplitPtRecoPtPrimNoOverlap ) ; |
2064 | ||
2065 | fhMCEtaPtRecoPtPrim = new TH2F | |
5ba76d0d | 2066 | ("hMCEtaPtRecoPtPrim","#it{p}_{T,reco} vs #it{p}_{T,gen}", |
1253480f | 2067 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2068 | fhMCEtaPtRecoPtPrim ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2069 | fhMCEtaPtRecoPtPrim ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2070 | outputContainer->Add(fhMCEtaPtRecoPtPrim ) ; |
2071 | ||
2072 | fhMCEtaPtRecoPtPrimNoOverlap = new TH2F | |
5ba76d0d | 2073 | ("hMCEtaPtRecoPtPrimNoOverlap","#it{p}_{T,reco} vs #it{p}_{T,gen}, no overlap", |
1253480f | 2074 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2075 | fhMCEtaPtRecoPtPrimNoOverlap ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2076 | fhMCEtaPtRecoPtPrimNoOverlap ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2077 | outputContainer->Add(fhMCEtaPtRecoPtPrimNoOverlap ) ; |
2078 | ||
2079 | fhMCEtaSelectedPtRecoPtPrim = new TH2F | |
5ba76d0d | 2080 | ("hMCEtaSelectedPtRecoPtPrim","#it{p}_{T,reco} vs #it{p}_{T,gen}", |
1253480f | 2081 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2082 | fhMCEtaSelectedPtRecoPtPrim ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2083 | fhMCEtaSelectedPtRecoPtPrim ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2084 | outputContainer->Add(fhMCEtaSelectedPtRecoPtPrim ) ; |
2085 | ||
2086 | fhMCEtaSelectedPtRecoPtPrimNoOverlap = new TH2F | |
5ba76d0d | 2087 | ("hMCEtaSelectedPtRecoPtPrimNoOverlap","#it{p}_{T,reco} vs #it{p}_{T,gen}, no overlap", |
1253480f | 2088 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2089 | fhMCEtaSelectedPtRecoPtPrimNoOverlap ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2090 | fhMCEtaSelectedPtRecoPtPrimNoOverlap ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2091 | outputContainer->Add(fhMCEtaSelectedPtRecoPtPrimNoOverlap ) ; |
2092 | ||
2093 | ||
2094 | fhMCEtaSplitPtRecoPtPrim = new TH2F | |
5ba76d0d | 2095 | ("hMCEtaSplitPtRecoPtPrim","#it{p}_{T,reco} (split sum) vs #it{p}_{T,gen}", |
1253480f | 2096 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2097 | fhMCEtaSplitPtRecoPtPrim ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2098 | fhMCEtaSplitPtRecoPtPrim ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2099 | outputContainer->Add(fhMCEtaSplitPtRecoPtPrim ) ; |
2100 | ||
2101 | fhMCEtaSplitPtRecoPtPrimNoOverlap = new TH2F | |
5ba76d0d | 2102 | ("hMCEtaSplitPtRecoPtPrimNoOverlap","#it{p}_{T,reco} (split sum) vs #it{p}_{T,gen}, no overlap", |
1253480f | 2103 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2104 | fhMCEtaSplitPtRecoPtPrimNoOverlap ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2105 | fhMCEtaSplitPtRecoPtPrimNoOverlap ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2106 | outputContainer->Add(fhMCEtaSplitPtRecoPtPrimNoOverlap ) ; |
2107 | ||
2108 | fhMCEtaSelectedSplitPtRecoPtPrim = new TH2F | |
5ba76d0d | 2109 | ("hMCEtaSelectedSplitPtRecoPtPrim","#it{p}_{T,reco} (split sum) vs #it{p}_{T,gen}", |
1253480f | 2110 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2111 | fhMCEtaSelectedSplitPtRecoPtPrim ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2112 | fhMCEtaSelectedSplitPtRecoPtPrim ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2113 | outputContainer->Add(fhMCEtaSelectedSplitPtRecoPtPrim ) ; |
2114 | ||
2115 | fhMCEtaSelectedSplitPtRecoPtPrimNoOverlap = new TH2F | |
5ba76d0d | 2116 | ("hMCEtaSelectedSplitPtRecoPtPrimNoOverlap","#it{p}_{T,reco} (split sum) vs #it{p}_{T,gen}, no overlap", |
1253480f | 2117 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2118 | fhMCEtaSelectedSplitPtRecoPtPrimNoOverlap ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2119 | fhMCEtaSelectedSplitPtRecoPtPrimNoOverlap ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
1253480f | 2120 | outputContainer->Add(fhMCEtaSelectedSplitPtRecoPtPrimNoOverlap ) ; |
2121 | ||
afba5771 | 2122 | |
2123 | for(Int_t inlm = 0; inlm < 3; inlm++) | |
2124 | { | |
2125 | fhMCPi0PtRecoPtPrimLocMax[inlm] = new TH2F | |
5ba76d0d | 2126 | (Form("hMCPi0PtRecoPtPrimLocMax%d",inlm+1),Form("#it{p}_{T,reco} vs #it{p}_{T,gen}, %s",nlm[inlm].Data()), |
afba5771 | 2127 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2128 | fhMCPi0PtRecoPtPrimLocMax[inlm] ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2129 | fhMCPi0PtRecoPtPrimLocMax[inlm] ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
afba5771 | 2130 | outputContainer->Add(fhMCPi0PtRecoPtPrimLocMax[inlm] ) ; |
2131 | ||
2132 | fhMCPi0SelectedPtRecoPtPrimLocMax[inlm] = new TH2F | |
5ba76d0d | 2133 | (Form("hMCPi0SelectedPtRecoPtPrimLocMax%d",inlm+1),Form("#it{p}_{T,reco} vs #it{p}_{T,gen}, %s",nlm[inlm].Data()), |
afba5771 | 2134 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2135 | fhMCPi0SelectedPtRecoPtPrimLocMax[inlm] ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2136 | fhMCPi0SelectedPtRecoPtPrimLocMax[inlm] ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
afba5771 | 2137 | outputContainer->Add(fhMCPi0SelectedPtRecoPtPrimLocMax[inlm] ) ; |
2138 | ||
2139 | fhMCPi0SplitPtRecoPtPrimLocMax[inlm] = new TH2F | |
5ba76d0d | 2140 | (Form("hMCPi0SplitPtRecoPtPrimLocMax%d",inlm+1),Form("#it{p}_{T,reco} (split sum) vs #it{p}_{T,gen}, %s",nlm[inlm].Data()), |
afba5771 | 2141 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2142 | fhMCPi0SplitPtRecoPtPrimLocMax[inlm] ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2143 | fhMCPi0SplitPtRecoPtPrimLocMax[inlm] ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
afba5771 | 2144 | outputContainer->Add(fhMCPi0SplitPtRecoPtPrimLocMax[inlm] ) ; |
2145 | ||
2146 | fhMCPi0SelectedSplitPtRecoPtPrimLocMax[inlm] = new TH2F | |
5ba76d0d | 2147 | (Form("hMCPi0SelectedSplitPtRecoPtPrimLocMax%d",inlm+1),Form("#it{p}_{T,reco} (split sum) vs #it{p}_{T,gen}, %s",nlm[inlm].Data()), |
afba5771 | 2148 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2149 | fhMCPi0SelectedSplitPtRecoPtPrimLocMax[inlm] ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2150 | fhMCPi0SelectedSplitPtRecoPtPrimLocMax[inlm] ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
afba5771 | 2151 | outputContainer->Add(fhMCPi0SelectedSplitPtRecoPtPrimLocMax[inlm] ) ; |
2152 | ||
2153 | fhMCEtaPtRecoPtPrimLocMax[inlm] = new TH2F | |
5ba76d0d | 2154 | (Form("hMCEtaPtRecoPtPrimLocMax%d",inlm+1),Form("#it{p}_{T,reco} vs #it{p}_{T,gen}, %s",nlm[inlm].Data()), |
afba5771 | 2155 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2156 | fhMCEtaPtRecoPtPrimLocMax[inlm] ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2157 | fhMCEtaPtRecoPtPrimLocMax[inlm] ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
afba5771 | 2158 | outputContainer->Add(fhMCEtaPtRecoPtPrimLocMax[inlm] ) ; |
2159 | ||
2160 | fhMCEtaSelectedPtRecoPtPrimLocMax[inlm] = new TH2F | |
5ba76d0d | 2161 | (Form("hMCEtaSelectedPtRecoPtPrimLocMax%d",inlm+1),Form("#it{p}_{T,reco} vs #it{p}_{T,gen}, %s",nlm[inlm].Data()), |
afba5771 | 2162 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2163 | fhMCEtaSelectedPtRecoPtPrimLocMax[inlm] ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2164 | fhMCEtaSelectedPtRecoPtPrimLocMax[inlm] ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
afba5771 | 2165 | outputContainer->Add(fhMCEtaSelectedPtRecoPtPrimLocMax[inlm] ) ; |
2166 | ||
2167 | fhMCEtaSplitPtRecoPtPrimLocMax[inlm] = new TH2F | |
5ba76d0d | 2168 | (Form("hMCEtaSplitPtRecoPtPrimLocMax%d",inlm+1),Form("#it{p}_{T,reco} (split sum) vs #it{p}_{T,gen}, %s",nlm[inlm].Data()), |
afba5771 | 2169 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2170 | fhMCEtaSplitPtRecoPtPrimLocMax[inlm] ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2171 | fhMCEtaSplitPtRecoPtPrimLocMax[inlm] ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
afba5771 | 2172 | outputContainer->Add(fhMCEtaSplitPtRecoPtPrimLocMax[inlm] ) ; |
2173 | ||
2174 | fhMCEtaSelectedSplitPtRecoPtPrimLocMax[inlm] = new TH2F | |
5ba76d0d | 2175 | (Form("hMCEtaSelectedSplitPtRecoPtPrimLocMax%d",inlm+1),Form("#it{p}_{T,reco} (split sum) vs #it{p}_{T,gen}, %s",nlm[inlm].Data()), |
afba5771 | 2176 | nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); |
5ba76d0d | 2177 | fhMCEtaSelectedSplitPtRecoPtPrimLocMax[inlm] ->SetYTitle("#it{p}_{T,gen} (GeV/#it{c})"); |
2178 | fhMCEtaSelectedSplitPtRecoPtPrimLocMax[inlm] ->SetXTitle("#it{p}_{T,reco} (GeV/#it{c})"); | |
afba5771 | 2179 | outputContainer->Add(fhMCEtaSelectedSplitPtRecoPtPrimLocMax[inlm] ) ; |
2180 | ||
2181 | } | |
2182 | ||
4650f5cf | 2183 | for(Int_t i = 0; i< 6; i++) |
2184 | { | |
08c09f10 | 2185 | fhMCPtAsymmetry[i] = new TH2F (Form("hEAsymmetry_MC%s",pname[i].Data()), |
5ba76d0d | 2186 | Form("cluster from %s : #it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} ) vs #it{E}",ptype[i].Data()), |
85c4406e | 2187 | nptbins,ptmin,ptmax, 200,-1,1); |
5ba76d0d | 2188 | fhMCPtAsymmetry[i]->SetXTitle("#it{E} (GeV)"); |
2189 | fhMCPtAsymmetry[i]->SetYTitle("#it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} )"); | |
08c09f10 | 2190 | outputContainer->Add(fhMCPtAsymmetry[i]); |
cfdf2b91 | 2191 | |
2192 | fhMCSplitE[i] = new TH1F | |
2928c46d | 2193 | (Form("hSplitE_MC%s",pname[i].Data()), |
cfdf2b91 | 2194 | Form("cluster from %s, energy sum of split sub-clusters",ptype[i].Data()), |
2195 | nptbins,ptmin,ptmax); | |
2196 | fhMCSplitE[i]->SetYTitle("counts"); | |
5ba76d0d | 2197 | fhMCSplitE[i]->SetXTitle("#it{E} (GeV)"); |
cfdf2b91 | 2198 | outputContainer->Add(fhMCSplitE[i]) ; |
85c4406e | 2199 | |
cfdf2b91 | 2200 | fhMCSplitPt[i] = new TH1F |
2201 | (Form("hSplitPt_MC%s",pname[i].Data()), | |
5ba76d0d | 2202 | Form("cluster from %s, #it{p}_{T} sum of split sub-clusters",ptype[i].Data()), |
cfdf2b91 | 2203 | nptbins,ptmin,ptmax); |
2204 | fhMCSplitPt[i]->SetYTitle("counts"); | |
5ba76d0d | 2205 | fhMCSplitPt[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
cfdf2b91 | 2206 | outputContainer->Add(fhMCSplitPt[i]) ; |
2207 | ||
29250849 | 2208 | |
2209 | fhMCSplitPtPhi[i] = new TH2F | |
2210 | (Form("hSplitPtPhi_MC%s",pname[i].Data()), | |
2211 | Form("Identified as #pi^{0} (#eta), cluster from %s",ptype[i].Data()), | |
2212 | nptbins,ptmin,ptmax,nphibins,phimin,phimax); | |
2213 | fhMCSplitPtPhi[i]->SetYTitle("#phi"); | |
5ba76d0d | 2214 | fhMCSplitPtPhi[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
29250849 | 2215 | outputContainer->Add(fhMCSplitPtPhi[i]) ; |
2216 | ||
2217 | fhMCSplitPtEta[i] = new TH2F | |
2218 | (Form("hSplitPtEta_MC%s",pname[i].Data()), | |
2219 | Form("Identified as #pi^{0} (#eta), cluster from %s", | |
2220 | ptype[i].Data()),nptbins,ptmin,ptmax,netabins,etamin,etamax); | |
2221 | fhMCSplitPtEta[i]->SetYTitle("#eta"); | |
5ba76d0d | 2222 | fhMCSplitPtEta[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
29250849 | 2223 | outputContainer->Add(fhMCSplitPtEta[i]) ; |
85c4406e | 2224 | |
29250849 | 2225 | |
6e66993c | 2226 | fhMCNLocMaxSplitPt[i] = new TH2F |
2227 | (Form("hNLocMaxSplitPt_MC%s",pname[i].Data()), | |
5ba76d0d | 2228 | Form("cluster from %s, #it{p}_{T} sum of split sub-clusters, for NLM",ptype[i].Data()), |
08c09f10 | 2229 | nptbins,ptmin,ptmax,20,0,20); |
5ba76d0d | 2230 | fhMCNLocMaxSplitPt[i] ->SetYTitle("#it{NLM}"); |
2231 | fhMCNLocMaxSplitPt[i] ->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
6e66993c | 2232 | outputContainer->Add(fhMCNLocMaxSplitPt[i]) ; |
2233 | ||
29250849 | 2234 | fhMCMassSplitPt[i] = new TH2F |
2235 | (Form("hMassSplitPt_MC%s",pname[i].Data()), | |
5ba76d0d | 2236 | Form("all pairs #it{M}: split #it{p}_{T} vs #it{M} from %s",ptype[i].Data()), |
29250849 | 2237 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 2238 | fhMCMassSplitPt[i]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
2239 | fhMCMassSplitPt[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
29250849 | 2240 | outputContainer->Add(fhMCMassSplitPt[i]) ; |
2241 | ||
2242 | fhMCSelectedMassSplitPt[i] = new TH2F | |
2243 | (Form("hSelectedMassSplitPt_MC%s",pname[i].Data()), | |
5ba76d0d | 2244 | Form("Selected #pi^{0} (#eta) pairs #it{M}: split #it{p}_{T} vs #it{M} from %s",ptype[i].Data()), |
29250849 | 2245 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 2246 | fhMCSelectedMassSplitPt[i]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
2247 | fhMCSelectedMassSplitPt[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
29250849 | 2248 | outputContainer->Add(fhMCSelectedMassSplitPt[i]) ; |
1253480f | 2249 | |
2250 | fhMCMassSplitPtNoOverlap[i] = new TH2F | |
2251 | (Form("hMassSplitPtNoOverlap_MC%s",pname[i].Data()), | |
5ba76d0d | 2252 | Form("all pairs #it{M}: split #it{p}_{T} vs #it{M} from %s, no overlap",ptype[i].Data()), |
1253480f | 2253 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 2254 | fhMCMassSplitPtNoOverlap[i]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
2255 | fhMCMassSplitPtNoOverlap[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
1253480f | 2256 | outputContainer->Add(fhMCMassSplitPtNoOverlap[i]) ; |
29250849 | 2257 | |
1253480f | 2258 | fhMCSelectedMassSplitPtNoOverlap[i] = new TH2F |
2259 | (Form("hSelectedMassSplitPtNoOverlap_MC%s",pname[i].Data()), | |
5ba76d0d | 2260 | Form("Selected #pi^{0} (#eta) pairs #it{M}: split #it{p}_{T} vs #it{M} from %s, no overlap",ptype[i].Data()), |
1253480f | 2261 | nptbins,ptmin,ptmax, nmassbins,massmin,massmax); |
5ba76d0d | 2262 | fhMCSelectedMassSplitPtNoOverlap[i]->SetYTitle("#it{M} (GeV/#it{c}^{2})"); |
2263 | fhMCSelectedMassSplitPtNoOverlap[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
1253480f | 2264 | outputContainer->Add(fhMCSelectedMassSplitPtNoOverlap[i]) ; |
85c4406e | 2265 | } |
4650f5cf | 2266 | } |
2267 | } | |
477d6cee | 2268 | |
764ab1f4 | 2269 | if(fAnaType==kSSCalo && fFillSelectClHisto && !fFillOnlySimpleSSHisto ) |
bfdcf7fb | 2270 | { |
2271 | ||
bfdcf7fb | 2272 | |
2273 | for(Int_t i = 0; i< 3; i++) | |
2274 | { | |
08c09f10 | 2275 | fhPtAsymmetryLocMax[i] = new TH2F(Form("hEAsymmetryLocMax%d",i+1), |
5ba76d0d | 2276 | Form("Selected #pi^{0} (#eta) pairs: #it{p}_{T} vs #it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} ), %s",nlm[i].Data()), |
85c4406e | 2277 | nptbins,ptmin,ptmax,200, -1,1); |
5ba76d0d | 2278 | fhPtAsymmetryLocMax[i]->SetYTitle("#it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} )"); |
2279 | fhPtAsymmetryLocMax[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
08c09f10 | 2280 | outputContainer->Add(fhPtAsymmetryLocMax[i]) ; |
bfdcf7fb | 2281 | } |
2282 | ||
d2655d46 | 2283 | for(Int_t ie = 0; ie< 7; ie++) |
bfdcf7fb | 2284 | { |
2285 | ||
2286 | fhAsymmetryLambda0[ie] = new TH2F (Form("hAsymmetryLambda0_EBin%d",ie), | |
5ba76d0d | 2287 | Form("#lambda_{0}^{2} vs A for %d < #it{E} < %d GeV",bin[ie],bin[ie+1]), |
85c4406e | 2288 | ssbins,ssmin,ssmax , 200,-1,1); |
bfdcf7fb | 2289 | fhAsymmetryLambda0[ie]->SetXTitle("#lambda_{0}^{2}"); |
2290 | fhAsymmetryLambda0[ie]->SetYTitle("A = ( E1 - E2 ) / ( E1 + E2 )"); | |
85c4406e | 2291 | outputContainer->Add(fhAsymmetryLambda0[ie]); |
bfdcf7fb | 2292 | |
2293 | fhAsymmetryDispEta[ie] = new TH2F (Form("hAsymmetryDispEta_EBin%d",ie), | |
5ba76d0d | 2294 | Form("#sigma^{2}_{#eta #eta} vs #it{A} for %d < #it{E} < %d GeV",bin[ie],bin[ie+1]), |
85c4406e | 2295 | ssbins,ssmin,ssmax , 200,-1,1); |
bfdcf7fb | 2296 | fhAsymmetryDispEta[ie]->SetXTitle("#sigma^{2}_{#eta #eta}"); |
5ba76d0d | 2297 | fhAsymmetryDispEta[ie]->SetYTitle("#it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} )"); |
85c4406e | 2298 | outputContainer->Add(fhAsymmetryDispEta[ie]); |
bfdcf7fb | 2299 | |
2300 | fhAsymmetryDispPhi[ie] = new TH2F (Form("hAsymmetryDispPhi_EBin%d",ie), | |
5ba76d0d | 2301 | Form("#sigma^{2}_{#phi #phi} vs #it{A} for %d < #it{E} < %d GeV",bin[ie],bin[ie+1]), |
85c4406e | 2302 | ssbins,ssmin,ssmax , 200,-1,1); |
bfdcf7fb | 2303 | fhAsymmetryDispPhi[ie]->SetXTitle("#sigma^{2}_{#phi #phi}"); |
5ba76d0d | 2304 | fhAsymmetryDispPhi[ie]->SetYTitle("#it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} )"); |
85c4406e | 2305 | outputContainer->Add(fhAsymmetryDispPhi[ie]); |
2306 | } | |
bfdcf7fb | 2307 | |
2308 | ||
85c4406e | 2309 | if(IsDataMC()) |
bfdcf7fb | 2310 | { |
2311 | for(Int_t i = 0; i< 6; i++) | |
2312 | { | |
d2655d46 | 2313 | for(Int_t ie = 0; ie < 7; ie++) |
bfdcf7fb | 2314 | { |
2315 | fhMCAsymmetryLambda0[ie][i] = new TH2F (Form("hMCAsymmetryLambda0_EBin%d_MC%s",ie,pname[i].Data()), | |
5ba76d0d | 2316 | Form("cluster from %s : #lambda_{0}^{2} vs A for %d < #it{E} < %d GeV",pname[i].Data(),bin[ie],bin[ie+1]), |
85c4406e | 2317 | ssbins,ssmin,ssmax , 200,-1,1); |
bfdcf7fb | 2318 | fhMCAsymmetryLambda0[ie][i]->SetXTitle("#lambda_{0}^{2}"); |
5ba76d0d | 2319 | fhMCAsymmetryLambda0[ie][i]->SetYTitle("#it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} )"); |
85c4406e | 2320 | outputContainer->Add(fhMCAsymmetryLambda0[ie][i]); |
bfdcf7fb | 2321 | |
2322 | fhMCAsymmetryDispEta[ie][i] = new TH2F (Form("hMCAsymmetryDispEta_EBin%d_MC%s",ie,pname[i].Data()), | |
5ba76d0d | 2323 | Form("cluster from %s : #sigma^{2}_{#eta #eta} vs #it{A} for %d < #it{E} < %d GeV",pname[i].Data(),bin[ie],bin[ie+1]), |
85c4406e | 2324 | ssbins,ssmin,ssmax , 200,-1,1); |
bfdcf7fb | 2325 | fhMCAsymmetryDispEta[ie][i]->SetXTitle("#sigma^{2}_{#eta #eta}"); |
5ba76d0d | 2326 | fhMCAsymmetryDispEta[ie][i]->SetYTitle("#it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} )"); |
85c4406e | 2327 | outputContainer->Add(fhMCAsymmetryDispEta[ie][i]); |
bfdcf7fb | 2328 | |
2329 | fhMCAsymmetryDispPhi[ie][i] = new TH2F (Form("hMCAsymmetryDispPhi_EBin%d_MC%s",ie,pname[i].Data()), | |
5ba76d0d | 2330 | Form("cluster from %s : #sigma^{2}_{#phi #phi} vs #it{A} for %d < #it{E} < %d GeV",pname[i].Data(),bin[ie],bin[ie+1]), |
85c4406e | 2331 | ssbins,ssmin,ssmax , 200,-1,1); |
bfdcf7fb | 2332 | fhMCAsymmetryDispPhi[ie][i]->SetXTitle("#sigma^{2}_{#phi #phi}"); |
5ba76d0d | 2333 | fhMCAsymmetryDispPhi[ie][i]->SetYTitle("#it{A} = ( #it{E}_{1} - #it{E}_{2} ) / ( #it{E}_{1} + #it{E}_{2} )"); |
85c4406e | 2334 | outputContainer->Add(fhMCAsymmetryDispPhi[ie][i]); |
2335 | } | |
bfdcf7fb | 2336 | } |
2337 | } | |
bfdcf7fb | 2338 | } |
2339 | ||
2ad19c3d | 2340 | if(fFillPileUpHistograms) |
2341 | { | |
5e5e056f | 2342 | |
2343 | TString pileUpName[] = {"SPD","EMCAL","SPDOrEMCAL","SPDAndEMCAL","SPDAndNotEMCAL","EMCALAndNotSPD","NotSPDAndNotEMCAL"} ; | |
85c4406e | 2344 | |
5e5e056f | 2345 | for(Int_t i = 0 ; i < 7 ; i++) |
2346 | { | |
126b8c62 | 2347 | fhPtPileUp[i] = new TH1F(Form("hPtPileUp%s",pileUpName[i].Data()), |
5ba76d0d | 2348 | Form("Selected #pi^{0} (#eta) #it{p}_{T} distribution, %s Pile-Up event",pileUpName[i].Data()), nptbins,ptmin,ptmax); |
2349 | fhPtPileUp[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
126b8c62 | 2350 | outputContainer->Add(fhPtPileUp[i]); |
2351 | ||
2352 | fhPtCellTimePileUp[i] = new TH2F(Form("hPtCellTimePileUp%s",pileUpName[i].Data()), | |
2353 | Form("Pt vs cell time in cluster, %s Pile-Up event",pileUpName[i].Data()), | |
08c09f10 | 2354 | nptbins,ptmin,ptmax,ntimptbins,timemin,timemax); |
5ba76d0d | 2355 | fhPtCellTimePileUp[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
2356 | fhPtCellTimePileUp[i]->SetYTitle("#it{t}_{cell} (ns)"); | |
126b8c62 | 2357 | outputContainer->Add(fhPtCellTimePileUp[i]); |
2358 | ||
2359 | fhPtTimeDiffPileUp[i] = new TH2F(Form("hPtTimeDiffPileUp%s",pileUpName[i].Data()), | |
2360 | Form("Pt vs t_{max}-t_{cell} in cluster, %s Pile-Up event",pileUpName[i].Data()), | |
e31d67f1 | 2361 | nptbins,ptmin,ptmax,400,-200,200); |
5ba76d0d | 2362 | fhPtTimeDiffPileUp[i]->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
2363 | fhPtTimeDiffPileUp[i]->SetYTitle("#it{t}_{max}-#it{t}_{cell} (ns)"); | |
126b8c62 | 2364 | outputContainer->Add(fhPtTimeDiffPileUp[i]); |
2365 | ||
5e5e056f | 2366 | } |
2367 | ||
5ba76d0d | 2368 | fhTimePtNoCut = new TH2F ("hTimePt_NoCut","#it{t} of cluster vs #it{E} of clusters, no cut", nptbins,ptmin,ptmax, ntimptbins,timemin,timemax); |
2369 | fhTimePtNoCut->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
2370 | fhTimePtNoCut->SetYTitle("#it{t} (ns)"); | |
126b8c62 | 2371 | outputContainer->Add(fhTimePtNoCut); |
2ad19c3d | 2372 | |
5ba76d0d | 2373 | fhTimePtSPD = new TH2F ("hTimePt_SPD","#it{t} of cluster vs #it{E} of clusters, SPD cut", nptbins,ptmin,ptmax, ntimptbins,timemin,timemax); |
2374 | fhTimePtSPD->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
2375 | fhTimePtSPD->SetYTitle("#it{t} (ns)"); | |
126b8c62 | 2376 | outputContainer->Add(fhTimePtSPD); |
2ad19c3d | 2377 | |
5ba76d0d | 2378 | fhTimePtSPDMulti = new TH2F ("hTimePt_SPDMulti","time of cluster vs #it{E} of clusters, SPD multi cut", nptbins,ptmin,ptmax, ntimptbins,timemin,timemax); |
2379 | fhTimePtSPDMulti->SetXTitle("#it{p}_{T} (GeV/#it{c})"); | |
2380 | fhTimePtSPDMulti->SetYTitle("#it{t} (ns)"); | |
126b8c62 | 2381 | outputContainer->Add(fhTimePtSPDMulti); |
2ad19c3d | 2382 | |
5ba76d0d | 2383 | fhTimeNPileUpVertSPD = new TH2F ("hTime_NPileUpVertSPD","#it{t} of cluster vs #it{N} pile-up SPD vertex", ntimptbins,timemin,timemax,50,0,50); |
2ad19c3d | 2384 | fhTimeNPileUpVertSPD->SetYTitle("# vertex "); |
5ba76d0d | 2385 | fhTimeNPileUpVertSPD->SetXTitle("#it{t} (ns)"); |
85c4406e | 2386 | outputContainer->Add(fhTimeNPileUpVertSPD); |
2ad19c3d | 2387 | |
5ba76d0d | 2388 | fhTimeNPileUpVertTrack = new TH2F ("hTime_NPileUpVertTracks","#it{t} of cluster vs #it{N} pile-up Tracks vertex", ntimptbins,timemin,timemax, 50,0,50 ); |
2ad19c3d | 2389 | fhTimeNPileUpVertTrack->SetYTitle("# vertex "); |
5ba76d0d | 2390 | fhTimeNPileUpVertTrack->SetXTitle("#it{t} (ns)"); |
85c4406e | 2391 | outputContainer->Add(fhTimeNPileUpVertTrack); |
2ad19c3d | 2392 | |
5ba76d0d | 2393 | fhTimeNPileUpVertContributors = new TH2F ("hTime_NPileUpVertContributors","#it{t} of cluster vs #it{N} constributors to pile-up SPD vertex", ntimptbins,timemin,timemax,50,0,50); |
2ad19c3d | 2394 | fhTimeNPileUpVertContributors->SetYTitle("# vertex "); |
5ba76d0d | 2395 | fhTimeNPileUpVertContributors->SetXTitle("#it{t} (ns)"); |
85c4406e | 2396 | outputContainer->Add(fhTimeNPileUpVertContributors); |
2ad19c3d | 2397 | |
5ba76d0d | 2398 | fhTimePileUpMainVertexZDistance = new TH2F ("hTime_PileUpMainVertexZDistance","#it{t} of cluster vs distance in #it{Z} pile-up SPD vertex - main SPD vertex",ntimptbins,timemin,timemax,100,0,50); |
2399 | fhTimePileUpMainVertexZDistance->SetYTitle("distance #it{Z} (cm) "); | |
2400 | fhTimePileUpMainVertexZDistance->SetXTitle("#it{t} (ns)"); | |
85c4406e | 2401 | outputContainer->Add(fhTimePileUpMainVertexZDistance); |
2ad19c3d | 2402 | |
5ba76d0d | 2403 | fhTimePileUpMainVertexZDiamond = new TH2F ("hTime_PileUpMainVertexZDiamond","#it{t} of cluster vs distance in #it{Z} pile-up SPD vertex - z diamond",ntimptbins,timemin,timemax,100,0,50); |
2404 | fhTimePileUpMainVertexZDiamond->SetYTitle("diamond distance #it{Z} (cm) "); | |
2405 | fhTimePileUpMainVertexZDiamond->SetXTitle("#it{t} (ns)"); | |
85c4406e | 2406 | outputContainer->Add(fhTimePileUpMainVertexZDiamond); |
0f7e7205 | 2407 | |
5ba76d0d | 2408 | fhPtNPileUpSPDVtx = new TH2F ("hPt_NPileUpVertSPD","#it{p}_{T} of cluster vs #it{N} pile-up SPD vertex", |
85c4406e | 2409 | nptbins,ptmin,ptmax,20,0,20); |
0f7e7205 | 2410 | fhPtNPileUpSPDVtx->SetYTitle("# vertex "); |
5ba76d0d | 2411 | fhPtNPileUpSPDVtx->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
0f7e7205 | 2412 | outputContainer->Add(fhPtNPileUpSPDVtx); |
2413 | ||
5ba76d0d | 2414 | fhPtNPileUpTrkVtx = new TH2F ("hPt_NPileUpVertTracks","#it{p}_{T} of cluster vs #it{N} pile-up Tracks vertex", |
85c4406e | 2415 | nptbins,ptmin,ptmax, 20,0,20 ); |
0f7e7205 | 2416 | fhPtNPileUpTrkVtx->SetYTitle("# vertex "); |
5ba76d0d | 2417 | fhPtNPileUpTrkVtx->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
85c4406e | 2418 | outputContainer->Add(fhPtNPileUpTrkVtx); |
0f7e7205 | 2419 | |
5ba76d0d | 2420 | fhPtNPileUpSPDVtxTimeCut = new TH2F ("hPt_NPileUpVertSPD_TimeCut","#it{p}_{T} of cluster vs N pile-up SPD vertex, |tof| < 25 ns", |
85c4406e | 2421 | nptbins,ptmin,ptmax,20,0,20); |
0f7e7205 | 2422 | fhPtNPileUpSPDVtxTimeCut->SetYTitle("# vertex "); |
5ba76d0d | 2423 | fhPtNPileUpSPDVtxTimeCut->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
0f7e7205 | 2424 | outputContainer->Add(fhPtNPileUpSPDVtxTimeCut); |
2425 | ||
5ba76d0d | 2426 | fhPtNPileUpTrkVtxTimeCut = new TH2F ("hPt_NPileUpVertTracks_TimeCut","#it{p}_{T} of cluster vs N pile-up Tracks vertex, |tof| < 25 ns", |
85c4406e | 2427 | nptbins,ptmin,ptmax, 20,0,20 ); |
0f7e7205 | 2428 | fhPtNPileUpTrkVtxTimeCut->SetYTitle("# vertex "); |
5ba76d0d | 2429 | fhPtNPileUpTrkVtxTimeCut->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
85c4406e | 2430 | outputContainer->Add(fhPtNPileUpTrkVtxTimeCut); |
2431 | ||
5ba76d0d | 2432 | fhPtNPileUpSPDVtxTimeCut2 = new TH2F ("hPt_NPileUpVertSPD_TimeCut2","#it{p}_{T} of cluster vs N pile-up SPD vertex, -25 < tof < 75 ns", |
85c4406e | 2433 | nptbins,ptmin,ptmax,20,0,20); |
2434 | fhPtNPileUpSPDVtxTimeCut2->SetYTitle("# vertex "); | |
5ba76d0d | 2435 | fhPtNPileUpSPDVtxTimeCut2->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
85c4406e | 2436 | outputContainer->Add(fhPtNPileUpSPDVtxTimeCut2); |
2437 | ||
5ba76d0d | 2438 | fhPtNPileUpTrkVtxTimeCut2 = new TH2F ("hPt_NPileUpVertTracks_TimeCut2","#it{p}_{T} of cluster vs N pile-up Tracks vertex, -25 < tof < 75 ns", |
85c4406e | 2439 | nptbins,ptmin,ptmax, 20,0,20 ); |
2440 | fhPtNPileUpTrkVtxTimeCut2->SetYTitle("# vertex "); | |
5ba76d0d | 2441 | fhPtNPileUpTrkVtxTimeCut2->SetXTitle("#it{p}_{T} (GeV/#it{c})"); |
85c4406e | 2442 | outputContainer->Add(fhPtNPileUpTrkVtxTimeCut2); |
2443 | ||
2ad19c3d | 2444 | } |
2445 | ||
477d6cee | 2446 | //Keep neutral meson selection histograms if requiered |
2447 | //Setting done in AliNeutralMesonSelection | |
2448 | ||
e4ef72be | 2449 | if(fAnaType!=kSSCalo && GetNeutralMesonSelection()) |
2450 | { | |
477d6cee | 2451 | TList * nmsHistos = GetNeutralMesonSelection()->GetCreateOutputObjects() ; |
e4ef72be | 2452 | |
477d6cee | 2453 | if(GetNeutralMesonSelection()->AreNeutralMesonSelectionHistosKept()) |
2454 | for(Int_t i = 0; i < nmsHistos->GetEntries(); i++) outputContainer->Add(nmsHistos->At(i)) ; | |
e4ef72be | 2455 | |
5ae09196 | 2456 | delete nmsHistos; |
477d6cee | 2457 | } |
2458 | ||
477d6cee | 2459 | return outputContainer ; |
2460 | ||
2461 | } | |
2462 | ||
3455f821 | 2463 | //_____________________________________________ |
2464 | Int_t AliAnaPi0EbE::GetMCIndex(const Int_t tag) | |
85c4406e | 2465 | { |
3455f821 | 2466 | |
2467 | // Assign mc index depending on MC bit set | |
2468 | ||
2469 | if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0) ) | |
2470 | { | |
85c4406e | 2471 | return kmcPi0 ; |
3455f821 | 2472 | }//pi0 |
2473 | else if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCEta) ) | |
2474 | { | |
85c4406e | 2475 | return kmcEta ; |
2476 | }//eta | |
3455f821 | 2477 | else if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPhoton) && |
1253480f | 2478 | GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCConversion) ) |
3455f821 | 2479 | { |
85c4406e | 2480 | return kmcConversion ; |
3455f821 | 2481 | }//conversion photon |
2482 | else if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPhoton) ) | |
2483 | { | |
85c4406e | 2484 | return kmcPhoton ; |
3455f821 | 2485 | }//photon no conversion |
2486 | else if ( GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCElectron)) | |
2487 | { | |
85c4406e | 2488 | return kmcElectron ; |
3455f821 | 2489 | }//electron |
85c4406e | 2490 | else |
3455f821 | 2491 | { |
85c4406e | 2492 | return kmcHadron ; |
2493 | }//other particles | |
3455f821 | 2494 | |
2495 | } | |
2496 | ||
2497 | //__________________________________________________________________ | |
85c4406e | 2498 | void AliAnaPi0EbE::HasPairSameMCMother(AliAODPWG4Particle * photon1, |
2499 | AliAODPWG4Particle * photon2, | |
3455f821 | 2500 | Int_t & label, Int_t & tag) |
2501 | { | |
2502 | // Check the labels of pare in case mother was same pi0 or eta | |
2503 | // Set the new AOD accordingly | |
2504 | ||
2505 | Int_t label1 = photon1->GetLabel(); | |
2506 | Int_t label2 = photon2->GetLabel(); | |
2507 | ||
2508 | if(label1 < 0 || label2 < 0 ) return ; | |
2509 | ||
2644ead9 | 2510 | //Int_t tag1 = GetMCAnalysisUtils()->CheckOrigin(label1, GetReader()); |
2511 | //Int_t tag2 = GetMCAnalysisUtils()->CheckOrigin(label2, GetReader()); | |
3455f821 | 2512 | Int_t tag1 = photon1->GetTag(); |
2513 | Int_t tag2 = photon2->GetTag(); | |
2514 | ||
2515 | if(GetDebug() > 0) printf("AliAnaPi0EbE::MakeInvMassInCalorimeter() - Origin of: photon1 %d; photon2 %d \n",tag1, tag2); | |
85c4406e | 2516 | if( (GetMCAnalysisUtils()->CheckTagBit(tag1,AliMCAnalysisUtils::kMCPi0Decay) && |
3455f821 | 2517 | GetMCAnalysisUtils()->CheckTagBit(tag2,AliMCAnalysisUtils::kMCPi0Decay) ) || |
08c09f10 | 2518 | (GetMCAnalysisUtils()->CheckTagBit(tag1,AliMCAnalysisUtils::kMCEtaDecay) && |
2519 | GetMCAnalysisUtils()->CheckTagBit(tag2,AliMCAnalysisUtils::kMCEtaDecay) ) | |
3455f821 | 2520 | ) |
2521 | { | |
2522 | ||
2523 | //Check if pi0/eta mother is the same | |
2524 | if(GetReader()->ReadStack()) | |
85c4406e | 2525 | { |
3455f821 | 2526 | if(label1>=0) |
2527 | { | |
2528 | TParticle * mother1 = GetMCStack()->Particle(label1);//photon in kine tree | |
2529 | label1 = mother1->GetFirstMother(); | |
2530 | //mother1 = GetMCStack()->Particle(label1);//pi0 | |
2531 | } | |
2532 | if(label2>=0) | |
2533 | { | |
2534 | TParticle * mother2 = GetMCStack()->Particle(label2);//photon in kine tree | |
2535 | label2 = mother2->GetFirstMother(); | |
2536 | //mother2 = GetMCStack()->Particle(label2);//pi0 | |
2537 | } | |
2538 | } // STACK | |
2539 | else if(GetReader()->ReadAODMCParticles()) | |
2540 | {//&& (input > -1)){ | |
2541 | if(label1>=0) | |
2542 | { | |
2644ead9 | 2543 | AliAODMCParticle * mother1 = (AliAODMCParticle *) (GetReader()->GetAODMCParticles())->At(label1);//photon in kine tree |
3455f821 | 2544 | label1 = mother1->GetMother(); |
2545 | //mother1 = GetMCStack()->Particle(label1);//pi0 | |
2546 | } | |
2547 | if(label2>=0) | |
2548 | { | |
2644ead9 | 2549 | AliAODMCParticle * mother2 = (AliAODMCParticle *) (GetReader()->GetAODMCParticles())->At(label2);//photon in kine tree |
3455f821 | 2550 | label2 = mother2->GetMother(); |
2551 | //mother2 = GetMCStack()->Particle(label2);//pi0 | |
2552 | } | |
2553 | }// AOD | |
2554 | ||
2555 | //printf("mother1 %d, mother2 %d\n",label1,label2); | |
2556 | if( label1 == label2 && label1>=0 ) | |
2557 | { | |
2558 | ||
2559 | label = label1; | |
2560 | ||
2561 | TLorentzVector mom1 = *(photon1->Momentum()); | |
2562 | TLorentzVector mom2 = *(photon2->Momentum()); | |
2563 | ||
2564 | Double_t angle = mom2.Angle(mom1.Vect()); | |
2565 | Double_t mass = (mom1+mom2).M(); | |
2566 | Double_t epair = (mom1+mom2).E(); | |
2567 | ||
2568 | if(GetMCAnalysisUtils()->CheckTagBit(tag1,AliMCAnalysisUtils::kMCPi0Decay)) | |
2569 | { | |
2570 | fhMassPairMCPi0 ->Fill(epair,mass); | |
2571 | fhAnglePairMCPi0->Fill(epair,angle); | |
2572 | GetMCAnalysisUtils()->SetTagBit(tag,AliMCAnalysisUtils::kMCPi0); | |
2573 | } | |
85c4406e | 2574 | else |
3455f821 | 2575 | { |
2576 | fhMassPairMCEta ->Fill(epair,mass); | |
2577 | fhAnglePairMCEta->Fill(epair,angle); | |
2578 | GetMCAnalysisUtils()->SetTagBit(tag,AliMCAnalysisUtils::kMCEta); | |
2579 | } | |
2580 | ||
2581 | } // same label | |
2582 | } // both from eta or pi0 decay | |
2583 | ||
85c4406e | 2584 | } |
3455f821 | 2585 | |
521636d2 | 2586 | //____________________________________________________________________________ |
2587 | void AliAnaPi0EbE::Init() | |
85c4406e | 2588 | { |
521636d2 | 2589 | //Init |
2590 | //Do some checks | |
2591 | if(fCalorimeter == "PHOS" && !GetReader()->IsPHOSSwitchedOn() && NewOutputAOD()){ | |
2592 | printf("AliAnaPi0EbE::Init() - !!STOP: You want to use PHOS in analysis but it is not read!! \n!!Check the configuration file!!\n"); | |
2593 | abort(); | |
2594 | } | |
2595 | else if(fCalorimeter == "EMCAL" && !GetReader()->IsEMCALSwitchedOn() && NewOutputAOD()){ | |
2596 | printf("AliAnaPi0EbE::Init() - !!STOP: You want to use EMCAL in analysis but it is not read!! \n!!Check the configuration file!!\n"); | |
2597 | abort(); | |
2598 | } | |
2599 | ||
2600 | } | |
2601 | ||
2602 | //____________________________________________________________________________ | |
2603 | void AliAnaPi0EbE::InitParameters() | |
2604 | { | |
85c4406e | 2605 | //Initialize the parameters of the analysis. |
5d0ba847 | 2606 | AddToHistogramsName("AnaPi0EbE_"); |
521636d2 | 2607 | |
1db06135 | 2608 | fInputAODGammaConvName = "PhotonsCTS" ; |
521636d2 | 2609 | fAnaType = kIMCalo ; |
2610 | fCalorimeter = "EMCAL" ; | |
2611 | fMinDist = 2.; | |
2612 | fMinDist2 = 4.; | |
2613 | fMinDist3 = 5.; | |
2614 | ||
4d97a954 | 2615 | fNLMECutMin[0] = 10.; |
2616 | fNLMECutMin[1] = 6. ; | |
2617 | fNLMECutMin[2] = 6. ; | |
521636d2 | 2618 | } |
2619 | ||
477d6cee | 2620 | //__________________________________________________________________ |
85c4406e | 2621 | void AliAnaPi0EbE::MakeAnalysisFillAOD() |
477d6cee | 2622 | { |
2623 | //Do analysis and fill aods | |
2624 | ||
85c4406e | 2625 | switch(fAnaType) |
521636d2 | 2626 | { |
477d6cee | 2627 | case kIMCalo: |
2628 | MakeInvMassInCalorimeter(); | |
2629 | break; | |
2630 | ||
2631 | case kSSCalo: | |
2632 | MakeShowerShapeIdentification(); | |
2633 | break; | |
2634 | ||
2635 | case kIMCaloTracks: | |
2636 | MakeInvMassInCalorimeterAndCTS(); | |
2637 | break; | |
2638 | ||
521636d2 | 2639 | } |
477d6cee | 2640 | } |
2641 | ||
42d47cb7 | 2642 | //____________________________________________ |
85c4406e | 2643 | void AliAnaPi0EbE::MakeInvMassInCalorimeter() |
477d6cee | 2644 | { |
57b97dc6 | 2645 | //Do analysis and fill aods |
2646 | //Search for the photon decay in calorimeters | |
2647 | //Read photon list from AOD, produced in class AliAnaPhoton | |
2648 | //Check if 2 photons have the mass of the pi0. | |
477d6cee | 2649 | |
2650 | TLorentzVector mom1; | |
2651 | TLorentzVector mom2; | |
2652 | TLorentzVector mom ; | |
85c4406e | 2653 | |
b5dbb99b | 2654 | Int_t tag = 0; |
2655 | Int_t label = 0; | |
477d6cee | 2656 | |
2657 | if(!GetInputAODBranch()){ | |
a3aebfff | 2658 | printf("AliAnaPi0EbE::MakeInvMassInCalorimeter() - No input calo photons in AOD with name branch < %s >, STOP \n",GetInputAODName().Data()); |
477d6cee | 2659 | abort(); |
2660 | } | |
f8006433 | 2661 | |
42d47cb7 | 2662 | //Get shower shape information of clusters |
2663 | TObjArray *clusters = 0; | |
2664 | if (fCalorimeter=="EMCAL") clusters = GetEMCALClusters(); | |
2665 | else if(fCalorimeter=="PHOS") clusters = GetPHOSClusters() ; | |
2666 | ||
c4a7d28a | 2667 | for(Int_t iphoton = 0; iphoton < GetInputAODBranch()->GetEntriesFast()-1; iphoton++){ |
477d6cee | 2668 | AliAODPWG4Particle * photon1 = (AliAODPWG4Particle*) (GetInputAODBranch()->At(iphoton)); |
c8fe2783 | 2669 | |
c4a7d28a | 2670 | //Vertex cut in case of mixed events |
85c4406e | 2671 | Int_t evtIndex1 = 0 ; |
c8fe2783 | 2672 | if(GetMixedEvent()) |
2673 | evtIndex1 = GetMixedEvent()->EventIndexForCaloCluster(photon1->GetCaloLabel(0)) ; | |
5025c139 | 2674 | if(TMath::Abs(GetVertex(evtIndex1)[2]) > GetZvertexCut()) continue ; //vertex cut |
477d6cee | 2675 | mom1 = *(photon1->Momentum()); |
2676 | ||
42d47cb7 | 2677 | //Get original cluster, to recover some information |
1db06135 | 2678 | Int_t iclus = -1; |
85c4406e | 2679 | AliVCluster *cluster1 = FindCluster(clusters,photon1->GetCaloLabel(0),iclus); |
42d47cb7 | 2680 | |
1db06135 | 2681 | if(!cluster1){ |
42d47cb7 | 2682 | printf("AliAnaPi0EbE::MakeInvMassInCalorimeter() - First cluster not found\n"); |
2683 | return; | |
9ab9e937 | 2684 | } |
c4a7d28a | 2685 | |
b5dbb99b | 2686 | for(Int_t jphoton = iphoton+1; jphoton < GetInputAODBranch()->GetEntriesFast(); jphoton++) |
2687 | { | |
a3aebfff | 2688 | AliAODPWG4Particle * photon2 = (AliAODPWG4Particle*) (GetInputAODBranch()->At(jphoton)); |
b5dbb99b | 2689 | |
85c4406e | 2690 | Int_t evtIndex2 = 0 ; |
c8fe2783 | 2691 | if(GetMixedEvent()) |
2692 | evtIndex2 = GetMixedEvent()->EventIndexForCaloCluster(photon2->GetCaloLabel(0)) ; | |
b5dbb99b | 2693 | |
c8fe2783 | 2694 | if(GetMixedEvent() && (evtIndex1 == evtIndex2)) |
85c4406e | 2695 | continue ; |
b5dbb99b | 2696 | |
5025c139 | 2697 | if(TMath::Abs(GetVertex(evtIndex2)[2]) > GetZvertexCut()) continue ; //vertex cut |
b5dbb99b | 2698 | |
477d6cee | 2699 | mom2 = *(photon2->Momentum()); |
c4a7d28a | 2700 | |
1db06135 | 2701 | //Get original cluster, to recover some information |
5d0ba847 | 2702 | Int_t iclus2 = -1; |
85c4406e | 2703 | AliVCluster *cluster2 = FindCluster(clusters,photon2->GetCaloLabel(0),iclus2,iclus+1); |
5d0ba847 | 2704 | // start new loop from iclus1+1 to gain some time |
2705 | ||
b5dbb99b | 2706 | if(!cluster2) |
2707 | { | |
42d47cb7 | 2708 | printf("AliAnaPi0EbE::MakeInvMassInCalorimeter() - Second cluster not found\n"); |
1db06135 | 2709 | return; |
9ab9e937 | 2710 | } |
c4a7d28a | 2711 | |
85c4406e | 2712 | Float_t e1 = photon1->E(); |
42d47cb7 | 2713 | Float_t e2 = photon2->E(); |
2714 | ||
2715 | //Select clusters with good time window difference | |
2716 | Float_t tof1 = cluster1->GetTOF()*1e9;; | |
2717 | Float_t tof2 = cluster2->GetTOF()*1e9;; | |
2718 | Double_t t12diff = tof1-tof2; | |
2719 | fhEPairDiffTime->Fill(e1+e2, t12diff); | |
2720 | if(TMath::Abs(t12diff) > GetPairTimeCut()) continue; | |
2721 | ||
b5dbb99b | 2722 | //Play with the MC stack if available |
2723 | if(IsDataMC()) HasPairSameMCMother(photon1, photon2, label, tag) ; | |
85c4406e | 2724 | |
5c46c992 | 2725 | // Check the invariant mass for different selection on the local maxima |
2726 | // Name of AOD method TO BE FIXED | |
2727 | Int_t nMaxima1 = photon1->GetFiducialArea(); | |
2728 | Int_t nMaxima2 = photon2->GetFiducialArea(); | |
2729 | ||
5d0ba847 | 2730 | mom = mom1+mom2; |
2731 | ||
2732 | Double_t mass = mom.M(); | |
2733 | Double_t epair = mom.E(); | |
5c46c992 | 2734 | |
2735 | if(nMaxima1==nMaxima2) | |
2736 | { | |
2737 | if (nMaxima1==1) fhMassPairLocMax[0]->Fill(epair,mass); | |
2738 | else if(nMaxima1==2) fhMassPairLocMax[1]->Fill(epair,mass); | |
2739 | else fhMassPairLocMax[2]->Fill(epair,mass); | |
2740 | } | |
2741 | else if(nMaxima1==1 || nMaxima2==1) | |
2742 | { | |
2743 | if (nMaxima1==2 || nMaxima2==2) fhMassPairLocMax[3]->Fill(epair,mass); | |
85c4406e | 2744 | else fhMassPairLocMax[4]->Fill(epair,mass); |
5c46c992 | 2745 | } |
85c4406e | 2746 | else |
5c46c992 | 2747 | fhMassPairLocMax[5]->Fill(epair,mass); |
2748 | ||
3c1d9afb | 2749 | // combinations with SS axis cut and NLM cut |
85c4406e | 2750 | if(nMaxima1 == 1 && cluster2->GetM02() > 0.3) fhMassPairLocMax[6]->Fill(epair,mass); |
2751 | if(nMaxima2 == 1 && cluster1->GetM02() > 0.3) fhMassPairLocMax[6]->Fill(epair,mass); | |
2752 | if(nMaxima1 > 1 && cluster2->GetM02() < 0.3 && cluster2->GetM02()> 0.1 ) fhMassPairLocMax[7]->Fill(epair,mass); | |
2753 | if(nMaxima2 > 1 && cluster1->GetM02() < 0.3 && cluster1->GetM02()> 0.1 ) fhMassPairLocMax[7]->Fill(epair,mass); | |
3c1d9afb | 2754 | |
a6e83e39 | 2755 | //Skip events with too few or too many NLM |
fb51265c | 2756 | if((nMaxima1 < fNLMCutMin || nMaxima1 > fNLMCutMax) || (nMaxima2 < fNLMCutMin || nMaxima2 > fNLMCutMax)) continue ; |
a6e83e39 | 2757 | |
2758 | if(GetDebug() > 1) printf("AliAnaPi0EbE::MakeInvMassInCalorimeter() - NLM of out of range: cluster1 %d, cluster2 %d \n",nMaxima1, nMaxima2); | |
2759 | ||
f02db2c0 | 2760 | //Mass of all pairs |
5d0ba847 | 2761 | fhMass->Fill(epair,mass); |
a6e83e39 | 2762 | |
57b97dc6 | 2763 | //Select good pair (good phi, pt cuts, aperture and invariant mass) |
3bfcb597 | 2764 | if(GetNeutralMesonSelection()->SelectPair(mom1, mom2,fCalorimeter)) |
c8fe2783 | 2765 | { |
85c4406e | 2766 | if(GetDebug()>1) |
aa845126 | 2767 | printf("AliAnaPi0EbE::MakeInvMassInCalorimeter() - Selected gamma pair: pt %f, phi %f, eta%f \n", |
2768 | mom.Pt(), mom.Phi()*TMath::RadToDeg(), mom.Eta()); | |
42d47cb7 | 2769 | |
57b97dc6 | 2770 | //Fill some histograms about shower shape |
06e81356 | 2771 | if(fFillSelectClHisto && clusters && GetReader()->GetDataType()!=AliCaloTrackReader::kMC) |
5c46c992 | 2772 | { |
08c09f10 | 2773 | FillSelectedClusterHistograms(cluster1, mom1.Pt(), nMaxima1, photon1->GetTag()); |
2774 | FillSelectedClusterHistograms(cluster2, mom2.Pt(), nMaxima2, photon2->GetTag()); | |
42d47cb7 | 2775 | } |
521636d2 | 2776 | |
aa845126 | 2777 | // Tag both photons as decay, !!careful!! since in case of SideBand analysis, also they will be tagged. |
803d06a8 | 2778 | photon1->SetTagged(kTRUE); |
2779 | photon2->SetTagged(kTRUE); | |
09273901 | 2780 | |
2781 | fhPtDecay->Fill(photon1->Pt()); | |
2782 | fhEDecay ->Fill(photon1->E() ); | |
2783 | ||
2784 | fhPtDecay->Fill(photon2->Pt()); | |
2785 | fhEDecay ->Fill(photon2->E() ); | |
2ad19c3d | 2786 | |
f02db2c0 | 2787 | //Mass of selected pairs |
5d0ba847 | 2788 | fhSelectedMass->Fill(epair,mass); |
f02db2c0 | 2789 | |
2ad19c3d | 2790 | // Fill histograms to undertand pile-up before other cuts applied |
2791 | // Remember to relax time cuts in the reader | |
126b8c62 | 2792 | FillPileUpHistograms(mom.Pt(),((cluster1->GetTOF()+cluster2->GetTOF())*1e9)/2,cluster1); |
2ad19c3d | 2793 | |
5d0ba847 | 2794 | //Create AOD for analysis |
2795 | ||
c8fe2783 | 2796 | AliAODPWG4Particle pi0 = AliAODPWG4Particle(mom); |
b5dbb99b | 2797 | |
5d0ba847 | 2798 | if ( (GetNeutralMesonSelection()->GetParticle()).Contains("Pi0") ) pi0.SetIdentifiedParticleType(AliCaloPID::kPi0); |
2799 | else if( (GetNeutralMesonSelection()->GetParticle()).Contains("Eta") ) pi0.SetIdentifiedParticleType(AliCaloPID::kEta); | |
2800 | else | |
2801 | { | |
2802 | printf("AliAnaPi0EbE::MakeInvMassInCalorimeter() - Particle type declared in AliNeutralMeson not correct, do not add \n"); | |
2803 | return ; | |
2804 | } | |
c8fe2783 | 2805 | pi0.SetDetector(photon1->GetDetector()); |
b5dbb99b | 2806 | |
2807 | // MC | |
2808 | pi0.SetLabel(label); | |
85c4406e | 2809 | pi0.SetTag(tag); |
b5dbb99b | 2810 | |
85c4406e | 2811 | //Set the indeces of the original caloclusters |
c8fe2783 | 2812 | pi0.SetCaloLabel(photon1->GetCaloLabel(0), photon2->GetCaloLabel(0)); |
f8006433 | 2813 | //pi0.SetInputFileIndex(input); |
b5dbb99b | 2814 | |
c8fe2783 | 2815 | AddAODParticle(pi0); |
b5dbb99b | 2816 | |
c8fe2783 | 2817 | }//pi0 |
57b97dc6 | 2818 | |
477d6cee | 2819 | }//2n photon loop |
2820 | ||
2821 | }//1st photon loop | |
2822 | ||
85c4406e | 2823 | if(GetDebug() > 1) printf("AliAnaPi0EbE::MakeInvMassInCalorimeter() - End fill AODs \n"); |
477d6cee | 2824 | |
2825 | } | |
2826 | ||
e7fd282f | 2827 | //__________________________________________________ |
85c4406e | 2828 | void AliAnaPi0EbE::MakeInvMassInCalorimeterAndCTS() |
477d6cee | 2829 | { |
2830 | //Do analysis and fill aods | |
2831 | //Search for the photon decay in calorimeters | |
2832 | //Read photon list from AOD, produced in class AliAnaPhoton and AliGammaConversion | |
2833 | //Check if 2 photons have the mass of the pi0. | |
2834 | ||
2835 | TLorentzVector mom1; | |
2836 | TLorentzVector mom2; | |
2837 | TLorentzVector mom ; | |
b5dbb99b | 2838 | Int_t tag = 0; |
2839 | Int_t label = 0; | |
5025c139 | 2840 | Int_t evtIndex = 0; |
1db06135 | 2841 | |
2842 | // Check calorimeter input | |
aa845126 | 2843 | if(!GetInputAODBranch()) |
2844 | { | |
a3aebfff | 2845 | printf("AliAnaPi0EbE::MakeInvMassInCalorimeterAndCTS() - No input calo photons in AOD branch with name < %s > , STOP\n",GetInputAODName().Data()); |
477d6cee | 2846 | abort(); |
2847 | } | |
57b97dc6 | 2848 | |
1db06135 | 2849 | // Get the array with conversion photons |
2850 | TClonesArray * inputAODGammaConv = (TClonesArray *) GetReader()->GetOutputEvent()->FindListObject(fInputAODGammaConvName); | |
aa845126 | 2851 | if(!inputAODGammaConv) |
2852 | { | |
1db06135 | 2853 | inputAODGammaConv = (TClonesArray *) GetReader()->GetInputEvent()->FindListObject(fInputAODGammaConvName); |
2854 | ||
aa845126 | 2855 | if(!inputAODGammaConv) |
2856 | { | |
1db06135 | 2857 | printf("AliAnaPi0EbE::MakeInvMassInCalorimeterAndCTS() - No input gamma conversions in AOD branch with name < %s >\n",fInputAODGammaConvName.Data()); |
2858 | ||
2859 | return; | |
2860 | } | |
85c4406e | 2861 | } |
1db06135 | 2862 | |
2863 | //Get shower shape information of clusters | |
2864 | TObjArray *clusters = 0; | |
2865 | if (fCalorimeter=="EMCAL") clusters = GetEMCALClusters(); | |
85c4406e | 2866 | else if(fCalorimeter=="PHOS") clusters = GetPHOSClusters() ; |
1db06135 | 2867 | |
2868 | Int_t nCTS = inputAODGammaConv->GetEntriesFast(); | |
2869 | Int_t nCalo = GetInputAODBranch()->GetEntriesFast(); | |
85c4406e | 2870 | if(nCTS<=0 || nCalo <=0) |
a6e83e39 | 2871 | { |
1db06135 | 2872 | if(GetDebug() > 1) printf("AliAnaPi0EbE::MakeInvMassInCalorimeterAndCTS() - nCalo %d, nCTS %d, cannot loop\n",nCalo,nCTS); |
2873 | return; | |
2874 | } | |
2875 | ||
2876 | if(GetDebug() > 1) | |
2877 | printf("AliAnaPi0EbE::MakeInvMassInCalorimeterAndCTS() - Number of conversion photons %d\n",nCTS); | |
2878 | ||
2879 | // Do the loop, first calo, second CTS | |
aa845126 | 2880 | for(Int_t iphoton = 0; iphoton < GetInputAODBranch()->GetEntriesFast(); iphoton++) |
2881 | { | |
477d6cee | 2882 | AliAODPWG4Particle * photon1 = (AliAODPWG4Particle*) (GetInputAODBranch()->At(iphoton)); |
2883 | mom1 = *(photon1->Momentum()); | |
2884 | ||
1db06135 | 2885 | //Get original cluster, to recover some information |
2886 | Int_t iclus = -1; | |
85c4406e | 2887 | AliVCluster *cluster = FindCluster(clusters,photon1->GetCaloLabel(0),iclus); |
1db06135 | 2888 | |
aa845126 | 2889 | for(Int_t jphoton = 0; jphoton < nCTS; jphoton++) |
2890 | { | |
1db06135 | 2891 | AliAODPWG4Particle * photon2 = (AliAODPWG4Particle*) (inputAODGammaConv->At(jphoton)); |
aa845126 | 2892 | |
5025c139 | 2893 | if(GetMixedEvent()) |
2894 | evtIndex = GetMixedEvent()->EventIndexForCaloCluster(photon2->GetCaloLabel(0)) ; | |
2895 | if(TMath::Abs(GetVertex(evtIndex)[2]) > GetZvertexCut()) continue ; //vertex cut | |
2896 | ||
477d6cee | 2897 | mom2 = *(photon2->Momentum()); |
57b97dc6 | 2898 | |
aa845126 | 2899 | mom = mom1+mom2; |
2900 | ||
2901 | Double_t mass = mom.M(); | |
2902 | Double_t epair = mom.E(); | |
5c46c992 | 2903 | |
2904 | Int_t nMaxima = photon1->GetFiducialArea(); | |
2905 | if (nMaxima==1) fhMassPairLocMax[0]->Fill(epair,mass); | |
2906 | else if(nMaxima==2) fhMassPairLocMax[1]->Fill(epair,mass); | |
2907 | else fhMassPairLocMax[2]->Fill(epair,mass); | |
2908 | ||
a6e83e39 | 2909 | if(nMaxima < fNLMCutMin || nMaxima > fNLMCutMax) continue ; |
2910 | if(GetDebug() > 1) printf("AliAnaPi0EbE::MakeInvMassInCalorimeterAndCTS() - NLM %d of out of range \n",nMaxima); | |
85c4406e | 2911 | |
b5dbb99b | 2912 | //Play with the MC stack if available |
2913 | if(IsDataMC()) | |
2914 | { | |
2915 | Int_t label2 = photon2->GetLabel(); | |
2644ead9 | 2916 | if(label2 >= 0 )photon2->SetTag(GetMCAnalysisUtils()->CheckOrigin(label2, GetReader())); |
b5dbb99b | 2917 | |
2918 | HasPairSameMCMother(photon1, photon2, label, tag) ; | |
2919 | } | |
2920 | ||
f02db2c0 | 2921 | //Mass of selected pairs |
aa845126 | 2922 | fhMass->Fill(epair,mass); |
f02db2c0 | 2923 | |
477d6cee | 2924 | //Select good pair (good phi, pt cuts, aperture and invariant mass) |
b5dbb99b | 2925 | if(GetNeutralMesonSelection()->SelectPair(mom1, mom2,fCalorimeter)) |
2926 | { | |
aa845126 | 2927 | if(GetDebug() > 1) printf("AliAnaPi0EbE::MakeInvMassInCalorimeterAndCTS() - Selected gamma pair: pt %f, phi %f, eta%f\n", |
2928 | mom.Pt(), mom.Phi()*TMath::RadToDeg(), mom.Eta()); | |
57b97dc6 | 2929 | |
1db06135 | 2930 | //Fill some histograms about shower shape |
06e81356 | 2931 | if(fFillSelectClHisto && cluster && GetReader()->GetDataType()!=AliCaloTrackReader::kMC) |
b5dbb99b | 2932 | { |
08c09f10 | 2933 | FillSelectedClusterHistograms(cluster, mom1.Pt(), nMaxima, photon1->GetTag()); |
85c4406e | 2934 | } |
803d06a8 | 2935 | |
aa845126 | 2936 | // Tag both photons as decay, !!careful!! since in case of SideBand analysis, also they will be tagged. |
803d06a8 | 2937 | photon1->SetTagged(kTRUE); |
85c4406e | 2938 | photon2->SetTagged(kTRUE); |
1db06135 | 2939 | |
09273901 | 2940 | fhPtDecay->Fill(photon1->Pt()); |
2941 | fhEDecay ->Fill(photon1->E() ); | |
2942 | ||
f02db2c0 | 2943 | //Mass of selected pairs |
aa845126 | 2944 | fhSelectedMass->Fill(epair,mass); |
f02db2c0 | 2945 | |
2ad19c3d | 2946 | // Fill histograms to undertand pile-up before other cuts applied |
2947 | // Remember to relax time cuts in the reader | |
126b8c62 | 2948 | if(cluster) FillPileUpHistograms(mom.Pt(),cluster->GetTOF()*1e9,cluster); |
aa845126 | 2949 | |
2950 | //Create AOD for analysis | |
2ad19c3d | 2951 | |
57b97dc6 | 2952 | AliAODPWG4Particle pi0 = AliAODPWG4Particle(mom); |
b5dbb99b | 2953 | |
5d0ba847 | 2954 | if ( (GetNeutralMesonSelection()->GetParticle()).Contains("Pi0") ) pi0.SetIdentifiedParticleType(AliCaloPID::kPi0); |
2955 | else if( (GetNeutralMesonSelection()->GetParticle()).Contains("Eta") ) pi0.SetIdentifiedParticleType(AliCaloPID::kEta); | |
2956 | else | |
2957 | { | |
2958 | printf("AliAnaPi0EbE::MakeInvMassInCalorimeterAndCTS() - Particle type declared in AliNeutralMeson not correct, do not add \n"); | |
2959 | return ; | |
2960 | } | |
57b97dc6 | 2961 | pi0.SetDetector(photon1->GetDetector()); |
b5dbb99b | 2962 | |
2963 | // MC | |
2964 | pi0.SetLabel(label); | |
57b97dc6 | 2965 | pi0.SetTag(tag); |
b5dbb99b | 2966 | |
85c4406e | 2967 | //Set the indeces of the original tracks or caloclusters |
aa845126 | 2968 | pi0.SetCaloLabel (photon1->GetCaloLabel(0) , -1); |
57b97dc6 | 2969 | pi0.SetTrackLabel(photon2->GetTrackLabel(0), photon2->GetTrackLabel(1)); |
f8006433 | 2970 | //pi0.SetInputFileIndex(input); |
b5dbb99b | 2971 | |
57b97dc6 | 2972 | AddAODParticle(pi0); |
b5dbb99b | 2973 | |
477d6cee | 2974 | }//pi0 |
2975 | }//2n photon loop | |
2976 | ||
2977 | }//1st photon loop | |
2978 | ||
85c4406e | 2979 | if(GetDebug() > 1) printf("AliAnaPi0EbE::MakeInvMassInCalorimeterAndCTS() - End fill AODs \n"); |
477d6cee | 2980 | |
2981 | } | |
2982 | ||
2983 | ||
e7fd282f | 2984 | //_________________________________________________ |
85c4406e | 2985 | void AliAnaPi0EbE::MakeShowerShapeIdentification() |
477d6cee | 2986 | { |
85c4406e | 2987 | //Search for pi0 in fCalorimeter with shower shape analysis |
477d6cee | 2988 | |
85c4406e | 2989 | TObjArray * pl = 0x0; |
34c16486 | 2990 | AliVCaloCells * cells = 0x0; |
5ae09196 | 2991 | //Select the Calorimeter of the photon |
b5dbb99b | 2992 | if (fCalorimeter == "PHOS" ) |
34c16486 | 2993 | { |
2994 | pl = GetPHOSClusters(); | |
2995 | cells = GetPHOSCells(); | |
2996 | } | |
5ae09196 | 2997 | else if (fCalorimeter == "EMCAL") |
34c16486 | 2998 | { |
2999 | pl = GetEMCALClusters(); | |
3000 | cells = GetEMCALCells(); | |
3001 | } | |
57b97dc6 | 3002 | |
85c4406e | 3003 | if(!pl) |
34c16486 | 3004 | { |
5ae09196 | 3005 | Info("MakeShowerShapeIdentification","TObjArray with %s clusters is NULL!\n",fCalorimeter.Data()); |
3006 | return; | |
85c4406e | 3007 | } |
233e0df8 | 3008 | |
477d6cee | 3009 | TLorentzVector mom ; |
b5dbb99b | 3010 | for(Int_t icalo = 0; icalo < pl->GetEntriesFast(); icalo++) |
3011 | { | |
85c4406e | 3012 | AliVCluster * calo = (AliVCluster*) (pl->At(icalo)); |
477d6cee | 3013 | |
85c4406e | 3014 | Int_t evtIndex = 0 ; |
3015 | if (GetMixedEvent()) | |
b5dbb99b | 3016 | { |
85c4406e | 3017 | evtIndex=GetMixedEvent()->EventIndexForCaloCluster(calo->GetID()) ; |
f8006433 | 3018 | } |
34c16486 | 3019 | |
5025c139 | 3020 | if(TMath::Abs(GetVertex(evtIndex)[2]) > GetZvertexCut()) continue ; //vertex cut |
521636d2 | 3021 | |
85c4406e | 3022 | //Get Momentum vector, |
a6e83e39 | 3023 | Double_t vertex[]={0,0,0}; |
34c16486 | 3024 | if(GetReader()->GetDataType() != AliCaloTrackReader::kMC) |
3025 | { | |
3026 | calo->GetMomentum(mom,GetVertex(evtIndex)) ; | |
3027 | }//Assume that come from vertex in straight line | |
3028 | else | |
3029 | { | |
f8006433 | 3030 | calo->GetMomentum(mom,vertex) ; |
3031 | } | |
233e0df8 | 3032 | |
57b97dc6 | 3033 | //If too small or big pt, skip it |
85c4406e | 3034 | if(mom.E() < GetMinEnergy() || mom.E() > GetMaxEnergy() ) continue ; |
34c16486 | 3035 | |
477d6cee | 3036 | //Check acceptance selection |
b5dbb99b | 3037 | if(IsFiducialCutOn()) |
3038 | { | |
ff45398a | 3039 | Bool_t in = GetFiducialCut()->IsInFiducialCut(mom,fCalorimeter) ; |
477d6cee | 3040 | if(! in ) continue ; |
3041 | } | |
3042 | ||
85c4406e | 3043 | if(GetDebug() > 1) |
3044 | printf("AliAnaPi0EbE::MakeShowerShapeIdentification() - FillAOD: Min pt cut and fiducial cut passed: pt %3.2f, phi %2.2f, eta %1.2f\n",mom.Pt(),mom.Phi(),mom.Eta()); | |
3045 | ||
3a4c49b7 | 3046 | //Play with the MC stack if available |
3047 | //Check origin of the candidates | |
3048 | Int_t tag = 0 ; | |
3049 | if(IsDataMC()) | |
3050 | { | |
3051 | tag = GetMCAnalysisUtils()->CheckOrigin(calo->GetLabels(),calo->GetNLabels(),GetReader()); | |
3052 | //GetMCAnalysisUtils()->CheckMultipleOrigin(calo->GetLabels(),calo->GetNLabels(), GetReader(), aodpi0.GetInputFileIndex(), tag); | |
3053 | if(GetDebug() > 0) printf("AliAnaPi0EbE::MakeShowerShapeIdentification() - Origin of candidate %d\n",tag); | |
3054 | } | |
3055 | ||
3056 | //Int_t nMaxima = GetCaloUtils()->GetNumberOfLocalMaxima(calo, cells); // NLM | |
3057 | ||
477d6cee | 3058 | //Check Distance to Bad channel, set bit. |
c8fe2783 | 3059 | Double_t distBad=calo->GetDistanceToBadChannel() ; //Distance to bad channel |
477d6cee | 3060 | if(distBad < 0.) distBad=9999. ; //workout strange convension dist = -1. ; |
3a4c49b7 | 3061 | if(distBad < fMinDist){ //In bad channel (PHOS cristal size 2.2x2.2 cm) |
3062 | //FillRejectedClusterHistograms(mom,tag,nMaxima); | |
477d6cee | 3063 | continue ; |
3a4c49b7 | 3064 | } |
08c09f10 | 3065 | |
a6e83e39 | 3066 | if(GetDebug() > 1) printf("AliAnaPi0EbE::MakeShowerShapeIdentification() - FillAOD: Bad channel cut passed %4.2f\n",distBad); |
85c4406e | 3067 | |
74e3eb22 | 3068 | //If too low number of cells, skip it |
3a4c49b7 | 3069 | if ( calo->GetNCells() < GetCaloPID()->GetClusterSplittingMinNCells()) |
3070 | { | |
3071 | //FillRejectedClusterHistograms(mom,tag,nMaxima); | |
3072 | continue ; | |
3073 | } | |
74e3eb22 | 3074 | |
3075 | if(GetDebug() > 1) | |
3076 | printf("AliAnaPi0EbE::MakeShowerShapeIdentification() - FillAOD: N cells cut passed %d > %d\n", | |
3077 | calo->GetNCells(), GetCaloPID()->GetClusterSplittingMinNCells()); | |
3078 | ||
34c16486 | 3079 | //....................................... |
3080 | // TOF cut, BE CAREFUL WITH THIS CUT | |
3081 | Double_t tof = calo->GetTOF()*1e9; | |
3a4c49b7 | 3082 | if(tof < fTimeCutMin || tof > fTimeCutMax) |
40d3ce60 | 3083 | { |
3a4c49b7 | 3084 | //FillRejectedClusterHistograms(mom,tag,nMaxima); |
3085 | continue ; | |
85c4406e | 3086 | } |
b583134f | 3087 | |
477d6cee | 3088 | //Check PID |
3089 | //PID selection or bit setting | |
3a4c49b7 | 3090 | Int_t nMaxima = 0; |
3091 | Double_t mass = 0, angle = 0; | |
3092 | Int_t absId1 =-1, absId2 =-1; | |
3093 | Float_t distbad1 =-1, distbad2 =-1; | |
3094 | Bool_t fidcut1 = 0, fidcut2 = 0; | |
cfdf2b91 | 3095 | TLorentzVector l1, l2; |
3a4c49b7 | 3096 | |
a6e83e39 | 3097 | Int_t idPartType = GetCaloPID()->GetIdentifiedParticleTypeFromClusterSplitting(calo,cells,GetCaloUtils(), |
3098 | GetVertex(evtIndex),nMaxima, | |
4914e781 | 3099 | mass,angle,l1,l2,absId1,absId2, |
3100 | distbad1,distbad2,fidcut1,fidcut2) ; | |
34c16486 | 3101 | |
b583134f | 3102 | |
a6e83e39 | 3103 | if(GetDebug() > 1) printf("AliAnaPi0EbE::MakeShowerShapeIdentification() - PDG of identified particle %d\n",idPartType); |
85c4406e | 3104 | |
3105 | ||
4914e781 | 3106 | // Skip events where one of the new clusters (lowest energy) is close to an EMCal border or a bad channel |
1253480f | 3107 | if( (fCheckSplitDistToBad) && |
b583134f | 3108 | (!fidcut2 || !fidcut1 || distbad1 < fMinDist || distbad2 < fMinDist)) |
4914e781 | 3109 | { |
74e3eb22 | 3110 | if(GetDebug() > 1) |
a6d3b0a8 | 3111 | Info("MakeShowerShapeIdentification", "Dist to bad channel cl %f, cl1 %f, cl2 %f; fid cl1 %d, cl2 %d \n", |
74e3eb22 | 3112 | calo->GetDistanceToBadChannel(),distbad1,distbad2, fidcut1,fidcut2); |
b583134f | 3113 | |
3a4c49b7 | 3114 | //FillRejectedClusterHistograms(mom,tag,nMaxima); |
4914e781 | 3115 | continue ; |
3116 | } | |
3117 | ||
a6e83e39 | 3118 | //Skip events with too few or too many NLM |
85c4406e | 3119 | if(nMaxima < fNLMCutMin || nMaxima > fNLMCutMax) |
40d3ce60 | 3120 | { |
3a4c49b7 | 3121 | //FillRejectedClusterHistograms(mom,tag,nMaxima); |
40d3ce60 | 3122 | continue ; |
3123 | } | |
3124 | ||
bb2d339b | 3125 | if(GetDebug() > 1) |
3126 | printf("AliAnaPi0EbE::MakeShowerShapeIdentification() - NLM %d accepted \n",nMaxima); | |
a6e83e39 | 3127 | |
b583134f | 3128 | //Skip matched clusters with tracks |
3129 | if(fRejectTrackMatch && IsTrackMatched(calo, GetReader()->GetInputEvent())) | |
3130 | { | |
3a4c49b7 | 3131 | FillRejectedClusterHistograms(mom,tag,nMaxima); |
b583134f | 3132 | continue ; |
3133 | } | |
3134 | ||
29250849 | 3135 | Float_t e1 = l1.Energy(); |
3136 | Float_t e2 = l2.Energy(); | |
3137 | TLorentzVector l12 = l1+l2; | |
3138 | Float_t ptSplit = l12.Pt(); | |
3139 | Float_t eSplit = e1+e2; | |
1253480f | 3140 | |
3141 | Int_t mcIndex =-1; | |
3142 | Int_t noverlaps = 0; | |
3143 | Float_t ptprim = 0; | |
3144 | if(IsDataMC()) | |
3145 | { | |
3146 | mcIndex = GetMCIndex(tag); | |
3147 | ||
3148 | Bool_t ok = kFALSE; | |
3149 | Int_t mcLabel = calo->GetLabel(); | |
3150 | ||
3151 | TLorentzVector primary = GetMCAnalysisUtils()->GetMother(mcLabel,GetReader(),ok); | |
3152 | ||
3153 | Int_t mesonLabel = -1; | |
3154 | ||
3155 | if(mcIndex == kmcPi0 || mcIndex == kmcEta) | |
3156 | { | |
3157 | if(mcIndex == kmcPi0) | |
3158 | { | |
3159 | TLorentzVector grandmom = GetMCAnalysisUtils()->GetMotherWithPDG(mcLabel,111,GetReader(),ok,mesonLabel); | |
3160 | if(grandmom.E() > 0 && ok) ptprim = grandmom.Pt(); | |
3161 | } | |
3162 | else | |
3163 | { | |
3164 | TLorentzVector grandmom = GetMCAnalysisUtils()->GetMotherWithPDG(mcLabel,221,GetReader(),ok,mesonLabel); | |
3165 | if(grandmom.E() > 0 && ok) ptprim = grandmom.Pt(); | |
3166 | } | |
3167 | } | |
3168 | ||
3169 | const UInt_t nlabels = calo->GetNLabels(); | |
3170 | Int_t overpdg[nlabels]; | |
3171 | noverlaps = GetMCAnalysisUtils()->GetNOverlaps(calo->GetLabels(), nlabels,tag,mesonLabel,GetReader(),overpdg); | |
3172 | } | |
85c4406e | 3173 | |
f02db2c0 | 3174 | //mass of all clusters |
1253480f | 3175 | fhMass ->Fill(mom.E() ,mass); |
29250849 | 3176 | fhMassPt ->Fill(mom.Pt(),mass); |
1253480f | 3177 | fhMassSplitPt->Fill(ptSplit ,mass); |
85c4406e | 3178 | |
08c09f10 | 3179 | Int_t indexMax = -1; |
3180 | if (nMaxima==1) indexMax = 0 ; | |
3181 | else if(nMaxima==2) indexMax = 1 ; | |
3182 | else indexMax = 2 ; | |
3183 | fhMassPtLocMax[indexMax]->Fill(mom.Pt(),mass); | |
3184 | ||
29250849 | 3185 | if(IsDataMC()) |
3186 | { | |
3187 | fhMCMassPt[mcIndex] ->Fill(mom.Pt(),mass); | |
1253480f | 3188 | fhMCMassSplitPt[mcIndex]->Fill(ptSplit ,mass); |
3189 | if(mcIndex==kmcPi0) | |
3190 | { | |
afba5771 | 3191 | fhMCPi0PtRecoPtPrim ->Fill(mom.Pt(),ptprim); |
3192 | fhMCPi0SplitPtRecoPtPrim ->Fill(ptSplit ,ptprim); | |
3193 | fhMCPi0PtRecoPtPrimLocMax [indexMax]->Fill(mom.Pt(),ptprim); | |
3194 | fhMCPi0SplitPtRecoPtPrimLocMax[indexMax]->Fill(ptSplit ,ptprim); | |
3195 | ||
1253480f | 3196 | } |
3197 | else if(mcIndex==kmcEta) | |
3198 | { | |
afba5771 | 3199 | fhMCEtaPtRecoPtPrim ->Fill(mom.Pt(),ptprim); |
3200 | fhMCEtaSplitPtRecoPtPrim ->Fill(ptSplit ,ptprim); | |
3201 | fhMCEtaPtRecoPtPrimLocMax [indexMax]->Fill(mom.Pt(),ptprim); | |
3202 | fhMCEtaSplitPtRecoPtPrimLocMax[indexMax]->Fill(ptSplit ,ptprim); | |
1253480f | 3203 | } |
3204 | ||
3205 | if(noverlaps==0) | |
3206 | { | |
3207 | if(mcIndex==kmcPi0) | |
3208 | { | |
3209 | fhMCPi0PtRecoPtPrimNoOverlap ->Fill(mom.Pt(),ptprim); | |
3210 | fhMCPi0SplitPtRecoPtPrimNoOverlap->Fill(ptSplit ,ptprim); | |
3211 | } | |
3212 | else if(mcIndex==kmcEta) | |
3213 | { | |
3214 | fhMCEtaPtRecoPtPrimNoOverlap ->Fill(mom.Pt(),ptprim); | |
3215 | fhMCEtaSplitPtRecoPtPrimNoOverlap->Fill(ptSplit ,ptprim); | |
3216 | } | |
3217 | ||
3218 | fhMassNoOverlap ->Fill(mom.E() ,mass); | |
3219 | fhMassPtNoOverlap ->Fill(mom.Pt(),mass); | |
3220 | fhMassSplitPtNoOverlap->Fill(ptSplit ,mass); | |
3221 | ||
3222 | fhMCMassPtNoOverlap[mcIndex] ->Fill(mom.Pt(),mass); | |
3223 | fhMCMassSplitPtNoOverlap[mcIndex]->Fill(ptSplit ,mass); | |
3224 | } | |
29250849 | 3225 | } |
85c4406e | 3226 | |
4650f5cf | 3227 | // Asymmetry of all clusters |
cfdf2b91 | 3228 | Float_t asy =-10; |
85c4406e | 3229 | |
4650f5cf | 3230 | if(e1+e2 > 0) asy = (e1-e2) / (e1+e2); |
3231 | fhAsymmetry->Fill(mom.E(),asy); | |
85c4406e | 3232 | |
4650f5cf | 3233 | if(IsDataMC()) |
3234 | { | |
08c09f10 | 3235 | fhMCPtAsymmetry[mcIndex]->Fill(mom.Pt(),asy); |
cfdf2b91 | 3236 | } |
f02db2c0 | 3237 | |
a6e83e39 | 3238 | // If cluster does not pass pid, not pi0/eta, skip it. |
85c4406e | 3239 | if (GetOutputAODName().Contains("Pi0") && idPartType != AliCaloPID::kPi0) |
3240 | { | |
a6d3b0a8 | 3241 | if(GetDebug() > 1) Info("MakeShowerShapeIdentification","Cluster is not Pi0\n"); |
3a4c49b7 | 3242 | FillRejectedClusterHistograms(mom,tag,nMaxima); |
bb2d339b | 3243 | continue ; |
85c4406e | 3244 | } |
bb2d339b | 3245 | |
85c4406e | 3246 | else if(GetOutputAODName().Contains("Eta") && idPartType != AliCaloPID::kEta) |
3247 | { | |
a6d3b0a8 | 3248 | if(GetDebug() > 1) Info("MakeShowerShapeIdentification","Cluster is not Eta\n"); |
3a4c49b7 | 3249 | FillRejectedClusterHistograms(mom,tag,nMaxima); |
bb2d339b | 3250 | continue ; |
85c4406e | 3251 | } |
a6e83e39 | 3252 | |
85c4406e | 3253 | if(GetDebug() > 1) |
a6d3b0a8 | 3254 | Info("MakeShowerShapeIdentification","Pi0/Eta selection cuts passed: pT %3.2f, pdg %d\n", |
85c4406e | 3255 | mom.Pt(), idPartType); |
34c16486 | 3256 | |
667432ef | 3257 | //Mass and asymmetry of selected pairs |
29250849 | 3258 | fhSelectedAsymmetry ->Fill(mom.E() ,asy ); |
3259 | fhSelectedMass ->Fill(mom.E() ,mass); | |
3260 | fhSelectedMassPt ->Fill(mom.Pt(),mass); | |
3261 | fhSelectedMassSplitPt->Fill(ptSplit ,mass); | |
08c09f10 | 3262 | fhSelectedMassPtLocMax[indexMax]->Fill(mom.Pt(),mass); |
9605388f | 3263 | |
3264 | Int_t nSM = GetModuleNumber(calo); | |
9f48b3f0 | 3265 | if(nSM < GetCaloUtils()->GetNumberOfSuperModulesUsed() && nSM >=0) |
9605388f | 3266 | { |
3267 | fhSelectedMassPtLocMaxSM [indexMax][nSM]->Fill(mom.Pt(),mass); | |
3268 | fhSelectedLambda0PtLocMaxSM[indexMax][nSM]->Fill(mom.Pt(),calo->GetM02()); | |
3269 | } | |
3270 | ||
1253480f | 3271 | if(IsDataMC()) |
3272 | { | |
3273 | if(mcIndex==kmcPi0) | |
3274 | { | |
afba5771 | 3275 | fhMCPi0SelectedPtRecoPtPrim ->Fill(mom.Pt(),ptprim); |
3276 | fhMCPi0SelectedSplitPtRecoPtPrim ->Fill(ptSplit ,ptprim); | |
3277 | fhMCPi0SelectedPtRecoPtPrimLocMax [indexMax]->Fill(mom.Pt(),ptprim); | |
3278 | fhMCPi0SelectedSplitPtRecoPtPrimLocMax[indexMax]->Fill(ptSplit ,ptprim); | |
1253480f | 3279 | } |
3280 | else if(mcIndex==kmcEta) | |
3281 | { | |
afba5771 | 3282 | fhMCEtaSelectedPtRecoPtPrim ->Fill(mom.Pt(),ptprim); |
3283 | fhMCEtaSelectedSplitPtRecoPtPrim ->Fill(ptSplit ,ptprim); | |
3284 | fhMCEtaSelectedPtRecoPtPrimLocMax [indexMax]->Fill(mom.Pt(),ptprim); | |
3285 | fhMCEtaSelectedSplitPtRecoPtPrimLocMax[indexMax]->Fill(ptSplit ,ptprim); | |
1253480f | 3286 | } |
3287 | ||
3288 | if(noverlaps==0) | |
3289 | { | |
3290 | fhSelectedMassNoOverlap ->Fill(mom.E() ,mass); | |
3291 | fhSelectedMassPtNoOverlap ->Fill(mom.Pt(),mass); | |
3292 | fhSelectedMassSplitPtNoOverlap->Fill(ptSplit ,mass); | |
3293 | ||
3294 | if(mcIndex==kmcPi0) | |
3295 | { | |
3296 | fhMCPi0SelectedPtRecoPtPrimNoOverlap ->Fill(mom.Pt(),ptprim); | |
3297 | fhMCPi0SelectedSplitPtRecoPtPrimNoOverlap->Fill(ptSplit ,ptprim); | |
3298 | } | |
3299 | else if(mcIndex==kmcEta) | |
3300 | { | |
3301 | fhMCEtaSelectedPtRecoPtPrimNoOverlap ->Fill(mom.Pt(),ptprim); | |
3302 | fhMCEtaSelectedSplitPtRecoPtPrimNoOverlap->Fill(ptSplit ,ptprim); | |
3303 | } | |
3304 | } | |
3305 | } | |
3306 | ||
6e66993c | 3307 | fhSplitE ->Fill( eSplit); |
3308 | fhSplitPt ->Fill(ptSplit); | |
29250849 | 3309 | Float_t phi = mom.Phi(); |
3310 | if(phi<0) phi+=TMath::TwoPi(); | |
3311 | fhSplitPtPhi ->Fill(ptSplit,phi); | |
3312 | fhSplitPtEta ->Fill(ptSplit,mom.Eta()); | |
6e66993c | 3313 | fhNLocMaxSplitPt->Fill(ptSplit ,nMaxima); |
85c4406e | 3314 | |
a1fd1b69 | 3315 | //Check split-clusters with good time window difference |
3316 | Double_t tof1 = cells->GetCellTime(absId1); | |
3317 | GetCaloUtils()->RecalibrateCellTime(tof1, fCalorimeter, absId1,GetReader()->GetInputEvent()->GetBunchCrossNumber()); | |
3318 | tof1*=1.e9; | |
3319 | ||
3320 | Double_t tof2 = cells->GetCellTime(absId2); | |
3321 | GetCaloUtils()->RecalibrateCellTime(tof2, fCalorimeter, absId2,GetReader()->GetInputEvent()->GetBunchCrossNumber()); | |
3322 | tof2*=1.e9; | |
3323 | ||
3324 | Double_t t12diff = tof1-tof2; | |
3325 | fhEPairDiffTime->Fill(e1+e2, t12diff); | |
3326 | ||
cfdf2b91 | 3327 | if(IsDataMC()) |
3328 | { | |
6e66993c | 3329 | fhMCSplitE [mcIndex]->Fill( eSplit); |
3330 | fhMCSplitPt [mcIndex]->Fill(ptSplit); | |
29250849 | 3331 | fhMCSplitPtPhi [mcIndex]->Fill(ptSplit,phi); |
3332 | fhMCSplitPtEta [mcIndex]->Fill(ptSplit,mom.Eta()); | |
6e66993c | 3333 | fhMCNLocMaxSplitPt[mcIndex]->Fill(ptSplit ,nMaxima); |
3334 | fhMCNLocMaxPt [mcIndex]->Fill(mom.Pt(),nMaxima); | |
29250849 | 3335 | |
3336 | fhMCSelectedMassPt [mcIndex]->Fill(mom.Pt(),mass); | |
3337 | fhMCSelectedMassSplitPt[mcIndex]->Fill(ptSplit,mass); | |
08c09f10 | 3338 | fhMCSelectedMassPtLocMax[mcIndex][indexMax]->Fill(mom.Pt(),mass); |
3339 | ||
1253480f | 3340 | if(noverlaps==0) |
3341 | { | |
3342 | fhMCSelectedMassPtNoOverlap [mcIndex]->Fill(mom.Pt(),mass); | |
3343 | fhMCSelectedMassSplitPtNoOverlap[mcIndex]->Fill(ptSplit,mass); | |
3344 | } | |
cfdf2b91 | 3345 | } |
cfdf2b91 | 3346 | |
a6e83e39 | 3347 | //----------------------- |
3348 | //Create AOD for analysis | |
477d6cee | 3349 | |
3a4c49b7 | 3350 | if(nMaxima == 1 && fNLMECutMin[0] > mom.E()) continue; |
3351 | if(nMaxima == 2 && fNLMECutMin[1] > mom.E()) continue; | |
3352 | if(nMaxima > 2 && fNLMECutMin[2] > mom.E()) continue; | |
3353 | ||
a6e83e39 | 3354 | AliAODPWG4Particle aodpi0 = AliAODPWG4Particle(mom); |
3355 | aodpi0.SetLabel(calo->GetLabel()); | |
3356 | ||
85c4406e | 3357 | //Set the indeces of the original caloclusters |
a6e83e39 | 3358 | aodpi0.SetCaloLabel(calo->GetID(),-1); |
3359 | aodpi0.SetDetector(fCalorimeter); | |
85c4406e | 3360 | |
a6e83e39 | 3361 | if (distBad > fMinDist3) aodpi0.SetDistToBad(2) ; |
85c4406e | 3362 | else if(distBad > fMinDist2) aodpi0.SetDistToBad(1) ; |
a6e83e39 | 3363 | else aodpi0.SetDistToBad(0) ; |
3364 | ||
3365 | // Check if cluster is pi0 via cluster splitting | |
85c4406e | 3366 | aodpi0.SetIdentifiedParticleType(idPartType); |
3367 | ||
8736d400 | 3368 | // Add number of local maxima to AOD, method name in AOD to be FIXED |
3369 | aodpi0.SetFiducialArea(nMaxima); | |
3370 | ||
4650f5cf | 3371 | aodpi0.SetTag(tag); |
477d6cee | 3372 | |
34c16486 | 3373 | //Fill some histograms about shower shape |
3374 | if(fFillSelectClHisto && GetReader()->GetDataType()!=AliCaloTrackReader::kMC) | |
3375 | { | |
08c09f10 | 3376 | FillSelectedClusterHistograms(calo, aodpi0.Pt(), nMaxima, tag, asy); |
85c4406e | 3377 | } |
2ad19c3d | 3378 | |
3379 | // Fill histograms to undertand pile-up before other cuts applied | |
3380 | // Remember to relax time cuts in the reader | |
c2a62a94 | 3381 | Double_t tofcluster = calo->GetTOF()*1e9; |
3382 | Double_t tofclusterUS = TMath::Abs(tofcluster); | |
85c4406e | 3383 | |
126b8c62 | 3384 | FillPileUpHistograms(aodpi0.Pt(),tofcluster,calo); |
85c4406e | 3385 | |
afb3af8a | 3386 | Int_t id = GetReader()->GetTriggerClusterId(); |
3387 | if(fFillEMCALBCHistograms && fCalorimeter=="EMCAL" && id >=0 ) | |
c2a62a94 | 3388 | { |
3389 | Float_t phicluster = aodpi0.Phi(); | |
3390 | if(phicluster < 0) phicluster+=TMath::TwoPi(); | |
3391 | ||
3392 | if(calo->E() > 2) | |
3393 | { | |
3394 | if (tofclusterUS < 25) fhEtaPhiEMCALBC0->Fill(aodpi0.Eta(), phicluster); | |
3395 | else if (tofclusterUS < 75) fhEtaPhiEMCALBC1->Fill(aodpi0.Eta(), phicluster); | |
3396 | else fhEtaPhiEMCALBCN->Fill(aodpi0.Eta(), phicluster); | |
3397 | } | |
3398 | ||
afb3af8a | 3399 | Int_t bc = GetReader()->GetTriggerClusterBC(); |
3400 | if(TMath::Abs(bc) < 6 && !GetReader()->IsBadCellTriggerEvent() && !GetReader()->IsExoticEvent() ) | |
c2a62a94 | 3401 | { |
afb3af8a | 3402 | if(GetReader()->IsTriggerMatched()) |
3403 | { | |
3404 | if(calo->E() > 2) fhEtaPhiTriggerEMCALBC[bc+5]->Fill(aodpi0.Eta(), phicluster); | |
3405 | fhTimeTriggerEMCALBC[bc+5]->Fill(calo->E(), tofcluster); | |
3406 | if(GetReader()->IsPileUpFromSPD()) fhTimeTriggerEMCALBCPileUpSPD[bc+5]->Fill(calo->E(), tofcluster); | |
3407 | } | |
3408 | else | |
3409 | { | |
3410 | if(calo->E() > 2) fhEtaPhiTriggerEMCALBCUM[bc+5]->Fill(aodpi0.Eta(), phicluster); | |
3411 | fhTimeTriggerEMCALBCUM[bc+5]->Fill(calo->E(), tofcluster); | |
126b8c62 | 3412 | |
3413 | if(bc==0) | |
3414 | { | |
3415 | if(GetReader()->IsTriggerMatchedOpenCuts(0)) fhTimeTriggerEMCALBC0UMReMatchOpenTime ->Fill(calo->E(), tofcluster); | |
3416 | if(GetReader()->IsTriggerMatchedOpenCuts(1)) fhTimeTriggerEMCALBC0UMReMatchCheckNeigh ->Fill(calo->E(), tofcluster); | |
3417 | if(GetReader()->IsTriggerMatchedOpenCuts(2)) fhTimeTriggerEMCALBC0UMReMatchBoth ->Fill(calo->E(), tofcluster); | |
3418 | } | |
3419 | } | |
c2a62a94 | 3420 | } |
afb3af8a | 3421 | else if(TMath::Abs(bc) >= 6) |
a6d3b0a8 | 3422 | Info("MakeShowerShapeIdentification","Trigger BC not expected = %d\n",bc); |
c2a62a94 | 3423 | } |
2ad19c3d | 3424 | |
477d6cee | 3425 | //Add AOD with pi0 object to aod branch |
3426 | AddAODParticle(aodpi0); | |
3427 | ||
3428 | }//loop | |
3429 | ||
a6d3b0a8 | 3430 | if(GetDebug() > 1) Info("MakeShowerShapeIdentification","End fill AODs \n"); |
477d6cee | 3431 | |
3432 | } | |
e7fd282f | 3433 | //______________________________________________ |
85c4406e | 3434 | void AliAnaPi0EbE::MakeAnalysisFillHistograms() |
691bdd02 | 3435 | { |
477d6cee | 3436 | //Do analysis and fill histograms |
691bdd02 | 3437 | |
b5dbb99b | 3438 | if(!GetOutputAODBranch()) |
3439 | { | |
a6d3b0a8 | 3440 | AliFatal(Form("No output pi0 in AOD branch with name < %s >,STOP \n",GetOutputAODName().Data())); |
477d6cee | 3441 | } |
aa845126 | 3442 | |
477d6cee | 3443 | //Loop on stored AOD pi0 |
3444 | Int_t naod = GetOutputAODBranch()->GetEntriesFast(); | |
a6d3b0a8 | 3445 | if(GetDebug() > 0) Info("MakeAnalysisFillHistograms","aod branch entries %d\n", naod); |
477d6cee | 3446 | |
c8710850 | 3447 | Float_t cen = GetEventCentrality(); |
3448 | Float_t ep = GetEventPlaneAngle(); | |
3449 | ||
b5dbb99b | 3450 | for(Int_t iaod = 0; iaod < naod ; iaod++) |
3451 | { | |
477d6cee | 3452 | AliAODPWG4Particle* pi0 = (AliAODPWG4Particle*) (GetOutputAODBranch()->At(iaod)); |
21a4b1c0 | 3453 | Int_t pdg = pi0->GetIdentifiedParticleType(); |
9415d854 | 3454 | |
aa845126 | 3455 | if( ( pdg != AliCaloPID::kPi0 && pdg != AliCaloPID::kEta ) ) continue; |
477d6cee | 3456 | |
85c4406e | 3457 | //Fill pi0 histograms |
c4a7d28a | 3458 | Float_t ener = pi0->E(); |
3459 | Float_t pt = pi0->Pt(); | |
3460 | Float_t phi = pi0->Phi(); | |
57b97dc6 | 3461 | if(phi < 0) phi+=TMath::TwoPi(); |
477d6cee | 3462 | Float_t eta = pi0->Eta(); |
3463 | ||
c8710850 | 3464 | fhPt ->Fill(pt ); |
09273901 | 3465 | fhE ->Fill(ener); |
477d6cee | 3466 | |
29250849 | 3467 | fhPtEta ->Fill(pt ,eta); |
3468 | fhPtPhi ->Fill(pt ,phi); | |
c8710850 | 3469 | fhEtaPhi ->Fill(eta ,phi); |
85c4406e | 3470 | |
c8710850 | 3471 | fhPtCentrality ->Fill(pt,cen) ; |
3472 | fhPtEventPlane ->Fill(pt,ep ) ; | |
3473 | ||
b5dbb99b | 3474 | if(IsDataMC()) |
3475 | { | |
3455f821 | 3476 | Int_t tag = pi0->GetTag(); |
4bbe6213 | 3477 | Int_t label = pi0->GetLabel(); |
3455f821 | 3478 | Int_t mcIndex = GetMCIndex(tag); |
85c4406e | 3479 | |
08c09f10 | 3480 | fhMCE [mcIndex] ->Fill(ener); |
3481 | fhMCPt [mcIndex] ->Fill(pt); | |
3482 | fhMCPtPhi[mcIndex] ->Fill(pt,phi); | |
3483 | fhMCPtEta[mcIndex] ->Fill(pt,eta); | |
3455f821 | 3484 | |
17f5b4b6 | 3485 | fhMCPtCentrality[mcIndex]->Fill(pt,cen); |
85c4406e | 3486 | |
883411b2 | 3487 | if((mcIndex==kmcPhoton || mcIndex==kmcPi0 || mcIndex==kmcEta) && fAnaType==kSSCalo) |
af722ce4 | 3488 | { |
36769d30 | 3489 | Float_t efracMC = 0; |
36769d30 | 3490 | Int_t momlabel = -1; |
3491 | Bool_t ok = kFALSE; | |
51a0ace5 | 3492 | |
85c4406e | 3493 | TLorentzVector mom = GetMCAnalysisUtils()->GetMother(label,GetReader(),ok); |
51a0ace5 | 3494 | if(!ok) continue; |
3495 | ||
3496 | if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0)) | |
3497 | { | |
36769d30 | 3498 | TLorentzVector grandmom = GetMCAnalysisUtils()->GetMotherWithPDG(label,111,GetReader(),ok,momlabel); |
85c4406e | 3499 | if(grandmom.E() > 0 && ok) |
51a0ace5 | 3500 | { |
883411b2 | 3501 | efracMC = grandmom.E()/ener; |
3502 | fhMCPi0PtGenRecoFraction ->Fill(pt,efracMC); | |
51a0ace5 | 3503 | } |
85c4406e | 3504 | } |
51a0ace5 | 3505 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCPi0Decay)) |
3455f821 | 3506 | { |
3507 | fhMCPi0DecayPt->Fill(pt); | |
36769d30 | 3508 | TLorentzVector grandmom = GetMCAnalysisUtils()->GetMotherWithPDG(label,111,GetReader(),ok,momlabel); |
85c4406e | 3509 | if(grandmom.E() > 0 && ok) |
51a0ace5 | 3510 | { |
3511 | efracMC = mom.E()/grandmom.E(); | |
3512 | fhMCPi0DecayPtFraction ->Fill(pt,efracMC); | |
3513 | } | |
3455f821 | 3514 | } |
51a0ace5 | 3515 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCEta)) |
3516 | { | |
36769d30 | 3517 | TLorentzVector grandmom = GetMCAnalysisUtils()->GetMotherWithPDG(label,221,GetReader(),ok,momlabel); |
85c4406e | 3518 | if(grandmom.E() > 0 && ok) |
51a0ace5 | 3519 | { |
883411b2 | 3520 | efracMC = grandmom.E()/ener; |
3521 | fhMCEtaPtGenRecoFraction ->Fill(pt,efracMC); | |
51a0ace5 | 3522 | } |
85c4406e | 3523 | } |
3455f821 | 3524 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCEtaDecay)) |
3525 | { | |
3526 | fhMCEtaDecayPt->Fill(pt); | |
36769d30 | 3527 | TLorentzVector grandmom = GetMCAnalysisUtils()->GetMotherWithPDG(label,221,GetReader(),ok,momlabel); |
85c4406e | 3528 | if(grandmom.E() > 0 && ok) |
51a0ace5 | 3529 | { |
3530 | efracMC = mom.E()/grandmom.E(); | |
3531 | fhMCEtaDecayPtFraction ->Fill(pt,efracMC); | |
3532 | } | |
3455f821 | 3533 | } |
3534 | else if(GetMCAnalysisUtils()->CheckTagBit(tag,AliMCAnalysisUtils::kMCOtherDecay)) | |
3535 | { | |
3536 | fhMCOtherDecayPt->Fill(pt); | |
3537 | } | |
af722ce4 | 3538 | |
477d6cee | 3539 | } |
3455f821 | 3540 | |
4bbe6213 | 3541 | if( mcIndex==kmcPi0 || mcIndex==kmcEta ) |
3542 | { | |
3543 | Float_t prodR = -1; | |
3544 | Int_t momindex = -1; | |
3545 | Int_t mompdg = -1; | |
3546 | Int_t momstatus = -1; | |
3547 | ||
3548 | if(GetReader()->ReadStack()) | |
3549 | { | |
3550 | TParticle* ancestor = GetMCStack()->Particle(label); | |
3551 | momindex = ancestor->GetFirstMother(); | |
3552 | if(momindex < 0) return; | |
3553 | TParticle* mother = GetMCStack()->Particle(momindex); | |
3554 | mompdg = TMath::Abs(mother->GetPdgCode()); | |
3555 | momstatus = mother->GetStatusCode(); | |
3556 | prodR = mother->R(); | |
3557 | } | |
3558 | else | |
3559 | { | |
3560 | TClonesArray * mcparticles = GetReader()->GetAODMCParticles(); | |
3561 | AliAODMCParticle* ancestor = (AliAODMCParticle *) mcparticles->At(label); | |
3562 | momindex = ancestor->GetMother(); | |
3563 | if(momindex < 0) return; | |
3564 | AliAODMCParticle* mother = (AliAODMCParticle *) mcparticles->At(momindex); | |
3565 | mompdg = TMath::Abs(mother->GetPdgCode()); | |
3566 | momstatus = mother->GetStatus(); | |
3567 | prodR = TMath::Sqrt(mother->Xv()*mother->Xv()+mother->Yv()*mother->Yv()); | |
3568 | } | |
3569 | ||
3570 | if( mcIndex==kmcPi0 ) | |
3571 | { | |
3572 | fhMCPi0ProdVertex->Fill(pt,prodR); | |
4bbe6213 | 3573 | |
3574 | if (momstatus == 21) fhMCPi0PtOrigin->Fill(pt,0.5);//parton | |
3575 | else if(mompdg < 22 ) fhMCPi0PtOrigin->Fill(pt,1.5);//quark | |
3576 | else if(mompdg > 2100 && mompdg < 2210) fhMCPi0PtOrigin->Fill(pt,2.5);// resonances | |
3577 | else if(mompdg == 221) fhMCPi0PtOrigin->Fill(pt,8.5);//eta | |
3578 | else if(mompdg == 331) fhMCPi0PtOrigin->Fill(pt,9.5);//eta prime | |
3579 | else if(mompdg == 213) fhMCPi0PtOrigin->Fill(pt,4.5);//rho | |
3580 | else if(mompdg == 223) fhMCPi0PtOrigin->Fill(pt,5.5);//omega | |
3581 | else if(mompdg >= 310 && mompdg <= 323) fhMCPi0PtOrigin->Fill(pt,6.5);//k0S, k+-,k* | |
3582 | else if(mompdg == 130) fhMCPi0PtOrigin->Fill(pt,6.5);//k0L | |
3583 | else if(momstatus == 11 || momstatus == 12 ) fhMCPi0PtOrigin->Fill(pt,3.5);//resonances | |
3584 | else fhMCPi0PtOrigin->Fill(pt,7.5);//other? | |
3585 | } | |
3586 | else if (mcIndex==kmcEta ) | |
3587 | { | |
3588 | fhMCEtaProdVertex->Fill(pt,prodR); | |
4bbe6213 | 3589 | |
3590 | if (momstatus == 21) fhMCEtaPtOrigin->Fill(pt,0.5);//parton | |
3591 | else if(mompdg < 22 ) fhMCEtaPtOrigin->Fill(pt,1.5);//quark | |
3592 | else if(mompdg > 2100 && mompdg < 2210) fhMCEtaPtOrigin->Fill(pt,2.5);// resonances | |
3593 | else if(mompdg == 221) fhMCEtaPtOrigin->Fill(pt,8.5);//eta | |
3594 | else if(mompdg == 331) fhMCEtaPtOrigin->Fill(pt,9.5);//eta prime | |
3595 | else if(mompdg == 213) fhMCEtaPtOrigin->Fill(pt,4.5);//rho | |
3596 | else if(mompdg == 223) fhMCEtaPtOrigin->Fill(pt,5.5);//omega | |
3597 | else if(mompdg >= 310 && mompdg <= 323) fhMCEtaPtOrigin->Fill(pt,6.5);//k0S, k+-,k* | |
3598 | else if(mompdg == 130) fhMCEtaPtOrigin->Fill(pt,6.5);//k0L | |
3599 | else if(momstatus == 11 || momstatus == 12 ) fhMCEtaPtOrigin->Fill(pt,3.5);//resonances | |
3600 | else fhMCEtaPtOrigin->Fill(pt,7.5);//other? | |
3601 | } | |
3602 | } | |
3603 | ||
477d6cee | 3604 | }//Histograms with MC |
3605 | ||
3606 | }// aod loop | |
3607 | ||
3608 | } | |
3609 | ||
477d6cee | 3610 | //__________________________________________________________________ |
3611 | void AliAnaPi0EbE::Print(const Option_t * opt) const | |
3612 | { | |
3613 | //Print some relevant parameters set for the analysis | |
3614 | if(! opt) | |
3615 | return; | |
3616 | ||
3617 | printf("**** Print %s %s ****\n", GetName(), GetTitle() ) ; | |
745913ae | 3618 | AliAnaCaloTrackCorrBaseClass::Print(""); |
477d6cee | 3619 | printf("Analysis Type = %d \n", fAnaType) ; |
85c4406e | 3620 | if(fAnaType == kSSCalo) |
3621 | { | |
477d6cee | 3622 | printf("Calorimeter = %s\n", fCalorimeter.Data()) ; |
3623 | printf("Min Distance to Bad Channel = %2.1f\n",fMinDist); | |
3624 | printf("Min Distance to Bad Channel 2 = %2.1f\n",fMinDist2); | |
85c4406e | 3625 | printf("Min Distance to Bad Channel 3 = %2.1f\n",fMinDist3); |
477d6cee | 3626 | } |
3627 | printf(" \n") ; | |
3628 | ||
3629 | } | |
78a28af3 | 3630 | |
78a28af3 | 3631 |