Main Page
Namespaces
Classes
Package Documentation
SimCalorimetry
EcalSimAlgos
src
EEShape.cc
Go to the documentation of this file.
1
#include <cmath>
2
3
#include "
SimCalorimetry/EcalSimAlgos/interface/EEShape.h
"
4
5
void
6
EEShape::fillShape
(
float
&time_interval,
double
&m_thresh,
EcalShapeBase::DVec
& aVec,
const
edm::EventSetup
* es )
const
7
{
8
9
if
(
m_useDBShape
)
10
{
11
if
(es ==
nullptr
)
12
{
13
throw
cms::Exception
(
"EcalShapeBase:: DB conditions are not available, const edm::EventSetup* es == nullptr "
);
14
}
15
edm::ESHandle<EcalSimPulseShape>
esps;
16
es->
get
<
EcalSimPulseShapeRcd
>().
get
(esps);
17
18
aVec = esps->
endcap_shape
;
19
time_interval = esps->
time_interval
;
20
m_thresh = esps->
endcap_thresh
;
21
}
else
22
{
23
m_thresh = 0.00025;
24
time_interval = 1.0;
25
aVec.reserve(500);
26
aVec = {9.09091e-05,
27
9.96016e-05,
28
8.08219e-05,
29
0.000119685,
30
9.56522e-05,
31
0.000143969,
32
0.000101639,
33
0.000115789,
34
8.31461e-05,
35
0.000117091,
36
0.000141224,
37
5.38745e-05,
38
0.000158079,
39
0.000104906,
40
7.91946e-05,
41
8
e
-05,
42
0.000119703,
43
9.96516e-05,
44
8.82591e-05,
45
0.000146988,
46
0.000120588,
47
9.89474e-05,
48
0.000116788,
49
0.000151292,
50
0.000108434,
51
0.000108651,
52
8.5259e-05,
53
0.000146575,
54
8.66142e-05,
55
0.000103679,
56
0.000153307,
57
7.80328e-05,
58
8.42105e-05,
59
0.000114607,
60
6.90909e-05,
61
9.22449e-05,
62
8.92989e-05,
63
0.000105677,
64
9.58491e-05,
65
0.000107383,
66
8.85714e-05,
67
0.000119703,
68
0.000141463,
69
0.000122267,
70
6.0241e-05,
71
0.000120588,
72
0.000115789,
73
0.000121168,
74
8.04428e-05,
75
9.39759e-05,
76
3.391e-05,
77
-7.72908e-05,
78
5.61644e-05,
79
0.000181102,
80
-3.67893e-05,
81
6.45914e-05,
82
2.68852e-05,
83
-1.57895e-05,
84
-2.47191e-05,
85
-5.30909e-05,
86
-1.06122e-05,
87
-3.69004e-06,
88
5.85153e-05,
89
-3.54717e-05,
90
-9.39597e-06,
91
5
e
-05,
92
-3.19703e-05,
93
3.69338e-05,
94
-0.000169231,
95
-4.09639e-05,
96
-1.61765e-05,
97
-8.21053e-05,
98
6.86131e-05,
99
-6.12546e-05,
100
-6.50602e-05,
101
2.56055e-05,
102
-3.90438e-05,
103
-5.89041e-05,
104
0.000195276,
105
-7.29097e-05,
106
1.32296e-05,
107
3.27869e-06,
108
-6.31579e-05,
109
-3.37079e-05,
110
5.16364e-05,
111
-4.97959e-05,
112
8.92989e-05,
113
0.000561572,
114
0.00171698,
115
0.0035906,
116
0.00742143,
117
0.01249,
118
0.020922,
119
0.030336,
120
0.043588,
121
0.0593529,
122
0.0764947,
123
0.0958978,
124
0.11567,
125
0.137087,
126
0.160643,
127
0.188973,
128
0.218062,
129
0.240682,
130
0.265773,
131
0.293327,
132
0.320832,
133
0.348689,
134
0.374411,
135
0.403575,
136
0.431147,
137
0.458644,
138
0.488217,
139
0.515254,
140
0.53902,
141
0.566819,
142
0.589752,
143
0.615587,
144
0.63808,
145
0.664137,
146
0.687959,
147
0.707379,
148
0.726826,
149
0.747043,
150
0.762952,
151
0.781342,
152
0.799515,
153
0.818559,
154
0.832301,
155
0.846658,
156
0.860791,
157
0.874009,
158
0.886242,
159
0.896982,
160
0.908713,
161
0.9189,
162
0.9283,
163
0.938453,
164
0.945995,
165
0.95186,
166
0.958876,
167
0.963283,
168
0.968989,
169
0.972846,
170
0.977824,
171
0.981341,
172
0.982743,
173
0.984082,
174
0.986609,
175
0.985925,
176
0.984707,
177
0.981384,
178
0.980941,
179
0.980132,
180
0.978176,
181
0.975987,
182
0.973396,
183
0.970395,
184
0.967422,
185
0.96346,
186
0.959622,
187
0.955396,
188
0.950846,
189
0.945995,
190
0.940835,
191
0.935373,
192
0.929544,
193
0.923836,
194
0.91787,
195
0.910812,
196
0.903924,
197
0.897669,
198
0.89127,
199
0.884613,
200
0.878051,
201
0.867734,
202
0.856756,
203
0.848477,
204
0.842189,
205
0.833787,
206
0.825903,
207
0.817931,
208
0.8102,
209
0.802771,
210
0.79388,
211
0.785348,
212
0.777295,
213
0.767854,
214
0.759619,
215
0.752358,
216
0.743394,
217
0.736674,
218
0.726982,
219
0.719321,
220
0.708937,
221
0.700003,
222
0.693202,
223
0.685961,
224
0.676889,
225
0.670513,
226
0.658788,
227
0.648343,
228
0.639381,
229
0.632761,
230
0.623614,
231
0.616164,
232
0.607884,
233
0.601437,
234
0.593944,
235
0.585817,
236
0.577248,
237
0.570328,
238
0.56147,
239
0.553509,
240
0.548765,
241
0.539964,
242
0.53343,
243
0.525787,
244
0.519868,
245
0.510817,
246
0.503274,
247
0.498478,
248
0.493058,
249
0.484176,
250
0.479896,
251
0.469998,
252
0.462893,
253
0.45576,
254
0.450375,
255
0.442683,
256
0.437887,
257
0.430736,
258
0.427216,
259
0.420775,
260
0.41485,
261
0.407769,
262
0.403546,
263
0.397028,
264
0.389534,
265
0.388569,
266
0.380296,
267
0.375312,
268
0.369457,
269
0.365884,
270
0.358889,
271
0.353344,
272
0.350364,
273
0.347136,
274
0.33872,
275
0.336706};
276
277
for
(
unsigned
int
i
( 250 ) ;
i
!= 500 ; ++
i
) aVec.push_back(
exp
(2.63163
e
-01 - 1.37795
e
-02*(
i
- 151.0)) );
278
}
279
}
EcalSimPulseShape::endcap_thresh
double endcap_thresh
Definition:
EcalSimPulseShape.h:21
EcalShapeBase::m_useDBShape
bool m_useDBShape
Definition:
EcalShapeBase.h:54
mps_fire.i
i
Definition:
mps_fire.py:277
Exception
Definition:
hltDiff.cc:292
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
EcalSimPulseShape::time_interval
float time_interval
Definition:
EcalSimPulseShape.h:23
edm::ESHandle
Definition:
DTSurvey.h:22
EcalShapeBase::DVec
std::vector< double > DVec
Definition:
EcalShapeBase.h:28
EcalSimPulseShapeRcd
Definition:
EcalSimPulseShapeRcd.h:5
edm::EventSetup
Definition:
EventSetup.h:54
EEShape::fillShape
void fillShape(float &time_interval, double &m_thresh, EcalShapeBase::DVec &aVec, const edm::EventSetup *es) const override
Definition:
EEShape.cc:6
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:68
EEShape.h
EcalSimPulseShape::endcap_shape
std::vector< double > endcap_shape
Definition:
EcalSimPulseShape.h:17
JetChargeProducer_cfi.exp
exp
Definition:
JetChargeProducer_cfi.py:6
Generated for CMSSW Reference Manual by
1.8.11