1 #ifndef Geometry_CaloTopology_HGCalTopology_h
2 #define Geometry_CaloTopology_HGCalTopology_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(
DetId(nextId.
rawId()));
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(
DetId(nextId.
rawId()));
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(
DetId(nextId.
rawId()));
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(
DetId(nextId.
rawId()));
68 return vNeighborsDetId;
71 virtual std::vector<DetId>
up(
const DetId&
id)
const {
73 std::vector<DetId> vNeighborsDetId;
74 if (! (nextId==
DetId(0)))
75 vNeighborsDetId.push_back(
DetId(nextId.
rawId()));
76 return vNeighborsDetId;
79 virtual std::vector<DetId>
down(
const DetId&
id)
const {
81 std::vector<DetId> vNeighborsDetId;
82 if (! (nextId==
DetId(0)))
83 vNeighborsDetId.push_back(
DetId(nextId.
rawId()));
84 return vNeighborsDetId;
std::vector< int > maxcells_
virtual std::vector< DetId > down(const DetId &id) const
bool validHashIndex(uint32_t ix) const
virtual std::vector< DetId > west(const DetId &id) const
unsigned int allGeomModules() const
DetId changeXY(const DetId &id, int nrStepsX, int nrStepsY) const
move the nagivator along x, y
virtual DetId goEast(const DetId &id) const
move the Topology east (positive ix)
DetId changeZ(const DetId &id, int nrStepsZ) const
move the nagivator along z
virtual std::vector< DetId > south(const DetId &id) const
virtual std::vector< DetId > up(const DetId &id) const
bool detectorType() const
virtual std::vector< DetId > north(const DetId &id) const
DetId offsetBy(const DetId startId, int nrStepsX, int nrStepsY) const
virtual uint32_t detId2denseId(const DetId &id) const
Dense indexing.
uint32_t rawId() const
get the raw id
HGCalTopology(const HGCalDDDConstants &hdcons, ForwardSubdetector subdet, bool halfChamber)
create a new Topology
unsigned int totalGeomModules() const
virtual uint32_t detId2denseGeomId(const DetId &id) const
DetId encode(const DecodedDetId &id_) const
virtual bool valid(const DetId &id) const
Is this a valid cell id.
virtual DetId goSouth(const DetId &id) const
move the Topology south (decrement iy)
static const int subSectors_
Use subSector in square mode as wafer type in hexagon mode.
virtual DetId goNorth(const DetId &id) const
move the Topology north (increment iy)
DecodedDetId geomDenseId2decId(const uint32_t &hi) const
ForwardSubdetector subdet_
const HGCalDDDConstants & hdcons_
DecodedDetId decode(const DetId &id) const
virtual DetId denseId2detId(uint32_t denseId) const
const HGCalDDDConstants & dddConstants() const
ForwardSubdetector subDetector() const
unsigned int totalModules() const
DetId switchZSide(const DetId startId) const
unsigned int kSizeForDenseIndexing
virtual std::vector< DetId > east(const DetId &id) const
HGCalGeometryMode geomMode() const
Geometry mode.
virtual ~HGCalTopology()
virtual destructor
virtual DetId goWest(const DetId &id) const
move the Topology west (negative ix)