Go to the documentation of this file.
8 #ifndef Geometry_VeryForwardGeometryBuilder_CTPPSGeometry
9 #define Geometry_VeryForwardGeometryBuilder_CTPPSGeometry
32 typedef std::map<unsigned int, const DetGeomDesc*>
mapType;
34 typedef std::map<unsigned int, std::set<unsigned int> >
mapSetType;
74 RPDeviceMapType::const_iterator
endRP()
const {
return rps_map_.end(); }
102 const std::set<unsigned int>&
stationsInArm(
unsigned int)
const;
105 const std::set<unsigned int>&
rpsInStation(
unsigned int)
const;
108 const std::set<unsigned int>&
sensorsInRP(
unsigned int)
const;
Vector globalToLocal(const DetGeomDesc *, const Vector &) const
Vector rpTranslation(unsigned int id) const
Vector globalToLocalDirection(unsigned int id, const Vector &) const
RPDeviceMapType::const_iterator beginRP() const
begin iterator over RPs
The manager class for TOTEM RP geometry.
const std::set< unsigned int > & stationsInArm(unsigned int) const
after checks returns set of station ids corresponding to the given arm id
std::map< unsigned int, std::set< unsigned int > > mapSetType
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...
mapType sensors_map_
map: sensor id --> DetGeomDesc
Vector localToGlobalDirection(unsigned int id, const Vector &) const
mapType::const_iterator beginSensor() const
begin iterator over sensors
Vector sensorTranslation(unsigned int id) const
const DetGeomDesc * sensorNoThrow(unsigned int id) const noexcept
RPDeviceMapType rps_map_
map: rp id --> DetGeomDesc
const DetGeomDesc * rpNoThrow(unsigned int id) const noexcept
const std::set< unsigned int > & rpsInStation(unsigned int) const
after checks returns set of RP ids corresponding to the given station id
mapType::const_iterator endSensor() const
end iterator over sensors
std::map< unsigned int, const DetGeomDesc * > mapType
bool addRP(unsigned int id, const DetGeomDesc *&)
adds a RP box to a map
bool addSensor(unsigned int, const DetGeomDesc *&)
adds an item to the map (detector ID --> DetGeomDesc) performs necessary checks
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > Translation
const std::set< unsigned int > & sensorsInRP(unsigned int) const
after checks returns set of sensor ids corresponding to the given RP id
const DetGeomDesc * rp(unsigned int id) const
returns geometry of a RP box
CTPPSGeometry(const DetGeomDesc *gd, unsigned int verbosity)
build up from DetGeomDesc
void build(const DetGeomDesc *, unsigned int verbosity)
build up from DetGeomDesc structure
Vector localToGlobal(const DetGeomDesc *, const Vector &) const
std::map< int, const DetGeomDesc * > RPDeviceMapType
mapSetType rps_in_station_
RPDeviceMapType::const_iterator endRP() const
end iterator over RPs
const DetGeomDesc * sensor(unsigned int id) const
returns geometry of a detector performs necessary checks, returns NULL if fails
DetGeomDesc::Translation Vector