#include <HcalNumberingScheme.h>
Public Member Functions | |
virtual uint32_t | getUnitID (const HcalNumberingFromDDD::HcalID id) |
HcalNumberingScheme () | |
virtual | ~HcalNumberingScheme () |
Definition at line 13 of file HcalNumberingScheme.h.
HcalNumberingScheme::HcalNumberingScheme | ( | ) |
Definition at line 14 of file HcalNumberingScheme.cc.
: CaloNumberingScheme(0) { edm::LogInfo("HcalSim") << "Creating HcalNumberingScheme"; }
HcalNumberingScheme::~HcalNumberingScheme | ( | ) | [virtual] |
Definition at line 18 of file HcalNumberingScheme.cc.
{ edm::LogInfo("HcalSim") << "Deleting HcalNumberingScheme"; }
uint32_t HcalNumberingScheme::getUnitID | ( | const HcalNumberingFromDDD::HcalID | id | ) | [virtual] |
Reimplemented in HcalTestNumberingScheme.
Definition at line 22 of file HcalNumberingScheme.cc.
References getHLTprescales::index, LogDebug, and DetId::rawId().
Referenced by HCalSD::getHitFibreBundle(), HCalSD::getHitPMT(), and HCalSD::setDetUnitId().
{ int zside = 2*(id.zside) - 1; int etaR = zside*(id.etaR); HcalSubdetector subdet = (HcalSubdetector)(id.subdet); //pack it into an integer // to be consistent with HcalDetId convention uint32_t index = HcalDetId(subdet,etaR,id.phis,id.depth).rawId(); #ifdef DebugLog LogDebug("HcalSim") << "HcalNumberingScheme det = " << id.subdet << " depth/lay = " << id.depth << "/" << id.lay << " zside = " << id.zside << " eta/R = " << id.etaR << " phi = " << id.phis << " oldphi = " << id.phi << " packed index = 0x" << std::hex << index << std::dec; #endif return index; }