7 namespace hashfunctions
37 did.
ieta()>0 ? 1 : -1, 1, 1));
43 did.
ieta()>0 ? 1 : -1, did.
iphi(), 1));
67 did.
ieta()>0 ? 1 : -1, did.
iphi(), 1));
72 int iphi = did.
iphi();
74 if (iphi>=3 && iphi<=26)
77 else if (iphi>=27 && iphi<=50)
111 did.
ieta()>0 ?
"P" :
"M");
128 sprintf(name,
"%siphi%d",
137 int iphi = std::stoi(name.substr(6,name.length()-6),
nullptr);
150 sprintf(name,
"%sieta%d",
159 int ieta = std::stoi(name.substr(6,name.length()-6),
nullptr);
172 sprintf(name,
"%sdepth%d",
181 int depth = std::stoi(name.substr(7, name.length()-7),
nullptr);
193 sprintf(name,
"%s%siphi%d",
195 did.
ieta()>0 ?
"P" :
"M", did.
iphi());
202 int iphi = std::stoi(name.substr(7, name.length()-7),
nullptr);
206 i%2==0?-1:1,iphi,1).
rawId();
214 sprintf(name,
"iphi%d", did.
iphi());
220 int iphi = std::stoi(name.substr(4,name.length()-4),
nullptr);
227 sprintf(name,
"ieta%d", did.
ieta());
233 int ieta = std::stoi(name.substr(4,name.length()-4),
nullptr);
240 sprintf(name,
"depth%d", did.
depth());
247 int depth = std::stoi(name.substr(5,name.length()-5),
nullptr);
254 sprintf(name,
"HF%siphi%d", did.
ieta()>0 ?
"P" :
"M", did.
iphi());
260 int iphi = std::stoi(name.substr(7,name.length()-7),
nullptr);
261 int ieta = name[2]==
'P'?1:-1;
268 if (did.
iphi()>=3 && did.
iphi()<=26)
270 else if (did.
iphi()>=27 && did.
iphi()<=50)
275 sprintf(name,
"HBHE%c", c);
283 else if (name[4]==
'b')
294 sprintf(name,
"%s-%d-%d-%d",
420 sprintf(name,
"FED%d", eid.
isVMEid() ? eid.
dccid()+700 :
427 int fed = std::stoi(name.substr(3,name.length()-3),
nullptr);
441 sprintf(name,
"FED%dS%d",
450 int pos = name.find(
"S");
451 int fed = std::stoi(name.substr(3, pos-3),
nullptr);
452 int s = std::stoi(name.substr(pos+1, name.length()-pos-1),
nullptr);
466 sprintf(name,
"FED%dS%d",
475 int pos = name.find(
"S");
476 int fed = std::stoi(name.substr(3, pos-3),
nullptr);
477 int s = std::stoi(name.substr(pos+1, name.length()-pos-1),
nullptr);
502 sprintf(name,
"Crate%dS%d",
515 sprintf(name,
"Crate%dS%d",
573 sprintf(name,
"%d-%d-%d-%d", eid.
dccid(),
576 sprintf(name,
"%d-%d-%d-%d", eid.
crateId(),
598 (tid.
ieta()<0?-29:29),
651 else if (name==
"HBHEP")
653 else if (name==
"HFM")
671 int pos = name.find(
"iphi");
673 int iphi = std::stoi(name.substr(pos+4, name.length()-pos-4),
677 else if (name==
"HBHEP")
679 else if (name==
"HFM")
699 sprintf(name,
"depth%d", tid.
depth());
705 int depth = std::stoi(name.substr(5, name.length()-5),
nullptr);
711 std::ostringstream stream;
std::string name_CrateSpigot(HcalElectronicsId const &)
std::string name_Electronics(HcalElectronicsId const &)
uint32_t hash_Subdetdepth(HcalDetId const &)
std::string name_CrateSlot(HcalElectronicsId const &)
std::string name_Crate(HcalElectronicsId const &)
uint32_t hash_SubdetPM(HcalDetId const &)
int fiberIndex() const
get the fiber index. For VME 1-8 (which of eight fibers carried by a spigot), for uTCA fibers are zer...
uint32_t hash_SubdetPMiphi(HcalDetId const &)
uint16_t fed2crate(int fed)
HcalSubdetector subdet() const
get the subdetector
std::string name_FiberFiberCh(HcalElectronicsId const &)
uint32_t hash_TTSubdet(HcalTrigTowerDetId const &)
uint32_t hash_Subdetiphi(HcalDetId const &)
std::string const TPSUBDETPM_NAME[2 *TPSUBDET_NUM]
std::string name_TTdepth(HcalTrigTowerDetId const &)
std::string name_FiberCh(HcalElectronicsId const &)
std::string name_TChannel(HcalTrigTowerDetId const &)
uint32_t hash_Subdetieta(HcalDetId const &)
std::string name_Subdetieta(HcalDetId const &)
std::string name_Subdetiphi(HcalDetId const &)
uint32_t hash_Crate(HcalElectronicsId const &)
uint32_t hash_iphi(HcalDetId const &)
uint32_t hash_FED(HcalElectronicsId const &)
uint32_t hash_DChannel(HcalDetId const &)
uint32_t hash_TTSubdetieta(HcalTrigTowerDetId const &)
uint32_t hash_FiberFiberCh(HcalElectronicsId const &)
std::string name_EChannel(HcalElectronicsId const &)
int ieta() const
get the tower ieta
std::string name_FEDSpigot(HcalElectronicsId const &)
uint32_t hash_Fiber(HcalElectronicsId const &)
uint32_t hash_TTSubdetPM(HcalTrigTowerDetId const &)
int crateId() const
get the readout VME crate number
std::string name_TTSubdet(HcalTrigTowerDetId const &)
std::string name_SubdetPM(HcalDetId const &)
int depth() const
get the depth (zero for LHC Run 1, may be nonzero for later runs)
uint32_t rawId() const
get the raw id
int depth() const
get the tower depth
std::string name_TTSubdetieta(HcalTrigTowerDetId const &)
std::string const SUBDET_NAME[SUBDET_NUM]
uint32_t hash_TChannel(HcalTrigTowerDetId const &)
uint32_t hash(HcalDetId const &)
uint32_t hash_FEDSpigot(HcalElectronicsId const &)
uint32_t hash_depth(HcalDetId const &)
std::string name_DChannel(HcalDetId const &)
int ieta() const
get the cell ieta
std::string const SUBDETPM_NAME[2 *SUBDET_NUM]
int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
int const FIBER_uTCA_MIN1
std::string name_HFPMiphi(HcalDetId const &)
int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
uint32_t hash_TTSubdetPMiphi(HcalTrigTowerDetId const &)
uint32_t hash_FEDSlot(HcalElectronicsId const &)
uint32_t hash_Subdet(HcalDetId const &)
uint32_t hash_FiberCh(HcalElectronicsId const &)
uint32_t hash_ieta(HcalDetId const &)
int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
std::string name_TTSubdetPMiphi(HcalTrigTowerDetId const &)
int iphi() const
get the cell iphi
std::string name_SubdetPMiphi(HcalDetId const &)
uint32_t hash_HFPMiphi(HcalDetId const &)
std::string const TPSUBDET_NAME[TPSUBDET_NUM]
uint32_t hash_CrateSlot(HcalElectronicsId const &)
uint32_t hash_CrateSpigot(HcalElectronicsId const &)
std::string name_FED(HcalElectronicsId const &)
int slot() const
get the htr or uHTR slot
std::string name_ieta(HcalDetId const &)
std::string name_HBHEPartition(HcalDetId const &)
std::string name_depth(HcalDetId const &)
uint16_t crate2fed(int crate)
std::string name_iphi(HcalDetId const &)
uint32_t hash_Electronics(HcalElectronicsId const &)
uint32_t hash_EChannel(HcalElectronicsId const &)
Readout chain identification for Hcal.
uint32_t hash_TTdepth(HcalTrigTowerDetId const &)
int ietaAbs() const
get the absolute value of the tower ieta
int iphi() const
get the tower iphi
std::string name_TTSubdetPM(HcalTrigTowerDetId const &)
uint32_t hash_HBHEPartition(HcalDetId const &)
std::string name_Fiber(HcalElectronicsId const &)
std::string name_FEDSlot(HcalElectronicsId const &)
std::string name_Subdet(HcalDetId const &)
std::string name_Subdetdepth(HcalDetId const &)