20 return (index>=0 && index<=
NUM_HPDS-1);
26 return (index>=0 && index<=
NUM_RBXS-1);
32 return isValid(
id.ieta(),
id.iphi());
37 int absieta=
abs(ieta);
38 if(absieta<=29 && absieta>=1 && iphi>=1 && iphi<=72) {
39 if(absieta<=20)
return true;
40 if(absieta>=21 && iphi%2==1)
return true;
50 <<
" HPD index " << index <<
" is invalid in HcalHPDRBXMap::subdetHPD().\n";
61 <<
" RBX index " << index <<
" is invalid in HcalHPDRBXMap::subdetRBX().\n";
72 <<
" HPD index " << index <<
" is invalid in HcalHPDRBXMap::zsideHPD().\n";
83 <<
" RBX index " << index <<
" is invalid in HcalHPDRBXMap::zsideRBX().\n";
94 <<
" HPD index " << index <<
" is invalid in HcalHPDRBXMap::iphiloHPD().\n";
106 if(iphi%2==0)
return iphi-1;
115 <<
" RBX index " << index <<
" is invalid in HcalHPDRBXMap::iphiloRBX().\n";
118 boost::array<int, NUM_HPDS_PER_RBX> arr;
130 <<
" HPD index " << index <<
" is invalid in HcalHPDRBXMap::iphihiHPD().\n";
142 if(iphi%2==0)
return iphi;
151 <<
" RBX index " << index <<
" is invalid in HcalHPDRBXMap::iphihiRBX().\n";
154 boost::array<int, NUM_HPDS_PER_RBX> arr;
167 <<
" RBX index " << rbxindex <<
" is invalid in HcalHPDRBXMap::indicesHPD().\n";
169 for(
unsigned int i=0;
i<hpdindices.size();
i++)
180 <<
" HPD index " << hpdindex <<
" is invalid in HcalHPDRBXMap::indexRBX().\n";
192 <<
" HcalDetId " <<
id <<
" is invalid in HcalHPDRBXMap::indexHPD().\n";
203 int absieta=
abs(
id.ieta());
213 if((subdet==2 || subdet==3) && absieta>=21 && absieta<=29) {
214 if(iphi%4==3 && absieta%2==1 && absieta!=29) index++;
215 if(iphi%4==3 && absieta==29 &&
id.depth()==2) index++;
216 if(iphi%4==1 && absieta%2==0 && absieta!=29) index++;
217 if(iphi%4==1 && absieta==29 &&
id.depth()==1) index++;
231 int absieta=
abs(ieta);
235 }
else if(absieta==16) {
238 }
else if(absieta<29) {
252 int absieta=
abs(ieta);
256 }
else if(absieta==16) {
static const int NUM_HPDS_PER_RBX
static int indexRBXfromHPD(int hpdindex)
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 void indicesHPDfromRBX(int rbxindex, boost::array< int, NUM_HPDS_PER_RBX > &hpdindices)
static HcalSubdetector subdetRBX(int index)
static int indexHPD(const HcalDetId &)
static int iphihiHPD(int index)
static int zsideRBX(int index)