1 #ifndef Geometry_CaloTopology_HGCalTopology_h 2 #define Geometry_CaloTopology_HGCalTopology_h 1 25 std::vector<DetId>
north(
const DetId&
id)
const override {
27 std::vector<DetId> vNeighborsDetId;
28 if (! (nextId==
DetId(0)))
29 vNeighborsDetId.emplace_back(nextId);
30 return vNeighborsDetId;
37 std::vector<DetId>
south(
const DetId&
id)
const override {
39 std::vector<DetId> vNeighborsDetId;
40 if (! (nextId==
DetId(0)))
41 vNeighborsDetId.emplace_back(nextId);
42 return vNeighborsDetId;
49 std::vector<DetId>
east(
const DetId&
id)
const override {
51 std::vector<DetId> vNeighborsDetId;
52 if (! (nextId==
DetId(0)))
53 vNeighborsDetId.emplace_back(nextId);
54 return vNeighborsDetId;
61 std::vector<DetId>
west(
const DetId&
id)
const override {
63 std::vector<DetId> vNeighborsDetId;
64 if (! (nextId==
DetId(0)))
65 vNeighborsDetId.emplace_back(nextId);
66 return vNeighborsDetId;
69 std::vector<DetId>
up(
const DetId&
id)
const override {
71 std::vector<DetId> vNeighborsDetId;
72 if (! (nextId==
DetId(0)))
73 vNeighborsDetId.emplace_back(nextId);
74 return vNeighborsDetId;
77 std::vector<DetId>
down(
const DetId&
id)
const override {
79 std::vector<DetId> vNeighborsDetId;
80 if (! (nextId==
DetId(0)))
81 vNeighborsDetId.emplace_back(nextId);
82 return vNeighborsDetId;
HGCalGeometryMode::GeometryMode geomMode() const
Geometry mode.
std::vector< int > maxcells_
bool validHashIndex(uint32_t ix) const
unsigned int allGeomModules() const
DetId changeXY(const DetId &id, int nrStepsX, int nrStepsY) const
move the nagivator along x, y
DetId changeZ(const DetId &id, int nrStepsZ) const
move the nagivator along z
HGCalGeometryMode::GeometryMode mode_
DetId goNorth(const DetId &id) const override
move the Topology north (increment iy)
bool detectorType() const
std::vector< DetId > west(const DetId &id) const override
DetId denseId2detId(uint32_t denseId) const override
DetId goEast(const DetId &id) const override
move the Topology east (positive ix)
DetId offsetBy(const DetId startId, int nrStepsX, int nrStepsY) const
HGCalTopology(const HGCalDDDConstants &hdcons, ForwardSubdetector subdet, bool halfChamber)
create a new Topology
unsigned int totalGeomModules() const
virtual uint32_t detId2denseGeomId(const DetId &id) const
~HGCalTopology() override
virtual destructor
std::vector< DetId > east(const DetId &id) const override
DetId encode(const DecodedDetId &id_) const
std::vector< DetId > north(const DetId &id) const override
static const int subSectors_
Use subSector in square mode as wafer type in hexagon mode.
uint32_t detId2denseId(const DetId &id) const override
Dense indexing.
DecodedDetId geomDenseId2decId(const uint32_t &hi) const
ForwardSubdetector subdet_
const HGCalDDDConstants & hdcons_
DecodedDetId decode(const DetId &id) const
std::vector< DetId > up(const DetId &id) const override
const HGCalDDDConstants & dddConstants() const
ForwardSubdetector subDetector() const
std::vector< DetId > south(const DetId &id) const override
unsigned int totalModules() const
DetId switchZSide(const DetId startId) const
DetId goSouth(const DetId &id) const override
move the Topology south (decrement iy)
std::vector< DetId > down(const DetId &id) const override
DetId goWest(const DetId &id) const override
move the Topology west (negative ix)
unsigned int kSizeForDenseIndexing
bool valid(const DetId &id) const override
Is this a valid cell id.