#include <HcalCastorDetId.h>
Public Types | |
enum | { kNumberModulesPerEnd = 14, kNumberSectorsPerEnd = 16, kNumberCellsPerEnd = kNumberModulesPerEnd * kNumberSectorsPerEnd, kSizeForDenseIndexing = kNumberCellsPerEnd } |
enum | Section { Unknown = 0, EM = 1, HAD = 2 } |
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 | |
uint32_t | denseIndex () const |
HcalCastorDetId () | |
HcalCastorDetId (uint32_t rawid) | |
HcalCastorDetId (Section section, bool true_for_positive_eta, int sector, int module) | |
HcalCastorDetId (bool true_for_positive_eta, int sector, int module) | |
HcalCastorDetId (const DetId &id) | |
int | module () const |
get the module (1-2 for EM, 1-12 for HAD) More... | |
HcalCastorDetId & | operator= (const DetId &id) |
Section | section () const |
get the section More... | |
int | sector () const |
get the sector (1-16) More... | |
int | 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 HcalCastorDetId | detIdFromDenseIndex (uint32_t di) |
static bool | validDenseIndex (uint32_t din) |
static bool | validDetId (Section iSection, bool posEta, int iSector, int iMod) |
Static Public Attributes | |
static const int | SubdetectorId = 3 |
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 Member Functions | |
void | buildMe (Section section, bool true_for_positive_eta, int sector, int module) |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Contents of the HcalCastorDetId : [9] Z position (true for positive) [8:7] Section (EM/HAD) [6:4] sector (depth) [3:0] module
NEW: [8] z position [7:4] sector [3:0] module
Definition at line 23 of file HcalCastorDetId.h.
anonymous enum |
Enumerator | |
---|---|
kNumberModulesPerEnd | |
kNumberSectorsPerEnd | |
kNumberCellsPerEnd | |
kSizeForDenseIndexing |
Definition at line 67 of file HcalCastorDetId.h.
Enumerator | |
---|---|
Unknown | |
EM | |
HAD |
Definition at line 25 of file HcalCastorDetId.h.
HcalCastorDetId::HcalCastorDetId | ( | ) |
Create a null cellid
Definition at line 5 of file HcalCastorDetId.cc.
Referenced by detIdFromDenseIndex().
HcalCastorDetId::HcalCastorDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 7 of file HcalCastorDetId.cc.
HcalCastorDetId::HcalCastorDetId | ( | Section | section, |
bool | true_for_positive_eta, | ||
int | sector, | ||
int | module | ||
) |
Constructor from section, z-side, sector and module
Definition at line 14 of file HcalCastorDetId.cc.
References buildMe().
HcalCastorDetId::HcalCastorDetId | ( | bool | true_for_positive_eta, |
int | sector, | ||
int | module | ||
) |
Definition at line 19 of file HcalCastorDetId.cc.
References buildMe(), and Unknown.
HcalCastorDetId::HcalCastorDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 24 of file HcalCastorDetId.cc.
References DetId::Calo, TauDecayModes::dec, DetId::det(), Exception, DetId::id_, DetId::null(), DetId::rawId(), SubdetectorId, and DetId::subdetId().
|
private |
Definition at line 9 of file HcalCastorDetId.cc.
References DetId::id_, and module().
Referenced by HcalCastorDetId(), and validDenseIndex().
uint32_t HcalCastorDetId::denseIndex | ( | ) | const |
Definition at line 65 of file HcalCastorDetId.cc.
References kNumberCellsPerEnd, kNumberSectorsPerEnd, module(), sector(), and zside().
|
static |
Definition at line 73 of file HcalCastorDetId.cc.
References HcalCastorDetId(), kNumberCellsPerEnd, and kNumberSectorsPerEnd.
Referenced by CaloGenericDetId::CaloGenericDetId(), and validDenseIndex().
|
inline |
get the module (1-2 for EM, 1-12 for HAD)
Definition at line 58 of file HcalCastorDetId.h.
References DetId::id_.
Referenced by buildMe(), denseIndex(), CastorDigiMonitor::getDbData(), CastorTTRecord::getEnergy_fC(), CastorCondObjectContainer< Item >::hashed_id(), CastorTopology::incModule(), CastorTopology::incSector(), HcalCondObjectContainerBase::indexFor(), CastorText2DetIdConverter::init(), CastorHardcodeGeometryLoader::makeCell(), CastorDigiMonitor::processEvent(), CastorLEDMonitor::processEvent(), CastorCellProducer::produce(), section(), CastorUnpacker::unpack(), and CaloGenericDetId::validDetId().
HcalCastorDetId & HcalCastorDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 32 of file HcalCastorDetId.cc.
References DetId::Calo, TauDecayModes::dec, DetId::det(), Exception, DetId::id_, DetId::null(), DetId::rawId(), SubdetectorId, and DetId::subdetId().
HcalCastorDetId::Section HcalCastorDetId::section | ( | ) | const |
get the section
Definition at line 49 of file HcalCastorDetId.cc.
References EM, HAD, mod(), module(), and Unknown.
Referenced by CastorTopology::incModule(), CastorTopology::incSector(), CastorText2DetIdConverter::init(), CastorHardcodeGeometryLoader::makeCell(), operator<<(), VarParsing.VarParsing::parseArguments(), CaloGenericDetId::validDetId(), and zside().
|
inline |
get the sector (1-16)
Definition at line 62 of file HcalCastorDetId.h.
References DetId::id_.
Referenced by denseIndex(), CastorDigiMonitor::getDbData(), CastorTTRecord::getEnergy_fC(), CastorCondObjectContainer< Item >::hashed_id(), CastorTopology::incModule(), CastorTopology::incSector(), geometryXMLparser.DTAlignable::index(), HcalCondObjectContainerBase::indexFor(), CastorText2DetIdConverter::init(), CastorHardcodeGeometryLoader::makeCell(), CastorDigiMonitor::processEvent(), CastorLEDMonitor::processEvent(), CastorCellProducer::produce(), CastorUnpacker::unpack(), validDenseIndex(), and CaloGenericDetId::validDetId().
|
inlinestatic |
Definition at line 78 of file HcalCastorDetId.h.
References buildMe(), detIdFromDenseIndex(), kSizeForDenseIndexing, operator<<(), and sector().
|
static |
Definition at line 69 of file HcalCastorDetId.cc.
References kNumberModulesPerEnd, and kNumberSectorsPerEnd.
Referenced by CaloGenericDetId::validDetId(), and CastorTopology::validRaw().
|
inline |
get the z-side of the cell (1/-1)
Definition at line 50 of file HcalCastorDetId.h.
References DetId::id_, section(), and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by denseIndex(), CastorCondObjectContainer< Item >::hashed_id(), CastorTopology::incModule(), CastorTopology::incSector(), HcalCondObjectContainerBase::indexFor(), CastorText2DetIdConverter::init(), CastorHardcodeGeometryLoader::makeCell(), CastorCellProducer::produce(), CastorUnpacker::unpack(), and CaloGenericDetId::validDetId().
|
static |
Definition at line 28 of file HcalCastorDetId.h.
Referenced by CastorHitFilter::accepts(), HcalCondObjectContainer< Item >::addValues(), ValidateGeometry::analyze(), CastorSimpleReconstructor::CastorSimpleReconstructor(), CastorDigiProducer::checkGeometry(), CastorHitCorrection::delay(), HcalGenericDetId::genericSubdet(), CastorCondObjectContainer< Item >::getValues(), HcalCondObjectContainer< Item >::getValues(), HcalCastorDetId(), HcalCondObjectContainerBase::indexFor(), HcalCondObjectContainer< Item >::initContainer(), CaloGenericDetId::isCastor(), CastorHardcodeGeometryLoader::load(), operator=(), CastorSimpleReconstructor::produce(), CaloGeometryBuilder::produceAligned(), HcalCondObjectContainerBase::sizeFor(), CastorDigiProducer::sortHits(), HcalCondObjectContainerBase::textForId(), and CastorHitCorrection::timeOfFlight().