]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGGA/CaloTrackCorrelations/AliAnaPi0EbE.h
add a helper macro to print statistics and memory usage of all TPC calibration objects
[u/mrichter/AliRoot.git] / PWGGA / CaloTrackCorrelations / AliAnaPi0EbE.h
CommitLineData
477d6cee 1#ifndef ALIANAPI0EBE_H
2#define ALIANAPI0EBE_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
477d6cee 5
6//_________________________________________________________________________
7//
8// Class for the analysis of high pT pi0 event by event
09273901 9// Pi0/Eta identified by one of the following:
477d6cee 10// -Invariant mass of 2 cluster in calorimeter
11// -Shower shape analysis in calorimeter
12// -Invariant mass of one cluster in calorimeter and one photon reconstructed in TPC (in near future)
13//
14//-- Author: Gustavo Conesa (INFN-LNF) & Raphaelle Ichou (SUBATECH)
15//_________________________________________________________________________
16
17
18// --- ROOT system ---
477d6cee 19class TList ;
0c1383b5 20class TObjString;
477d6cee 21
22// --- ANALYSIS system ---
745913ae 23#include "AliAnaCaloTrackCorrBaseClass.h"
477d6cee 24
745913ae 25class AliAnaPi0EbE : public AliAnaCaloTrackCorrBaseClass {
477d6cee 26
27 public:
477d6cee 28 AliAnaPi0EbE() ; // default ctor
1db06135 29 virtual ~AliAnaPi0EbE() { ; } //virtual dtor
c5693f62 30
521636d2 31 TObjString * GetAnalysisCuts();
477d6cee 32
521636d2 33 TList * GetCreateOutputObjects();
477d6cee 34
3455f821 35 Int_t GetMCIndex(const Int_t aodTag);
36
521636d2 37 void Init();
477d6cee 38
521636d2 39 void InitParameters();
40
41 void MakeAnalysisFillAOD() ;
42
43 void MakeAnalysisFillHistograms() ;
477d6cee 44
521636d2 45 void Print(const Option_t * opt) const;
477d6cee 46
521636d2 47 // Main
477d6cee 48
2ad19c3d 49 void FillPileUpHistograms(Float_t energy, Float_t time) ;
50
5c46c992 51 void FillSelectedClusterHistograms(AliVCluster* cluster,
52 const Int_t nLocMax,
bfdcf7fb 53 const Int_t tag,
54 const Float_t asy = 0);
42d47cb7 55
56 void FillWeightHistograms(AliVCluster *clus);
0a14e9ae 57
b5dbb99b 58 void HasPairSameMCMother(AliAODPWG4Particle * photon1,
59 AliAODPWG4Particle * photon2,
60 Int_t & label, Int_t & tag);
61
521636d2 62 void MakeInvMassInCalorimeter() ;
57b97dc6 63
521636d2 64 void MakeInvMassInCalorimeterAndCTS() ;
57b97dc6 65
521636d2 66 void MakeShowerShapeIdentification() ;
dbba06ca 67
521636d2 68 //Setters Getters
69
70 //Analysis types
71 enum anaTypes {kIMCalo, kSSCalo, kIMCaloTracks};
764ab1f4 72 anaTypes GetAnalysisType() const { return fAnaType ; }
73 void SetAnalysisType(anaTypes ana) { fAnaType = ana ; }
ddc0a8a5 74
764ab1f4 75 TString GetInputAODGammaConvName() const { return fInputAODGammaConvName ; }
76 void SetInputAODGammaConvName(TString name) { fInputAODGammaConvName = name ; }
ddc0a8a5 77
521636d2 78 //Only for pi0 SS identification case
764ab1f4 79 void SetCalorimeter(TString & det) { fCalorimeter = det ; }
521636d2 80
81 void SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3) {
78a28af3 82 fMinDist = m1; fMinDist2 = m2; fMinDist3 = m3 ; }
34c16486 83
84 void SetTimeCut(Double_t min, Double_t max) { fTimeCutMin = min;
764ab1f4 85 fTimeCutMax = max ; }
86 Double_t GetTimeCutMin() const { return fTimeCutMin ; }
87 Double_t GetTimeCutMax() const { return fTimeCutMax ; }
88
2ad19c3d 89 void SwitchOnFillPileUpHistograms() { fFillPileUpHistograms = kTRUE ; }
90 void SwitchOffFillPileUpHistograms() { fFillPileUpHistograms = kFALSE ; }
91
764ab1f4 92 void SwitchOnFillWeightHistograms() { fFillWeightHistograms = kTRUE ; }
93 void SwitchOffFillWeightHistograms() { fFillWeightHistograms = kFALSE ; }
94
95 void SwitchOnTMHistoFill() { fFillTMHisto = kTRUE ; }
96 void SwitchOffTMHistoFill() { fFillTMHisto = kFALSE ; }
521636d2 97
764ab1f4 98 void SwitchOnSelectedClusterHistoFill() { fFillSelectClHisto = kTRUE ; }
99 void SwitchOffSelectedClusterHistoFill() { fFillSelectClHisto = kFALSE ; }
c5693f62 100
764ab1f4 101 void SwitchOnOnlySimpleSSHistoFill() { fFillOnlySimpleSSHisto = kTRUE ; }
102 void SwitchOffOnlySimpleHistoFill() { fFillOnlySimpleSSHisto = kFALSE ; }
09273901 103
06e81356 104
521636d2 105 //For histograms
c5693f62 106 enum mcTypes { kmcPhoton = 0, kmcConversion = 1, kmcPi0 = 2,
107 kmcEta = 3, kmcElectron = 4, kmcHadron = 5 };
521636d2 108
477d6cee 109 private:
110
c5693f62 111 anaTypes fAnaType; // Select analysis type
477d6cee 112
113 //Only for pi0 SS identification case, kSSCalo
521636d2 114 TString fCalorimeter ; // Calorimeter where the gamma is searched;
115 Float_t fMinDist ; // Minimal distance to bad channel to accept cluster
116 Float_t fMinDist2; // Cuts on Minimal distance to study acceptance evaluation
117 Float_t fMinDist3; // One more cut on distance used for acceptance-efficiency study
34c16486 118 Double_t fTimeCutMin ; // Remove clusters/cells with time smaller than this value, in ns
119 Double_t fTimeCutMax ; // Remove clusters/cells with time larger than this value, in ns
477d6cee 120
2ad19c3d 121 Bool_t fFillPileUpHistograms; // Fill pile-up related histograms
78a28af3 122 Bool_t fFillWeightHistograms ; // Fill weigth histograms
09273901 123 Bool_t fFillTMHisto; // Fill track matching plots
06e81356 124 Bool_t fFillSelectClHisto; // Fill selected cluster histograms
764ab1f4 125 Bool_t fFillOnlySimpleSSHisto; // Fill selected cluster histograms, selected SS histograms
09273901 126
477d6cee 127 //Only for combination of calorimeter and conversion photons, kIMCaloTracks
521636d2 128 TString fInputAODGammaConvName; // Name of AOD branch with conversion photons
477d6cee 129
130 //Histograms
521636d2 131
09273901 132 TH1F * fhPt ; //! Number of identified pi0/eta vs pT
133 TH1F * fhE ; //! Number of identified pi0/eta vs E
134 TH2F * fhEEta ; //! E vs eta of identified pi0/eta
135 TH2F * fhEPhi ; //! E vs phi of identified pi0/eta
136 TH2F * fhEtaPhi ; //! eta vs phi of identified pi0/eta
7a972c0c 137
09273901 138 TH1F * fhPtDecay ; //! Number of identified pi0/eta decay photons vs pT
139 TH1F * fhEDecay ; //! Number of identified pi0/eta decay photons vs E
140
42d47cb7 141 TH2F * fhEDispersion ; //! E vs disp of selected cluster
142 TH2F * fhELambda0 ; //! E vs lambda0 of selected cluster
143 TH2F * fhELambda1 ; //! E vs lambda1 of selected cluster
144 TH2F * fhELambda0NoTRD ; //! E vs lambda0 of selected cluster, not behind TRD
145 TH2F * fhELambda0FracMaxCellCut ;//! E vs lambda0 of selected cluster, fraction of cluster energy in max cell cut
146 TH2F * fhEFracMaxCell ; //! E vs frac max cell of selected cluster
147 TH2F * fhEFracMaxCellNoTRD ; //! E vs frac max cell of selected cluster, not behind TRD
148 TH2F * fhENCells; //! E vs N cells in selected cluster
149 TH2F * fhETime; //! E vs Time of selected cluster
150 TH2F * fhEPairDiffTime; //! E vs Pair of clusters time difference vs E
5c46c992 151
34c16486 152 TH2F * fhDispEtaE ; //! shower dispersion in eta direction
153 TH2F * fhDispPhiE ; //! shower dispersion in phi direction
d2655d46 154 TH2F * fhLambda0DispEta[7] ; //! shower shape correlation l0 vs disp eta
155 TH2F * fhLambda0DispPhi[7] ; //! shower shape correlation l0 vs disp phi
34c16486 156 TH2F * fhSumEtaE ; //! shower dispersion in eta direction
157 TH2F * fhSumPhiE ; //! shower dispersion in phi direction
158 TH2F * fhSumEtaPhiE ; //! shower dispersion in eta and phi direction
159 TH2F * fhDispEtaPhiDiffE ; //! shower dispersion eta - phi
160 TH2F * fhSphericityE ; //! shower sphericity in eta vs phi
d2655d46 161 TH2F * fhDispEtaDispPhi[7] ; //! shower dispersion in eta direction vs phi direction for 5 E bins [0-2],[2-4],[4-6],[6-10],[> 10]
bfdcf7fb 162 TH2F * fhAsymmetryE ; //! E asymmetry of 2 splitted clusters vs cluster E
d2655d46 163 TH2F * fhAsymmetryLambda0[7] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
164 TH2F * fhAsymmetryDispEta[7] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
165 TH2F * fhAsymmetryDispPhi[7] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
bfdcf7fb 166
c4a7d28a 167 //MC histograms
168
3455f821 169 TH2F * fhEMCLambda0[6] ; //! E vs lambda0 of pi0 pairs but really from MC particle
170 TH2F * fhEMCLambda1[6] ; //! E vs lambda1 of pi0 pairs but really from MC particle
171 TH2F * fhEMCDispersion[6] ; //! E vs dispersion of pi0 pairs but really from MC particle
3bfcb597 172 TH2F * fhEMCLambda0NoTRD[6] ; //! E vs lambda0 of pi0 pairs but really from MC particle, not behind TRD
173 TH2F * fhEMCLambda0FracMaxCellCut[6] ;//! E vs lambda0 of pi0 pairs but really from MC particle, fraction of cluster energy in max cell cut
3455f821 174 TH2F * fhEMCFracMaxCell[6] ; //! E vs fraction of max cell
175
176 TH2F * fhMCEDispEta[6] ; //! shower dispersion in eta direction
177 TH2F * fhMCEDispPhi[6] ; //! shower dispersion in phi direction
178 TH2F * fhMCLambda0DispEta[7][6] ; //! shower shape correlation l0 vs disp eta
179 TH2F * fhMCLambda0DispPhi[7][6] ; //! shower shape correlation l0 vs disp phi
180 TH2F * fhMCESumEtaPhi[6] ; //! shower dispersion in eta vs phi direction
181 TH2F * fhMCEDispEtaPhiDiff[6] ; //! shower dispersion in eta -phi direction
182 TH2F * fhMCESphericity[6] ; //! shower sphericity, eta vs phi
183 TH2F * fhMCDispEtaDispPhi[7][6] ; //! shower dispersion in eta direction vs phi direction for 5 E bins [0-2],[2-4],[4-6],[6-10],[> 10]
bfdcf7fb 184 TH2F * fhMCEAsymmetry[6] ; //! E asymmetry of 2 splitted clusters vs cluster E
d2655d46 185 TH2F * fhMCAsymmetryLambda0[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
186 TH2F * fhMCAsymmetryDispEta[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
187 TH2F * fhMCAsymmetryDispPhi[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
34c16486 188
3455f821 189 TH1F * fhMCPt[6]; //! Number of identified as pi0, coming from X
190 TH2F * fhMCPhi[6]; //! Phi of identified as pi0, coming from X
191 TH2F * fhMCEta[6]; //! eta of identified as pi0, coming from X
192
883411b2 193 TH2F * fhMCPi0PtGenRecoFraction; //! SS id, clusters id as pi0 (eta), coming from 2 photon, pi0 primary, pt vs E prim pi0 / E reco
194 TH2F * fhMCEtaPtGenRecoFraction; //! SS id, clusters id as pi0 (eta), coming from 2 photon, eta primary, pt vs E prim eta / E reco
195 TH1F * fhMCPi0DecayPt; //! SS id, clusters id as pi0 (eta), coming from 1 photon, pi0 decay primary, pt
196 TH2F * fhMCPi0DecayPtFraction; //! SS id, clusters id as pi0 (eta), coming from 1 photon, pi0 decay primary, pt vs pt decay / pt mother
197 TH1F * fhMCEtaDecayPt; //! SS id, clusters id as pi0 (eta), coming from 1 photon, eta decay primary, pt
198 TH2F * fhMCEtaDecayPtFraction; //! SS id, clusters id as pi0 (eta), coming from 1 photon, eta decay primary, pt vs pt decay / pt mother
199 TH1F * fhMCOtherDecayPt; //! SS id, clusters id as pi0 (eta), coming from 1 photon, other decay primary, pt
b5dbb99b 200
3455f821 201 TH2F * fhMassPairMCPi0; //! pair mass, origin is same pi0
202 TH2F * fhMassPairMCEta; //! pair mass, origin is same eta
203 TH2F * fhAnglePairMCPi0; //! pair opening angle, origin is same pi0
204 TH2F * fhAnglePairMCEta; //! pair opening angle, origin is same eta
521636d2 205
78a28af3 206 // Weight studies
207
208 TH2F * fhECellClusterRatio; //! e cell / e cluster vs e cluster for selected photons
209 TH2F * fhECellClusterLogRatio; //! log (e cell / e cluster) vs e cluster for selected photons
210 TH2F * fhEMaxCellClusterRatio; //! e max cell / e cluster vs e cluster for selected photons
211 TH2F * fhEMaxCellClusterLogRatio;//! log (e max cell / e cluster) vs e cluster for selected photons
c5693f62 212 TH2F * fhLambda0ForW0[14]; //! L0 for 7 defined w0= 3, 3.5 ... 6 for selected photons
1a72f6c5 213 //TH2F * fhLambda1ForW0[7]; //! L1 for 7 defined w0= 3, 3.5 ... 6 for selected photons
78a28af3 214
09273901 215 // Track Matching
216 TH2F * fhTrackMatchedDEta ; //! Eta distance between track and cluster vs cluster E
217 TH2F * fhTrackMatchedDPhi ; //! Phi distance between track and cluster vs cluster E
218 TH2F * fhTrackMatchedDEtaDPhi ; //! Eta vs Phi distance between track and cluster, E cluster > 0.5 GeV
5c46c992 219 TH2F * fhTrackMatchedMCParticle; //! Trace origin of matched particle
31ae6d59 220 TH2F * fhdEdx ; //! matched track dEdx vs cluster E
b5dbb99b 221 TH2F * fhEOverP; //! matched track E cluster over P track vs cluster E
b5dbb99b 222 TH2F * fhEOverPNoTRD; //! matched track E cluster over P track vs cluster E, not behind TRD
223
5c46c992 224 // Local maxima
225 TH2F * fhNLocMax; //! number of maxima in selected clusters
34c16486 226 TH2F * fhELambda0LocMax[3] ; //! E vs lambda0 of selected cluster, 1,2,>2 local maxima in cluster
227 TH2F * fhELambda1LocMax[3] ; //! E vs lambda1 of selected cluster, 1,2,>2 local maxima in cluster
228 TH2F * fhEDispersionLocMax[3] ; //! E vs lambda1 of selected cluster, 1,2,>2 local maxima in cluster
229 TH2F * fhEDispEtaLocMax[3] ; //! E vs eta dispersion of selected cluster, 1,2,>2 local maxima in cluster
230 TH2F * fhEDispPhiLocMax[3] ; //! E vs phi dispersion of selected cluster, 1,2,>2 local maxima in cluster
231 TH2F * fhESumEtaPhiLocMax[3] ; //! E vs dispersion in eta and phi direction
232 TH2F * fhEDispEtaPhiDiffLocMax[3] ; //! E vs dispersion eta - phi
233 TH2F * fhESphericityLocMax[3] ; //! E vs sphericity in eta vs phi
bfdcf7fb 234 TH2F * fhEAsymmetryLocMax[3] ; //! E asymmetry of 2 splitted clusters vs cluster E for different NLM
235
3c1d9afb 236 TH2F * fhMassPairLocMax[8]; //! pair mass, origin is same pi0, combine clusters depending on number of maxima
5c46c992 237
2ad19c3d 238 // Pile-up
239 TH2F * fhTimeENoCut; //! time of cluster vs E, no cut
240 TH2F * fhTimeESPD; //! time of cluster vs E, IsSPDPileUp
241 TH2F * fhTimeESPDMulti; //! time of cluster vs E, IsSPDPileUpMulti
242 TH2F * fhTimeNPileUpVertSPD; //! time of cluster vs n pile-up vertices from SPD
243 TH2F * fhTimeNPileUpVertTrack; //! time of cluster vs n pile-up vertices from Tracks
244 TH2F * fhTimeNPileUpVertContributors; //! time of cluster vs n pile-up vertex from SPD contributors
245 TH2F * fhTimePileUpMainVertexZDistance; //! time of cluster vs difference of z main vertex and pile-up vertex
246 TH2F * fhTimePileUpMainVertexZDiamond; //! time of cluster vs difference of z diamond and pile-up vertex
247
bfdcf7fb 248 AliAnaPi0EbE( const AliAnaPi0EbE & pi0ebe) ; // cpy ctor
249 AliAnaPi0EbE & operator = (const AliAnaPi0EbE & pi0ebe) ; // cpy assignment
c5693f62 250
2ad19c3d 251 ClassDef(AliAnaPi0EbE,21)
c4a7d28a 252} ;
477d6cee 253
254
255#endif //ALIANAPI0EBE_H
256
257
258