1 #ifndef GEOMETRY_CALOTOPOLOGY_ECALBARRELTOPOLOGY_H
2 #define GEOMETRY_CALOTOPOLOGY_ECALBARRELTOPOLOGY_H 1
30 std::vector<DetId> vNeighborsDetId;
32 vNeighborsDetId.push_back(
DetId(nextId.
rawId()));
33 return vNeighborsDetId;
40 std::vector<DetId> vNeighborsDetId;
42 vNeighborsDetId.push_back(
DetId(nextId.
rawId()));
43 return vNeighborsDetId;
47 virtual std::vector<DetId>
east(
const DetId&
id)
const
50 std::vector<DetId> vNeighborsDetId;
52 vNeighborsDetId.push_back(
DetId(nextId.
rawId()));
53 return vNeighborsDetId;
57 virtual std::vector<DetId>
west(
const DetId&
id)
const
60 std::vector<DetId> vNeighborsDetId;
62 vNeighborsDetId.push_back(
DetId(nextId.
rawId()));
63 return vNeighborsDetId;
66 virtual std::vector<DetId>
up(
const DetId& )
const
68 std::cout <<
"EcalBarrelTopology::up() not yet implemented" << std::endl;
69 std::vector<DetId> vNeighborsDetId;
70 return vNeighborsDetId;
73 virtual std::vector<DetId>
down(
const DetId& )
const
75 std::cout <<
"EcalBarrelTopology::down() not yet implemented" << std::endl;
76 std::vector<DetId> vNeighborsDetId;
77 return vNeighborsDetId;
virtual std::vector< DetId > west(const DetId &id) const
move the Topology west (positive ieta)
virtual std::vector< DetId > north(const DetId &id) const
move the Topology north (increment iphi)
virtual std::vector< DetId > east(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
move the Topology south (decrement iphi)
EcalBarrelTopology(edm::ESHandle< CaloGeometry > theGeom)
create a new Topology from geometry
EBDetId decrementIeta(const EBDetId &) const
move the nagivator to smaller ieta (more negative z) (stops at end of barrel and returns null) ...
edm::ESHandle< CaloGeometry > theGeom_
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