8 #ifndef Geometry_VeryForwardGeometryBuilder_CTPPSGeometry 9 #define Geometry_VeryForwardGeometryBuilder_CTPPSGeometry 16 #include "CLHEP/Vector/ThreeVector.h" 17 #include "CLHEP/Vector/Rotation.h" 35 typedef std::map<unsigned int, const DetGeomDesc*>
mapType;
37 typedef std::map<unsigned int, std::set<unsigned int> >
mapSetType;
78 RPDeviceMapType::const_iterator
endRP()
const {
return rps_map_.end(); }
87 CLHEP::Hep3Vector
localToGlobal(
unsigned int,
const CLHEP::Hep3Vector&)
const;
88 CLHEP::Hep3Vector
globalToLocal(
unsigned int,
const CLHEP::Hep3Vector&)
const;
106 const std::set<unsigned int>&
stationsInArm(
unsigned int)
const;
109 const std::set<unsigned int>&
rpsInStation(
unsigned int)
const;
112 const std::set<unsigned int>&
sensorsInRP(
unsigned int)
const;
CTPPSGeometry(const DetGeomDesc *gd)
build up from DetGeomDesc
mapSetType stations_in_arm_
map: parent ID -> set of subelements E.g. stations_in_arm_ is map of arm ID -> set of stations (in th...
const DetGeomDesc * rpNoThrow(unsigned int id) const
const DetGeomDesc * rp(unsigned int id) const
returns geometry of a RP box
std::map< int, const DetGeomDesc * > RPDeviceMapType
mapType::const_iterator beginSensor() const
begin iterator over sensors
const std::set< unsigned int > & rpsInStation(unsigned int) const
after checks returns set of RP ids corresponding to the given station id
CLHEP::Hep3Vector sensorTranslation(unsigned int id) const
std::map< unsigned int, const DetGeomDesc * > mapType
CLHEP::Hep3Vector rpTranslation(unsigned int id) const
void build(const DetGeomDesc *)
build up from DetGeomDesc structure
RPDeviceMapType::const_iterator beginRP() const
begin iterator over RPs
Geometrical description of a sensor.
CLHEP::Hep3Vector localToGlobal(const DetGeomDesc *, const CLHEP::Hep3Vector &) const
The manager class for TOTEM RP geometry.
const std::set< unsigned int > & sensorsInRP(unsigned int) const
after checks returns set of sensor ids corresponding to the given RP id
const DetGeomDesc * sensor(unsigned int id) const
returns geometry of a detector performs necessary checks, returns NULL if fails
mapSetType rps_in_station_
CLHEP::Hep3Vector localToGlobalDirection(unsigned int id, const CLHEP::Hep3Vector &) const
mapType::const_iterator endSensor() const
end iterator over sensors
RPDeviceMapType::const_iterator endRP() const
end iterator over RPs
RPDeviceMapType rps_map_
map: rp id –> DetGeomDesc
CLHEP::Hep3Vector globalToLocalDirection(unsigned int id, const CLHEP::Hep3Vector &) const
const std::set< unsigned int > & stationsInArm(unsigned int) const
after checks returns set of station ids corresponding to the given arm id
bool addSensor(unsigned int, const DetGeomDesc *&)
adds an item to the map (detector ID –> DetGeomDesc) performs necessary checks
std::map< unsigned int, std::set< unsigned int > > mapSetType
mapType sensors_map_
map: sensor id –> DetGeomDesc
CLHEP::Hep3Vector globalToLocal(const DetGeomDesc *, const CLHEP::Hep3Vector &) const
bool addRP(unsigned int id, const DetGeomDesc *&)
adds a RP box to a map
const DetGeomDesc * sensorNoThrow(unsigned int id) const