8 int* ieta,
unsigned* iphi)
const 12 "input index out of range");
23 const unsigned iphi)
const 26 const unsigned loc = std::lower_bound(
35 const unsigned iphi)
const 37 const unsigned ind =
find(depth, ieta, iphi);
42 const unsigned iphi)
const 44 const unsigned ind =
find(depth, ieta, iphi);
47 "invalid channel triple");
56 for (
int ieta = -29; ieta <= -21; ++ieta)
57 for (
unsigned iphi=1; iphi<72; iphi+=2)
60 for (
int ieta = -20; ieta <= 20; ++ieta)
62 for (
unsigned iphi=1; iphi<=72; ++iphi)
65 for (
int ieta = 21; ieta <= 29; ++ieta)
66 for (
unsigned iphi=1; iphi<72; iphi+=2)
71 for (
int ieta = -29; ieta <= -21; ++ieta)
72 for (
unsigned iphi=1; iphi<72; iphi+=2)
75 for (
int ieta = -20; ieta <= -18; ++ieta)
76 for (
unsigned iphi=1; iphi<=72; ++iphi)
79 for (
int ieta = -16; ieta <= -15; ++ieta)
80 for (
unsigned iphi=1; iphi<=72; ++iphi)
83 for (
int ieta = 15; ieta <= 16; ++ieta)
84 for (
unsigned iphi=1; iphi<=72; ++iphi)
87 for (
int ieta = 18; ieta <= 20; ++ieta)
88 for (
unsigned iphi=1; iphi<=72; ++iphi)
91 for (
int ieta = 21; ieta <= 29; ++ieta)
92 for (
unsigned iphi=1; iphi<72; iphi+=2)
97 for (
int ieta = -28; ieta <= -27; ++ieta)
98 for (
unsigned iphi=1; iphi<72; iphi+=2)
101 for (
int ieta = -16; ieta <= -16; ++ieta)
102 for (
unsigned iphi=1; iphi<=72; ++iphi)
105 for (
int ieta = 16; ieta <= 16; ++ieta)
106 for (
unsigned iphi=1; iphi<=72; ++iphi)
109 for (
int ieta = 27; ieta <= 28; ++ieta)
110 for (
unsigned iphi=1; iphi<72; iphi+=2)
124 const unsigned abseta =
std::abs(ieta);
127 if (!(abseta <= 29
U))
129 "eta argument out of range");
130 if (!(depth > 0
U && depth < 4
U))
132 "depth argument out of range");
136 "depth argument out of range " 140 else if (abseta == 16
U)
HBHEChannelId lookup_[ChannelCount]
static HcalSubdetector getSubdetector(unsigned depth, int ieta)
void getChannelTriple(unsigned index, unsigned *depth, int *ieta, unsigned *iphi) const
Abs< T >::type abs(const T &t)
unsigned find(unsigned depth, int ieta, unsigned iphi) const
bool isValidTriple(unsigned depth, int ieta, unsigned iphi) const
std::pair< HBHEChannelId, unsigned > MapPair
const HBHELinearMap & hbheChannelMap()
unsigned linearIndex(unsigned depth, int ieta, unsigned iphi) const