#include <HcalZDCDetId.h>
Public Types | |
enum | { kSizeForDenseIndexing = kSizeForDenseIndexingRun1 } |
enum | Section { Unknown = 0, EM = 1, HAD = 2, LUM = 3, RPD = 4 } |
Public Types inherited from DetId | |
enum | Detector { Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4, Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8, HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11 } |
Public Member Functions | |
constexpr int32_t | channel () const |
get the channel More... | |
constexpr uint32_t | denseIndex () const |
constexpr int32_t | depth () const |
get the depth (1 for EM, channel + 1 for HAD, 2 for RPD, not sure yet for LUM, leave as default) More... | |
constexpr | HcalZDCDetId () |
constexpr | HcalZDCDetId (uint32_t rawid) |
constexpr | HcalZDCDetId (Section section, bool true_for_positive_eta, int32_t channel) |
constexpr | HcalZDCDetId (const DetId &gen) |
constexpr bool | operator!= (DetId gen) const |
constexpr HcalZDCDetId & | operator= (const DetId &gen) |
constexpr bool | operator== (DetId gen) const |
constexpr Section | section () const |
get the section More... | |
constexpr int32_t | zside () const |
get the z-side of the cell (1/-1) More... | |
Public Member Functions inherited from DetId | |
constexpr Detector | det () const |
get the detector field from this detid More... | |
constexpr | DetId () |
Create an empty or null id (also for persistence) More... | |
constexpr | DetId (uint32_t id) |
Create an id from a raw number. More... | |
constexpr | DetId (Detector det, int subdet) |
Create an id, filling the detector and subdetector fields as specified. More... | |
constexpr bool | null () const |
is this a null id ? More... | |
constexpr | operator uint32_t () const |
constexpr bool | operator!= (DetId id) const |
inequality More... | |
constexpr uint32_t | operator() () const |
constexpr bool | operator< (DetId id) const |
comparison More... | |
constexpr bool | operator== (DetId id) const |
equality More... | |
constexpr uint32_t | rawId () const |
get the raw id More... | |
constexpr int | subdetId () const |
get the contents of the subdetector field (not cast into any detector's numbering enum) More... | |
Static Public Member Functions | |
static constexpr HcalZDCDetId | detIdFromDenseIndex (uint32_t di) |
static constexpr uint32_t | newForm (const uint32_t &di) |
static constexpr bool | newFormat (const uint32_t &di) |
static constexpr bool | validDenseIndex (const uint32_t &di) |
static constexpr bool | validDetId (Section se, int32_t dp) |
Static Public Attributes | |
static constexpr int32_t | kSizeForDenseIndexingRun1 = 2 * kDepRun1 |
static constexpr int32_t | kSizeForDenseIndexingRun3 = 2 * kDepRun3 |
static constexpr uint32_t | kZDCChannelMask1 = 0xF |
static constexpr uint32_t | kZDCChannelMask2 = 0x7F |
static constexpr uint32_t | kZDCnewFormat = 0x100 |
static constexpr uint32_t | kZDCRPDMask = 0x80 |
static constexpr uint32_t | kZDCSectionMask = 0x3 |
static constexpr uint32_t | kZDCSectionOffset = 4 |
static constexpr uint32_t | kZDCZsideMask = 0x40 |
static constexpr int32_t | SubdetectorId = 2 |
Static Public Attributes inherited from DetId | |
static const int | kDetMask = 0xF |
static const int | kDetOffset = 28 |
static const int | kSubdetMask = 0x7 |
static const int | kSubdetOffset = 25 |
Private Types | |
enum | { kDepEM = 5, kDepHAD = 4, kDepLUM = 2, kDepRPD = 16, kDepRun1 = kDepEM + kDepHAD + kDepLUM, kDepTot = kDepRun1 + kDepRPD, kDepRun3 = kDepTot } |
Static Private Member Functions | |
static constexpr uint32_t | packHcalZDCDetId (const Section &se, const bool &zside, const int32_t &channel) |
static constexpr void | unpackHcalZDCDetId (const uint32_t &id, Section &se, bool &zside, int32_t &channel) |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Contents of the HcalZDCDetId (Old): [7] Set for RPD [6] Z position (true for positive) [5:4] Section (EM/HAD/Lumi) [3:0] Channel Contents of the HcalZDCDetId (New): [8] Set to 1 for new format [7] Set for RPD [6] Z position (true for positive) [5:4] Section (EM/HAD/Lumi) [3:0] Chaneel for EM/HAD/Lumi [5:0] Channel for RPD
Definition at line 24 of file HcalZDCDetId.h.
|
private |
Enumerator | |
---|---|
kDepEM | |
kDepHAD | |
kDepLUM | |
kDepRPD | |
kDepRun1 | |
kDepTot | |
kDepRun3 |
Definition at line 165 of file HcalZDCDetId.h.
anonymous enum |
Enumerator | |
---|---|
kSizeForDenseIndexing |
Definition at line 205 of file HcalZDCDetId.h.
Enumerator | |
---|---|
Unknown | |
EM | |
HAD | |
LUM | |
RPD |
Definition at line 33 of file HcalZDCDetId.h.
|
inline |
Create a null cellid
Definition at line 38 of file HcalZDCDetId.h.
Referenced by detIdFromDenseIndex().
|
inline |
Create cellid from raw id (0=invalid tower id)
Definition at line 40 of file HcalZDCDetId.h.
|
inline |
Constructor from section, eta sign, and channel
Definition at line 42 of file HcalZDCDetId.h.
References channel(), DetId::id_, packHcalZDCDetId(), and section().
|
inline |
Constructor from a generic cell id
Definition at line 46 of file HcalZDCDetId.h.
References DetId::Calo, TauDecayModes::dec, Exception, DetId::id_, newForm(), and SubdetectorId.
|
inline |
get the channel
Definition at line 104 of file HcalZDCDetId.h.
References DetId::id_, kZDCChannelMask1, kZDCChannelMask2, newForm(), RPD, and section().
Referenced by ZDCDigiStudy::analyze(), ZdcTBAnalysis::analyze(), denseIndex(), depth(), hcalTransformedId(), HcalZDCDetId(), HcalCondObjectContainerBase::indexFor(), HcalText2DetIdConverter::init(), ZdcTopology::longitudinal(), newForm(), packHcalZDCDetId(), ZDCLogicalMapEntry::printLMapLine(), L1TZDCProducer::produce(), ZdcTopology::transverse(), unpackHcalZDCDetId(), and CaloGenericDetId::validDetId().
|
inline |
Definition at line 126 of file HcalZDCDetId.h.
References channel(), HAD, kDepEM, kDepHAD, kDepRPD, kDepRun1, LUM, RPD, section(), and zside().
Referenced by HcalCondObjectContainerBase::indexFor(), and ZdcGeometry::indexFor().
|
inline |
get the depth (1 for EM, channel + 1 for HAD, 2 for RPD, not sure yet for LUM, leave as default)
Definition at line 92 of file HcalZDCDetId.h.
References channel(), EM, HAD, RPD, and section().
Referenced by ZdcTBAnalysis::analyze(), and ZDCLogicalMapEntry::printLMapLine().
|
inlinestatic |
Definition at line 137 of file HcalZDCDetId.h.
References Calorimetry_cff::dp, EM, HAD, HcalZDCDetId(), recoMuon::in, kDepEM, kDepHAD, kDepRPD, kDepRun1, kDepTot, LUM, RPD, Unknown, and validDenseIndex().
Referenced by CaloGenericDetId::CaloGenericDetId().
|
inlinestatic |
Definition at line 114 of file HcalZDCDetId.h.
References channel(), l1ctLayer2EG_cff::id, newFormat(), packHcalZDCDetId(), Unknown, unpackHcalZDCDetId(), and zside().
Referenced by channel(), HcalZDCDetId(), operator!=(), operator=(), operator==(), and section().
|
inlinestatic |
|
inline |
Definition at line 71 of file HcalZDCDetId.h.
References globals_cff::id1, globals_cff::id2, DetId::id_, and newForm().
|
inline |
Assignment from a generic cell id
Definition at line 54 of file HcalZDCDetId.h.
References DetId::Calo, TauDecayModes::dec, Exception, DetId::id_, newForm(), and SubdetectorId.
|
inline |
Comparison operator
Definition at line 62 of file HcalZDCDetId.h.
References globals_cff::id1, globals_cff::id2, DetId::id_, and newForm().
|
inlinestaticprivate |
Definition at line 175 of file HcalZDCDetId.h.
References DetId::Calo, channel(), DetId::DetId(), l1ctLayer2EG_cff::id, kZDCChannelMask1, kZDCChannelMask2, kZDCnewFormat, kZDCRPDMask, kZDCSectionMask, kZDCSectionOffset, kZDCZsideMask, RPD, SubdetectorId, and zside().
Referenced by HcalZDCDetId(), and newForm().
|
inline |
get the section
Definition at line 84 of file HcalZDCDetId.h.
References DetId::id_, kZDCRPDMask, kZDCSectionMask, kZDCSectionOffset, newForm(), and RPD.
Referenced by ZDCDigiStudy::analyze(), ZdcTBAnalysis::analyze(), channel(), denseIndex(), depth(), hcalTransformedId(), HcalZDCDetId(), HcalCondObjectContainerBase::indexFor(), HcalText2DetIdConverter::init(), ZdcTopology::longitudinal(), VarParsing.VarParsing::parseArguments(), ZDCLogicalMapEntry::printLMapLine(), L1TZDCProducer::produce(), ZdcTopology::transverse(), and CaloGenericDetId::validDetId().
|
inlinestaticprivate |
Definition at line 190 of file HcalZDCDetId.h.
References channel(), kZDCChannelMask1, kZDCChannelMask2, kZDCnewFormat, kZDCRPDMask, kZDCSectionMask, kZDCSectionOffset, kZDCZsideMask, RPD, and zside().
Referenced by newForm().
|
inlinestatic |
Definition at line 135 of file HcalZDCDetId.h.
References kSizeForDenseIndexing.
Referenced by detIdFromDenseIndex().
|
inlinestatic |
Definition at line 158 of file HcalZDCDetId.h.
References Calorimetry_cff::dp, EM, RemoveAddSevLevel::flag, HAD, kDepEM, kDepHAD, kDepLUM, kDepRPD, LUM, and RPD.
Referenced by CaloGenericDetId::validDetId().
|
inline |
get the z-side of the cell (1/-1)
Definition at line 82 of file HcalZDCDetId.h.
References DetId::id_, and kZDCZsideMask.
Referenced by ZdcGeometry::alignmentTransformIndexLocal(), ZDCDigiStudy::analyze(), ZdcTBAnalysis::analyze(), denseIndex(), hcalTransformedId(), HcalCondObjectContainerBase::indexFor(), HcalText2DetIdConverter::init(), ZdcTopology::longitudinal(), newForm(), packHcalZDCDetId(), ZDCLogicalMapEntry::printLMapLine(), reco::CentralityProducer::produce(), L1TZDCProducer::produce(), ZdcTopology::transverse(), and unpackHcalZDCDetId().
|
static |
Definition at line 203 of file HcalZDCDetId.h.
|
static |
Definition at line 204 of file HcalZDCDetId.h.
|
static |
Definition at line 26 of file HcalZDCDetId.h.
Referenced by channel(), packHcalZDCDetId(), and unpackHcalZDCDetId().
|
static |
Definition at line 27 of file HcalZDCDetId.h.
Referenced by channel(), packHcalZDCDetId(), and unpackHcalZDCDetId().
|
static |
Definition at line 32 of file HcalZDCDetId.h.
Referenced by newFormat(), packHcalZDCDetId(), and unpackHcalZDCDetId().
|
static |
Definition at line 31 of file HcalZDCDetId.h.
Referenced by packHcalZDCDetId(), section(), and unpackHcalZDCDetId().
|
static |
Definition at line 28 of file HcalZDCDetId.h.
Referenced by packHcalZDCDetId(), section(), and unpackHcalZDCDetId().
|
static |
Definition at line 29 of file HcalZDCDetId.h.
Referenced by packHcalZDCDetId(), section(), and unpackHcalZDCDetId().
|
static |
Definition at line 30 of file HcalZDCDetId.h.
Referenced by packHcalZDCDetId(), unpackHcalZDCDetId(), and zside().
|
static |
Definition at line 35 of file HcalZDCDetId.h.
Referenced by ZDCHitFilter::accepts(), HcalCondObjectContainer< HcalPedestalWidth >::addValues(), ValidateGeometry::analyze(), HcalTimeSlewSim::delay(), HcalPacker::findSamples(), HcalGenericDetId::genericSubdet(), HcalCondObjectContainer< HcalPedestalWidth >::getValues(), hcalEqualDetId(), HcalHitReconstructor::HcalHitReconstructor(), hcalTransformedId(), HcalZDCDetId(), HcalCondObjectContainerBase::indexFor(), HcalCondObjectContainer< HcalPedestalWidth >::initContainer(), CaloGenericDetId::isZDC(), ZdcHardcodeGeometryLoader::load(), operator<<(), operator=(), packHcalZDCDetId(), ZdcSimpleReconstructor::produce(), ZdcHitReconstructor::produce(), CaloGeometryBuilder::produceAligned(), HcalCondObjectContainerBase::sizeFor(), HcalCondObjectContainerBase::textForId(), ZdcUnpacker::unpack(), HcalUnpacker::unpackUTCA(), HcalUnpacker::unpackVME(), HcalDigitizer::updateGeometry(), ZdcHitReconstructor::ZdcHitReconstructor(), and ZdcSimpleReconstructor::ZdcSimpleReconstructor().