#include <HcalGenericDetId.h>
Public Types | |
enum | HcalGenericSubdetector { HcalGenEmpty = 0, HcalGenBarrel = 1, HcalGenEndcap = 2, HcalGenOuter = 3, HcalGenForward = 4, HcalGenTriggerTower = 5, HcalGenZDC = 8, HcalGenCalibration = 9, HcalGenCastor = 10, HcalGenUnknown = 99 } |
Public Member Functions | |
HcalGenericSubdetector | genericSubdet () const |
HcalGenericDetId () | |
HcalGenericDetId (uint32_t rawid) | |
HcalGenericDetId (const DetId &id) | |
bool | isHcalCalibDetId () const |
bool | isHcalCastorDetId () const |
bool | isHcalDetId () const |
bool | isHcalTrigTowerDetId () const |
bool | isHcalZDCDetId () const |
HcalOtherSubdetector | otherSubdet () const |
R.Ofierzynski, 22.02.2008, added hashedId
Definition at line 16 of file HcalGenericDetId.h.
HcalGenEmpty | |
HcalGenBarrel | |
HcalGenEndcap | |
HcalGenOuter | |
HcalGenForward | |
HcalGenTriggerTower | |
HcalGenZDC | |
HcalGenCalibration | |
HcalGenCastor | |
HcalGenUnknown |
Definition at line 18 of file HcalGenericDetId.h.
{HcalGenEmpty=0, HcalGenBarrel=1, HcalGenEndcap=2, HcalGenOuter=3, HcalGenForward=4, HcalGenTriggerTower=5, HcalGenZDC=8, HcalGenCalibration=9, HcalGenCastor=10, HcalGenUnknown=99};
HcalGenericDetId::HcalGenericDetId | ( | ) | [inline] |
Definition at line 20 of file HcalGenericDetId.h.
: DetId () {}
HcalGenericDetId::HcalGenericDetId | ( | uint32_t | rawid | ) | [inline] |
Definition at line 21 of file HcalGenericDetId.h.
: DetId (rawid) {}
HcalGenericDetId::HcalGenericDetId | ( | const DetId & | id | ) | [inline] |
Definition at line 22 of file HcalGenericDetId.h.
: DetId (id) {}
HcalGenericDetId::HcalGenericSubdetector HcalGenericDetId::genericSubdet | ( | ) | const |
Definition at line 20 of file HcalGenericDetId.cc.
References DetId::Calo, DetId::det(), DetId::Hcal, HcalBarrel, HcalCalibration, HcalEndcap, HcalForward, HcalGenBarrel, HcalGenCalibration, HcalGenCastor, HcalGenEmpty, HcalGenEndcap, HcalGenForward, HcalGenOuter, HcalGenTriggerTower, HcalGenUnknown, HcalGenZDC, HcalOther, HcalOuter, HcalTriggerTower, DetId::null(), otherSubdet(), HcalCastorDetId::SubdetectorId, HcalZDCDetId::SubdetectorId, and DetId::subdetId().
Referenced by HcalAmplifier::addPedestals(), HcalLuttoDB::analyze(), HcalShapes::defaultShape(), HcalPacker::findSamples(), HcalLogicalMap::getHcalFrontEndId(), HcalSeverityLevelComputer::getSeverityLevel(), HcalText2DetIdConverter::init(), isHcalCalibDetId(), isHcalCastorDetId(), isHcalDetId(), isHcalTrigTowerDetId(), isHcalZDCDetId(), CastorDbHardcode::makeGain(), CastorDbHardcode::makePedestal(), CastorDbHardcode::makeQIECoder(), CastorDbASCIIIO::DetIdLess::operator()(), and HcalSeverityLevelComputer::recoveredRecHit().
{ if (null()) return HcalGenEmpty; switch (det()) { case Calo : switch (subdetId()) { case HcalZDCDetId::SubdetectorId : return HcalGenZDC; case HcalCastorDetId::SubdetectorId : return HcalGenCastor; default: return HcalGenUnknown; } case Hcal : switch (HcalSubdetector(subdetId())) { case 0: return HcalGenEmpty; case HcalBarrel: return HcalGenBarrel; case HcalEndcap: return HcalGenEndcap; case HcalOuter: return HcalGenOuter; case HcalForward: return HcalGenForward; case HcalTriggerTower: return HcalGenTriggerTower; case HcalOther: switch (otherSubdet ()) { case HcalCalibration: return HcalGenCalibration; default: return HcalGenUnknown; } default: return HcalGenUnknown; } default: return HcalGenUnknown; } return HcalGenUnknown; }
bool HcalGenericDetId::isHcalCalibDetId | ( | ) | const |
Definition at line 54 of file HcalGenericDetId.cc.
References genericSubdet(), and HcalGenCalibration.
Referenced by HcalText2DetIdConverter::init(), HcalText2DetIdConverter::isHcalCalibDetId(), and HOHXLogicalMapEntry::printLMapLine().
{ HcalGenericSubdetector subdet = genericSubdet (); return subdet == HcalGenCalibration; }
bool HcalGenericDetId::isHcalCastorDetId | ( | ) | const |
Definition at line 69 of file HcalGenericDetId.cc.
References genericSubdet(), and HcalGenCastor.
Referenced by CastorText2DetIdConverter::init(), CastorText2DetIdConverter::isHcalCastorDetId(), and CastorSimParameterMap::simParameters().
{ HcalGenericSubdetector subdet = genericSubdet (); return subdet == HcalGenCastor; }
bool HcalGenericDetId::isHcalDetId | ( | ) | const |
Definition at line 49 of file HcalGenericDetId.cc.
References genericSubdet(), HcalGenBarrel, HcalGenEndcap, HcalGenForward, and HcalGenOuter.
Referenced by HcalText2DetIdConverter::init(), HcalText2DetIdConverter::isHcalDetId(), CastorDbASCIIIO::DetIdLess::operator()(), and HOHXLogicalMapEntry::printLMapLine().
{ HcalGenericSubdetector subdet = genericSubdet (); return subdet == HcalGenBarrel || subdet == HcalGenEndcap || subdet == HcalGenOuter || subdet == HcalGenForward; }
bool HcalGenericDetId::isHcalTrigTowerDetId | ( | ) | const |
Definition at line 59 of file HcalGenericDetId.cc.
References genericSubdet(), and HcalGenTriggerTower.
Referenced by HcalText2DetIdConverter::init(), and HcalText2DetIdConverter::isHcalTrigTowerDetId().
{ HcalGenericSubdetector subdet = genericSubdet (); return subdet == HcalGenTriggerTower; }
bool HcalGenericDetId::isHcalZDCDetId | ( | ) | const |
Definition at line 64 of file HcalGenericDetId.cc.
References genericSubdet(), and HcalGenZDC.
Referenced by HcalText2DetIdConverter::init(), HcalText2DetIdConverter::isHcalZDCDetId(), HcalSimParameterMap::setFrameSize(), and HcalSimParameterMap::simParameters().
{ HcalGenericSubdetector subdet = genericSubdet (); return subdet == HcalGenZDC; }
HcalOtherSubdetector HcalGenericDetId::otherSubdet | ( | ) | const |
Definition at line 15 of file HcalGenericDetId.cc.
References HcalOther, HcalOtherEmpty, DetId::rawId(), and DetId::subdetId().
Referenced by genericSubdet().
{ if (HcalSubdetector(subdetId()) != HcalOther) return HcalOtherEmpty; return HcalOtherSubdetector ((rawId()>>20)&0x1F); }