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