#include <ZdcTopology.h>
Public Member Functions | |
DetId | denseId2detId (uint32_t di) const override |
uint32_t | detId2DenseIndex (const DetId &id) const |
std::vector< DetId > | down (const DetId &id) const override |
std::vector< DetId > | east (const DetId &id) const override |
void | exclude (const HcalZDCDetId &id) |
void | exclude (int zside) |
void | exclude (int zside, HcalZDCDetId::Section section) |
int | exclude (int zside, HcalZDCDetId::Section section, int ich1, int ich2) |
int | firstCell (HcalZDCDetId::Section section) const |
uint32_t | kSizeForDenseIndexing () const |
int | lastCell (HcalZDCDetId::Section section) const |
virtual std::vector< DetId > | longitudinal (const DetId &id) const |
HcalTopologyMode::Mode | mode () const |
virtual unsigned int | ncells () const |
return a count of valid cells (for dense indexing use) More... | |
int | ncells (HcalZDCDetId::Section section) const |
std::vector< DetId > | north (const DetId &id) const override |
std::vector< DetId > | south (const DetId &id) const override |
virtual std::vector< DetId > | transverse (const DetId &id) const |
std::vector< DetId > | up (const DetId &id) const override |
virtual bool | valid (const DetId &) const |
virtual bool | valid (const HcalZDCDetId &id) const |
bool | validDenseIndex (uint32_t din) const |
std::vector< DetId > | west (const DetId &id) const override |
ZdcTopology (const HcalDDDRecConstants *hcons) | |
Public Member Functions inherited from CaloSubdetectorTopology | |
CaloSubdetectorTopology () | |
standard constructor More... | |
virtual DetId | denseId2detId (unsigned int) const |
return a linear packed id More... | |
virtual bool | denseIdConsistent (int topoVer) const |
return whether this topology is consistent with the numbering in the given topology More... | |
virtual unsigned int | detId2denseId (const DetId &) const |
return a linear packed id More... | |
virtual std::vector< DetId > | getAllNeighbours (const DetId &id) const |
virtual std::vector< DetId > | getNeighbours (const DetId &id, const CaloDirection &dir) const |
virtual std::vector< DetId > | getWindow (const DetId &id, const int &northSouthSize, const int &eastWestSize) const |
virtual DetId | goDown (const DetId &id) const |
virtual DetId | goEast (const DetId &id) const |
virtual DetId | goNorth (const DetId &id) const |
virtual DetId | goSouth (const DetId &id) const |
virtual DetId | goUp (const DetId &id) const |
virtual DetId | goWest (const DetId &id) const |
virtual unsigned int | ncells () const |
return a count of valid cells (for dense indexing use) More... | |
virtual int | topoVersion () const |
return a version which identifies the given topology More... | |
virtual bool | valid (const DetId &) const |
is this detid present in the Topology? More... | |
virtual | ~CaloSubdetectorTopology () |
virtual destructor More... | |
Private Member Functions | |
int | firstEMModule () const |
int | firstHADModule () const |
int | firstLUMModule () const |
int | firstRPDModule () const |
bool | isExcluded (const HcalZDCDetId &id) const |
int | lastEMModule () const |
int | lastHADModule () const |
int | lastLUMModule () const |
int | lastRPDModule () const |
bool | validRaw (const HcalZDCDetId &id) const |
Private Attributes | |
bool | excludeEM_ |
bool | excludeHAD_ |
bool | excludeLUM_ |
bool | excludeRPD_ |
bool | excludeZN_ |
bool | excludeZP_ |
std::vector< HcalZDCDetId > | exclusionList_ |
int | firstEMModule_ |
int | firstHADModule_ |
int | firstLUMModule_ |
int | firstRPDModule_ |
const HcalDDDRecConstants * | hcons_ |
int | lastEMModule_ |
int | lastHADModule_ |
int | lastLUMModule_ |
int | lastRPDModule_ |
HcalTopologyMode::Mode | mode_ |
Additional Inherited Members | |
Protected Types inherited from CaloSubdetectorTopology | |
typedef std::pair< int, int > | Coordinate |
Protected Member Functions inherited from CaloSubdetectorTopology | |
Coordinate | getNeighbourIndex (const Coordinate &coord, const CaloDirection &dir) const |
Definition at line 16 of file ZdcTopology.h.
ZdcTopology::ZdcTopology | ( | const HcalDDDRecConstants * | hcons | ) |
Definition at line 8 of file ZdcTopology.cc.
References excludeRPD_, HcalDDDRecConstants::getTopoMode(), hcons_, mode_, and HcalTopologyMode::Run3.
|
override |
Definition at line 372 of file ZdcTopology.cc.
References Calorimetry_cff::dp, HcalZDCDetId::EM, HcalZDCDetId::HAD, recoMuon::in, HcalZDCDetId::kDepEM, HcalZDCDetId::kDepHAD, HcalZDCDetId::kDepRPD, HcalZDCDetId::kDepRun1, HcalZDCDetId::kDepTot, HcalZDCDetId::LUM, HcalZDCDetId::RPD, HcalZDCDetId::Unknown, and validDenseIndex().
uint32_t ZdcTopology::detId2DenseIndex | ( | const DetId & | id | ) | const |
Definition at line 396 of file ZdcTopology.cc.
References hcalRecHitTable_cff::detId, HcalZDCDetId::HAD, HcalZDCDetId::kDepEM, HcalZDCDetId::kDepHAD, HcalZDCDetId::kDepRPD, HcalZDCDetId::kDepRun1, HcalZDCDetId::LUM, and HcalZDCDetId::RPD.
Referenced by ZdcGeometry::indexFor(), and ZdcGeometry::newCell().
Get the neighbors of the given cell in down direction (inward)
Implements CaloSubdetectorTopology.
Definition at line 295 of file ZdcTopology.cc.
Get the neighbors of the given cell in east direction
Implements CaloSubdetectorTopology.
Definition at line 268 of file ZdcTopology.cc.
void ZdcTopology::exclude | ( | const HcalZDCDetId & | id | ) |
Exlucde a cell
Definition at line 67 of file ZdcTopology.cc.
References exclusionList_, mps_fire::i, l1ctLayer2EG_cff::id, and pfDeepBoostedJetPreprocessParams_cfi::lower_bound.
Referenced by exclude().
void ZdcTopology::exclude | ( | int | zside | ) |
Exclude a side
Definition at line 74 of file ZdcTopology.cc.
References excludeZN_, excludeZP_, and ecaldqm::zside().
void ZdcTopology::exclude | ( | int | zside, |
HcalZDCDetId::Section | section | ||
) |
Exclude a section, in either side (+1 positive, -1 negative)
Definition at line 87 of file ZdcTopology.cc.
References HcalZDCDetId::EM, excludeEM_, excludeHAD_, excludeLUM_, excludeRPD_, excludeZN_, excludeZP_, HcalZDCDetId::HAD, HcalZDCDetId::LUM, HcalZDCDetId::RPD, hgcalPlots::section, and ecaldqm::zside().
int ZdcTopology::exclude | ( | int | zside, |
HcalZDCDetId::Section | section, | ||
int | ich1, | ||
int | ich2 | ||
) |
Exclude a range of channels (deph) for a given subdetector
Definition at line 116 of file ZdcTopology.cc.
References HcalZDCDetId::EM, exclude(), excludeEM_, excludeHAD_, excludeLUM_, excludeRPD_, excludeZN_, excludeZP_, HcalZDCDetId::HAD, l1ctLayer2EG_cff::id, HcalZDCDetId::LUM, dqmiodumpmetadata::n, HcalZDCDetId::RPD, hgcalPlots::section, validRaw(), and ecaldqm::zside().
int ZdcTopology::firstCell | ( | HcalZDCDetId::Section | section | ) | const |
Definition at line 323 of file ZdcTopology.cc.
References HcalZDCDetId::EM, firstEMModule_, firstHADModule_, firstLUMModule_, firstRPDModule_, HcalZDCDetId::HAD, HcalZDCDetId::LUM, HcalZDCDetId::RPD, hgcalPlots::section, and HcalZDCDetId::Unknown.
Referenced by ZdcHardcodeGeometryLoader::fill().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
Definition at line 37 of file ZdcTopology.cc.
References HcalZDCDetId::EM, excludeEM_, excludeHAD_, excludeLUM_, excludeRPD_, exclusionList_, HcalZDCDetId::HAD, mps_fire::i, l1ctLayer2EG_cff::id, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, HcalZDCDetId::LUM, HcalZDCDetId::RPD, and hgcalPlots::section.
Referenced by valid().
uint32_t ZdcTopology::kSizeForDenseIndexing | ( | ) | const |
Definition at line 367 of file ZdcTopology.cc.
References HcalZDCDetId::kSizeForDenseIndexingRun1, HcalZDCDetId::kSizeForDenseIndexingRun3, mode_, and HcalTopologyMode::Run3.
Referenced by ZdcHardcodeGeometryLoader::fill(), and validDenseIndex().
int ZdcTopology::lastCell | ( | HcalZDCDetId::Section | section | ) | const |
Definition at line 345 of file ZdcTopology.cc.
References HcalZDCDetId::EM, HcalZDCDetId::HAD, lastEMModule_, lastHADModule_, lastLUMModule_, lastRPDModule_, HcalZDCDetId::LUM, HcalZDCDetId::RPD, hgcalPlots::section, and HcalZDCDetId::Unknown.
Referenced by ZdcHardcodeGeometryLoader::fill().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Get the longitudinal neighbors (Z) of the given cell
Definition at line 212 of file ZdcTopology.cc.
References HcalZDCDetId::channel(), HcalZDCDetId::HAD, HcalZDCDetId::kDepHAD, HcalZDCDetId::kDepLUM, HcalZDCDetId::kDepRPD, HcalZDCDetId::LUM, DetId::rawId(), HcalZDCDetId::RPD, HcalZDCDetId::section(), validRaw(), and HcalZDCDetId::zside().
|
inline |
|
inline |
return a count of valid cells (for dense indexing use)
Definition at line 30 of file CaloSubdetectorTopology.h.
int ZdcTopology::ncells | ( | HcalZDCDetId::Section | section | ) | const |
Definition at line 301 of file ZdcTopology.cc.
References HcalZDCDetId::EM, HcalZDCDetId::HAD, HcalZDCDetId::kDepEM, HcalZDCDetId::kDepHAD, HcalZDCDetId::kDepLUM, HcalZDCDetId::kDepRPD, HcalZDCDetId::LUM, CaloSubdetectorTopology::ncells(), HcalZDCDetId::RPD, hgcalPlots::section, and HcalZDCDetId::Unknown.
Get the neighbors of the given cell in north direction
Implements CaloSubdetectorTopology.
Definition at line 280 of file ZdcTopology.cc.
Get the neighbors of the given cell in south direction
Implements CaloSubdetectorTopology.
Definition at line 285 of file ZdcTopology.cc.
Get the transverse (X) neighbors of the given cell
Definition at line 186 of file ZdcTopology.cc.
References HcalZDCDetId::channel(), HcalZDCDetId::EM, HcalZDCDetId::kDepEM, DetId::rawId(), HcalZDCDetId::section(), validRaw(), and HcalZDCDetId::zside().
Get the neighbors of the given cell in up direction (outward)
Implements CaloSubdetectorTopology.
Definition at line 290 of file ZdcTopology.cc.
|
inline |
Is this a valid cell id?
Definition at line 24 of file CaloSubdetectorTopology.h.
|
virtual |
Definition at line 30 of file ZdcTopology.cc.
References isExcluded(), convertSQLiteXML::ok, and validRaw().
Referenced by HcalDigitizer::accumulateCaloHits(), and ZdcHardcodeGeometryLoader::fill().
|
inline |
Definition at line 57 of file ZdcTopology.h.
References cropTnPTrees::din, and kSizeForDenseIndexing().
Referenced by denseId2detId().
|
private |
Definition at line 164 of file ZdcTopology.cc.
References funct::abs(), HcalZDCDetId::EM, HcalZDCDetId::HAD, HcalZDCDetId::kDepEM, HcalZDCDetId::kDepHAD, HcalZDCDetId::kDepLUM, HcalZDCDetId::kDepRPD, HcalZDCDetId::LUM, convertSQLiteXML::ok, HcalZDCDetId::RPD, hgcalPlots::section, HcalZDCDetId::Unknown, and ecaldqm::zside().
Referenced by exclude(), longitudinal(), transverse(), and valid().
Get the neighbors of the given cell in west direction
Implements CaloSubdetectorTopology.
Definition at line 274 of file ZdcTopology.cc.
|
private |
Definition at line 81 of file ZdcTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 81 of file ZdcTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 81 of file ZdcTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 81 of file ZdcTopology.h.
Referenced by exclude(), isExcluded(), and ZdcTopology().
|
private |
Definition at line 81 of file ZdcTopology.h.
Referenced by exclude().
|
private |
Definition at line 81 of file ZdcTopology.h.
Referenced by exclude().
|
private |
Definition at line 79 of file ZdcTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 83 of file ZdcTopology.h.
Referenced by firstCell(), and firstEMModule().
|
private |
Definition at line 83 of file ZdcTopology.h.
Referenced by firstCell(), and firstHADModule().
|
private |
Definition at line 83 of file ZdcTopology.h.
Referenced by firstCell(), and firstLUMModule().
|
private |
Definition at line 83 of file ZdcTopology.h.
Referenced by firstCell(), and firstRPDModule().
|
private |
Definition at line 76 of file ZdcTopology.h.
Referenced by ZdcTopology().
|
private |
Definition at line 83 of file ZdcTopology.h.
Referenced by lastCell(), and lastEMModule().
|
private |
Definition at line 83 of file ZdcTopology.h.
Referenced by lastCell(), and lastHADModule().
|
private |
Definition at line 83 of file ZdcTopology.h.
Referenced by lastCell(), and lastLUMModule().
|
private |
Definition at line 83 of file ZdcTopology.h.
Referenced by lastCell(), and lastRPDModule().
|
private |
Definition at line 77 of file ZdcTopology.h.
Referenced by kSizeForDenseIndexing(), mode(), and ZdcTopology().