31 if (absieta <= 29 && absieta >= 1 &&
iphi >= 1 &&
iphi <= 72) {
34 if (absieta >= 21 &&
iphi % 2 == 1)
44 <<
" HPD index " <<
index <<
" is invalid in HcalHPDRBXMap::subdetHPD().\n";
56 <<
" RBX index " <<
index <<
" is invalid in HcalHPDRBXMap::subdetRBX().\n";
68 <<
" HPD index " <<
index <<
" is invalid in HcalHPDRBXMap::zsideHPD().\n";
80 <<
" RBX index " <<
index <<
" is invalid in HcalHPDRBXMap::zsideRBX().\n";
92 <<
" HPD index " <<
index <<
" is invalid in HcalHPDRBXMap::iphiloHPD().\n";
116 <<
" RBX index " <<
index <<
" is invalid in HcalHPDRBXMap::iphiloRBX().\n";
119 std::array<int, NUM_HPDS_PER_RBX> arr;
130 <<
" HPD index " <<
index <<
" is invalid in HcalHPDRBXMap::iphihiHPD().\n";
154 <<
" RBX index " <<
index <<
" is invalid in HcalHPDRBXMap::iphihiRBX().\n";
157 std::array<int, NUM_HPDS_PER_RBX> arr;
168 <<
" RBX index " << rbxindex <<
" is invalid in HcalHPDRBXMap::indicesHPD().\n";
170 for (
unsigned int i = 0;
i < hpdindices.size();
i++)
180 <<
" HPD index " << hpdindex <<
" is invalid in HcalHPDRBXMap::indexRBX().\n";
190 <<
" HcalDetId " <<
id <<
" is invalid in HcalHPDRBXMap::indexHPD().\n";
204 int iphi =
id.iphi();
216 if ((subdet == 2 || subdet == 3) && absieta >= 21 && absieta <= 29) {
217 if (
iphi % 4 == 3 && absieta % 2 == 1 && absieta != 29)
219 if (
iphi % 4 == 3 && absieta == 29 &&
id.
depth() == 2)
221 if (
iphi % 4 == 1 && absieta % 2 == 0 && absieta != 29)
223 if (
iphi % 4 == 1 && absieta == 29 &&
id.
depth() == 1)
238 }
else if (absieta == 16) {
241 }
else if (absieta < 29) {
258 }
else if (absieta == 16) {
static const int NUM_HPDS_PER_RBX
static int indexRBXfromHPD(int hpdindex)
static void indicesHPDfromRBX(int rbxindex, std::array< int, NUM_HPDS_PER_RBX > &hpdindices)
static int indexRBX(const HcalDetId &)
static HcalSubdetector subdetHPD(int index)
static void indexHPDfromEtaPhi(int ieta, int iphi, std::vector< int > &hpdindices)
static const int NUM_HPDS_PER_SUBDET
static int iphiloRBX(int index)
static const int NUM_RBXS
static const int NUM_HPDS
static int iphiloHPD(int index)
static bool isValidRBX(int index)
static const int NUM_RBXS_PER_SUBDET
static void indexRBXfromEtaPhi(int ieta, int iphi, std::vector< int > &rbxindices)
static bool isValidHPD(int index)
static int zsideHPD(int index)
Abs< T >::type abs(const T &t)
static bool isValid(const HcalDetId &)
static int iphihiRBX(int index)
static HcalSubdetector subdetRBX(int index)
static int indexHPD(const HcalDetId &)
static int iphihiHPD(int index)
static int zsideRBX(int index)