]>
Commit | Line | Data |
---|---|---|
d9105d92 | 1 | #ifndef ALIANAELECTRON_H |
2 | #define ALIANAELECTRON_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
d9105d92 | 5 | |
6 | //_________________________________________________________________________ | |
7 | // | |
8 | // Class for the electron identification, | |
9 | // Clusters from calorimeters are identified as electrons | |
10 | // and kept in the AOD. Few histograms produced. | |
11 | // Copy of AliAnaPhoton just add electron id. | |
12 | // | |
13 | ||
14 | //-- Author: Gustavo Conesa (LPSC-IN2P3-CNRS) | |
15 | ||
16 | // --- ROOT system --- | |
17 | class TH2F ; | |
18 | class TH1F; | |
19 | class TH3D; | |
20 | class TString ; | |
21 | class TObjString; | |
22 | ||
23 | // --- ANALYSIS system --- | |
745913ae | 24 | #include "AliAnaCaloTrackCorrBaseClass.h" |
d9105d92 | 25 | class AliStack; |
26 | class TParticle; | |
27 | ||
28 | class TList ; | |
29 | ||
745913ae | 30 | class AliAnaElectron : public AliAnaCaloTrackCorrBaseClass { |
d9105d92 | 31 | |
32 | public: | |
33 | ||
34 | AliAnaElectron() ; // default ctor | |
35 | ||
36 | virtual ~AliAnaElectron() { ; } // virtual dtor | |
d9105d92 | 37 | |
38 | //--------------------------------------- | |
39 | // General analysis frame methods | |
40 | //--------------------------------------- | |
41 | ||
42 | TObjString * GetAnalysisCuts(); | |
43 | ||
44 | TList * GetCreateOutputObjects(); | |
45 | ||
46 | void Init(); | |
47 | ||
48 | void InitParameters(); | |
49 | ||
50 | void MakeAnalysisFillAOD() ; | |
51 | ||
52 | void MakeAnalysisFillHistograms() ; | |
53 | ||
54 | void Print(const Option_t * opt)const; | |
55 | ||
56 | ||
57 | // Analysis methods | |
58 | ||
59 | Bool_t ClusterSelected(AliVCluster* cl, TLorentzVector mom) ; | |
60 | ||
d9105d92 | 61 | void FillShowerShapeHistograms( AliVCluster* cluster, const Int_t mcTag , const Int_t pidTag) ; |
62 | ||
63 | void SwitchOnFillShowerShapeHistograms() { fFillSSHistograms = kTRUE ; } | |
64 | void SwitchOffFillShowerShapeHistograms() { fFillSSHistograms = kFALSE ; } | |
dbba06ca | 65 | |
78a28af3 | 66 | void WeightHistograms(AliVCluster *clus); |
67 | ||
68 | void SwitchOnFillWeightHistograms() { fFillWeightHistograms = kTRUE ; } | |
69 | void SwitchOffFillWeightHistograms() { fFillWeightHistograms = kFALSE ; } | |
70 | ||
d9105d92 | 71 | //--------------------------------------- |
72 | // Analysis parameters setters getters | |
73 | //--------------------------------------- | |
74 | ||
75 | TString GetCalorimeter() const { return fCalorimeter ; } | |
76 | void SetCalorimeter(TString & det) { fCalorimeter = det ; } | |
77 | ||
78 | // ** Cluster selection methods ** | |
79 | ||
80 | void SetdEdxCut(Double_t min, Double_t max) { fdEdxMin = min ; | |
81 | fdEdxMax = max ; } | |
82 | ||
83 | void SetEOverP(Double_t min, Double_t max) { fEOverPMin = min ; | |
84 | fEOverPMax = max ; } | |
85 | ||
86 | ||
87 | void SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3) { | |
88 | fMinDist = m1; fMinDist2 = m2; fMinDist3 = m3; } | |
89 | ||
90 | void SetTimeCut(Double_t min, Double_t max) { fTimeCutMin = min; | |
91 | fTimeCutMax = max ; } | |
92 | Double_t GetTimeCutMin() const { return fTimeCutMin ; } | |
93 | Double_t GetTimeCutMax() const { return fTimeCutMax ; } | |
94 | ||
95 | void SetNCellCut(Int_t n) { fNCellsCut = n ; } | |
96 | Double_t GetNCellCut() const { return fNCellsCut ; } | |
97 | ||
98 | void FillNOriginHistograms(Int_t n) { fNOriginHistograms = n ; | |
99 | if(n > 10) fNOriginHistograms = 10; } | |
100 | ||
101 | // For histograms in arrays, index in the array, corresponding to a particle | |
c5693f62 | 102 | enum mcTypes { kmcPhoton = 0, kmcPi0Decay = 1, kmcOtherDecay = 2, |
103 | kmcPi0 = 3, kmcEta = 4, kmcElectron = 5, | |
104 | kmcConversion = 6, kmcOther = 7, kmcAntiNeutron = 8, | |
105 | kmcAntiProton = 9 }; | |
d9105d92 | 106 | |
c5693f62 | 107 | enum mcssTypes { kmcssPhoton = 0, kmcssOther = 1, kmcssPi0 = 2, |
108 | kmcssEta = 3, kmcssConversion = 4, kmcssElectron = 5 }; | |
d9105d92 | 109 | |
110 | private: | |
111 | ||
112 | TString fCalorimeter ; // Calorimeter where the gamma is searched; | |
113 | Float_t fMinDist ; // Minimal distance to bad channel to accept cluster | |
114 | Float_t fMinDist2; // Cuts on Minimal distance to study acceptance evaluation | |
115 | Float_t fMinDist3; // One more cut on distance used for acceptance-efficiency study | |
116 | Double_t fTimeCutMin ; // Remove clusters/cells with time smaller than this value, in ns | |
117 | Double_t fTimeCutMax ; // Remove clusters/cells with time larger than this value, in ns | |
118 | Int_t fNCellsCut ; // Accept for the analysis clusters with more than fNCellsCut cells | |
119 | Bool_t fFillSSHistograms ; // Fill shower shape histograms | |
78a28af3 | 120 | Bool_t fFillWeightHistograms ; // Fill weigth histograms |
d9105d92 | 121 | Int_t fNOriginHistograms; // Fill only NOriginHistograms of the 14 defined types |
122 | ||
123 | Float_t fdEdxMin; // Max dEdx for electrons | |
124 | Float_t fdEdxMax; // Min dEdx for electrons | |
125 | Float_t fEOverPMin; // Max E/p for electrons, after dEdx cut | |
126 | Float_t fEOverPMax; // Min E/p for electrons, after dEdx cut | |
127 | ||
128 | //Histograms | |
129 | TH2F * fhdEdxvsE; //! matched track dEdx vs cluster E | |
130 | TH2F * fhdEdxvsP; //! matched track dEdx vs track P | |
131 | TH2F * fhEOverPvsE; //! matched track E cluster over P track vs cluster E, after dEdx cut | |
132 | TH2F * fhEOverPvsP; //! matched track E cluster over P track vs track P, after dEdx cut | |
133 | ||
134 | TH2F * fhNCellsE[2]; //! number of cells in cluster vs E | |
135 | TH2F * fhMaxCellDiffClusterE[2]; //! Fraction of energy carried by cell with maximum energy | |
42d47cb7 | 136 | TH2F * fhTimeE[2]; //! E vs Time of selected cluster |
137 | ||
d9105d92 | 138 | TH1F * fhE[2] ; //! Number of identified electron vs energy |
139 | TH1F * fhPt[2] ; //! Number of identified electron vs transerse momentum | |
140 | TH2F * fhPhi[2] ; //! Azimuthal angle of identified electron vs transerse momentum | |
141 | TH2F * fhEta[2] ; //! Pseudorapidity of identified electron vs transerse momentum | |
142 | TH2F * fhEtaPhi[2] ; //! Pseudorapidity vs Phi of identified electron for transerse momentum > 0.5 | |
143 | TH2F * fhEtaPhi05[2] ; //! Pseudorapidity vs Phi of identified electron for transerse momentum < 0.5 | |
144 | ||
145 | //Shower shape | |
146 | ||
147 | TH2F * fhDispE[2]; //! cluster dispersion vs E | |
148 | TH2F * fhLam0E[2]; //! cluster lambda0 vs E | |
149 | TH2F * fhLam1E[2]; //! cluster lambda1 vs E | |
150 | ||
151 | TH2F * fhDispETRD[2]; //! cluster dispersion vs E, SM covered by TRD | |
152 | TH2F * fhLam0ETRD[2]; //! cluster lambda0 vs E, SM covered by TRD | |
153 | TH2F * fhLam1ETRD[2]; //! cluster lambda1 vs E, SM covered by TRD | |
154 | ||
155 | TH2F * fhNCellsLam0LowE[2]; //! cluster N cells vs lambda0, E<2 | |
156 | TH2F * fhNCellsLam0HighE[2]; //! cluster N Cells vs lambda0, E>2 | |
157 | ||
158 | TH2F * fhEtaLam0LowE[2]; //! cluster eta vs lambda0, E<2 | |
159 | TH2F * fhPhiLam0LowE[2]; //! cluster phi vs lambda0, E<2 | |
160 | TH2F * fhEtaLam0HighE[2]; //! cluster eta vs lambda0, E>2 | |
161 | TH2F * fhPhiLam0HighE[2]; //! cluster phi vs lambda0, E>2 | |
162 | ||
34c16486 | 163 | TH2F * fhDispEtaE[2] ; //! shower dispersion in eta direction |
164 | TH2F * fhDispPhiE[2] ; //! shower dispersion in phi direction | |
165 | TH2F * fhSumEtaE[2] ; //! shower dispersion in eta direction | |
166 | TH2F * fhSumPhiE[2] ; //! shower dispersion in phi direction | |
167 | TH2F * fhSumEtaPhiE[2] ; //! shower dispersion in eta and phi direction | |
168 | TH2F * fhDispEtaPhiDiffE[2] ; //! shower dispersion eta - phi | |
169 | TH2F * fhSphericityE[2] ; //! shower sphericity in eta vs phi | |
170 | TH2F * fhDispEtaDispPhiEBin[2][5] ; //! shower dispersion in eta direction vs phi direction for 5 E bins [0-2],[2-4],[4-6],[6-10],[> 10] | |
171 | ||
78a28af3 | 172 | // Weight studies |
173 | ||
174 | TH2F * fhECellClusterRatio; //! e cell / e cluster vs e cluster for selected electrons | |
175 | TH2F * fhECellClusterLogRatio; //! log (e cell / e cluster) vs e cluster for selected electrons | |
176 | TH2F * fhEMaxCellClusterRatio; //! e max cell / e cluster vs e cluster for selected electrons | |
177 | TH2F * fhEMaxCellClusterLogRatio; //! log (e max cell / e cluster) vs e cluster for selected electrons | |
34c16486 | 178 | TH2F * fhLambda0ForW0[14]; //! L0 for 7 defined w0= 3, 3.5 ... 6 for selected electrons |
1a72f6c5 | 179 | //TH2F * fhLambda1ForW0[14]; //! L1 for 7 defined w0= 3, 3.5 ... 6 for selected electrons |
78a28af3 | 180 | |
d9105d92 | 181 | //Fill MC dependent histograms, Origin of this cluster is ... |
182 | ||
183 | TH2F * fhMCDeltaE[2][10] ; //! MC-Reco E distribution coming from MC particle | |
184 | TH2F * fhMC2E[2][10] ; //! E distribution, Reco vs MC coming from MC particle | |
185 | ||
186 | TH1F * fhMCE[2][10]; //! Number of identified electron vs cluster energy coming from MC particle | |
187 | TH1F * fhMCPt[2][10]; //! Number of identified electron vs cluster energy coming from MC particle | |
188 | TH2F * fhMCPhi[2][10]; //! Phi of identified electron coming from MC particle | |
189 | TH2F * fhMCEta[2][10]; //! eta of identified electron coming from MC particle | |
190 | ||
191 | // Shower Shape MC | |
192 | ||
34c16486 | 193 | TH2F * fhMCELambda0[2][6] ; //! E vs Lambda0 from MC particle |
d9105d92 | 194 | |
34c16486 | 195 | TH2F * fhMCEDispEta[2][6] ; //! shower dispersion in eta direction from MC particle |
196 | TH2F * fhMCEDispPhi[2][6] ; //! shower dispersion in phi direction from MC particle | |
197 | TH2F * fhMCESumEtaPhi[2][6] ; //! shower dispersion in eta vs phi direction from MC particle | |
198 | TH2F * fhMCEDispEtaPhiDiff[2][6] ; //! shower dispersion in eta -phi direction from MC particle | |
199 | TH2F * fhMCESphericity[2][6] ; //! shower sphericity, eta vs phi from MC particle | |
34c16486 | 200 | |
201 | TH2F * fhMCElectronELambda0NoOverlap ; //! E vs Lambda0 from MC electrons, no overlap | |
202 | TH2F * fhMCElectronELambda0TwoOverlap ; //! E vs Lambda0 from MC electrons, 2 particles overlap | |
203 | TH2F * fhMCElectronELambda0NOverlap ; //! E vs Lambda0 from MC electrons, N particles overlap | |
d9105d92 | 204 | |
205 | //Embedding | |
206 | TH2F * fhEmbeddedSignalFractionEnergy ; //! Fraction of electron energy of embedded signal vs cluster energy | |
207 | ||
208 | TH2F * fhEmbedElectronELambda0FullSignal ; //! Lambda0 vs E for embedded electrons with more than 90% of the cluster energy | |
209 | TH2F * fhEmbedElectronELambda0MostlySignal ; //! Lambda0 vs E for embedded electrons with 90%<fraction<50% | |
210 | TH2F * fhEmbedElectronELambda0MostlyBkg ; //! Lambda0 vs E for embedded electrons with 50%<fraction<10% | |
211 | TH2F * fhEmbedElectronELambda0FullBkg ; //! Lambda0 vs E for embedded electrons with less than 10% of the cluster energy | |
212 | ||
34c16486 | 213 | AliAnaElectron( const AliAnaElectron & g) ; // cpy ctor |
c5693f62 | 214 | AliAnaElectron & operator = (const AliAnaElectron & g) ; // cpy assignment |
215 | ||
34c16486 | 216 | ClassDef(AliAnaElectron,3) |
d9105d92 | 217 | |
218 | } ; | |
219 | ||
220 | ||
221 | #endif//ALIANAELECTRON_H | |
222 | ||
223 | ||
224 |