#include <HcalGenericDetId.h>
Public Types | |
enum | hashlimits { HBhalf = 1296, HEhalf = 1296, HEhalfh2mode = 4032, HOhalf = 1080, HFhalf = 864, HThalf = 2088, ZDChalf = 11, CASTORhalf = 224, CALIBhalf = 693 } |
enum | HcalGenericSubdetector { HcalGenEmpty =0, HcalGenBarrel =1, HcalGenEndcap =2, HcalGenOuter =3, HcalGenForward =4, HcalGenTriggerTower =5, HcalGenZDC =8, HcalGenCalibration =9, HcalGenCastor =10, HcalGenUnknown =99 } |
Public Types inherited from DetId | |
enum | Detector { Tracker =1, Muon =2, Ecal =3, Hcal =4, Calo =5 } |
Public Member Functions | |
HcalGenericSubdetector | genericSubdet () const |
int | hashedId (bool h2mode_=false) 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 |
Public Member Functions inherited from DetId | |
Detector | det () const |
get the detector field from this detid More... | |
DetId () | |
Create an empty or null id (also for persistence) More... | |
DetId (uint32_t id) | |
Create an id from a raw number. More... | |
DetId (Detector det, int subdet) | |
Create an id, filling the detector and subdetector fields as specified. More... | |
bool | null () const |
is this a null id ? More... | |
operator uint32_t () const | |
bool | operator!= (DetId id) const |
inequality More... | |
uint32_t | operator() () const |
bool | operator< (DetId id) const |
comparison More... | |
bool | operator== (DetId id) const |
equality More... | |
uint32_t | rawId () const |
get the raw id More... | |
int | subdetId () const |
get the contents of the subdetector field (not cast into any detector's numbering enum) More... | |
Additional Inherited Members | |
Static Public Attributes inherited from DetId | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
R.Ofierzynski, 22.02.2008, added hashedId
Definition at line 16 of file HcalGenericDetId.h.
Enumerator | |
---|---|
HBhalf | |
HEhalf | |
HEhalfh2mode | |
HOhalf | |
HFhalf | |
HThalf | |
ZDChalf | |
CASTORhalf | |
CALIBhalf |
Definition at line 35 of file HcalGenericDetId.h.
Enumerator | |
---|---|
HcalGenEmpty | |
HcalGenBarrel | |
HcalGenEndcap | |
HcalGenOuter | |
HcalGenForward | |
HcalGenTriggerTower | |
HcalGenZDC | |
HcalGenCalibration | |
HcalGenCastor | |
HcalGenUnknown |
Definition at line 18 of file HcalGenericDetId.h.
|
inline |
Definition at line 20 of file HcalGenericDetId.h.
|
inline |
Definition at line 21 of file HcalGenericDetId.h.
|
inline |
Definition at line 22 of file HcalGenericDetId.h.
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(), HcalZDCDetId::SubdetectorId, HcalCastorDetId::SubdetectorId, and DetId::subdetId().
Referenced by HcalAmplifier::addPedestals(), HcalCovarianceMatrices::addValues(), HcalCholeskyMatrices::addValues(), HcalCondObjectContainer< Item >::addValues(), CastorCondObjectContainer< Item >::addValues(), HcalLuttoDB::analyze(), HcalCovarianceMatrices::exists(), HcalCholeskyMatrices::exists(), HcalCondObjectContainer< Item >::exists(), CastorCondObjectContainer< Item >::exists(), HcalPacker::findSamples(), HcalLogicalMap::getHcalFrontEndId(), HcalSeverityLevelComputer::getSeverityLevel(), HcalCovarianceMatrices::getValues(), HcalCondObjectContainer< Item >::getValues(), HcalCholeskyMatrices::getValues(), CastorCondObjectContainer< Item >::getValues(), hashedId(), HcalText2DetIdConverter::init(), isHcalCalibDetId(), isHcalCastorDetId(), isHcalDetId(), isHcalTrigTowerDetId(), isHcalZDCDetId(), CastorDbHardcode::makeGain(), CastorDbHardcode::makePedestal(), CastorDbHardcode::makeQIECoder(), CastorDbASCIIIO::DetIdLess::operator()(), and HcalSeverityLevelComputer::recoveredRecHit().
int HcalGenericDetId::hashedId | ( | bool | h2mode_ = false | ) | const |
Definition at line 91 of file HcalGenericDetId.cc.
References abs, HcalCalibDetId::calibFlavor(), HcalCalibDetId::CalibrationBox, CASTORhalf, HcalCalibDetId::cboxChannel(), HcalZDCDetId::channel(), gather_cfg::cout, HcalDetId::depth(), HcalZDCDetId::EM, genericSubdet(), HcalZDCDetId::HAD, HBhalf, HcalBarrel, HcalEndcap, HcalForward, HcalGenBarrel, HcalGenCalibration, HcalGenCastor, HcalGenEndcap, HcalGenForward, HcalGenOuter, HcalGenTriggerTower, HcalGenZDC, HcalOuter, HcalCalibDetId::hcalSubdet(), HEhalf, HFhalf, HcalCalibDetId::HOCrosstalk, HOhalf, HThalf, HcalCalibDetId::ieta(), HcalDetId::ietaAbs(), HcalTrigTowerDetId::ietaAbs(), getHLTprescales::index, HcalDetId::iphi(), HcalTrigTowerDetId::iphi(), HcalCalibDetId::iphi(), HcalZDCDetId::LUM, HcalCastorDetId::module(), DetId::rawId(), HcalZDCDetId::section(), HcalCastorDetId::sector(), ZDChalf, HcalDetId::zside(), HcalZDCDetId::zside(), HcalTrigTowerDetId::zside(), HcalCastorDetId::zside(), and HcalCalibDetId::zside().
Referenced by HcalCovarianceMatrices::addValues(), HcalCholeskyMatrices::addValues(), HcalCondObjectContainer< Item >::addValues(), CastorCondObjectContainer< Item >::addValues(), HcalLogicalMapGenerator::buildCALIBMap(), HcalLogicalMapGenerator::buildHBEFTMap(), HcalLogicalMapGenerator::buildHOXMap(), HcalCovarianceMatrices::exists(), HcalCholeskyMatrices::exists(), HcalCondObjectContainer< Item >::exists(), CastorCondObjectContainer< Item >::exists(), HcalLogicalMap::getHcalFrontEndId(), HcalCovarianceMatrices::getValues(), HcalCholeskyMatrices::getValues(), HcalCondObjectContainer< Item >::getValues(), and CastorCondObjectContainer< Item >::getValues().
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().
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().
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().
bool HcalGenericDetId::isHcalTrigTowerDetId | ( | ) | const |
Definition at line 59 of file HcalGenericDetId.cc.
References genericSubdet(), and HcalGenTriggerTower.
Referenced by HcalText2DetIdConverter::init(), and HcalText2DetIdConverter::isHcalTrigTowerDetId().
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().
HcalOtherSubdetector HcalGenericDetId::otherSubdet | ( | ) | const |
Definition at line 15 of file HcalGenericDetId.cc.
References HcalOther, HcalOtherEmpty, DetId::rawId(), and DetId::subdetId().
Referenced by genericSubdet().