#include <CastorTopology.h>
Public Member Functions | |
CastorTopology () | |
std::vector< DetId > | down (const DetId &id) const override |
std::vector< DetId > | east (const DetId &id) const override |
void | exclude (const HcalCastorDetId &id) |
void | exclude (int zside) |
void | exclude (int zside, HcalCastorDetId::Section section) |
int | exclude (int zside, HcalCastorDetId::Section section1, int isec1, int imod1, HcalCastorDetId::Section section2, int isec2, int imod2) |
int | firstCell (HcalCastorDetId::Section section) const |
virtual std::vector< DetId > | incModule (const DetId &id) const |
virtual std::vector< DetId > | incSector (const DetId &id) const |
int | lastCell (HcalCastorDetId::Section section) const |
virtual unsigned int | ncells () const |
return a count of valid cells (for dense indexing use) More... | |
int | ncells (HcalCastorDetId::Section section) const |
std::vector< DetId > | north (const DetId &id) const override |
std::vector< DetId > | south (const DetId &id) const override |
std::vector< DetId > | up (const DetId &id) const override |
virtual bool | valid (const DetId &) const |
virtual bool | valid (const HcalCastorDetId &id) const |
virtual bool | validRaw (const HcalCastorDetId &id) const |
std::vector< DetId > | west (const DetId &id) const override |
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 |
bool | isExcluded (const HcalCastorDetId &id) const |
int | lastEMModule () const |
int | lastHADModule () const |
Private Attributes | |
bool | excludeEM_ |
bool | excludeHAD_ |
bool | excludeZN_ |
bool | excludeZP_ |
std::vector< HcalCastorDetId > | exclusionList_ |
int | firstEMModule_ |
int | firstHADModule_ |
int | lastEMModule_ |
int | lastHADModule_ |
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 13 of file CastorTopology.h.
CastorTopology::CastorTopology | ( | ) |
Definition at line 9 of file CastorTopology.cc.
Get the neighbors of the given cell in down direction (inward)
Implements CaloSubdetectorTopology.
Definition at line 235 of file CastorTopology.cc.
References gather_cfg::cout.
Get the neighbors of the given cell in east direction
Implements CaloSubdetectorTopology.
Definition at line 208 of file CastorTopology.cc.
References gather_cfg::cout.
void CastorTopology::exclude | ( | const HcalCastorDetId & | id | ) |
Exlucde a cell
Definition at line 45 of file CastorTopology.cc.
References exclusionList_, mps_fire::i, triggerObjects_cff::id, and pfDeepBoostedJetPreprocessParams_cfi::lower_bound.
Referenced by exclude().
void CastorTopology::exclude | ( | int | zside | ) |
Exclude a side
Definition at line 52 of file CastorTopology.cc.
References excludeZN_, excludeZP_, and ecaldqm::zside().
void CastorTopology::exclude | ( | int | zside, |
HcalCastorDetId::Section | section | ||
) |
Exclude a section, in either side (+1 positive, -1 negative)
Definition at line 65 of file CastorTopology.cc.
References HcalCastorDetId::EM, excludeEM_, excludeHAD_, excludeZN_, excludeZP_, HcalCastorDetId::HAD, hgcalPlots::section, and ecaldqm::zside().
int CastorTopology::exclude | ( | int | zside, |
HcalCastorDetId::Section | section1, | ||
int | isec1, | ||
int | imod1, | ||
HcalCastorDetId::Section | section2, | ||
int | isec2, | ||
int | imod2 | ||
) |
Exclude a range of channels (deph) for a given subdetector
Definition at line 88 of file CastorTopology.cc.
References HcalCastorDetId::EM, exclude(), excludeEM_, excludeHAD_, excludeZN_, excludeZP_, HcalCastorDetId::HAD, triggerObjects_cff::id, dqmiodumpmetadata::n, validRaw(), and ecaldqm::zside().
int CastorTopology::firstCell | ( | HcalCastorDetId::Section | section | ) | const |
Definition at line 257 of file CastorTopology.cc.
References HcalCastorDetId::EM, firstEMModule_, firstHADModule_, HcalCastorDetId::HAD, hgcalPlots::section, and HcalCastorDetId::Unknown.
Referenced by CastorHardcodeGeometryLoader::fill().
|
inlineprivate |
|
inlineprivate |
Get the neigbors of the given cell with higher #module
Definition at line 167 of file CastorTopology.cc.
References HcalCastorDetId::EM, HcalCastorDetId::HAD, HcalCastorDetId::module(), MODULE_EM_MAX, MODULE_HAD_MAX, DetId::rawId(), HcalCastorDetId::section(), HcalCastorDetId::sector(), validRaw(), and HcalCastorDetId::zside().
Get the neighbors of the given cell with higher #sector
Definition at line 141 of file CastorTopology.cc.
References HcalCastorDetId::module(), DetId::rawId(), HcalCastorDetId::section(), HcalCastorDetId::sector(), validRaw(), and HcalCastorDetId::zside().
|
private |
Definition at line 21 of file CastorTopology.cc.
References HcalCastorDetId::EM, excludeEM_, excludeHAD_, exclusionList_, HcalCastorDetId::HAD, mps_fire::i, triggerObjects_cff::id, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and hgcalPlots::section.
Referenced by valid().
int CastorTopology::lastCell | ( | HcalCastorDetId::Section | section | ) | const |
Definition at line 273 of file CastorTopology.cc.
References HcalCastorDetId::EM, HcalCastorDetId::HAD, lastEMModule_, lastHADModule_, hgcalPlots::section, and HcalCastorDetId::Unknown.
Referenced by CastorHardcodeGeometryLoader::fill().
|
inlineprivate |
|
inlineprivate |
|
inline |
return a count of valid cells (for dense indexing use)
Definition at line 30 of file CaloSubdetectorTopology.h.
int CastorTopology::ncells | ( | HcalCastorDetId::Section | section | ) | const |
Definition at line 241 of file CastorTopology.cc.
References HcalCastorDetId::EM, HcalCastorDetId::HAD, MODULE_EM_MAX, MODULE_HAD_MAX, CaloSubdetectorTopology::ncells(), hgcalPlots::section, and HcalCastorDetId::Unknown.
Get the neighbors of the given cell in north direction
Implements CaloSubdetectorTopology.
Definition at line 220 of file CastorTopology.cc.
References gather_cfg::cout.
Get the neighbors of the given cell in south direction
Implements CaloSubdetectorTopology.
Definition at line 225 of file CastorTopology.cc.
References gather_cfg::cout.
Get the neighbors of the given cell in up direction (outward)
Implements CaloSubdetectorTopology.
Definition at line 230 of file CastorTopology.cc.
References gather_cfg::cout.
|
inline |
Is this a valid cell id?
Definition at line 24 of file CaloSubdetectorTopology.h.
|
virtual |
Definition at line 19 of file CastorTopology.cc.
References isExcluded(), and validRaw().
Referenced by CastorHardcodeGeometryLoader::fill().
|
virtual |
Is this a valid cell id?
Definition at line 137 of file CastorTopology.cc.
References hgcalPlots::section, HcalCastorDetId::validDetId(), and ecaldqm::zside().
Referenced by exclude(), incModule(), incSector(), and valid().
Get the neighbors of the given cell in west direction
Implements CaloSubdetectorTopology.
Definition at line 214 of file CastorTopology.cc.
References gather_cfg::cout.
|
private |
Definition at line 63 of file CastorTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 63 of file CastorTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 63 of file CastorTopology.h.
Referenced by exclude().
|
private |
Definition at line 63 of file CastorTopology.h.
Referenced by exclude().
|
private |
Definition at line 61 of file CastorTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 65 of file CastorTopology.h.
Referenced by firstCell(), and firstEMModule().
|
private |
Definition at line 65 of file CastorTopology.h.
Referenced by firstCell(), and firstHADModule().
|
private |
Definition at line 65 of file CastorTopology.h.
Referenced by lastCell(), and lastEMModule().
|
private |
Definition at line 65 of file CastorTopology.h.
Referenced by lastCell(), and lastHADModule().