DQM
EcalCommon
src
EcalDQMCommonUtils2.cc
Go to the documentation of this file.
1
#include "
DQM/EcalCommon/interface/EcalDQMCommonUtils.h
"
2
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
3
#include "
DataFormats/EcalDetId/interface/EcalScDetId.h
"
4
#include "
DataFormats/EcalDetId/interface/EcalSubdetector.h
"
5
6
#include "
CalibCalorimetry/EcalLaserAnalyzer/interface/MEEBGeom.h
"
7
#include "
CalibCalorimetry/EcalLaserAnalyzer/interface/MEEEGeom.h
"
8
9
namespace
ecaldqm
{
10
EcalPnDiodeDetId
pnForCrystal
(
DetId
const
&_id,
char
_ab,
const
EcalElectronicsMapping
*electronicsMap) {
11
bool
pnA(_ab ==
'a'
|| _ab ==
'A'
);
12
13
if
(!
isCrystalId
(_id))
14
return
EcalPnDiodeDetId
(0);
15
16
if
(_id.
subdetId
() ==
EcalBarrel
) {
17
EBDetId
ebid(_id);
18
int
lmmod(
MEEBGeom::lmmod
(ebid.
ieta
(), ebid.
iphi
()));
19
20
switch
(
dccId
(_id, electronicsMap)) {
21
case
10:
22
switch
(lmmod) {
23
case
1:
24
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 10, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 10, 6);
25
case
2:
26
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 10, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 10, 7);
27
case
3:
28
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 10, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 10, 7);
29
case
4:
30
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 10, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 10, 8);
31
case
5:
32
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 10, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 10, 8);
33
case
6:
34
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 10, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 10, 9);
35
case
7:
36
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 10, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 10, 9);
37
case
8:
38
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 10, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 10, 10);
39
case
9:
40
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 10, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 10, 10);
41
default
:
42
return
EcalPnDiodeDetId
(0);
43
}
44
break
;
45
case
11:
46
switch
(lmmod) {
47
case
1:
48
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 11, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 11, 6);
49
case
2:
50
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 11, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 11, 7);
51
case
3:
52
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 11, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 11, 7);
53
case
4:
54
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 11, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 11, 8);
55
case
5:
56
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 11, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 11, 8);
57
case
6:
58
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 11, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 11, 9);
59
case
7:
60
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 11, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 11, 9);
61
case
8:
62
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 11, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 11, 10);
63
case
9:
64
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 11, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 11, 10);
65
default
:
66
return
EcalPnDiodeDetId
(0);
67
}
68
break
;
69
case
12:
70
switch
(lmmod) {
71
case
1:
72
return
/*pnA ? EcalPnDiodeDetId(EcalBarrel, 12, 1) :*/
EcalPnDiodeDetId
(
EcalBarrel
, 12, 6);
73
case
2:
74
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 12, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 12, 7);
75
case
3:
76
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 12, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 12, 7);
77
case
4:
78
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 12, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 12, 8);
79
case
5:
80
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 12, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 12, 8);
81
case
6:
82
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 12, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 12, 9);
83
case
7:
84
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 12, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 12, 9);
85
case
8:
86
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 12, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 12, 10);
87
case
9:
88
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 12, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 12, 10);
89
default
:
90
return
EcalPnDiodeDetId
(0);
91
}
92
break
;
93
case
13:
94
switch
(lmmod) {
95
case
1:
96
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 13, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 13, 6);
97
case
2:
98
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 13, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 13, 7);
99
case
3:
100
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 13, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 13, 7);
101
case
4:
102
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 13, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 13, 8);
103
case
5:
104
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 13, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 13, 8);
105
case
6:
106
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 13, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 13, 9);
107
case
7:
108
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 13, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 13, 9);
109
case
8:
110
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 13, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 13, 10);
111
case
9:
112
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 13, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 13, 10);
113
default
:
114
return
EcalPnDiodeDetId
(0);
115
}
116
break
;
117
case
14:
118
switch
(lmmod) {
119
case
1:
120
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 14, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 14, 6);
121
case
2:
122
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 14, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 14, 7);
123
case
3:
124
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 14, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 14, 7);
125
case
4:
126
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 14, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 14, 8);
127
case
5:
128
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 14, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 14, 8);
129
case
6:
130
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 14, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 14, 9);
131
case
7:
132
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 14, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 14, 9);
133
case
8:
134
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 14, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 14, 10);
135
case
9:
136
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 14, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 14, 10);
137
default
:
138
return
EcalPnDiodeDetId
(0);
139
}
140
break
;
141
case
15:
142
switch
(lmmod) {
143
case
1:
144
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 15, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 15, 6);
145
case
2:
146
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 15, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 15, 7);
147
case
3:
148
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 15, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 15, 7);
149
case
4:
150
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 15, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 15, 8);
151
case
5:
152
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 15, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 15, 8);
153
case
6:
154
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 15, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 15, 9);
155
case
7:
156
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 15, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 15, 9);
157
case
8:
158
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 15, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 15, 10);
159
case
9:
160
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 15, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 15, 10);
161
default
:
162
return
EcalPnDiodeDetId
(0);
163
}
164
break
;
165
case
16:
166
switch
(lmmod) {
167
case
1:
168
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 16, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 16, 6);
169
case
2:
170
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 16, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 16, 7);
171
case
3:
172
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 16, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 16, 7);
173
case
4:
174
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 16, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 16, 8);
175
case
5:
176
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 16, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 16, 8);
177
case
6:
178
return
pnA ?
/*EcalPnDiodeDetId(EcalBarrel, 16, 4)*/
EcalPnDiodeDetId
(
EcalBarrel
, 16, 1)
179
:
EcalPnDiodeDetId
(
EcalBarrel
, 16, 9);
180
case
7:
181
return
/*pnA ? EcalPnDiodeDetId(EcalBarrel, 16, 4) :*/
EcalPnDiodeDetId
(
EcalBarrel
, 16, 9);
182
case
8:
183
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 16, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 16, 10);
184
case
9:
185
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 16, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 16, 10);
186
default
:
187
return
EcalPnDiodeDetId
(0);
188
}
189
break
;
190
case
17:
191
switch
(lmmod) {
192
case
1:
193
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 17, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 17, 6);
194
case
2:
195
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 17, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 17, 7);
196
case
3:
197
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 17, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 17, 7);
198
case
4:
199
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 17, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 17, 8);
200
case
5:
201
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 17, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 17, 8);
202
case
6:
203
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 17, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 17, 9);
204
case
7:
205
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 17, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 17, 9);
206
case
8:
207
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 17, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 17, 10);
208
case
9:
209
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 17, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 17, 10);
210
default
:
211
return
EcalPnDiodeDetId
(0);
212
}
213
break
;
214
case
18:
215
switch
(lmmod) {
216
case
1:
217
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 18, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 18, 6);
218
case
2:
219
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 18, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 18, 7);
220
case
3:
221
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 18, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 18, 7);
222
case
4:
223
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 18, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 18, 8);
224
case
5:
225
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 18, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 18, 8);
226
case
6:
227
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 18, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 18, 9);
228
case
7:
229
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 18, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 18, 9);
230
case
8:
231
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 18, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 18, 10);
232
case
9:
233
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 18, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 18, 10);
234
default
:
235
return
EcalPnDiodeDetId
(0);
236
}
237
break
;
238
case
19:
239
switch
(lmmod) {
240
case
1:
241
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 19, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 19, 6);
242
case
2:
243
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 19, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 19, 8);
244
case
3:
245
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 19, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 19, 8);
246
case
4:
247
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 19, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 19, 7);
248
case
5:
249
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 19, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 19, 7);
250
case
6:
251
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 19, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 19, 9);
252
case
7:
253
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 19, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 19, 9);
254
case
8:
255
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 19, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 19, 10);
256
case
9:
257
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 19, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 19, 10);
258
default
:
259
return
EcalPnDiodeDetId
(0);
260
}
261
break
;
262
case
20:
263
switch
(lmmod) {
264
case
1:
265
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 20, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 20, 6);
266
case
2:
267
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 20, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 20, 7);
268
case
3:
269
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 20, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 20, 7);
270
case
4:
271
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 20, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 20, 8);
272
case
5:
273
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 20, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 20, 8);
274
case
6:
275
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 20, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 20, 9);
276
case
7:
277
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 20, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 20, 9);
278
case
8:
279
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 20, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 20, 10);
280
case
9:
281
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 20, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 20, 10);
282
default
:
283
return
EcalPnDiodeDetId
(0);
284
}
285
break
;
286
case
21:
287
switch
(lmmod) {
288
case
1:
289
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 21, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 21, 6);
290
case
2:
291
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 21, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 21, 7);
292
case
3:
293
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 21, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 21, 7);
294
case
4:
295
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 21, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 21, 8);
296
case
5:
297
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 21, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 21, 8);
298
case
6:
299
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 21, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 21, 9);
300
case
7:
301
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 21, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 21, 9);
302
case
8:
303
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 21, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 21, 10);
304
case
9:
305
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 21, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 21, 10);
306
default
:
307
return
EcalPnDiodeDetId
(0);
308
}
309
break
;
310
case
22:
311
switch
(lmmod) {
312
case
1:
313
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 22, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 22, 6);
314
case
2:
315
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 22, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 22, 7);
316
case
3:
317
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 22, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 22, 7);
318
case
4:
319
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 22, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 22, 8);
320
case
5:
321
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 22, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 22, 8);
322
case
6:
323
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 22, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 22, 9);
324
case
7:
325
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 22, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 22, 9);
326
case
8:
327
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 22, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 22, 10);
328
case
9:
329
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 22, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 22, 10);
330
default
:
331
return
EcalPnDiodeDetId
(0);
332
}
333
break
;
334
case
23:
335
switch
(lmmod) {
336
case
1:
337
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 23, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 23, 6);
338
case
2:
339
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 23, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 23, 7);
340
case
3:
341
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 23, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 23, 7);
342
case
4:
343
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 23, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 23, 8);
344
case
5:
345
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 23, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 23, 8);
346
case
6:
347
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 23, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 23, 9);
348
case
7:
349
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 23, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 23, 9);
350
case
8:
351
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 23, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 23, 10);
352
case
9:
353
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 23, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 23, 10);
354
default
:
355
return
EcalPnDiodeDetId
(0);
356
}
357
break
;
358
case
24:
359
switch
(lmmod) {
360
case
1:
361
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 24, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 24, 6);
362
case
2:
363
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 24, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 24, 7);
364
case
3:
365
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 24, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 24, 7);
366
case
4:
367
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 24, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 24, 8);
368
case
5:
369
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 24, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 24, 8);
370
case
6:
371
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 24, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 24, 9);
372
case
7:
373
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 24, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 24, 9);
374
case
8:
375
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 24, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 24, 10);
376
case
9:
377
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 24, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 24, 10);
378
default
:
379
return
EcalPnDiodeDetId
(0);
380
}
381
break
;
382
case
25:
383
switch
(lmmod) {
384
case
1:
385
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 25, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 25, 6);
386
case
2:
387
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 25, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 25, 7);
388
case
3:
389
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 25, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 25, 7);
390
case
4:
391
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 25, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 25, 8);
392
case
5:
393
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 25, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 25, 8);
394
case
6:
395
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 25, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 25, 9);
396
case
7:
397
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 25, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 25, 9);
398
case
8:
399
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 25, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 25, 10);
400
case
9:
401
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 25, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 25, 10);
402
default
:
403
return
EcalPnDiodeDetId
(0);
404
}
405
break
;
406
case
26:
407
switch
(lmmod) {
408
case
1:
409
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 26, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 26, 6);
410
case
2:
411
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 26, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 26, 7);
412
case
3:
413
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 26, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 26, 7);
414
case
4:
415
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 26, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 26, 8);
416
case
5:
417
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 26, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 26, 8);
418
case
6:
419
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 26, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 26, 9);
420
case
7:
421
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 26, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 26, 9);
422
case
8:
423
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 26, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 26, 10);
424
case
9:
425
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 26, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 26, 10);
426
default
:
427
return
EcalPnDiodeDetId
(0);
428
}
429
break
;
430
case
27:
431
switch
(lmmod) {
432
case
1:
433
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 27, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 27, 6);
434
case
2:
435
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 27, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 27, 7);
436
case
3:
437
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 27, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 27, 7);
438
case
4:
439
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 27, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 27, 8);
440
case
5:
441
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 27, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 27, 8);
442
case
6:
443
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 27, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 27, 9);
444
case
7:
445
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 27, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 27, 9);
446
case
8:
447
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 27, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 27, 10);
448
case
9:
449
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 27, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 27, 10);
450
default
:
451
return
EcalPnDiodeDetId
(0);
452
}
453
break
;
454
case
28:
455
switch
(lmmod) {
456
case
1:
457
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 28, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 28, 6);
458
case
2:
459
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 28, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 28, 7);
460
case
3:
461
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 28, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 28, 7);
462
case
4:
463
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 28, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 28, 8);
464
case
5:
465
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 28, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 28, 8);
466
case
6:
467
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 28, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 28, 9);
468
case
7:
469
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 28, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 28, 9);
470
case
8:
471
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 28, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 28, 10);
472
case
9:
473
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 28, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 28, 10);
474
default
:
475
return
EcalPnDiodeDetId
(0);
476
}
477
break
;
478
case
29:
479
switch
(lmmod) {
480
case
1:
481
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 29, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 29, 6);
482
case
2:
483
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 29, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 29, 7);
484
case
3:
485
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 29, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 29, 7);
486
case
4:
487
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 29, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 29, 8);
488
case
5:
489
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 29, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 29, 8);
490
case
6:
491
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 29, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 29, 9);
492
case
7:
493
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 29, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 29, 9);
494
case
8:
495
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 29, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 29, 10);
496
case
9:
497
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 29, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 29, 10);
498
default
:
499
return
EcalPnDiodeDetId
(0);
500
}
501
break
;
502
case
30:
503
switch
(lmmod) {
504
case
1:
505
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 30, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 30, 6);
506
case
2:
507
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 30, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 30, 7);
508
case
3:
509
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 30, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 30, 7);
510
case
4:
511
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 30, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 30, 8);
512
case
5:
513
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 30, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 30, 8);
514
case
6:
515
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 30, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 30, 9);
516
case
7:
517
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 30, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 30, 9);
518
case
8:
519
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 30, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 30, 10);
520
case
9:
521
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 30, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 30, 10);
522
default
:
523
return
EcalPnDiodeDetId
(0);
524
}
525
break
;
526
case
31:
527
switch
(lmmod) {
528
case
1:
529
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 31, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 31, 6);
530
case
2:
531
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 31, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 31, 7);
532
case
3:
533
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 31, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 31, 7);
534
case
4:
535
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 31, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 31, 8);
536
case
5:
537
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 31, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 31, 8);
538
case
6:
539
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 31, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 31, 9);
540
case
7:
541
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 31, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 31, 9);
542
case
8:
543
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 31, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 31, 10);
544
case
9:
545
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 31, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 31, 10);
546
default
:
547
return
EcalPnDiodeDetId
(0);
548
}
549
break
;
550
case
32:
551
switch
(lmmod) {
552
case
1:
553
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 32, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 32, 6);
554
case
2:
555
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 32, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 32, 7);
556
case
3:
557
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 32, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 32, 7);
558
case
4:
559
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 32, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 32, 8);
560
case
5:
561
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 32, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 32, 8);
562
case
6:
563
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 32, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 32, 10);
564
case
7:
565
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 32, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 32, 10);
566
case
8:
567
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 32, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 32, 9);
568
case
9:
569
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 32, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 32, 9);
570
default
:
571
return
EcalPnDiodeDetId
(0);
572
}
573
break
;
574
case
33:
575
switch
(lmmod) {
576
case
1:
577
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 33, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 33, 6);
578
case
2:
579
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 33, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 33, 7);
580
case
3:
581
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 33, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 33, 7);
582
case
4:
583
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 33, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 33, 8);
584
case
5:
585
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 33, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 33, 8);
586
case
6:
587
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 33, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 33, 9);
588
case
7:
589
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 33, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 33, 9);
590
case
8:
591
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 33, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 33, 10);
592
case
9:
593
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 33, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 33, 10);
594
default
:
595
return
EcalPnDiodeDetId
(0);
596
}
597
break
;
598
case
34:
599
switch
(lmmod) {
600
case
1:
601
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 34, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 34, 6);
602
case
2:
603
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 34, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 34, 7);
604
case
3:
605
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 34, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 34, 7);
606
case
4:
607
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 34, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 34, 8);
608
case
5:
609
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 34, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 34, 8);
610
case
6:
611
return
pnA ?
/*EcalPnDiodeDetId(EcalBarrel, 34, 4)*/
EcalPnDiodeDetId
(
EcalBarrel
, 34, 1)
612
:
EcalPnDiodeDetId
(
EcalBarrel
, 34, 9);
613
case
7:
614
return
/*pnA ? EcalPnDiodeDetId(EcalBarrel, 34, 4) :*/
EcalPnDiodeDetId
(
EcalBarrel
, 34, 9);
615
case
8:
616
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 34, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 34, 10);
617
case
9:
618
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 34, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 34, 10);
619
default
:
620
return
EcalPnDiodeDetId
(0);
621
}
622
break
;
623
case
35:
624
switch
(lmmod) {
625
case
1:
626
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 35, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 35, 6);
627
case
2:
628
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 35, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 35, 7);
629
case
3:
630
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 35, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 35, 7);
631
case
4:
632
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 35, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 35, 8);
633
case
5:
634
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 35, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 35, 8);
635
case
6:
636
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 35, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 35, 9);
637
case
7:
638
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 35, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 35, 9);
639
case
8:
640
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 35, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 35, 10);
641
case
9:
642
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 35, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 35, 10);
643
default
:
644
return
EcalPnDiodeDetId
(0);
645
}
646
break
;
647
case
36:
648
switch
(lmmod) {
649
case
1:
650
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 36, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 36, 6);
651
case
2:
652
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 36, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 36, 7);
653
case
3:
654
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 36, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 36, 7);
655
case
4:
656
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 36, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 36, 8);
657
case
5:
658
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 36, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 36, 8);
659
case
6:
660
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 36, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 36, 9);
661
case
7:
662
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 36, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 36, 9);
663
case
8:
664
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 36, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 36, 10);
665
case
9:
666
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 36, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 36, 10);
667
default
:
668
return
EcalPnDiodeDetId
(0);
669
}
670
break
;
671
case
37:
672
switch
(lmmod) {
673
case
1:
674
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 37, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 37, 6);
675
case
2:
676
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 37, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 37, 7);
677
case
3:
678
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 37, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 37, 7);
679
case
4:
680
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 37, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 37, 8);
681
case
5:
682
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 37, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 37, 8);
683
case
6:
684
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 37, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 37, 9);
685
case
7:
686
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 37, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 37, 9);
687
case
8:
688
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 37, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 37, 10);
689
case
9:
690
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 37, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 37, 10);
691
default
:
692
return
EcalPnDiodeDetId
(0);
693
}
694
break
;
695
case
38:
696
switch
(lmmod) {
697
case
1:
698
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 38, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 38, 6);
699
case
2:
700
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 38, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 38, 7);
701
case
3:
702
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 38, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 38, 7);
703
case
4:
704
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 38, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 38, 8);
705
case
5:
706
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 38, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 38, 8);
707
case
6:
708
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 38, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 38, 9);
709
case
7:
710
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 38, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 38, 9);
711
case
8:
712
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 38, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 38, 10);
713
case
9:
714
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 38, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 38, 10);
715
default
:
716
return
EcalPnDiodeDetId
(0);
717
}
718
break
;
719
case
39:
720
switch
(lmmod) {
721
case
1:
722
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 39, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 39, 6);
723
case
2:
724
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 39, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 39, 7);
725
case
3:
726
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 39, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 39, 7);
727
case
4:
728
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 39, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 39, 8);
729
case
5:
730
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 39, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 39, 8);
731
case
6:
732
return
pnA ?
/*EcalPnDiodeDetId(EcalBarrel, 39, 4)*/
EcalPnDiodeDetId
(
EcalBarrel
, 39, 1)
733
:
EcalPnDiodeDetId
(
EcalBarrel
, 39, 9);
734
case
7:
735
return
/*pnA ? EcalPnDiodeDetId(EcalBarrel, 39, 4) :*/
EcalPnDiodeDetId
(
EcalBarrel
, 39, 9);
736
case
8:
737
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 39, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 39, 10);
738
case
9:
739
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 39, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 39, 10);
740
default
:
741
return
EcalPnDiodeDetId
(0);
742
}
743
break
;
744
case
40:
745
switch
(lmmod) {
746
case
1:
747
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 40, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 40, 6);
748
case
2:
749
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 40, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 40, 7);
750
case
3:
751
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 40, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 40, 7);
752
case
4:
753
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 40, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 40, 8);
754
case
5:
755
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 40, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 40, 8);
756
case
6:
757
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 40, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 40, 9);
758
case
7:
759
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 40, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 40, 9);
760
case
8:
761
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 40, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 40, 10);
762
case
9:
763
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 40, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 40, 10);
764
default
:
765
return
EcalPnDiodeDetId
(0);
766
}
767
break
;
768
case
41:
769
switch
(lmmod) {
770
case
1:
771
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 41, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 41, 6);
772
case
2:
773
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 41, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 41, 7);
774
case
3:
775
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 41, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 41, 7);
776
case
4:
777
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 41, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 41, 8);
778
case
5:
779
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 41, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 41, 8);
780
case
6:
781
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 41, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 41, 9);
782
case
7:
783
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 41, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 41, 9);
784
case
8:
785
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 41, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 41, 10);
786
case
9:
787
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 41, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 41, 10);
788
default
:
789
return
EcalPnDiodeDetId
(0);
790
}
791
break
;
792
case
42:
793
switch
(lmmod) {
794
case
1:
795
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 42, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 42, 6);
796
case
2:
797
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 42, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 42, 7);
798
case
3:
799
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 42, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 42, 7);
800
case
4:
801
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 42, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 42, 8);
802
case
5:
803
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 42, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 42, 8);
804
case
6:
805
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 42, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 42, 9);
806
case
7:
807
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 42, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 42, 9);
808
case
8:
809
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 42, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 42, 10);
810
case
9:
811
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 42, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 42, 10);
812
default
:
813
return
EcalPnDiodeDetId
(0);
814
}
815
break
;
816
case
43:
817
switch
(lmmod) {
818
case
1:
819
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 43, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 43, 6);
820
case
2:
821
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 43, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 43, 7);
822
case
3:
823
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 43, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 43, 7);
824
case
4:
825
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 43, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 43, 8);
826
case
5:
827
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 43, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 43, 8);
828
case
6:
829
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 43, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 43, 9);
830
case
7:
831
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 43, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 43, 9);
832
case
8:
833
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 43, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 43, 10);
834
case
9:
835
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 43, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 43, 10);
836
default
:
837
return
EcalPnDiodeDetId
(0);
838
}
839
break
;
840
case
44:
841
switch
(lmmod) {
842
case
1:
843
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 44, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 44, 6);
844
case
2:
845
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 44, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 44, 7);
846
case
3:
847
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 44, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 44, 7);
848
case
4:
849
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 44, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 44, 8);
850
case
5:
851
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 44, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 44, 8);
852
case
6:
853
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 44, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 44, 9);
854
case
7:
855
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 44, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 44, 9);
856
case
8:
857
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 44, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 44, 10);
858
case
9:
859
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 44, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 44, 10);
860
default
:
861
return
EcalPnDiodeDetId
(0);
862
}
863
break
;
864
case
45:
865
switch
(lmmod) {
866
case
1:
867
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 45, 1) :
EcalPnDiodeDetId
(
EcalBarrel
, 45, 6);
868
case
2:
869
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 45, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 45, 7);
870
case
3:
871
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 45, 2) :
EcalPnDiodeDetId
(
EcalBarrel
, 45, 7);
872
case
4:
873
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 45, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 45, 8);
874
case
5:
875
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 45, 3) :
EcalPnDiodeDetId
(
EcalBarrel
, 45, 8);
876
case
6:
877
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 45, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 45, 9);
878
case
7:
879
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 45, 4) :
EcalPnDiodeDetId
(
EcalBarrel
, 45, 9);
880
case
8:
881
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 45, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 45, 10);
882
case
9:
883
return
pnA ?
EcalPnDiodeDetId
(
EcalBarrel
, 45, 5) :
EcalPnDiodeDetId
(
EcalBarrel
, 45, 10);
884
default
:
885
return
EcalPnDiodeDetId
(0);
886
}
887
break
;
888
default
:
889
return
EcalPnDiodeDetId
(0);
890
}
891
892
}
else
{
893
EcalScDetId
scid(
EEDetId
(_id).sc());
894
int
ix(scid.
ix
());
895
int
iy(scid.
iy
());
896
int
dee(
MEEEGeom::dee
(ix, iy, scid.
zside
()));
897
int
lmmod(
MEEEGeom::lmmod
(ix, iy));
898
899
switch
(dee) {
900
case
1:
901
switch
(lmmod) {
902
case
1:
903
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 1) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 6);
904
case
2:
905
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 2) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 7);
906
case
3:
907
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 3) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 8);
908
case
4:
909
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 4) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 9);
910
case
5:
911
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 3) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 8);
912
case
6:
913
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 1) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 6);
914
case
7:
915
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 2) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 7);
916
case
8:
917
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 4) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 9);
918
case
9:
919
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 6) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 1);
920
case
10:
921
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 7) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 2);
922
case
11:
923
return
/*pnA ? EcalPnDiodeDetId(EcalEndcap, 51, 8) :*/
EcalPnDiodeDetId
(
EcalEndcap
, 50, 3);
924
case
12:
925
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 9) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 4);
926
case
13:
927
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 10) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 5);
928
case
14:
929
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 8) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 3);
930
case
15:
931
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 6) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 1);
932
case
16:
933
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 7) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 2);
934
case
17:
935
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 10) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 5);
936
case
18:
937
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 5) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 10);
938
case
19:
939
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 51, 9) :
EcalPnDiodeDetId
(
EcalEndcap
, 50, 4);
940
default
:
941
return
EcalPnDiodeDetId
(0);
942
}
943
case
2:
944
switch
(lmmod) {
945
case
1:
946
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 1) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 6);
947
case
2:
948
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 2) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 7);
949
case
3:
950
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 3) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 8);
951
case
4:
952
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 4) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 9);
953
case
5:
954
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 3) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 8);
955
case
6:
956
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 1) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 6);
957
case
7:
958
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 2) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 7);
959
case
8:
960
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 4) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 9);
961
case
9:
962
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 6) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 1);
963
case
10:
964
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 7) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 2);
965
case
11:
966
return
/*pnA ? EcalPnDiodeDetId(EcalEndcap, 47, 8) :*/
EcalPnDiodeDetId
(
EcalEndcap
, 46, 3);
967
case
12:
968
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 9) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 4);
969
case
13:
970
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 10) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 5);
971
case
14:
972
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 8) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 3);
973
case
15:
974
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 6) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 1);
975
case
16:
976
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 7) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 2);
977
case
17:
978
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 10) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 5);
979
case
18:
980
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 5) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 10);
981
case
19:
982
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 47, 9) :
EcalPnDiodeDetId
(
EcalEndcap
, 46, 4);
983
default
:
984
return
EcalPnDiodeDetId
(0);
985
}
986
case
3:
987
switch
(lmmod) {
988
case
1:
989
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 1) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 6);
990
case
2:
991
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 2) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 7);
992
case
3:
993
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 3) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 8);
994
case
4:
995
return
/*pnA ? EcalPnDiodeDetId(EcalEndcap, 2, 4) :*/
EcalPnDiodeDetId
(
EcalEndcap
, 1, 9);
996
case
5:
997
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 3) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 8);
998
case
6:
999
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 1) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 6);
1000
case
7:
1001
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 2) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 7);
1002
case
8:
1003
return
/*pnA ? EcalPnDiodeDetId(EcalEndcap, 2, 4) :*/
EcalPnDiodeDetId
(
EcalEndcap
, 1, 9);
1004
case
9:
1005
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 6) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 1);
1006
case
10:
1007
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 7) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 2);
1008
case
11:
1009
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 8) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 3);
1010
case
12:
1011
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 9) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 4);
1012
case
13:
1013
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 10) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 5);
1014
case
14:
1015
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 8) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 3);
1016
case
15:
1017
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 6) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 1);
1018
case
16:
1019
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 7) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 2);
1020
case
17:
1021
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 10) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 5);
1022
case
18:
1023
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 5) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 10);
1024
case
19:
1025
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 2, 9) :
EcalPnDiodeDetId
(
EcalEndcap
, 1, 4);
1026
default
:
1027
return
EcalPnDiodeDetId
(0);
1028
}
1029
case
4:
1030
switch
(lmmod) {
1031
case
1:
1032
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 1) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 6);
1033
case
2:
1034
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 2) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 7);
1035
case
3:
1036
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 3) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 8);
1037
case
4:
1038
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 4) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 9);
1039
case
5:
1040
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 3) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 8);
1041
case
6:
1042
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 1) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 6);
1043
case
7:
1044
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 2) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 7);
1045
case
8:
1046
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 4) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 9);
1047
case
9:
1048
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 6) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 1);
1049
case
10:
1050
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 7) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 2);
1051
case
11:
1052
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 8) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 3);
1053
case
12:
1054
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 9) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 4);
1055
case
13:
1056
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 10) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 5);
1057
case
14:
1058
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 8) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 3);
1059
case
15:
1060
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 6) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 1);
1061
case
16:
1062
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 7) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 2);
1063
case
17:
1064
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 10) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 5);
1065
case
18:
1066
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 5) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 10);
1067
case
19:
1068
return
pnA ?
EcalPnDiodeDetId
(
EcalEndcap
, 6, 9) :
EcalPnDiodeDetId
(
EcalEndcap
, 5, 4);
1069
default
:
1070
return
EcalPnDiodeDetId
(0);
1071
}
1072
default
:
1073
return
EcalPnDiodeDetId
(0);
1074
}
1075
}
1076
}
1077
1078
}
// namespace ecaldqm
EcalElectronicsMapping
Definition:
EcalElectronicsMapping.h:28
EBDetId::ieta
int ieta() const
get the crystal ieta
Definition:
EBDetId.h:49
ecaldqm
Definition:
DQWorker.h:29
EBDetId
Definition:
EBDetId.h:17
EcalScDetId::zside
int zside() const
Definition:
EcalScDetId.h:64
EBDetId.h
MEEBGeom.h
EcalPnDiodeDetId
Definition:
EcalPnDiodeDetId.h:22
EcalBarrel
Definition:
EcalSubdetector.h:10
DetId
Definition:
DetId.h:17
EcalScDetId
Definition:
EcalScDetId.h:24
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition:
DetId.h:48
EEDetId
Definition:
EEDetId.h:14
ecaldqm::pnForCrystal
EcalPnDiodeDetId pnForCrystal(DetId const &, char, EcalElectronicsMapping const *)
Definition:
EcalDQMCommonUtils2.cc:10
EcalSubdetector.h
EcalEndcap
Definition:
EcalSubdetector.h:10
MEEEGeom::dee
static int dee(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
Definition:
MEEEGeom.cc:292
EcalScDetId::iy
int iy() const
Definition:
EcalScDetId.h:76
MEEEGeom.h
ecaldqm::dccId
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
Definition:
EcalDQMCommonUtils.cc:16
MEEEGeom::lmmod
static int lmmod(SuperCrysCoord iX, SuperCrysCoord iY)
Definition:
MEEEGeom.cc:112
EcalScDetId.h
MEEBGeom::lmmod
static int lmmod(EBGlobalCoord ieta, EBGlobalCoord iphi)
Definition:
MEEBGeom.cc:90
EBDetId::iphi
int iphi() const
get the crystal iphi
Definition:
EBDetId.h:51
ecaldqm::isCrystalId
bool isCrystalId(DetId const &)
Definition:
EcalDQMCommonUtils.cc:257
EcalScDetId::ix
int ix() const
Definition:
EcalScDetId.h:70
EcalDQMCommonUtils.h
Generated for CMSSW Reference Manual by
1.8.16