24 return (index>=0 && index<=
NUM_HPDS-1);
30 return (index>=0 && index<=
NUM_RBXS-1);
42 int absieta=
abs(ieta);
43 if(absieta<=29 && absieta>=1 && iphi>=1 && iphi<=72) {
44 if(absieta<=20)
return true;
45 if(absieta>=21 && iphi%2==1)
return true;
55 <<
" HPD index " << index <<
" is invalid in HcalHPDRBXMap::subdetHPD().\n";
66 <<
" RBX index " << index <<
" is invalid in HcalHPDRBXMap::subdetRBX().\n";
77 <<
" HPD index " << index <<
" is invalid in HcalHPDRBXMap::zsideHPD().\n";
88 <<
" RBX index " << index <<
" is invalid in HcalHPDRBXMap::zsideRBX().\n";
99 <<
" HPD index " << index <<
" is invalid in HcalHPDRBXMap::iphiloHPD().\n";
111 if(iphi%2==0)
return iphi-1;
120 <<
" RBX index " << index <<
" is invalid in HcalHPDRBXMap::iphiloRBX().\n";
123 boost::array<int, NUM_HPDS_PER_RBX> arr;
135 <<
" HPD index " << index <<
" is invalid in HcalHPDRBXMap::iphihiHPD().\n";
147 if(iphi%2==0)
return iphi;
156 <<
" RBX index " << index <<
" is invalid in HcalHPDRBXMap::iphihiRBX().\n";
159 boost::array<int, NUM_HPDS_PER_RBX> arr;
172 <<
" RBX index " << rbxindex <<
" is invalid in HcalHPDRBXMap::indicesHPD().\n";
174 for(
unsigned int i=0;
i<hpdindices.size();
i++)
185 <<
" HPD index " << hpdindex <<
" is invalid in HcalHPDRBXMap::indexRBX().\n";
197 <<
" HcalDetId " <<
id <<
" is invalid in HcalHPDRBXMap::indexHPD().\n";
202 if(
id.subdet()==
HcalBarrel &&
id.zside()==1) subdet=0;
203 if(
id.subdet()==
HcalBarrel &&
id.zside()==-1) subdet=1;
204 if(
id.subdet()==
HcalEndcap &&
id.zside()==1) subdet=2;
205 if(
id.subdet()==
HcalEndcap &&
id.zside()==-1) subdet=3;
208 int absieta=
abs(
id.ieta());
218 if((subdet==2 || subdet==3) && absieta>=21 && absieta<=29) {
219 if(iphi%4==3 && absieta%2==1 && absieta!=29) index++;
220 if(iphi%4==3 && absieta==29 &&
id.depth()==2) index++;
221 if(iphi%4==1 && absieta%2==0 && absieta!=29) index++;
222 if(iphi%4==1 && absieta==29 &&
id.depth()==1) index++;
236 int absieta=
abs(ieta);
240 }
else if(absieta==16) {
243 }
else if(absieta<29) {
257 int absieta=
abs(ieta);
261 }
else if(absieta==16) {
static const int NUM_HPDS_PER_RBX
static int indexRBXfromHPD(int hpdindex)
virtual bool valid(const HcalDetId &id) const
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)
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 HcalTopology theTopology_
static int iphihiHPD(int index)
static int zsideRBX(int index)