#include <iostream>
Go to the source code of this file.
Definition at line 103 of file ecalDccMap.h.
References mod().
104 if (iDCC < 0 || iDCC > 54)
108 }
else if (iDCC < 27) {
113 return 3 +
mod(iDCC - 26, 18) / 6;
114 }
else if (iDCC < 45) {
119 return 6 +
mod(iDCC - 44, 18) / 6;
123 return 9 + (iDCC - 45) / 3;
T mod(const T &a, const T &b)
int dccIndex |
( |
int |
iDet, |
|
|
int |
i, |
|
|
int |
j |
|
) |
| |
|
inline |
Gets the index of the DCC reading a crystal
- Parameters
-
iDet | 0 for EE-, 1 for EB, 2 for EE+ |
i | iEta or iX |
j | iPhi or iY |
- Returns
- DCC index between 0 and 53
Definition at line 63 of file ecalDccMap.h.
References dccPhiIndex().
68 int iPhiSM = (
j + 10) / 20;
70 return 9 + 18 * iEtaSM + iPhiSM;
77 return iPhi + iDet / 2 * 45;
int dccPhiIndex(int iDet, int i, int j)
int dccIndexOfRU |
( |
int |
iDet, |
|
|
int |
i, |
|
|
int |
j |
|
) |
| |
|
inline |
Gets the index of the DCC reading a crystal
- Parameters
-
iDet | 0 for EE-, 1 for EB, 2 for EE+ |
i | iEta (staring at eta=-1.48) or iX |
j | iPhi or iY |
- Returns
- DCC index between 0 and 53
Definition at line 86 of file ecalDccMap.h.
References dccPhiIndexOfRU().
91 int iPhiSM = (
j + 2) / 4;
93 return 9 + 18 * iEtaSM + iPhiSM;
100 return iPhi + iDet / 2 * 45;
int dccPhiIndexOfRU(int iDet, int i, int j)
int dccPhiIndex |
( |
int |
iDet, |
|
|
int |
i, |
|
|
int |
j |
|
) |
| |
|
inline |
Gets the phi index of the DCC reading a crystal
- Parameters
-
iDet | 0 for EE-, 1 for EB, 2 for EE+ |
i | iEta or iX |
j | iPhi or iY |
- Returns
- DCC phi index between 0 and 8 for EE and between 0 and 17 for EB
Definition at line 55 of file ecalDccMap.h.
References dccPhiIndexOfRU().
int dccPhiIndexOfRU(int iDet, int i, int j)
int dccPhiIndexOfRU |
( |
int |
iDet, |
|
|
int |
i, |
|
|
int |
j |
|
) |
| |
|
inline |
Gets the phi index of the DCC reading a RU (SC or TT)
- Parameters
-
iDet | 0 for EE-, 1 for EB, 2 for EE+ |
i | iEta or iX |
j | iPhi or iY |
- Returns
- DCC phi index between 0 and 8 for EE and between 0 and 17 for EB
Definition at line 38 of file ecalDccMap.h.
References endcapDccMap.
45 return (flag ==
' ') ? -1 : (flag -
'0');
static const char endcapDccMap[401]
template<class T >
T mod |
( |
const T & |
a, |
|
|
const T & |
b |
|
) |
| |
Definition at line 4 of file ecalDccMap.h.
References b, and c.
6 return c < 0 ? c +
b :
c;
const edm::EventSetup & c
const char endcapDccMap[401] |
|
static |
Initial value:= {
" 777777 "
" 666777777888 "
" 66667777778888 "
" 6666667777888888 "
" 666666677778888888 "
" 566666677778888880 "
" 555666667788888000 "
"55555566677888000000"
"555555566 880000000"
"55555555 00000000"
"55555554 10000000"
"554444444 111111100"
"44444444332211111111"
" 444444333222111111 "
" 444443333222211111 "
" 444433333222221111 "
" 4443333322222111 "
" 43333332222221 "
" 333333222222 "
" 333222 "}
Definition at line 9 of file ecalDccMap.h.
Referenced by dccPhiIndexOfRU().