test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Typedefs | Enumerations | Functions | Variables
hcaldqm::hashfunctions Namespace Reference

Typedefs

typedef uint32_t(* hash_function_did )(HcalDetId const &)
 
typedef uint32_t(* hash_function_eid )(HcalElectronicsId const &)
 
typedef uint32_t(* hash_function_tid )(HcalTrigTowerDetId const &)
 
typedef std::string(* name_function_did )(HcalDetId const &)
 
typedef std::string(* name_function_eid )(HcalElectronicsId const &)
 
typedef std::string(* name_function_tid )(HcalTrigTowerDetId const &)
 

Enumerations

enum  HashType {
  fSubdet = 0, fSubdetiphi = 1, fSubdetieta = 2, fSubdetdepth = 3,
  fSubdetPM = 4, fSubdetPMiphi = 5, fiphi = 6, fieta = 7,
  fdepth = 8, fHFPMiphi = 9, fHBHEPartition = 10, fDChannel = 11,
  nHashType_did = 12, fFED = 13, fFEDSpigot = 14, fFEDSlot = 15,
  fCrate = 16, fCrateSpigot = 17, fCrateSlot = 18, fFiber = 19,
  fFiberFiberCh = 20, fFiberCh = 21, fElectronics = 22, fEChannel = 23,
  nHashType_eid = 24, fTTSubdet = 25, fTTSubdetPM = 26, fTTSubdetPMiphi = 27,
  fTTSubdetieta = 28, fTTdepth = 29, fTChannel = 30, nHashType_tid = 31,
  nHashType = 32
}
 

Functions

uint32_t hash_Crate (HcalElectronicsId const &)
 
uint32_t hash_Crate (std::string const &)
 
uint32_t hash_CrateSlot (HcalElectronicsId const &)
 
uint32_t hash_CrateSlot (std::string const &)
 
uint32_t hash_CrateSpigot (HcalElectronicsId const &)
 
uint32_t hash_CrateSpigot (std::string const &)
 
uint32_t hash_DChannel (HcalDetId const &)
 
uint32_t hash_DChannel (std::string const &)
 
uint32_t hash_depth (HcalDetId const &)
 
uint32_t hash_depth (std::string const &)
 
uint32_t hash_EChannel (HcalElectronicsId const &)
 
uint32_t hash_EChannel (std::string const &)
 
uint32_t hash_Electronics (HcalElectronicsId const &)
 
uint32_t hash_Electronics (std::string const &)
 
uint32_t hash_FED (HcalElectronicsId const &)
 
uint32_t hash_FED (std::string const &)
 
uint32_t hash_FEDSlot (HcalElectronicsId const &)
 
uint32_t hash_FEDSlot (std::string const &)
 
uint32_t hash_FEDSpigot (HcalElectronicsId const &)
 
uint32_t hash_FEDSpigot (std::string const &)
 
uint32_t hash_Fiber (HcalElectronicsId const &)
 
uint32_t hash_Fiber (std::string const &)
 
uint32_t hash_FiberCh (HcalElectronicsId const &)
 
uint32_t hash_FiberCh (std::string const &)
 
uint32_t hash_FiberFiberCh (HcalElectronicsId const &)
 
uint32_t hash_FiberFiberCh (std::string const &)
 
uint32_t hash_HBHEPartition (HcalDetId const &)
 
uint32_t hash_HBHEPartition (std::string const &)
 
uint32_t hash_HFPMiphi (HcalDetId const &)
 
uint32_t hash_HFPMiphi (std::string const &)
 
uint32_t hash_ieta (HcalDetId const &)
 
uint32_t hash_ieta (std::string const &)
 
uint32_t hash_iphi (HcalDetId const &)
 
uint32_t hash_iphi (std::string const &)
 
uint32_t hash_Subdet (HcalDetId const &)
 
uint32_t hash_Subdet (std::string const &)
 
uint32_t hash_Subdetdepth (HcalDetId const &)
 
uint32_t hash_Subdetdepth (std::string const &)
 
uint32_t hash_Subdetieta (HcalDetId const &)
 
uint32_t hash_Subdetieta (std::string const &)
 
uint32_t hash_Subdetiphi (HcalDetId const &)
 
uint32_t hash_Subdetiphi (std::string const &)
 
uint32_t hash_SubdetPM (HcalDetId const &)
 
uint32_t hash_SubdetPM (std::string const &)
 
uint32_t hash_SubdetPMiphi (HcalDetId const &)
 
uint32_t hash_SubdetPMiphi (std::string const &)
 
uint32_t hash_TChannel (HcalTrigTowerDetId const &)
 
uint32_t hash_TChannel (std::string const &)
 
uint32_t hash_TTdepth (HcalTrigTowerDetId const &)
 
uint32_t hash_TTdepth (std::string const &)
 
uint32_t hash_TTSubdet (HcalTrigTowerDetId const &)
 
uint32_t hash_TTSubdet (std::string const &)
 
uint32_t hash_TTSubdetieta (HcalTrigTowerDetId const &)
 
uint32_t hash_TTSubdetieta (std::string const &)
 
uint32_t hash_TTSubdetPM (HcalTrigTowerDetId const &)
 
uint32_t hash_TTSubdetPM (std::string const &)
 
uint32_t hash_TTSubdetPMiphi (HcalTrigTowerDetId const &)
 
uint32_t hash_TTSubdetPMiphi (std::string const &)
 
std::string name_Crate (HcalElectronicsId const &)
 
std::string name_CrateSlot (HcalElectronicsId const &)
 
std::string name_CrateSpigot (HcalElectronicsId const &)
 
std::string name_DChannel (HcalDetId const &)
 
std::string name_depth (HcalDetId const &)
 
std::string name_EChannel (HcalElectronicsId const &)
 
std::string name_Electronics (HcalElectronicsId const &)
 
std::string name_FED (HcalElectronicsId const &)
 
std::string name_FEDSlot (HcalElectronicsId const &)
 
std::string name_FEDSpigot (HcalElectronicsId const &)
 
std::string name_Fiber (HcalElectronicsId const &)
 
std::string name_FiberCh (HcalElectronicsId const &)
 
std::string name_FiberFiberCh (HcalElectronicsId const &)
 
std::string name_HBHEPartition (HcalDetId const &)
 
std::string name_HFPMiphi (HcalDetId const &)
 
std::string name_ieta (HcalDetId const &)
 
std::string name_iphi (HcalDetId const &)
 
std::string name_Subdet (HcalDetId const &)
 
std::string name_Subdetdepth (HcalDetId const &)
 
std::string name_Subdetieta (HcalDetId const &)
 
std::string name_Subdetiphi (HcalDetId const &)
 
std::string name_SubdetPM (HcalDetId const &)
 
std::string name_SubdetPMiphi (HcalDetId const &)
 
std::string name_TChannel (HcalTrigTowerDetId const &)
 
std::string name_TTdepth (HcalTrigTowerDetId const &)
 
std::string name_TTSubdet (HcalTrigTowerDetId const &)
 
std::string name_TTSubdetieta (HcalTrigTowerDetId const &)
 
std::string name_TTSubdetPM (HcalTrigTowerDetId const &)
 
std::string name_TTSubdetPMiphi (HcalTrigTowerDetId const &)
 

Variables

hash_function_did const hash_did [nHashType_did]
 
hash_function_eid const hash_eid [nHashType_eid-nHashType_did-1]
 
std::string const hash_names [nhashes]
 
hash_function_tid const hash_tid [nHashType_tid-nHashType_eid-1]
 
name_function_did const name_did [nHashType_did]
 
name_function_eid const name_eid [nHashType_eid-nHashType_did-1]
 
name_function_tid const name_tid [nHashType_tid-nHashType_eid-1]
 
int const nhashes
 

Typedef Documentation

typedef uint32_t(* hcaldqm::hashfunctions::hash_function_did)(HcalDetId const &)

Definition at line 161 of file HashFunctions.h.

typedef uint32_t(* hcaldqm::hashfunctions::hash_function_eid)(HcalElectronicsId const &)

Definition at line 162 of file HashFunctions.h.

typedef uint32_t(* hcaldqm::hashfunctions::hash_function_tid)(HcalTrigTowerDetId const &)

Definition at line 163 of file HashFunctions.h.

typedef std::string(* hcaldqm::hashfunctions::name_function_did)(HcalDetId const &)

Definition at line 164 of file HashFunctions.h.

typedef std::string(* hcaldqm::hashfunctions::name_function_eid)(HcalElectronicsId const &)

Definition at line 165 of file HashFunctions.h.

typedef std::string(* hcaldqm::hashfunctions::name_function_tid)(HcalTrigTowerDetId const &)

Definition at line 166 of file HashFunctions.h.

Enumeration Type Documentation

Enumerator
fSubdet 
fSubdetiphi 
fSubdetieta 
fSubdetdepth 
fSubdetPM 
fSubdetPMiphi 
fiphi 
fieta 
fdepth 
fHFPMiphi 
fHBHEPartition 
fDChannel 
nHashType_did 
fFED 
fFEDSpigot 
fFEDSlot 
fCrate 
fCrateSpigot 
fCrateSlot 
fFiber 
fFiberFiberCh 
fFiberCh 
fElectronics 
fEChannel 
nHashType_eid 
fTTSubdet 
fTTSubdetPM 
fTTSubdetPMiphi 
fTTSubdetieta 
fTTdepth 
fTChannel 
nHashType_tid 
nHashType 

Definition at line 125 of file HashFunctions.h.

126  {
127  fSubdet = 0,
128  fSubdetiphi = 1,
129  fSubdetieta = 2,
130  fSubdetdepth = 3,
131  fSubdetPM = 4,
132  fSubdetPMiphi = 5,
133  fiphi = 6,
134  fieta = 7,
135  fdepth = 8,
136  fHFPMiphi = 9,
137  fHBHEPartition = 10,
138  fDChannel = 11,
139  nHashType_did = 12,
140  fFED = 13,
141  fFEDSpigot = 14,
142  fFEDSlot = 15,
143  fCrate = 16,
144  fCrateSpigot = 17,
145  fCrateSlot = 18,
146  fFiber = 19,
147  fFiberFiberCh = 20,
148  fFiberCh = 21,
149  fElectronics = 22,
150  fEChannel = 23,
151  nHashType_eid = 24,
152  fTTSubdet = 25,
153  fTTSubdetPM = 26,
154  fTTSubdetPMiphi = 27,
155  fTTSubdetieta = 28,
156  fTTdepth = 29,
157  fTChannel = 30,
158  nHashType_tid = 31,
159  nHashType = 32
160  };

Function Documentation

uint32_t hcaldqm::hashfunctions::hash_Crate ( HcalElectronicsId const &  eid)

Definition at line 339 of file HashFunctions.cc.

References HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hcaldqm::utilities::hash(), HcalElectronicsId::isVMEid(), hcaldqm::constants::SLOT_uTCA_MIN, and hcaldqm::constants::SPIGOT_MIN.

340  {
341  // note hashing of VME is done with dccId
342  return eid.isVMEid() ?
344  FIBER_VME_MIN, SPIGOT_MIN, eid.dccid())) :
345  utilities::hash(HcalElectronicsId(eid.crateId(),
347  }
int const SPIGOT_MIN
Definition: Constants.h:85
int const FIBER_VME_MIN
Definition: Constants.h:90
int const FIBERCH_MIN
Definition: Constants.h:100
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
volatile std::atomic< bool > shutdown_flag false
Readout chain identification for Hcal.
int const SLOT_uTCA_MIN
Definition: Constants.h:72
uint32_t hcaldqm::hashfunctions::hash_Crate ( std::string const &  )

Definition at line 496 of file HashFunctions.cc.

References HcalElectronicsId::rawId().

497  {return HcalElectronicsId().rawId();}
uint32_t rawId() const
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_CrateSlot ( HcalElectronicsId const &  eid)

Definition at line 360 of file HashFunctions.cc.

References HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hcaldqm::utilities::hash(), HcalElectronicsId::isVMEid(), HcalElectronicsId::slot(), and HcalElectronicsId::spigot().

361  {
362  return eid.isVMEid() ?
364  FIBER_VME_MIN, eid.spigot(), eid.dccid())) :
365  utilities::hash(HcalElectronicsId(eid.crateId(),
366  eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
367  }
int const FIBER_VME_MIN
Definition: Constants.h:90
int const FIBERCH_MIN
Definition: Constants.h:100
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
volatile std::atomic< bool > shutdown_flag false
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_CrateSlot ( std::string const &  )

Definition at line 522 of file HashFunctions.cc.

References HcalElectronicsId::rawId().

523  {return HcalElectronicsId().rawId();}
uint32_t rawId() const
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_CrateSpigot ( HcalElectronicsId const &  eid)

Definition at line 349 of file HashFunctions.cc.

References HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hcaldqm::utilities::hash(), HcalElectronicsId::isVMEid(), HcalElectronicsId::slot(), and HcalElectronicsId::spigot().

350  {
351  // note hashing of VME is done with dccid and
352  // uTCA with Slots
353  return eid.isVMEid() ?
355  FIBER_VME_MIN, eid.spigot(), eid.dccid())) :
356  utilities::hash(HcalElectronicsId(eid.crateId(),
357  eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
358  }
int const FIBER_VME_MIN
Definition: Constants.h:90
int const FIBERCH_MIN
Definition: Constants.h:100
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
volatile std::atomic< bool > shutdown_flag false
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_CrateSpigot ( std::string const &  )

Definition at line 509 of file HashFunctions.cc.

References HcalElectronicsId::rawId().

510  {return HcalElectronicsId().rawId();}
uint32_t rawId() const
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_DChannel ( HcalDetId const &  did)

Definition at line 87 of file HashFunctions.cc.

References hcaldqm::utilities::hash().

88  {
89  return utilities::hash(did);
90  }
uint32_t hcaldqm::hashfunctions::hash_DChannel ( std::string const &  name)

Definition at line 302 of file HashFunctions.cc.

References HcalBarrel, and DetId::rawId().

303  {
304  return HcalDetId(HcalBarrel,1,1,1).rawId();
305  }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
uint32_t hcaldqm::hashfunctions::hash_depth ( HcalDetId const &  did)

Definition at line 58 of file HashFunctions.cc.

References HcalDetId::depth(), hcaldqm::utilities::hash(), and HcalBarrel.

59  {
61  1, 1, did.depth()));
62  }
uint32_t hcaldqm::hashfunctions::hash_depth ( std::string const &  name)

Definition at line 245 of file HashFunctions.cc.

References HLT_25ns10e33_v2_cff::depth, HcalBarrel, and DetId::rawId().

246  {
247  int depth = std::stoi(name.substr(5,name.length()-5),nullptr);
248  return HcalDetId(HcalBarrel,1,1,depth).rawId();
249  }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
uint32_t hcaldqm::hashfunctions::hash_EChannel ( HcalElectronicsId const &  eid)

Definition at line 408 of file HashFunctions.cc.

References HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), HcalElectronicsId::fiberChanId(), HcalElectronicsId::fiberIndex(), hcaldqm::utilities::hash(), HcalElectronicsId::isVMEid(), HcalElectronicsId::slot(), and HcalElectronicsId::spigot().

Referenced by hcaldqm::electronicsmap::ElectronicsMap::initialize().

409  {
410  return eid.isVMEid() ?
411  utilities::hash(HcalElectronicsId(eid.fiberChanId(),
412  eid.fiberIndex(), eid.spigot(), eid.dccid())):
413  utilities::hash(HcalElectronicsId(eid.crateId(),
414  eid.slot(), eid.fiberIndex(), eid.fiberChanId(), false));
415  }
volatile std::atomic< bool > shutdown_flag false
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_EChannel ( std::string const &  )

Definition at line 582 of file HashFunctions.cc.

References HcalElectronicsId::rawId().

583  {return HcalElectronicsId().rawId();}
uint32_t rawId() const
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_Electronics ( HcalElectronicsId const &  eid)

Definition at line 384 of file HashFunctions.cc.

References hcaldqm::constants::CRATE_uTCA_MIN, hcaldqm::constants::CRATE_VME_MIN, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hcaldqm::utilities::hash(), HcalElectronicsId::isVMEid(), hcaldqm::constants::SLOT_uTCA_MIN, and hcaldqm::constants::SPIGOT_MIN.

385  {
386  return eid.isVMEid()?
391 /* NOTE: as an update - should separate Trigger Eid and Det Eid
392  * return eid.isVMEid() ?
393  eid.isTriggerChainId()?
394  utilities::hash(HcalElectronicsId(SLBCH_MIN,
395  SLB_MIN, SPIGOT_MIN, CRATE_VME_MIN,
396  CRATE_VME_MIN, SLOT_VME_MIN1, 0)):
397  utilities::hash(HcalElectronicsId(FIBERCH_MIN,
398  FIBER_VME_MIN, SPIGOT_MIN, CRATE_VME_MIN))
399  :
400  eid.isTriggerChainId()?
401  utilities::hash(HcalElectronicsId(CRATE_uTCA_MIN,
402  SLOT_uTCA_MIN, TPFIBER_MIN, TPFIBERCH_MIN, true)):
403  utilities::hash(HcalElectronicsId(CRATE_uTCA_MIN,
404  SLOT_uTCA_MIN, FIBER_uTCA_MIN1, FIBERCH_MIN, false));
405  */
406  }
int const CRATE_VME_MIN
Definition: Constants.h:60
int const SPIGOT_MIN
Definition: Constants.h:85
int const FIBER_VME_MIN
Definition: Constants.h:90
int const FIBERCH_MIN
Definition: Constants.h:100
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
int const CRATE_uTCA_MIN
Definition: Constants.h:65
volatile std::atomic< bool > shutdown_flag false
Readout chain identification for Hcal.
int const SLOT_uTCA_MIN
Definition: Constants.h:72
uint32_t hcaldqm::hashfunctions::hash_Electronics ( std::string const &  name)
uint32_t hcaldqm::hashfunctions::hash_FED ( HcalElectronicsId const &  eid)

by ElectronicsId

Definition at line 310 of file HashFunctions.cc.

References HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hcaldqm::utilities::hash(), HcalElectronicsId::isVMEid(), hcaldqm::constants::SLOT_uTCA_MIN, and hcaldqm::constants::SPIGOT_MIN.

311  {
312  return eid.isVMEid() ?
314  FIBERCH_MIN, FIBER_VME_MIN, SPIGOT_MIN, eid.dccid())) :
315  utilities::hash(HcalElectronicsId(eid.crateId(),
317  }
int const SPIGOT_MIN
Definition: Constants.h:85
int const FIBER_VME_MIN
Definition: Constants.h:90
int const FIBERCH_MIN
Definition: Constants.h:100
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
volatile std::atomic< bool > shutdown_flag false
Readout chain identification for Hcal.
int const SLOT_uTCA_MIN
Definition: Constants.h:72
uint32_t hcaldqm::hashfunctions::hash_FED ( std::string const &  name)

Definition at line 425 of file HashFunctions.cc.

References hcaldqm::utilities::fed2crate(), hcaldqm::constants::FED_uTCA_MIN, hcaldqm::constants::FED_VME_MIN, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, HcalElectronicsId::rawId(), hcaldqm::constants::SLOT_uTCA_MIN, and hcaldqm::constants::SPIGOT_MIN.

426  {
427  int fed = std::stoi(name.substr(3,name.length()-3),nullptr);
428  if (fed>=constants::FED_uTCA_MIN)
431  else
434 
435  return HcalElectronicsId().rawId();
436  }
uint16_t fed2crate(int fed)
Definition: Utilities.cc:12
uint32_t rawId() const
int const SPIGOT_MIN
Definition: Constants.h:85
int const FIBER_VME_MIN
Definition: Constants.h:90
int const FED_uTCA_MIN
Definition: Constants.h:52
int const FIBERCH_MIN
Definition: Constants.h:100
int const FED_VME_MIN
Definition: Constants.h:47
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
Readout chain identification for Hcal.
int const SLOT_uTCA_MIN
Definition: Constants.h:72
uint32_t hcaldqm::hashfunctions::hash_FEDSlot ( HcalElectronicsId const &  eid)

Definition at line 329 of file HashFunctions.cc.

References HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hcaldqm::utilities::hash(), HcalElectronicsId::isVMEid(), HcalElectronicsId::slot(), and HcalElectronicsId::spigot().

330  {
331  // note that hashing of VME is done with
332  return eid.isVMEid() ?
334  FIBER_VME_MIN, eid.spigot(), eid.dccid())) :
335  utilities::hash(HcalElectronicsId(eid.crateId(),
336  eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
337  }
int const FIBER_VME_MIN
Definition: Constants.h:90
int const FIBERCH_MIN
Definition: Constants.h:100
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
volatile std::atomic< bool > shutdown_flag false
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_FEDSlot ( std::string const &  name)

Definition at line 473 of file HashFunctions.cc.

References hcaldqm::utilities::fed2crate(), hcaldqm::constants::FED_uTCA_MIN, hcaldqm::constants::FED_VME_MIN, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, HcalElectronicsId::rawId(), and alignCSCRings::s.

474  {
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);
478  if (fed>=FED_uTCA_MIN)
480  s, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId();
481  else
483  FIBER_VME_MIN, s, fed-FED_VME_MIN).rawId();
484 
485  return HcalElectronicsId().rawId();
486  }
uint16_t fed2crate(int fed)
Definition: Utilities.cc:12
uint32_t rawId() const
int const FIBER_VME_MIN
Definition: Constants.h:90
int const FED_uTCA_MIN
Definition: Constants.h:52
int const FIBERCH_MIN
Definition: Constants.h:100
int const FED_VME_MIN
Definition: Constants.h:47
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_FEDSpigot ( HcalElectronicsId const &  eid)

Definition at line 319 of file HashFunctions.cc.

References HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hcaldqm::utilities::hash(), HcalElectronicsId::isVMEid(), HcalElectronicsId::slot(), and HcalElectronicsId::spigot().

320  {
321  // note that hashing of uTCA is done by FED-Slot...
322  return eid.isVMEid() ?
324  FIBERCH_MIN, FIBER_VME_MIN, eid.spigot(), eid.dccid())) :
325  utilities::hash(HcalElectronicsId(eid.crateId(),
326  eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
327  }
int const FIBER_VME_MIN
Definition: Constants.h:90
int const FIBERCH_MIN
Definition: Constants.h:100
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
volatile std::atomic< bool > shutdown_flag false
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_FEDSpigot ( std::string const &  name)

Definition at line 448 of file HashFunctions.cc.

References hcaldqm::utilities::fed2crate(), hcaldqm::constants::FED_uTCA_MIN, hcaldqm::constants::FED_VME_MIN, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, HcalElectronicsId::rawId(), and alignCSCRings::s.

449  {
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);
453  if (fed>=FED_uTCA_MIN)
455  s, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId();
456  else
458  FIBER_VME_MIN, s, fed-FED_VME_MIN).rawId();
459 
460  return HcalElectronicsId().rawId();
461  }
uint16_t fed2crate(int fed)
Definition: Utilities.cc:12
uint32_t rawId() const
int const FIBER_VME_MIN
Definition: Constants.h:90
int const FED_uTCA_MIN
Definition: Constants.h:52
int const FIBERCH_MIN
Definition: Constants.h:100
int const FED_VME_MIN
Definition: Constants.h:47
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_Fiber ( HcalElectronicsId const &  )

Definition at line 369 of file HashFunctions.cc.

370  {
371  return 0;
372  }
uint32_t hcaldqm::hashfunctions::hash_Fiber ( std::string const &  )

Definition at line 531 of file HashFunctions.cc.

References HcalElectronicsId::rawId().

532  {return HcalElectronicsId().rawId();}
uint32_t rawId() const
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_FiberCh ( HcalElectronicsId const &  eid)

Definition at line 379 of file HashFunctions.cc.

380  {
381  return 0;
382  }
uint32_t hcaldqm::hashfunctions::hash_FiberCh ( std::string const &  )

Definition at line 549 of file HashFunctions.cc.

References HcalElectronicsId::rawId().

550  {return HcalElectronicsId().rawId();}
uint32_t rawId() const
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_FiberFiberCh ( HcalElectronicsId const &  )

Definition at line 374 of file HashFunctions.cc.

375  {
376  return 0;
377  }
uint32_t hcaldqm::hashfunctions::hash_FiberFiberCh ( std::string const &  )

Definition at line 540 of file HashFunctions.cc.

References HcalElectronicsId::rawId().

541  {return HcalElectronicsId().rawId();}
uint32_t rawId() const
Readout chain identification for Hcal.
uint32_t hcaldqm::hashfunctions::hash_HBHEPartition ( HcalDetId const &  did)

Definition at line 70 of file HashFunctions.cc.

References cond::hash, hcaldqm::utilities::hash(), HcalBarrel, and HcalDetId::iphi().

71  {
72  int iphi = did.iphi();
73  uint32_t hash = 0;
74  if (iphi>=3 && iphi<=26)
76  1, 3, 1));
77  else if (iphi>=27 && iphi<=50)
79  1, 27, 1));
80  else
82  1, 1, 1));
83 
84  return hash;
85  }
uint32_t hcaldqm::hashfunctions::hash_HBHEPartition ( std::string const &  name)

Definition at line 279 of file HashFunctions.cc.

References HcalBarrel, and DetId::rawId().

280  {
281  if (name[4]=='a')
282  return HcalDetId(HcalBarrel,1,5,1).rawId();
283  else if (name[4]=='b')
284  return HcalDetId(HcalBarrel,1,29,1).rawId();
285  else
286  return HcalDetId(HcalBarrel,1,55,1).rawId();
287 
288  return HcalDetId().rawId();
289  }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
uint32_t hcaldqm::hashfunctions::hash_HFPMiphi ( HcalDetId const &  did)

Definition at line 64 of file HashFunctions.cc.

References hcaldqm::utilities::hash(), HcalForward, HcalDetId::ieta(), and HcalDetId::iphi().

65  {
67  did.ieta()>0 ? 1 : -1, did.iphi(), 1));
68  }
uint32_t hcaldqm::hashfunctions::hash_HFPMiphi ( std::string const &  name)

Definition at line 258 of file HashFunctions.cc.

References HcalForward, and DetId::rawId().

259  {
260  int iphi = std::stoi(name.substr(7,name.length()-7),nullptr);
261  int ieta = name[2]=='P'?1:-1;
262  return HcalDetId(HcalForward,ieta,iphi,1).rawId();
263  }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
uint32_t hcaldqm::hashfunctions::hash_ieta ( HcalDetId const &  did)

Definition at line 52 of file HashFunctions.cc.

References hcaldqm::utilities::hash(), HcalBarrel, and HcalDetId::ieta().

53  {
55  did.ieta(), 1, 1));
56  }
uint32_t hcaldqm::hashfunctions::hash_ieta ( std::string const &  name)

Definition at line 231 of file HashFunctions.cc.

References HcalBarrel, and DetId::rawId().

232  {
233  int ieta = std::stoi(name.substr(4,name.length()-4),nullptr);
234  return HcalDetId(HcalBarrel,ieta,1,1).rawId();
235  }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
uint32_t hcaldqm::hashfunctions::hash_iphi ( HcalDetId const &  did)

Definition at line 46 of file HashFunctions.cc.

References hcaldqm::utilities::hash(), HcalBarrel, and HcalDetId::iphi().

47  {
49  1, did.iphi(), 1));
50  }
uint32_t hcaldqm::hashfunctions::hash_iphi ( std::string const &  name)

Definition at line 218 of file HashFunctions.cc.

References HcalBarrel, and DetId::rawId().

219  {
220  int iphi = std::stoi(name.substr(4,name.length()-4),nullptr);
221  return HcalDetId(HcalBarrel,1,iphi,1).rawId();
222  }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
uint32_t hcaldqm::hashfunctions::hash_Subdet ( HcalDetId const &  did)

by HcalDetId

HcalDetId

Definition at line 12 of file HashFunctions.cc.

References hcaldqm::utilities::hash(), and HcalDetId::subdet().

13  {
14  return utilities::hash(HcalDetId(did.subdet(), 1, 1, 1));
15  }
uint32_t hcaldqm::hashfunctions::hash_Subdet ( std::string const &  name)

Definition at line 97 of file HashFunctions.cc.

References i, DetId::rawId(), hcaldqm::constants::SUBDET_NAME, and hcaldqm::constants::SUBDET_NUM.

98  {
99  for (int i=0; i<constants::SUBDET_NUM; i++)
101  return(HcalDetId((HcalSubdetector)(i+1),
102  1,1,1).rawId());
103 
104  return HcalDetId().rawId();
105  }
int i
Definition: DBlmapReader.cc:9
int const SUBDET_NUM
Definition: Constants.h:130
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
std::string const SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:133
HcalSubdetector
Definition: HcalAssistant.h:31
uint32_t hcaldqm::hashfunctions::hash_Subdetdepth ( HcalDetId const &  did)

Definition at line 28 of file HashFunctions.cc.

References HcalDetId::depth(), hcaldqm::utilities::hash(), and HcalDetId::subdet().

29  {
30  return utilities::hash(HcalDetId(did.subdet(), 1,
31  1, did.depth()));
32  }
uint32_t hcaldqm::hashfunctions::hash_Subdetdepth ( std::string const &  name)

Definition at line 178 of file HashFunctions.cc.

References HLT_25ns10e33_v2_cff::depth, i, DetId::rawId(), AlCaHLTBitMon_QueryRunRegistry::string, hcaldqm::constants::SUBDET_NAME, and hcaldqm::constants::SUBDET_NUM.

179  {
180  std::string sub = name.substr(0,2);
181  int depth = std::stoi(name.substr(7, name.length()-7), nullptr);
182  for (int i=0; i<constants::SUBDET_NUM; i++)
183  if (constants::SUBDET_NAME[i]==sub)
184  return HcalDetId((HcalSubdetector)(i+1),
185  1,1,depth).rawId();
186 
187  return HcalDetId().rawId();
188  }
int i
Definition: DBlmapReader.cc:9
int const SUBDET_NUM
Definition: Constants.h:130
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
std::string const SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:133
HcalSubdetector
Definition: HcalAssistant.h:31
uint32_t hcaldqm::hashfunctions::hash_Subdetieta ( HcalDetId const &  did)

Definition at line 22 of file HashFunctions.cc.

References hcaldqm::utilities::hash(), HcalDetId::ieta(), and HcalDetId::subdet().

23  {
24  return utilities::hash(HcalDetId(did.subdet(), did.ieta(),
25  1, 1));
26  }
uint32_t hcaldqm::hashfunctions::hash_Subdetieta ( std::string const &  name)

Definition at line 156 of file HashFunctions.cc.

References i, DetId::rawId(), AlCaHLTBitMon_QueryRunRegistry::string, hcaldqm::constants::SUBDET_NAME, and hcaldqm::constants::SUBDET_NUM.

157  {
158  std::string sub = name.substr(0,2);
159  int ieta = std::stoi(name.substr(6,name.length()-6), nullptr);
160  for (int i=0; i<constants::SUBDET_NUM; i++)
161  if (constants::SUBDET_NAME[i]==sub)
162  return HcalDetId((HcalSubdetector)(i+1),
163  ieta, 1,1).rawId();
164 
165  // default
166  return HcalDetId().rawId();
167  }
int i
Definition: DBlmapReader.cc:9
int const SUBDET_NUM
Definition: Constants.h:130
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
std::string const SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:133
HcalSubdetector
Definition: HcalAssistant.h:31
uint32_t hcaldqm::hashfunctions::hash_Subdetiphi ( HcalDetId const &  did)

Definition at line 17 of file HashFunctions.cc.

References hcaldqm::utilities::hash(), HcalDetId::iphi(), and HcalDetId::subdet().

18  {
19  return utilities::hash(HcalDetId(did.subdet(), 1, did.iphi(), 1));
20  }
uint32_t hcaldqm::hashfunctions::hash_Subdetiphi ( std::string const &  name)

Definition at line 134 of file HashFunctions.cc.

References i, DetId::rawId(), AlCaHLTBitMon_QueryRunRegistry::string, hcaldqm::constants::SUBDET_NAME, and hcaldqm::constants::SUBDET_NUM.

135  {
136  std::string sub = name.substr(0,2);
137  int iphi = std::stoi(name.substr(6,name.length()-6), nullptr);
138  for (int i=0; i<constants::SUBDET_NUM; i++)
139  if (constants::SUBDET_NAME[i]==sub)
140  return HcalDetId((HcalSubdetector)(i+1),
141  1, iphi,1).rawId();
142 
143  // default
144  return HcalDetId().rawId();
145  }
int i
Definition: DBlmapReader.cc:9
int const SUBDET_NUM
Definition: Constants.h:130
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
std::string const SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:133
HcalSubdetector
Definition: HcalAssistant.h:31
uint32_t hcaldqm::hashfunctions::hash_SubdetPM ( HcalDetId const &  did)

Definition at line 34 of file HashFunctions.cc.

References hcaldqm::utilities::hash(), HcalDetId::ieta(), and HcalDetId::subdet().

35  {
36  return utilities::hash(HcalDetId(did.subdet(),
37  did.ieta()>0 ? 1 : -1, 1, 1));
38  }
uint32_t hcaldqm::hashfunctions::hash_SubdetPM ( std::string const &  name)

Definition at line 115 of file HashFunctions.cc.

References i, DetId::rawId(), hcaldqm::constants::SUBDET_NUM, and hcaldqm::constants::SUBDETPM_NAME.

116  {
117  for (int i=0; i<constants::SUBDET_NUM*2; i++)
119  return HcalDetId((HcalSubdetector)(i/2+1),
120  i%2==0?-1:1,1,1).rawId();
121 
122  return HcalDetId().rawId();
123  }
int i
Definition: DBlmapReader.cc:9
int const SUBDET_NUM
Definition: Constants.h:130
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
std::string const SUBDETPM_NAME[2 *SUBDET_NUM]
Definition: Constants.h:134
HcalSubdetector
Definition: HcalAssistant.h:31
uint32_t hcaldqm::hashfunctions::hash_SubdetPMiphi ( HcalDetId const &  did)

Definition at line 40 of file HashFunctions.cc.

References hcaldqm::utilities::hash(), HcalDetId::ieta(), HcalDetId::iphi(), and HcalDetId::subdet().

41  {
42  return utilities::hash(HcalDetId(did.subdet(),
43  did.ieta()>0 ? 1 : -1, did.iphi(), 1));
44  }
uint32_t hcaldqm::hashfunctions::hash_SubdetPMiphi ( std::string const &  name)

Definition at line 199 of file HashFunctions.cc.

References i, DetId::rawId(), AlCaHLTBitMon_QueryRunRegistry::string, hcaldqm::constants::SUBDET_NUM, and hcaldqm::constants::SUBDETPM_NAME.

200  {
201  std::string sub = name.substr(0,3);
202  int iphi = std::stoi(name.substr(7, name.length()-7),nullptr);
203  for (int i=0; i<constants::SUBDET_NUM*2; i++)
204  if (constants::SUBDETPM_NAME[i]==sub)
205  return HcalDetId((HcalSubdetector)(i/2+1),
206  i%2==0?-1:1,iphi,1).rawId();
207 
208  return HcalDetId().rawId();
209  }
int i
Definition: DBlmapReader.cc:9
int const SUBDET_NUM
Definition: Constants.h:130
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
std::string const SUBDETPM_NAME[2 *SUBDET_NUM]
Definition: Constants.h:134
HcalSubdetector
Definition: HcalAssistant.h:31
uint32_t hcaldqm::hashfunctions::hash_TChannel ( HcalTrigTowerDetId const &  tid)

Definition at line 620 of file HashFunctions.cc.

References HcalTrigTowerDetId::depth(), hcaldqm::utilities::hash(), HcalTrigTowerDetId::ieta(), and HcalTrigTowerDetId::iphi().

621  {
623  tid.ieta(), tid.iphi(), tid.depth()));
624  }
uint32_t hcaldqm::hashfunctions::hash_TChannel ( std::string const &  )

Definition at line 717 of file HashFunctions.cc.

References DetId::rawId().

718  {return HcalTrigTowerDetId().rawId();}
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
uint32_t hcaldqm::hashfunctions::hash_TTdepth ( HcalTrigTowerDetId const &  tid)

Definition at line 614 of file HashFunctions.cc.

References HcalTrigTowerDetId::depth(), and hcaldqm::utilities::hash().

615  {
617  1, 1, tid.depth()));
618  }
uint32_t hcaldqm::hashfunctions::hash_TTdepth ( std::string const &  name)

Definition at line 703 of file HashFunctions.cc.

References HLT_25ns10e33_v2_cff::depth.

704  {
705  int depth = std::stoi(name.substr(5, name.length()-5), nullptr);
706  return HcalTrigTowerDetId(1,1,depth);
707  }
uint32_t hcaldqm::hashfunctions::hash_TTSubdet ( HcalTrigTowerDetId const &  tid)

by TrigTowerDetId

Definition at line 588 of file HashFunctions.cc.

References hcaldqm::utilities::hash(), and HcalTrigTowerDetId::ietaAbs().

589  {
591  tid.ietaAbs()>=29?29:1, 1));
592  }
uint32_t hcaldqm::hashfunctions::hash_TTSubdet ( std::string const &  name)

Definition at line 631 of file HashFunctions.cc.

References DetId::rawId().

632  {
633  if (name=="HBHE")
634  return HcalTrigTowerDetId(1,1).rawId();
635  else
636  return HcalTrigTowerDetId(29,1).rawId();
637 
638  return HcalTrigTowerDetId().rawId();
639  }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
uint32_t hcaldqm::hashfunctions::hash_TTSubdetieta ( HcalTrigTowerDetId const &  tid)

Definition at line 609 of file HashFunctions.cc.

610  {
611  return 0;
612  }
uint32_t hcaldqm::hashfunctions::hash_TTSubdetieta ( std::string const &  )

Definition at line 693 of file HashFunctions.cc.

References DetId::rawId().

694  {return HcalTrigTowerDetId().rawId();}
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
uint32_t hcaldqm::hashfunctions::hash_TTSubdetPM ( HcalTrigTowerDetId const &  tid)

Definition at line 594 of file HashFunctions.cc.

References hcaldqm::utilities::hash(), HcalTrigTowerDetId::ieta(), and HcalTrigTowerDetId::ietaAbs().

595  {
597  tid.ietaAbs()<29? (tid.ieta()<0 ? -1 : 1) :
598  (tid.ieta()<0?-29:29),
599  1));
600  }
uint32_t hcaldqm::hashfunctions::hash_TTSubdetPM ( std::string const &  name)

Definition at line 647 of file HashFunctions.cc.

References DetId::rawId().

648  {
649  if (name=="HBHEM")
650  return HcalTrigTowerDetId(-1,1).rawId();
651  else if (name=="HBHEP")
652  return HcalTrigTowerDetId(1,1).rawId();
653  else if (name=="HFM")
654  return HcalTrigTowerDetId(-29,1).rawId();
655  else
656  return HcalTrigTowerDetId(29,1).rawId();
657 
658  return HcalTrigTowerDetId().rawId();
659  }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
uint32_t hcaldqm::hashfunctions::hash_TTSubdetPMiphi ( HcalTrigTowerDetId const &  tid)

Definition at line 602 of file HashFunctions.cc.

References hcaldqm::utilities::hash(), HcalTrigTowerDetId::ieta(), HcalTrigTowerDetId::ietaAbs(), and HcalTrigTowerDetId::iphi().

603  {
605  tid.ietaAbs()<29? (tid.ieta()<0 ? 0 : 1) : (tid.ieta()<0?2:3),
606  tid.iphi()));
607  }
uint32_t hcaldqm::hashfunctions::hash_TTSubdetPMiphi ( std::string const &  name)

Definition at line 669 of file HashFunctions.cc.

References DetId::rawId(), and AlCaHLTBitMon_QueryRunRegistry::string.

670  {
671  int pos = name.find("iphi");
672  std::string sub = name.substr(0, pos);
673  int iphi = std::stoi(name.substr(pos+4, name.length()-pos-4),
674  nullptr);
675  if (name=="HBHEM")
676  return HcalTrigTowerDetId(-1,iphi).rawId();
677  else if (name=="HBHEP")
678  return HcalTrigTowerDetId(1,iphi).rawId();
679  else if (name=="HFM")
680  return HcalTrigTowerDetId(-29,iphi).rawId();
681  else
682  return HcalTrigTowerDetId(29,iphi).rawId();
683 
684  return HcalTrigTowerDetId().rawId();
685  }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
std::string hcaldqm::hashfunctions::name_Crate ( HcalElectronicsId const &  eid)

Definition at line 488 of file HashFunctions.cc.

References HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), HcalElectronicsId::isVMEid(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

489  {
490  char name[10];
491  sprintf(name, "Crate%d", eid.isVMEid()?eid.dccid():eid.crateId());
492  return std::string(name);
493  }
std::string hcaldqm::hashfunctions::name_CrateSlot ( HcalElectronicsId const &  eid)

Definition at line 512 of file HashFunctions.cc.

References HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), HcalElectronicsId::isVMEid(), mergeVDriftHistosByStation::name, HcalElectronicsId::slot(), HcalElectronicsId::spigot(), and AlCaHLTBitMon_QueryRunRegistry::string.

513  {
514  char name[20];
515  sprintf(name, "Crate%dS%d",
516  eid.isVMEid()?eid.dccid():eid.crateId(),
517  eid.isVMEid()?eid.spigot():eid.slot());
518  return std::string(name);
519  }
std::string hcaldqm::hashfunctions::name_CrateSpigot ( HcalElectronicsId const &  eid)

Definition at line 499 of file HashFunctions.cc.

References HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), HcalElectronicsId::isVMEid(), mergeVDriftHistosByStation::name, HcalElectronicsId::slot(), HcalElectronicsId::spigot(), and AlCaHLTBitMon_QueryRunRegistry::string.

500  {
501  char name[20];
502  sprintf(name, "Crate%dS%d",
503  eid.isVMEid()?eid.dccid():eid.crateId(),
504  eid.isVMEid()?eid.spigot():eid.slot());
505  return std::string(name);
506  }
std::string hcaldqm::hashfunctions::name_DChannel ( HcalDetId const &  did)

Definition at line 291 of file HashFunctions.cc.

References HcalDetId::depth(), HcalDetId::ieta(), HcalDetId::iphi(), mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, HcalDetId::subdet(), and hcaldqm::constants::SUBDET_NAME.

292  {
293  char name[40];
294  sprintf(name, "%s-%d-%d-%d",
295  constants::SUBDET_NAME[did.subdet()-1].c_str(),
296  did.ieta(), did.iphi(), did.depth());
297  return std::string(name);
298  }
std::string const SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:133
std::string hcaldqm::hashfunctions::name_depth ( HcalDetId const &  did)

Definition at line 237 of file HashFunctions.cc.

References HcalDetId::depth(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

238  {
239  char name[10];
240  sprintf(name, "depth%d", did.depth());
241  return std::string(name);
242 
243  }
std::string hcaldqm::hashfunctions::name_EChannel ( HcalElectronicsId const &  eid)

Definition at line 569 of file HashFunctions.cc.

References HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), HcalElectronicsId::fiberChanId(), HcalElectronicsId::fiberIndex(), HcalElectronicsId::isVMEid(), mergeVDriftHistosByStation::name, HcalElectronicsId::slot(), HcalElectronicsId::spigot(), and AlCaHLTBitMon_QueryRunRegistry::string.

570  {
571  char name[20];
572  if (eid.isVMEid())
573  sprintf(name, "%d-%d-%d-%d", eid.dccid(),
574  eid.spigot(), eid.fiberIndex(), eid.fiberChanId());
575  else
576  sprintf(name, "%d-%d-%d-%d", eid.crateId(),
577  eid.slot(), eid.fiberIndex(), eid.fiberChanId());
578  return std::string(name);
579  }
std::string hcaldqm::hashfunctions::name_Electronics ( HcalElectronicsId const &  eid)

Definition at line 552 of file HashFunctions.cc.

References HcalElectronicsId::isVMEid(), and AlCaHLTBitMon_QueryRunRegistry::string.

553  {
554  return eid.isVMEid()?std::string("VME"):std::string("uTCA");
555  }
std::string hcaldqm::hashfunctions::name_FED ( HcalElectronicsId const &  eid)

Definition at line 417 of file HashFunctions.cc.

References hcaldqm::utilities::crate2fed(), HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), HcalElectronicsId::isVMEid(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

418  {
419  char name[10];
420  sprintf(name, "FED%d", eid.isVMEid() ? eid.dccid()+700 :
421  utilities::crate2fed(eid.crateId()));
422  return std::string(name);
423  }
uint16_t crate2fed(int crate)
Definition: Utilities.cc:23
std::string hcaldqm::hashfunctions::name_FEDSlot ( HcalElectronicsId const &  eid)

Definition at line 463 of file HashFunctions.cc.

References hcaldqm::utilities::crate2fed(), HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), HcalElectronicsId::isVMEid(), mergeVDriftHistosByStation::name, HcalElectronicsId::slot(), HcalElectronicsId::spigot(), and AlCaHLTBitMon_QueryRunRegistry::string.

464  {
465  char name[20];
466  sprintf(name, "FED%dS%d",
467  eid.isVMEid()?eid.dccid()+700:
468  utilities::crate2fed(eid.crateId()),
469  eid.isVMEid()?eid.spigot():eid.slot());
470  return std::string(name);
471  }
uint16_t crate2fed(int crate)
Definition: Utilities.cc:23
std::string hcaldqm::hashfunctions::name_FEDSpigot ( HcalElectronicsId const &  eid)

Definition at line 438 of file HashFunctions.cc.

References hcaldqm::utilities::crate2fed(), HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), HcalElectronicsId::isVMEid(), mergeVDriftHistosByStation::name, HcalElectronicsId::slot(), HcalElectronicsId::spigot(), and AlCaHLTBitMon_QueryRunRegistry::string.

439  {
440  char name[20];
441  sprintf(name, "FED%dS%d",
442  eid.isVMEid()?eid.dccid()+700:
443  utilities::crate2fed(eid.crateId()),
444  eid.isVMEid()?eid.spigot():eid.slot());
445  return std::string(name);
446  }
uint16_t crate2fed(int crate)
Definition: Utilities.cc:23
std::string hcaldqm::hashfunctions::name_Fiber ( HcalElectronicsId const &  )

Definition at line 525 of file HashFunctions.cc.

526  {
527  return "None";
528  }
std::string hcaldqm::hashfunctions::name_FiberCh ( HcalElectronicsId const &  )

Definition at line 543 of file HashFunctions.cc.

544  {
545  return "None";
546  }
std::string hcaldqm::hashfunctions::name_FiberFiberCh ( HcalElectronicsId const &  )

Definition at line 534 of file HashFunctions.cc.

535  {
536  return "None";
537  }
std::string hcaldqm::hashfunctions::name_HBHEPartition ( HcalDetId const &  did)

Definition at line 265 of file HashFunctions.cc.

References EnergyCorrector::c, HcalDetId::iphi(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

266  {
267  char c;
268  if (did.iphi()>=3 && did.iphi()<=26)
269  c = 'a';
270  else if (did.iphi()>=27 && did.iphi()<=50)
271  c = 'b';
272  else
273  c = 'c';
274  char name[10];
275  sprintf(name, "HBHE%c", c);
276  return std::string(name);
277  }
std::string hcaldqm::hashfunctions::name_HFPMiphi ( HcalDetId const &  did)

Definition at line 251 of file HashFunctions.cc.

References HcalDetId::ieta(), HcalDetId::iphi(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

252  {
253  char name[10];
254  sprintf(name, "HF%siphi%d", did.ieta()>0 ? "P" : "M", did.iphi());
255  return std::string(name);
256  }
std::string hcaldqm::hashfunctions::name_ieta ( HcalDetId const &  did)

Definition at line 224 of file HashFunctions.cc.

References HcalDetId::ieta(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

225  {
226  char name[10];
227  sprintf(name, "ieta%d", did.ieta());
228  return std::string(name);
229  }
std::string hcaldqm::hashfunctions::name_iphi ( HcalDetId const &  did)

Definition at line 211 of file HashFunctions.cc.

References HcalDetId::iphi(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

212  {
213  char name[10];
214  sprintf(name, "iphi%d", did.iphi());
215  return std::string(name);
216  }
std::string hcaldqm::hashfunctions::name_Subdet ( HcalDetId const &  did)

Definition at line 92 of file HashFunctions.cc.

References HcalDetId::subdet(), and hcaldqm::constants::SUBDET_NAME.

93  {
94  return constants::SUBDET_NAME[did.subdet()-1];
95  }
std::string const SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:133
std::string hcaldqm::hashfunctions::name_Subdetdepth ( HcalDetId const &  did)

Definition at line 169 of file HashFunctions.cc.

References HcalDetId::depth(), mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, HcalDetId::subdet(), and hcaldqm::constants::SUBDET_NAME.

170  {
171  char name[20];
172  sprintf(name, "%sdepth%d",
173  constants::SUBDET_NAME[did.subdet()-1].c_str(),
174  did.depth());
175  return std::string(name);
176  }
std::string const SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:133
std::string hcaldqm::hashfunctions::name_Subdetieta ( HcalDetId const &  did)

Definition at line 147 of file HashFunctions.cc.

References HcalDetId::ieta(), mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, HcalDetId::subdet(), and hcaldqm::constants::SUBDET_NAME.

148  {
149  char name[20];
150  sprintf(name, "%sieta%d",
151  constants::SUBDET_NAME[did.subdet()-1].c_str(),
152  did.ieta());
153  return std::string(name);
154  }
std::string const SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:133
std::string hcaldqm::hashfunctions::name_Subdetiphi ( HcalDetId const &  did)

Definition at line 125 of file HashFunctions.cc.

References HcalDetId::iphi(), mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, HcalDetId::subdet(), and hcaldqm::constants::SUBDET_NAME.

126  {
127  char name[10];
128  sprintf(name, "%siphi%d",
129  constants::SUBDET_NAME[did.subdet()-1].c_str(),
130  did.iphi());
131  return std::string(name);
132  }
std::string const SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:133
std::string hcaldqm::hashfunctions::name_SubdetPM ( HcalDetId const &  did)

Definition at line 107 of file HashFunctions.cc.

References HcalDetId::ieta(), mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, HcalDetId::subdet(), and hcaldqm::constants::SUBDET_NAME.

108  {
109  char name[10];
110  sprintf(name, "%s%s",constants::SUBDET_NAME[did.subdet()-1].c_str(),
111  did.ieta()>0 ? "P" : "M");
112  return std::string(name);
113  }
std::string const SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:133
std::string hcaldqm::hashfunctions::name_SubdetPMiphi ( HcalDetId const &  did)

Definition at line 190 of file HashFunctions.cc.

References HcalDetId::ieta(), HcalDetId::iphi(), mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, HcalDetId::subdet(), and hcaldqm::constants::SUBDET_NAME.

191  {
192  char name[20];
193  sprintf(name, "%s%siphi%d",
194  constants::SUBDET_NAME[did.subdet()-1].c_str(),
195  did.ieta()>0 ? "P" : "M", did.iphi());
196  return std::string(name);
197  }
std::string const SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:133
std::string hcaldqm::hashfunctions::name_TChannel ( HcalTrigTowerDetId const &  tid)

Definition at line 709 of file HashFunctions.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

710  {
711  std::ostringstream stream;
712  stream << tid;
713  return std::string(stream.str());
714  }
std::string hcaldqm::hashfunctions::name_TTdepth ( HcalTrigTowerDetId const &  tid)

Definition at line 696 of file HashFunctions.cc.

References HcalTrigTowerDetId::depth(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

697  {
698  char name[10];
699  sprintf(name, "depth%d", tid.depth());
700  return std::string(name);
701  }
std::string hcaldqm::hashfunctions::name_TTSubdet ( HcalTrigTowerDetId const &  tid)

Definition at line 626 of file HashFunctions.cc.

References HcalTrigTowerDetId::ietaAbs(), and hcaldqm::constants::TPSUBDET_NAME.

627  {
628  return constants::TPSUBDET_NAME[tid.ietaAbs()<29?0:1];
629  }
std::string const TPSUBDET_NAME[TPSUBDET_NUM]
Definition: Constants.h:137
std::string hcaldqm::hashfunctions::name_TTSubdetieta ( HcalTrigTowerDetId const &  tid)

Definition at line 687 of file HashFunctions.cc.

688  {
689  return "None";
690  }
std::string hcaldqm::hashfunctions::name_TTSubdetPM ( HcalTrigTowerDetId const &  tid)

Definition at line 641 of file HashFunctions.cc.

References HcalTrigTowerDetId::ieta(), HcalTrigTowerDetId::ietaAbs(), and hcaldqm::constants::TPSUBDETPM_NAME.

Referenced by name_TTSubdetPMiphi().

642  {
644  tid.ietaAbs()<29?(tid.ieta()<0?0:1):(tid.ieta()<0?2:3)];
645  }
std::string const TPSUBDETPM_NAME[2 *TPSUBDET_NUM]
Definition: Constants.h:138
std::string hcaldqm::hashfunctions::name_TTSubdetPMiphi ( HcalTrigTowerDetId const &  tid)

Definition at line 661 of file HashFunctions.cc.

References HcalTrigTowerDetId::iphi(), mergeVDriftHistosByStation::name, name_TTSubdetPM(), and AlCaHLTBitMon_QueryRunRegistry::string.

662  {
663  char name[10];
664  sprintf(name, "%siphi%d", name_TTSubdetPM(tid).c_str(),
665  tid.iphi());
666  return std::string(name);
667  }
std::string name_TTSubdetPM(HcalTrigTowerDetId const &)

Variable Documentation

hash_function_did const hcaldqm::hashfunctions::hash_did[nHashType_did]
Initial value:
= {
}
uint32_t hash_Subdetdepth(HcalDetId const &)
uint32_t hash_SubdetPM(HcalDetId const &)
uint32_t hash_SubdetPMiphi(HcalDetId const &)
uint32_t hash_Subdetiphi(HcalDetId const &)
uint32_t hash_Subdetieta(HcalDetId const &)
uint32_t hash_iphi(HcalDetId const &)
uint32_t hash_DChannel(HcalDetId const &)
uint32_t hash_depth(HcalDetId const &)
uint32_t hash_Subdet(HcalDetId const &)
uint32_t hash_ieta(HcalDetId const &)
uint32_t hash_HFPMiphi(HcalDetId const &)
uint32_t hash_HBHEPartition(HcalDetId const &)

Definition at line 167 of file HashFunctions.h.

Referenced by hcaldqm::mapper::HashMapper::getHash().

hash_function_eid const hcaldqm::hashfunctions::hash_eid[nHashType_eid-nHashType_did-1]
Initial value:
= {
}
uint32_t hash_Crate(HcalElectronicsId const &)
uint32_t hash_FED(HcalElectronicsId const &)
uint32_t hash_FiberFiberCh(HcalElectronicsId const &)
uint32_t hash_Fiber(HcalElectronicsId const &)
uint32_t hash_FEDSpigot(HcalElectronicsId const &)
uint32_t hash_FEDSlot(HcalElectronicsId const &)
uint32_t hash_FiberCh(HcalElectronicsId const &)
uint32_t hash_CrateSlot(HcalElectronicsId const &)
uint32_t hash_CrateSpigot(HcalElectronicsId const &)
uint32_t hash_Electronics(HcalElectronicsId const &)
uint32_t hash_EChannel(HcalElectronicsId const &)

Definition at line 173 of file HashFunctions.h.

Referenced by hcaldqm::mapper::HashMapper::getHash().

std::string const hcaldqm::hashfunctions::hash_names[nhashes]
Initial value:
= {
"Subdet", "Subdetiphi", "Subdetieta", "Subdetdepth",
"SubdetPM", "SubdetPMiphi", "iphi", "ieta", "depth",
"HFPMiphi", "HBHEPartition", "DChannel",
"FED", "FEDSpigot", "FEDSlot",
"Crate", "CrateSpigot", "CrateSlot",
"Fiber", "FiberFiberCh", "FiberCh",
"Electronics", "EChannel",
"TTSubdet", "TTSubdetPM", "TTSubdetPMiphi",
"TTSubdetieta", "TTdepth", "TChannel"
}

Definition at line 201 of file HashFunctions.h.

Referenced by hcaldqm::mapper::HashMapper::getHashTypeName().

hash_function_tid const hcaldqm::hashfunctions::hash_tid[nHashType_tid-nHashType_eid-1]
Initial value:
= {
}
uint32_t hash_TTSubdet(HcalTrigTowerDetId const &)
uint32_t hash_TTSubdetieta(HcalTrigTowerDetId const &)
uint32_t hash_TTSubdetPM(HcalTrigTowerDetId const &)
uint32_t hash_TChannel(HcalTrigTowerDetId const &)
uint32_t hash_TTSubdetPMiphi(HcalTrigTowerDetId const &)
uint32_t hash_TTdepth(HcalTrigTowerDetId const &)

Definition at line 179 of file HashFunctions.h.

Referenced by hcaldqm::mapper::HashMapper::getHash().

name_function_did const hcaldqm::hashfunctions::name_did[nHashType_did]
Initial value:
= {
}
std::string name_Subdetieta(HcalDetId const &)
std::string name_Subdetiphi(HcalDetId const &)
std::string name_SubdetPM(HcalDetId const &)
std::string name_DChannel(HcalDetId const &)
std::string name_HFPMiphi(HcalDetId const &)
std::string name_SubdetPMiphi(HcalDetId const &)
std::string name_ieta(HcalDetId const &)
std::string name_HBHEPartition(HcalDetId const &)
std::string name_depth(HcalDetId const &)
std::string name_iphi(HcalDetId const &)
std::string name_Subdet(HcalDetId const &)
std::string name_Subdetdepth(HcalDetId const &)

Definition at line 183 of file HashFunctions.h.

Referenced by hcaldqm::mapper::HashMapper::getName().

name_function_eid const hcaldqm::hashfunctions::name_eid[nHashType_eid-nHashType_did-1]
Initial value:
= {
}
std::string name_CrateSpigot(HcalElectronicsId const &)
std::string name_Electronics(HcalElectronicsId const &)
std::string name_CrateSlot(HcalElectronicsId const &)
std::string name_Crate(HcalElectronicsId const &)
std::string name_FiberFiberCh(HcalElectronicsId const &)
std::string name_FiberCh(HcalElectronicsId const &)
std::string name_EChannel(HcalElectronicsId const &)
std::string name_FEDSpigot(HcalElectronicsId const &)
std::string name_FED(HcalElectronicsId const &)
std::string name_Fiber(HcalElectronicsId const &)
std::string name_FEDSlot(HcalElectronicsId const &)

Definition at line 189 of file HashFunctions.h.

Referenced by hcaldqm::mapper::HashMapper::getName().

name_function_tid const hcaldqm::hashfunctions::name_tid[nHashType_tid-nHashType_eid-1]
Initial value:
= {
}
std::string name_TTdepth(HcalTrigTowerDetId const &)
std::string name_TChannel(HcalTrigTowerDetId const &)
std::string name_TTSubdet(HcalTrigTowerDetId const &)
std::string name_TTSubdetieta(HcalTrigTowerDetId const &)
std::string name_TTSubdetPMiphi(HcalTrigTowerDetId const &)
std::string name_TTSubdetPM(HcalTrigTowerDetId const &)

Definition at line 195 of file HashFunctions.h.

Referenced by hcaldqm::mapper::HashMapper::getName().

int const hcaldqm::hashfunctions::nhashes