#include <EcalEndcapHardcodedTopology.h>
Public Member Functions | |
virtual std::vector< DetId > | down (const DetId &id) const |
virtual std::vector< DetId > | east (const DetId &id) const |
move the Topology east (positive ix) | |
EcalEndcapHardcodedTopology () | |
create a new Topology | |
virtual std::vector< DetId > | north (const DetId &id) const |
move the Topology north (increment iy) | |
virtual std::vector< DetId > | south (const DetId &id) const |
move the Topology south (decrement iy) | |
virtual std::vector< DetId > | up (const DetId &id) const |
virtual std::vector< DetId > | west (const DetId &id) const |
move the Topology west (negative ix) | |
virtual | ~EcalEndcapHardcodedTopology () |
Private Member Functions | |
EEDetId | decrementIx (const EEDetId &) const |
move the nagivator to smaller ix | |
EEDetId | decrementIy (const EEDetId &) const |
move the nagivator to smaller iy | |
EEDetId | incrementIx (const EEDetId &) const |
move the nagivator to larger ix | |
EEDetId | incrementIy (const EEDetId &) const |
move the nagivator to larger iy |
Definition at line 9 of file EcalEndcapHardcodedTopology.h.
EcalEndcapHardcodedTopology::EcalEndcapHardcodedTopology | ( | ) | [inline] |
virtual EcalEndcapHardcodedTopology::~EcalEndcapHardcodedTopology | ( | ) | [inline, virtual] |
Definition at line 16 of file EcalEndcapHardcodedTopology.h.
{};
move the nagivator to smaller ix
Definition at line 8 of file EcalEndcapHardcodedTopology.cc.
References EEDetId::validDetId().
Referenced by west().
{ if (! (EEDetId::validDetId(id.ix()-1,id.iy(),id.zside()) ) ) return EEDetId(0); // null det id else return EEDetId(id.ix()-1,id.iy(),id.zside()); }
move the nagivator to smaller iy
Definition at line 18 of file EcalEndcapHardcodedTopology.cc.
References EEDetId::validDetId().
Referenced by south().
{ if (! (EEDetId::validDetId(id.ix(),id.iy()-1,id.zside()) ) ) return EEDetId(0); // null det id else return EEDetId(id.ix(),id.iy()-1,id.zside()); }
virtual std::vector<DetId> EcalEndcapHardcodedTopology::down | ( | const DetId & | id | ) | const [inline, virtual] |
Get the neighbors of the given cell in down direction (inward)
Implements CaloSubdetectorTopology.
Definition at line 65 of file EcalEndcapHardcodedTopology.h.
References gather_cfg::cout.
{ std::cout << "EcalEndcapHardcodedTopology::down() not yet implemented" << std::endl; std::vector<DetId> vNeighborsDetId; return vNeighborsDetId; }
virtual std::vector<DetId> EcalEndcapHardcodedTopology::east | ( | const DetId & | id | ) | const [inline, virtual] |
move the Topology east (positive ix)
Implements CaloSubdetectorTopology.
Definition at line 39 of file EcalEndcapHardcodedTopology.h.
References incrementIx(), and DetId::rawId().
move the nagivator to larger ix
Definition at line 3 of file EcalEndcapHardcodedTopology.cc.
References EEDetId::validDetId().
Referenced by east().
{ if (! (EEDetId::validDetId(id.ix()+1,id.iy(),id.zside()) ) ) return EEDetId(0); // null det id else return EEDetId(id.ix()+1,id.iy(),id.zside()); }
move the nagivator to larger iy
Definition at line 13 of file EcalEndcapHardcodedTopology.cc.
References EEDetId::validDetId().
Referenced by north().
{ if (! (EEDetId::validDetId(id.ix(),id.iy()+1,id.zside()) ) ) return EEDetId(0); // null det id else return EEDetId(id.ix(),id.iy()+1,id.zside()); }
virtual std::vector<DetId> EcalEndcapHardcodedTopology::north | ( | const DetId & | id | ) | const [inline, virtual] |
move the Topology north (increment iy)
Implements CaloSubdetectorTopology.
Definition at line 19 of file EcalEndcapHardcodedTopology.h.
References incrementIy(), and DetId::rawId().
virtual std::vector<DetId> EcalEndcapHardcodedTopology::south | ( | const DetId & | id | ) | const [inline, virtual] |
move the Topology south (decrement iy)
Implements CaloSubdetectorTopology.
Definition at line 29 of file EcalEndcapHardcodedTopology.h.
References decrementIy(), and DetId::rawId().
virtual std::vector<DetId> EcalEndcapHardcodedTopology::up | ( | const DetId & | id | ) | const [inline, virtual] |
Get the neighbors of the given cell in up direction (outward)
Implements CaloSubdetectorTopology.
Definition at line 58 of file EcalEndcapHardcodedTopology.h.
References gather_cfg::cout.
{ std::cout << "EcalEndcapHardcodedTopology::up() not yet implemented" << std::endl; std::vector<DetId> vNeighborsDetId; return vNeighborsDetId; }
virtual std::vector<DetId> EcalEndcapHardcodedTopology::west | ( | const DetId & | id | ) | const [inline, virtual] |
move the Topology west (negative ix)
Implements CaloSubdetectorTopology.
Definition at line 49 of file EcalEndcapHardcodedTopology.h.
References decrementIx(), and DetId::rawId().