|
|
Go to the documentation of this file.
6 namespace hashfunctions {
94 int iphi = std::stoi(
name.substr(6,
name.length() - 6),
nullptr);
111 int ieta = std::stoi(
name.substr(6,
name.length() - 6),
nullptr);
128 int depth = std::stoi(
name.substr(7,
name.length() - 7),
nullptr);
145 int iphi = std::stoi(
name.substr(7,
name.length() - 7),
nullptr);
155 sprintf(
name,
"iphi%d", did.
iphi());
160 int iphi = std::stoi(
name.substr(4,
name.length() - 4),
nullptr);
166 sprintf(
name,
"ieta%d", did.
ieta());
171 int ieta = std::stoi(
name.substr(4,
name.length() - 4),
nullptr);
178 sprintf(
name,
"depthHO");
185 int depth = std::stoi(
name.substr(5,
name.length() - 5),
nullptr);
186 if (
name.find(
"HO") != std::string::npos)
194 snprintf(
name,
sizeof(
name),
"HF%ciphi%d", did.
ieta() > 0 ?
'P' :
'M', did.
iphi());
199 int iphi = std::stoi(
name.substr(7,
name.length() - 7),
nullptr);
206 if (did.
iphi() >= 3 && did.
iphi() <= 26)
208 else if (did.
iphi() >= 27 && did.
iphi() <= 50)
213 sprintf(
name,
"HBHE%c",
c);
220 else if (
name[4] ==
'b')
246 bool isHF =
eid.crateId() == 22 ||
eid.crateId() == 29 ||
eid.crateId() == 32;
247 bool isHO =
eid.crateId() == 23 ||
eid.crateId() == 27 ||
eid.crateId() == 26 ||
eid.crateId() == 38;
341 int fed = std::stoi(
name.substr(3,
name.length() - 3),
nullptr);
356 eid.isVMEid() ?
eid.spigot() :
eid.slot());
362 int fed = std::stoi(
name.substr(3,
pos - 3),
nullptr);
363 int s = std::stoi(
name.substr(
pos + 1,
name.length() -
pos - 1),
nullptr);
378 eid.isVMEid() ?
eid.spigot() :
eid.slot());
384 int fed = std::stoi(
name.substr(3,
pos - 3),
nullptr);
385 int s = std::stoi(
name.substr(
pos + 1,
name.length() -
pos - 1),
nullptr);
397 sprintf(
name,
"Crate%d",
eid.crateId());
414 sprintf(
name,
"Crate%dS%d",
eid.crateId(),
eid.isVMEid() ?
eid.spigot() :
eid.slot());
423 sprintf(
name,
"Crate%dS%d",
eid.crateId(),
eid.isVMEid() ?
eid.spigot() :
eid.slot());
461 sprintf(
name,
"%d-%d-%d-%d",
eid.dccid(),
eid.spigot(),
eid.fiberIndex(),
eid.fiberChanId());
463 sprintf(
name,
"%d-%d-%d-%d",
eid.crateId(),
eid.slot(),
eid.fiberIndex(),
eid.fiberChanId());
517 else if (
name ==
"HBHEP")
519 else if (
name ==
"HFM")
539 else if (
name ==
"HBHEP")
541 else if (
name ==
"HFM")
561 int depth = std::stoi(
name.substr(5,
name.length() - 5),
nullptr);
566 std::ostringstream
stream;
579 if (
eid.slot() % 3 == 1)
581 else if (
eid.slot() % 3 == 2)
583 else if (
eid.slot() % 3 == 0)
594 if (
eid.slot() % 3 == 1)
596 else if (
eid.slot() % 3 == 2)
598 else if (
eid.slot() % 3 == 0)
608 else if (
name ==
"HBHE")
610 else if (
name ==
"HE")
uint32_t hash_Crate(HcalElectronicsId const &)
uint32_t hash_TTSubdet(HcalTrigTowerDetId const &)
const std::string TPSUBDETFW_NAME[2 *TPSUBDET_NUM]
uint32_t hash_Electronics(HcalElectronicsId const &)
std::string name_TTdepth(HcalTrigTowerDetId const &)
uint32_t hash_DChannel(HcalDetId const &)
uint32_t hash_FiberFiberCh(HcalElectronicsId const &)
const std::string SUBDETPM_NAME[2 *SUBDET_NUM]
std::string name_Electronics(HcalElectronicsId const &)
int ieta() const
get the tower ieta
bool isHO(int etabin, int depth)
uint32_t hash_FED(HcalElectronicsId const &)
constexpr int iphi() const
get the cell iphi
std::string name_Subdet(HcalDetId const &)
std::string name_TTSubdet(HcalTrigTowerDetId const &)
uint32_t hash_TTSubdetFW(HcalTrigTowerDetId const &, HcalElectronicsId const &)
uint32_t const T *__restrict__ const uint32_t *__restrict__ int32_t int Histo::index_type cudaStream_t stream
const int FIBER_uTCA_MIN1
std::string name_TChannel(HcalTrigTowerDetId const &)
std::string name_Crate(HcalElectronicsId const &)
constexpr int depth() const
get the tower depth
uint32_t hash_SubdetPMiphi(HcalDetId const &)
uint32_t hash_Fiber(HcalElectronicsId const &)
std::string name_FiberFiberCh(HcalElectronicsId const &)
int ietaAbs() const
get the absolute value of the tower ieta
uint32_t hash_Subdetiphi(HcalDetId const &)
std::string name_Subdetiphi(HcalDetId const &)
uint32_t hash_Subdetieta(HcalDetId const &)
std::string name_TTSubdetieta(HcalTrigTowerDetId const &)
uint32_t hash_TChannel(HcalTrigTowerDetId const &)
uint32_t hash_FEDSpigot(HcalElectronicsId const &)
uint32_t hash_TTSubdetieta(HcalTrigTowerDetId const &)
bool isHF(int etabin, int depth)
uint32_t hash_TTSubdetPMiphi(HcalTrigTowerDetId const &)
uint32_t hash_Subdet(HcalDetId const &)
Readout chain identification for Hcal.
std::string name_EChannel(HcalElectronicsId const &)
uint32_t hash_FiberCh(HcalElectronicsId const &)
std::string name_HFPMiphi(HcalDetId const &)
std::string name_FEDSpigot(HcalElectronicsId const &)
uint32_t hash_TTSubdetPM(HcalTrigTowerDetId const &)
std::string name_SubdetPM(HcalDetId const &)
const std::string TPSUBDETPM_NAME[2 *TPSUBDET_NUM]
uint32_t hash(HcalDetId const &)
uint32_t hash_CrateSpigot(HcalElectronicsId const &)
constexpr int ieta() const
get the cell ieta
std::string name_DChannel(HcalDetId const &)
constexpr HcalSubdetector subdet() const
get the subdetector
int depth() const
get the depth (zero for LHC Run 1, may be nonzero for later runs)
uint32_t hash_CrateSlot(HcalElectronicsId const &)
uint32_t hash_depth(HcalDetId const &)
std::string name_TTSubdetFW(HcalTrigTowerDetId const &, HcalElectronicsId const &)
uint32_t hash_FEDSlot(HcalElectronicsId const &)
std::string name_HBHEPartition(HcalDetId const &)
uint32_t hash_ieta(HcalDetId const &)
std::string name_depth(HcalDetId const &)
std::string name_SubdetPMiphi(HcalDetId const &)
constexpr uint32_t rawId() const
get the raw id
int iphi() const
get the tower iphi
uint32_t hash_TTdepth(HcalTrigTowerDetId const &)
std::string name_FED(HcalElectronicsId const &)
std::string name_TTSubdetPM(HcalTrigTowerDetId const &)
constexpr uint32_t rawId() const
std::string name_iphi(HcalDetId const &)
std::string name_TTSubdetPMiphi(HcalTrigTowerDetId const &)
uint32_t hash_HBHEPartition(HcalDetId const &)
std::string name_Subdetdepth(HcalDetId const &)
std::pair< uint16_t, uint16_t > fed2crate(int fed)
uint32_t hash_HFPMiphi(HcalDetId const &)
uint16_t crate2fed(int crate, int slot)
uint32_t hash_EChannel(HcalElectronicsId const &)
const std::string SUBDET_NAME[SUBDET_NUM]
std::string name_Fiber(HcalElectronicsId const &)
std::string name_FEDSlot(HcalElectronicsId const &)
std::string name_CrateSpigot(HcalElectronicsId const &)
uint32_t hash_Subdetdepth(HcalDetId const &)
std::string name_FiberCh(HcalElectronicsId const &)
std::string name_CrateSlot(HcalElectronicsId const &)
std::string name_ieta(HcalDetId const &)
uint32_t hash_SubdetPM(HcalDetId const &)
const std::string TPSUBDET_NAME[TPSUBDET_NUM]
uint32_t hash_iphi(HcalDetId const &)
std::string name_Subdetieta(HcalDetId const &)