|
|
Go to the documentation of this file. 1 #ifndef Geometry_CaloTopology_HGCalTopology_h
2 #define Geometry_CaloTopology_HGCalTopology_h 1
22 std::vector<DetId>
north(
const DetId&
id)
const override {
24 std::vector<DetId> vNeighborsDetId;
25 if (!(nextId ==
DetId(0)))
26 vNeighborsDetId.emplace_back(nextId);
27 return vNeighborsDetId;
32 std::vector<DetId>
south(
const DetId&
id)
const override {
34 std::vector<DetId> vNeighborsDetId;
35 if (!(nextId ==
DetId(0)))
36 vNeighborsDetId.emplace_back(nextId);
37 return vNeighborsDetId;
42 std::vector<DetId>
east(
const DetId&
id)
const override {
44 std::vector<DetId> vNeighborsDetId;
45 if (!(nextId ==
DetId(0)))
46 vNeighborsDetId.emplace_back(nextId);
47 return vNeighborsDetId;
52 std::vector<DetId>
west(
const DetId&
id)
const override {
54 std::vector<DetId> vNeighborsDetId;
55 if (!(nextId ==
DetId(0)))
56 vNeighborsDetId.emplace_back(nextId);
57 return vNeighborsDetId;
60 std::vector<DetId>
up(
const DetId&
id)
const override {
62 std::vector<DetId> vNeighborsDetId;
63 if (!(nextId ==
DetId(0)))
64 vNeighborsDetId.emplace_back(nextId);
65 return vNeighborsDetId;
68 std::vector<DetId>
down(
const DetId&
id)
const override {
70 std::vector<DetId> vNeighborsDetId;
71 if (!(nextId ==
DetId(0)))
72 vNeighborsDetId.emplace_back(nextId);
73 return vNeighborsDetId;
88 bool valid(
const DetId&
id,
int cornerMin)
const;
128 std::vector<DetId>& ids,
int det,
int zside,
int type,
int lay,
int waferU,
int waferV,
int cellU,
int cellV)
const HGCalDDDConstants & dddConstants() const
std::vector< DetId > neighbors(const DetId &id) const
DetId goSouth(const DetId &id) const override
move the Topology south (decrement iy)
bool maskCell(const DetId &id, int corners=3) const
std::vector< DetId > west(const DetId &id) const override
unsigned int allGeomModules() const
void addHGCSCintillatorId(std::vector< DetId > &ids, int zside, int type, int lay, int iradius, int iphi) const
add DetId of Scintillator and Silicon type if valid
HGCalTopology(const HGCalDDDConstants &hdcons, int subdet)
create a new Topology
DetId switchZSide(const DetId startId) const
unsigned int kSizeForDenseIndexing
DetId::Detector detector() const
DetId denseId2detId(uint32_t denseId) const override
DecodedDetId decode(const DetId &id) const
HGCalGeometryMode::GeometryMode mode_
unsigned int totalGeomModules() const
DetId goEast(const DetId &id) const override
move the Topology east (positive ix)
const HGCalDDDConstants & hdcons_
ForwardSubdetector subDetector() const
bool detectorType() const
ForwardSubdetector subdet_
DecodedDetId geomDenseId2decId(const uint32_t &hi) const
static const int subSectors_
Use subSector in square mode as wafer type in hexagon mode.
~HGCalTopology() override
virtual destructor
std::vector< DetId > down(const DetId &id) const override
unsigned int totalModules() const
std::vector< DetId > up(const DetId &id) const override
HGCalGeometryMode::GeometryMode geomMode() const
Geometry mode.
DetId goWest(const DetId &id) const override
move the Topology west (negative ix)
virtual uint32_t detId2denseGeomId(const DetId &id) const
DetId changeZ(const DetId &id, int nrStepsZ) const
move the nagivator along z
DetId changeXY(const DetId &id, int nrStepsX, int nrStepsY) const
move the nagivator along x, y
std::vector< DetId > north(const DetId &id) const override
DetId encode(const DecodedDetId &id_) const
bool validModule(const DetId &id, int cornerMin) const
bool valid(const DetId &id) const override
Is this a valid cell id.
uint32_t detId2denseId(const DetId &id) const override
Dense indexing.
void addHGCSiliconId(std::vector< DetId > &ids, int det, int zside, int type, int lay, int waferU, int waferV, int cellU, int cellV) const
DetId offsetBy(const DetId startId, int nrStepsX, int nrStepsY) const
std::vector< DetId > south(const DetId &id) const override
bool maskCell(const DetId &id, int corners) const
bool validHashIndex(uint32_t ix) const
std::vector< DetId > east(const DetId &id) const override
DetId goNorth(const DetId &id) const override
move the Topology north (increment iy)