1 #ifndef GEOMETRY_CALOTOPOLOGY_ECALBARRELTOPOLOGY_H
2 #define GEOMETRY_CALOTOPOLOGY_ECALBARRELTOPOLOGY_H 1
33 std::vector<DetId> vNeighborsDetId;
35 vNeighborsDetId.push_back(
DetId(nextId.
rawId()));
36 return vNeighborsDetId;
46 std::vector<DetId> vNeighborsDetId;
48 vNeighborsDetId.push_back(
DetId(nextId.
rawId()));
49 return vNeighborsDetId;
56 virtual std::vector<DetId>
east(
const DetId&
id)
const
59 std::vector<DetId> vNeighborsDetId;
61 vNeighborsDetId.push_back(
DetId(nextId.
rawId()));
62 return vNeighborsDetId;
69 virtual std::vector<DetId>
west(
const DetId&
id)
const
72 std::vector<DetId> vNeighborsDetId;
74 vNeighborsDetId.push_back(
DetId(nextId.
rawId()));
75 return vNeighborsDetId;
79 virtual std::vector<DetId>
up(
const DetId& )
const
81 std::cout <<
"EcalBarrelTopology::up() not yet implemented" << std::endl;
82 std::vector<DetId> vNeighborsDetId;
83 return vNeighborsDetId;
86 virtual std::vector<DetId>
down(
const DetId& )
const
88 std::cout <<
"EcalBarrelTopology::down() not yet implemented" << std::endl;
89 std::vector<DetId> vNeighborsDetId;
90 return vNeighborsDetId;
virtual std::vector< DetId > west(const DetId &id) const
virtual std::vector< DetId > north(const DetId &id) const
virtual std::vector< DetId > east(const DetId &id) const
virtual DetId goEast(const DetId &id) const
move the Topology east (negative ieta)
uint32_t rawId() const
get the raw id
virtual std::vector< DetId > down(const DetId &) const
virtual std::vector< DetId > south(const DetId &id) const
EcalBarrelTopology(edm::ESHandle< CaloGeometry > theGeom)
create a new Topology from geometry
virtual DetId goWest(const DetId &id) const
move the Topology west (positive ieta)
EBDetId decrementIeta(const EBDetId &) const
move the nagivator to smaller ieta (more negative z) (stops at end of barrel and returns null) ...
virtual DetId goSouth(const DetId &id) const
move the Topology south (decrement iphi)
edm::ESHandle< CaloGeometry > theGeom_
virtual DetId goNorth(const DetId &id) const
move the Topology north (increment iphi)
EBDetId decrementIphi(const EBDetId &) const
move the nagivator to smaller iphi (wraps around the barrel)
EBDetId incrementIphi(const EBDetId &) const
move the nagivator to larger iphi (wraps around the barrel)
virtual ~EcalBarrelTopology()
virtual destructor
EBDetId incrementIeta(const EBDetId &) const
move the nagivator to larger ieta (more positive z) (stops at end of barrel and returns null) ...
virtual std::vector< DetId > up(const DetId &) const
EcalBarrelTopology()
create a new Topology