#include <FastTimeTopology.h>
Classes | |
struct | DecodedDetId |
Public Member Functions | |
const FastTimeDDDConstants & | dddConstants () const |
DecodedDetId | decode (const DetId &id) const |
DetId | denseId2detId (uint32_t denseId) const override |
int | detectorType () const |
virtual uint32_t | detId2denseGeomId (const DetId &id) const |
uint32_t | detId2denseId (const DetId &id) const override |
Dense indexing. More... | |
std::vector< DetId > | down (const DetId &id) const override |
std::vector< DetId > | east (const DetId &id) const override |
DetId | encode (const DecodedDetId &id_) const |
FastTimeTopology (const FastTimeDDDConstants &hdcons, ForwardSubdetector subdet, int type) | |
create a new Topology More... | |
DecodedDetId | geomDenseId2decId (const uint32_t &hi) const |
DetId | goEast (const DetId &id) const override |
move the Topology east (positive ix) More... | |
DetId | goNorth (const DetId &id) const override |
move the Topology north (increment iy) More... | |
DetId | goSouth (const DetId &id) const override |
move the Topology south (decrement iy) More... | |
DetId | goWest (const DetId &id) const override |
move the Topology west (negative ix) More... | |
std::vector< DetId > | north (const DetId &id) const override |
int | numberCells () const |
DetId | offsetBy (const DetId startId, int nrStepsX, int nrStepsY) const |
std::vector< DetId > | south (const DetId &id) const override |
ForwardSubdetector | subDetector () const |
DetId | switchZSide (const DetId startId) const |
unsigned int | totalGeomModules () const |
unsigned int | totalModules () const |
std::vector< DetId > | up (const DetId &id) const override |
bool | valid (const DetId &id) const override |
Is this a valid cell id. More... | |
bool | validHashIndex (uint32_t ix) const |
std::vector< DetId > | west (const DetId &id) const override |
~FastTimeTopology () override | |
virtual destructor More... | |
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 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 | goUp (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 | ~CaloSubdetectorTopology () |
virtual destructor More... | |
Private Member Functions | |
DetId | changeXY (const DetId &id, int nrStepsX, int nrStepsY) const |
move the nagivator along x, y More... | |
Private Attributes | |
const FastTimeDDDConstants & | hdcons_ |
int | kHGeomHalf_ |
int | kHGhalf_ |
unsigned int | kSizeForDenseIndexing |
int | nEtaZ_ |
int | nPhi_ |
ForwardSubdetector | subdet_ |
int | type_ |
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 11 of file FastTimeTopology.h.
FastTimeTopology::FastTimeTopology | ( | const FastTimeDDDConstants & | hdcons, |
ForwardSubdetector | subdet, | ||
int | type | ||
) |
create a new Topology
Definition at line 6 of file FastTimeTopology.cc.
References gather_cfg::cout, hdcons_, createfilelist::int, kHGeomHalf_, kHGhalf_, kSizeForDenseIndexing, nEtaZ_, nPhi_, FastTimeDDDConstants::numberEtaZ(), FastTimeDDDConstants::numberPhi(), subdet_, and type_.
|
inlineoverride |
move the nagivator along x, y
Definition at line 97 of file FastTimeTopology.cc.
References decode(), encode(), FastTimeTopology::DecodedDetId::iEtaZ, FastTimeTopology::DecodedDetId::iPhi, FastTimeTopology::DecodedDetId::iType, nPhi_, valid(), and FastTimeTopology::DecodedDetId::zside.
Referenced by offsetBy().
|
inline |
Definition at line 82 of file FastTimeTopology.h.
References hdcons_.
Referenced by FastTimeGeometry::getClosestCell(), FastTimeGeometry::getCorners(), ftl::RecHitTools::getEventSetup(), FastTimeGeometry::getPosition(), FastTimeGeometry::getSummary(), and FastTimeGeometry::newCell().
FastTimeTopology::DecodedDetId FastTimeTopology::decode | ( | const DetId & | id | ) | const |
Definition at line 81 of file FastTimeTopology.cc.
References triggerObjects_cff::id, FastTimeTopology::DecodedDetId::iEtaZ, FastTimeTopology::DecodedDetId::iPhi, FastTimeTopology::DecodedDetId::iType, FastTimeTopology::DecodedDetId::subdet, and FastTimeTopology::DecodedDetId::zside.
Referenced by changeXY(), detId2denseGeomId(), detId2denseId(), FastTimeGeometry::newCell(), switchZSide(), and valid().
|
override |
Definition at line 26 of file FastTimeTopology.cc.
References encode(), FastTimeTopology::DecodedDetId::iEtaZ, createfilelist::int, FastTimeTopology::DecodedDetId::iPhi, FastTimeTopology::DecodedDetId::iType, kHGhalf_, nPhi_, type_, validHashIndex(), and FastTimeTopology::DecodedDetId::zside.
|
inline |
|
virtual |
Definition at line 41 of file FastTimeTopology.cc.
References decode(), heavyIonCSV_trainingSettings::idx, kHGeomHalf_, and FastTimeTopology::DecodedDetId::zside.
Referenced by FastTimeGeometry::indexFor().
|
overridevirtual |
Dense indexing.
Reimplemented from CaloSubdetectorTopology.
Definition at line 20 of file FastTimeTopology.cc.
References decode(), heavyIonCSV_trainingSettings::idx, FastTimeTopology::DecodedDetId::iEtaZ, FastTimeTopology::DecodedDetId::iPhi, kHGhalf_, nPhi_, and FastTimeTopology::DecodedDetId::zside.
Get the neighbors of the given cell in down direction (inward)
Implements CaloSubdetectorTopology.
Definition at line 64 of file FastTimeTopology.h.
Get the neighbors of the given cell in east direction
Implements CaloSubdetectorTopology.
Definition at line 41 of file FastTimeTopology.h.
References goEast().
DetId FastTimeTopology::encode | ( | const DecodedDetId & | id_ | ) | const |
Definition at line 92 of file FastTimeTopology.cc.
References triggerObjects_cff::id, FastTimeTopology::DecodedDetId::iEtaZ, FastTimeTopology::DecodedDetId::iPhi, FastTimeTopology::DecodedDetId::iType, and FastTimeTopology::DecodedDetId::zside.
Referenced by changeXY(), denseId2detId(), FastTimeGeometry::newCell(), and switchZSide().
FastTimeTopology::DecodedDetId FastTimeTopology::geomDenseId2decId | ( | const uint32_t & | hi | ) | const |
Definition at line 73 of file FastTimeTopology.cc.
References createfilelist::int, kHGeomHalf_, totalGeomModules(), and FastTimeTopology::DecodedDetId::zside.
move the Topology east (positive ix)
Reimplemented from CaloSubdetectorTopology.
Definition at line 40 of file FastTimeTopology.h.
References offsetBy().
Referenced by east().
move the Topology north (increment iy)
Reimplemented from CaloSubdetectorTopology.
Definition at line 20 of file FastTimeTopology.h.
References offsetBy().
Referenced by north().
move the Topology south (decrement iy)
Reimplemented from CaloSubdetectorTopology.
Definition at line 30 of file FastTimeTopology.h.
References offsetBy().
Referenced by south().
move the Topology west (negative ix)
Reimplemented from CaloSubdetectorTopology.
Definition at line 50 of file FastTimeTopology.h.
References offsetBy().
Referenced by west().
Get the neighbors of the given cell in north direction
Implements CaloSubdetectorTopology.
Definition at line 21 of file FastTimeTopology.h.
References goNorth().
|
inline |
Definition at line 53 of file FastTimeTopology.cc.
References changeXY(), DetId::det(), DetId::Forward, triggerObjects_cff::id, createfilelist::int, subdet_, DetId::subdetId(), and valid().
Get the neighbors of the given cell in south direction
Implements CaloSubdetectorTopology.
Definition at line 31 of file FastTimeTopology.h.
References goSouth().
|
inline |
Definition at line 62 of file FastTimeTopology.cc.
References decode(), DetId::det(), encode(), DetId::Forward, triggerObjects_cff::id, createfilelist::int, subdet_, DetId::subdetId(), valid(), and FastTimeTopology::DecodedDetId::zside.
|
inline |
Definition at line 79 of file FastTimeTopology.h.
References kHGeomHalf_.
Referenced by FastTimeGeometry::FastTimeGeometry(), geomDenseId2decId(), FastTimeGeometry::getSummary(), and FastTimeGeometry::sizeForDenseIndex().
|
inline |
Get the neighbors of the given cell in up direction (outward)
Implements CaloSubdetectorTopology.
Definition at line 59 of file FastTimeTopology.h.
|
overridevirtual |
Is this a valid cell id.
Reimplemented from CaloSubdetectorTopology.
Definition at line 47 of file FastTimeTopology.cc.
References decode(), RemoveAddSevLevel::flag, hdcons_, FastTimeTopology::DecodedDetId::iEtaZ, FastTimeTopology::DecodedDetId::iPhi, FastTimeDDDConstants::isValidXY(), and FastTimeTopology::DecodedDetId::iType.
Referenced by changeXY(), offsetBy(), and switchZSide().
|
inline |
Definition at line 76 of file FastTimeTopology.h.
References kSizeForDenseIndexing.
Referenced by denseId2detId().
Get the neighbors of the given cell in west direction
Implements CaloSubdetectorTopology.
Definition at line 51 of file FastTimeTopology.h.
References goWest().
|
private |
Definition at line 103 of file FastTimeTopology.h.
Referenced by dddConstants(), FastTimeTopology(), and valid().
|
private |
Definition at line 105 of file FastTimeTopology.h.
Referenced by detId2denseGeomId(), FastTimeTopology(), geomDenseId2decId(), numberCells(), and totalGeomModules().
|
private |
Definition at line 105 of file FastTimeTopology.h.
Referenced by denseId2detId(), detId2denseId(), and FastTimeTopology().
|
private |
Definition at line 106 of file FastTimeTopology.h.
Referenced by FastTimeTopology(), totalModules(), and validHashIndex().
|
private |
Definition at line 105 of file FastTimeTopology.h.
Referenced by FastTimeTopology().
|
private |
Definition at line 105 of file FastTimeTopology.h.
Referenced by changeXY(), denseId2detId(), detId2denseId(), and FastTimeTopology().
|
private |
Definition at line 104 of file FastTimeTopology.h.
Referenced by FastTimeTopology(), offsetBy(), subDetector(), and switchZSide().
|
private |
Definition at line 105 of file FastTimeTopology.h.
Referenced by Modules.Service::__str__(), Modules.Service::_placeImpl(), Modules.ESSource::_placeImpl(), Modules.ESProducer::_placeImpl(), Modules.ESPrefer::copy(), denseId2detId(), detectorType(), Mixins._TypedParameterizable::dumpPython(), Modules.ESPrefer::dumpPythonAs(), Modules.Service::dumpSequencePython(), FastTimeTopology(), RandomRunSource.RandomRunSource::insertInto(), Modules.Service::insertInto(), ExternalGeneratorFilter.ExternalGeneratorFilter::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), and Modules.ESPrefer::nameInProcessDesc_().