#include <HcalZDCDetId.h>
Public Types | |
enum | { kSizeForDenseIndexing = 2*kDepTot } |
enum | Section { Unknown =0, EM =1, HAD =2, LUM =3 } |
Public Types inherited from DetId | |
enum | Detector { Tracker =1, Muon =2, Ecal =3, Hcal =4, Calo =5 } |
Public Member Functions | |
int | channel () const |
get the channel More... | |
uint32_t | denseIndex () const |
int | depth () const |
get the depth (1 for EM, channel + 1 for HAD, not sure yet for LUM, leave as default) More... | |
HcalZDCDetId () | |
HcalZDCDetId (uint32_t rawid) | |
HcalZDCDetId (Section section, bool true_for_positive_eta, int channel) | |
HcalZDCDetId (const DetId &id) | |
HcalZDCDetId & | operator= (const DetId &id) |
Section | section () const |
get the section More... | |
int | zside () const |
get the z-side of the cell (1/-1) More... | |
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... | |
Static Public Member Functions | |
static HcalZDCDetId | detIdFromDenseIndex (uint32_t di) |
static bool | validDenseIndex (uint32_t di) |
static bool | validDetId (Section se, int dp) |
Static Public Attributes | |
static const int | SubdetectorId = 2 |
Static Public Attributes inherited from DetId | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Private Types | |
enum | { kDepEM = 5, kDepHAD = 4, kDepLUM = 2, kDepTot = kDepEM + kDepHAD + kDepLUM } |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Contents of the HcalZDCDetId : [6] Z position (true for positive) [5:4] Section (EM/HAD/Lumi) [3:0] Channel
Definition at line 16 of file HcalZDCDetId.h.
|
private |
Enumerator | |
---|---|
kDepEM | |
kDepHAD | |
kDepLUM | |
kDepTot |
Definition at line 52 of file HcalZDCDetId.h.
anonymous enum |
Enumerator | |
---|---|
kSizeForDenseIndexing |
Definition at line 59 of file HcalZDCDetId.h.
Enumerator | |
---|---|
Unknown | |
EM | |
HAD | |
LUM |
Definition at line 18 of file HcalZDCDetId.h.
HcalZDCDetId::HcalZDCDetId | ( | ) |
Create a null cellid
Definition at line 4 of file HcalZDCDetId.cc.
Referenced by detIdFromDenseIndex().
HcalZDCDetId::HcalZDCDetId | ( | uint32_t | rawid | ) |
HcalZDCDetId::HcalZDCDetId | ( | Section | section, |
bool | true_for_positive_eta, | ||
int | channel | ||
) |
Constructor from section, eta sign, and channel
Definition at line 11 of file HcalZDCDetId.cc.
References DetId::id_.
HcalZDCDetId::HcalZDCDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 17 of file HcalZDCDetId.cc.
References DetId::Calo, DetId::det(), edm::hlt::Exception, DetId::id_, DetId::null(), DetId::rawId(), SubdetectorId, and DetId::subdetId().
|
inline |
get the channel
Definition at line 40 of file HcalZDCDetId.h.
References DetId::id_.
Referenced by ZDCDigiStudy::analyze(), ZdcTBAnalysis::analyze(), denseIndex(), HcalCondObjectContainerBase::indexFor(), HcalText2DetIdConverter::init(), ZdcTopology::longitudinal(), ZdcHardcodeGeometryLoader::makeCell(), ZDCLogicalMapEntry::printLMapLine(), ZdcTopology::transverse(), and CaloGenericDetId::validDetId().
uint32_t HcalZDCDetId::denseIndex | ( | ) | const |
Definition at line 33 of file HcalZDCDetId.cc.
References channel(), HAD, kDepEM, kDepHAD, kDepTot, LUM, section(), and zside().
Referenced by HcalCondObjectContainerBase::indexFor().
|
inline |
get the depth (1 for EM, channel + 1 for HAD, not sure yet for LUM, leave as default)
Definition at line 38 of file HcalZDCDetId.h.
References DetId::id_.
Referenced by ZdcTBAnalysis::analyze(), and ZDCLogicalMapEntry::printLMapLine().
|
static |
Definition at line 42 of file HcalZDCDetId.cc.
References reco::dp, EM, HAD, HcalZDCDetId(), recoMuon::in, kDepEM, kDepHAD, kDepTot, LUM, and validDenseIndex().
Referenced by CaloGenericDetId::CaloGenericDetId().
HcalZDCDetId & HcalZDCDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 24 of file HcalZDCDetId.cc.
References DetId::Calo, DetId::det(), edm::hlt::Exception, DetId::id_, DetId::null(), DetId::rawId(), SubdetectorId, and DetId::subdetId().
|
inline |
get the section
Definition at line 36 of file HcalZDCDetId.h.
References DetId::id_.
Referenced by ZDCDigiStudy::analyze(), ZdcTBAnalysis::analyze(), denseIndex(), HcalCondObjectContainerBase::indexFor(), HcalText2DetIdConverter::init(), ZdcTopology::longitudinal(), ZdcHardcodeGeometryLoader::makeCell(), VarParsing.VarParsing::parseArguments(), ZDCLogicalMapEntry::printLMapLine(), ZdcTopology::transverse(), and CaloGenericDetId::validDetId().
|
inlinestatic |
Definition at line 44 of file HcalZDCDetId.h.
References kSizeForDenseIndexing.
Referenced by detIdFromDenseIndex().
|
static |
Definition at line 61 of file HcalZDCDetId.cc.
References EM, HAD, kDepEM, kDepHAD, kDepLUM, and LUM.
Referenced by CaloGenericDetId::validDetId().
|
inline |
get the z-side of the cell (1/-1)
Definition at line 34 of file HcalZDCDetId.h.
References DetId::id_.
Referenced by ZdcGeometry::alignmentTransformIndexLocal(), ZDCDigiStudy::analyze(), ZdcTBAnalysis::analyze(), Digi2Raw2Digi::compare(), denseIndex(), reco::CentralityProducer::filter(), HcalCondObjectContainerBase::indexFor(), HcalText2DetIdConverter::init(), ZdcTopology::longitudinal(), ZdcHardcodeGeometryLoader::makeCell(), ZDCLogicalMapEntry::printLMapLine(), and ZdcTopology::transverse().
|
static |
Definition at line 20 of file HcalZDCDetId.h.
Referenced by ZDCHitFilter::accepts(), HcalCondObjectContainer< Item >::addValues(), ValidateGeometry::analyze(), HcalTimeSlewSim::delay(), HcalHitCorrection::delay(), HcalPacker::findSamples(), HcalGenericDetId::genericSubdet(), HcalCondObjectContainer< Item >::getValues(), HcalHitReconstructor::HcalHitReconstructor(), HcalZDCDetId(), HcalCondObjectContainerBase::indexFor(), HcalCondObjectContainer< Item >::initContainer(), CaloGenericDetId::isZDC(), ZdcHardcodeGeometryLoader::load(), operator=(), ZdcSimpleReconstructor::produce(), ZdcHitReconstructor::produce(), CaloGeometryBuilder::produceAligned(), HcalCondObjectContainerBase::sizeFor(), HcalCondObjectContainerBase::textForId(), HcalHitCorrection::timeOfFlight(), HcalUnpacker::unpack(), HcalDigitizer::updateGeometry(), ZdcHitReconstructor::ZdcHitReconstructor(), and ZdcSimpleReconstructor::ZdcSimpleReconstructor().