FairRoot/PandaRoot
PndEmcCorrection.cxx
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 // $Id:$
4 //
5 // Description:
6 // Class EmcCorrection
7 // Do an energy and theta corrections
8 // (at the moment for photons, 4.02.2010)
9 //
10 // Author List:
11 // A. Biegun
12 //------------------------------------------------------------------------
13 //
14 //-----------------------
15 // This Class's Header --
16 //-----------------------
17 #include "PndEmcCorrection.h"
18 
19 //-------------------------------
20 // Collaborating Class Headers --
21 //-------------------------------
22 #include "PndEmcStructure.h"
23 #include "PndEmcDataTypes.h"
24 
25 #include "PndEmcMapper.h"
26 #include "PndEmcDigiPar.h"
27 #include "PndEmcRecoPar.h"
28 #include "PndEmcDigi.h"
29 #include "PndEmcCluster.h"
30 #include "PndEmcBump.h"
31 
32 #include "FairRootManager.h"
33 #include "FairRunAna.h"
34 #include "FairRuntimeDb.h"
35 
36 #include "TClonesArray.h"
37 #include "TObject.h"
38 #include "TH2.h"
39 #include "TVector3.h"
40 
41 #include <algorithm>
42 #include <iostream>
43 
44 using std::cout;
45 using std::endl;
46 
47 //----------------
48 // Constructors --
49 //----------------
50 PndEmcCorrection::PndEmcCorrection(Int_t chosenModule, Double_t EnCorPhoton, Double_t EnCorElectron,
51  Double_t EnCorPion, Double_t EnCorOther, Double_t ThCorPhoton,
52  Double_t ThCorElectron, Double_t ThCorPion, Double_t ThCorOther,
53  Double_t valzEnPhoton, Double_t valzEnElectron, Double_t valzEnPion,
54  Double_t valzEnOther, Double_t valzThPhoton, Double_t valzThElectron,
55  Double_t valzThPion, Double_t valzThOther)
56  :
57  fChosenModule(chosenModule),
58 
59  fEnergyCorrPhoton(EnCorPhoton),
60  fEnergyCorrElectron(EnCorElectron),
61  fEnergyCorrPion(EnCorPion),
62  fEnergyCorrOther(EnCorOther),
63 
64  fThetaCorrPhoton(ThCorPhoton),
65  fThetaCorrElectron(ThCorElectron),
66  fThetaCorrPion(ThCorPion),
67  fThetaCorrOther(ThCorOther),
68 
69  fEnCorrFactorPhoton(valzEnPhoton),
70  fEnCorrFactorElectron(valzEnElectron),
71  fEnCorrFactorPion(valzEnPion),
72  fEnCorrFactorOther(valzEnOther),
73 
74  fThCorrFactorPhoton(valzThPhoton),
75  fThCorrFactorElectron(valzThElectron),
76  fThCorrFactorPion(valzThPion),
77  fThCorrFactorOther(valzThOther)
78 {
79 }
80 
82  fChosenModule(0),
83 
84  fEnergyCorrPhoton(0),
85  fEnergyCorrElectron(0),
86  fEnergyCorrPion(0),
87  fEnergyCorrOther(0),
88 
89  fThetaCorrPhoton(0),
90  fThetaCorrElectron(0),
91  fThetaCorrPion(0),
92  fThetaCorrOther(0),
93 
94  fEnCorrFactorPhoton(0),
95  fEnCorrFactorElectron(0),
96  fEnCorrFactorPion(0),
97  fEnCorrFactorOther(0),
98 
99  fThCorrFactorPhoton(0),
100  fThCorrFactorElectron(0),
101  fThCorrFactorPion(0),
102  fThCorrFactorOther(0)
103 {
104 }
105 
106 //--------------
107 // Destructor --
108 //--------------
109 
111 {
112 }
113 //
114 // Module number
115 //
117 {
118  return fChosenModule;
119 }
120 
121 //
122 // Corrected Energy
123 //
125 {
126  return fEnergyCorrPhoton;
127 }
128 
130 {
131  return fEnergyCorrElectron;
132 }
133 
135 {
136  return fEnergyCorrPion;
137 }
138 
140 {
141  return fEnergyCorrOther;
142 }
143 //
144 // Corrected Theta
145 //
147 {
148  return fThetaCorrPhoton;
149 }
150 
152 {
153  return fThetaCorrElectron;
154 }
155 
157 {
158  return fThetaCorrPion;
159 }
160 
162 {
163  return fThetaCorrOther;
164 }
165 
166 //
167 // Correction factors for Energy
168 //
170 {
171  return fEnCorrFactorPhoton;
172 }
173 
175 {
176  return fEnCorrFactorElectron;
177 }
178 
180 {
181  return fEnCorrFactorPion;
182 }
183 
185 {
186  return fEnCorrFactorOther;
187 }
188 
189 
190 //
191 // Correction factors for Theta
192 //
194 {
195  return fThCorrFactorPhoton;
196 }
197 
199 {
200  return fThCorrFactorElectron;
201 }
202 
204 {
205  return fThCorrFactorPion;
206 }
207 
209 {
210  return fThCorrFactorOther;
211 }
212 
213 
214 
216 
217 
Double_t EnergyCorrOther()
Double_t EnergyCorrPhoton()
Double_t EnergyCorrElectron()
Double_t fThetaCorrPhoton
Double_t ThCorrFactorOther()
Double_t ThetaCorrElectron()
Double_t EnCorrFactorPion()
Double_t ThCorrFactorPion()
Double_t EnCorrFactorOther()
Double_t fThetaCorrElectron
Double_t fEnergyCorrOther
Double_t ThetaCorrPhoton()
Double_t EnCorrFactorElectron()
Double_t EnCorrFactorPhoton()
Double_t fThCorrFactorElectron
Double_t fEnergyCorrPhoton
Double_t
Double_t ThCorrFactorElectron()
Double_t fThCorrFactorPion
Double_t fEnCorrFactorOther
Double_t fThCorrFactorOther
Double_t fThetaCorrOther
Double_t fEnCorrFactorPion
Double_t fEnCorrFactorElectron
Double_t fEnergyCorrPion
ClassImp(PndAnaContFact)
Double_t fThCorrFactorPhoton
Double_t fEnergyCorrElectron
Double_t ThCorrFactorPhoton()
Double_t fEnCorrFactorPhoton