1 #ifndef Geometry_CaloTopology_FastTimeTopology_h 2 #define Geometry_CaloTopology_FastTimeTopology_h 1 27 virtual std::vector<DetId>
north(
const DetId&
id)
const {
29 std::vector<DetId> vNeighborsDetId;
30 if (! (nextId==
DetId(0)))
31 vNeighborsDetId.push_back(nextId);
32 return vNeighborsDetId;
39 virtual std::vector<DetId>
south(
const DetId&
id)
const {
41 std::vector<DetId> vNeighborsDetId;
42 if (! (nextId==
DetId(0)))
43 vNeighborsDetId.push_back(nextId);
44 return vNeighborsDetId;
51 virtual std::vector<DetId>
east(
const DetId&
id)
const {
53 std::vector<DetId> vNeighborsDetId;
54 if (! (nextId==
DetId(0)))
55 vNeighborsDetId.push_back(nextId);
56 return vNeighborsDetId;
63 virtual std::vector<DetId>
west(
const DetId&
id)
const {
65 std::vector<DetId> vNeighborsDetId;
66 if (! (nextId==
DetId(0)))
67 vNeighborsDetId.push_back(nextId);
68 return vNeighborsDetId;
71 virtual std::vector<DetId>
up(
const DetId&
id)
const {
72 std::vector<DetId> vNeighborsDetId;
73 return vNeighborsDetId;
76 virtual std::vector<DetId>
down(
const DetId&
id)
const {
77 std::vector<DetId> vNeighborsDetId;
78 return vNeighborsDetId;
DecodedDetId decode(const DetId &id) const
unsigned int totalGeomModules() const
virtual DetId goEast(const DetId &id) const
move the Topology east (positive ix)
ForwardSubdetector subdet_
ForwardSubdetector subDetector() const
DetId switchZSide(const DetId startId) const
virtual std::vector< DetId > down(const DetId &id) const
DetId changeXY(const DetId &id, int nrStepsX, int nrStepsY) const
move the nagivator along x, y
virtual uint32_t detId2denseId(const DetId &id) const
Dense indexing.
virtual std::vector< DetId > east(const DetId &id) const
virtual DetId goSouth(const DetId &id) const
move the Topology south (decrement iy)
virtual DetId goNorth(const DetId &id) const
move the Topology north (increment iy)
unsigned int kSizeForDenseIndexing
virtual uint32_t detId2denseGeomId(const DetId &id) const
virtual std::vector< DetId > south(const DetId &id) const
DecodedDetId geomDenseId2decId(const uint32_t &hi) const
const FastTimeDDDConstants & hdcons_
virtual DetId denseId2detId(uint32_t denseId) const
FastTimeTopology(const FastTimeDDDConstants &hdcons, ForwardSubdetector subdet, int type)
create a new Topology
virtual bool valid(const DetId &id) const
Is this a valid cell id.
virtual DetId goWest(const DetId &id) const
move the Topology west (negative ix)
virtual std::vector< DetId > north(const DetId &id) const
DetId encode(const DecodedDetId &id_) const
virtual std::vector< DetId > up(const DetId &id) const
unsigned int totalModules() const
virtual std::vector< DetId > west(const DetId &id) const
bool validHashIndex(uint32_t ix) const
virtual ~FastTimeTopology()
virtual destructor
DetId offsetBy(const DetId startId, int nrStepsX, int nrStepsY) const
const FastTimeDDDConstants & dddConstants() const