24 std::deque<const DetGeomDesc*>
buffer;
47 for (
const auto&
comp :
d->components())
54 <<
"sensors_map_.size() = " <<
sensors_map_.size() <<
", rps_map_.size() = " <<
rps_map_.size() << std::endl;
103 auto it = sensors_map_.find(
id);
104 if (it == sensors_map_.end()) {
123 auto it = rps_map_.find(
id);
124 if (it == rps_map_.end()) {
135 throw cms::Exception(
"CTPPSGeometry") <<
"Arm with ID " <<
id <<
" not found.";
144 throw cms::Exception(
"CTPPSGeometry") <<
"Station with ID " <<
id <<
" not found.";
153 throw cms::Exception(
"CTPPSGeometry") <<
"RP with ID " <<
id <<
" not found.";
197 return gd->translation();
204 return gd->translation();
Vector sensorTranslation(unsigned int id) const
Log< level::Info, true > LogVerbatim
const Translation & translation() const
const std::string DDD_CTPPS_PIXELS_RP_NAME
const std::set< unsigned int > & stationsInArm(unsigned int) const
after checks returns set of station ids corresponding to the given arm id
void build(const DetGeomDesc *, unsigned int verbosity)
build up from DetGeomDesc structure
Vector globalToLocal(const DetGeomDesc *, const Vector &) const
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...
Vector localToGlobal(const DetGeomDesc *, const Vector &) const
const std::string DDD_TOTEM_TIMING_RP_NAME
const std::string DDD_CTPPS_PIXELS_SENSOR_NAME_2x2
Vector globalToLocalDirection(unsigned int id, const Vector &) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
DetGeomDesc::Translation Vector
const std::string DDD_CTPPS_DIAMONDS_SEGMENT_NAME
const DetGeomDesc * rp(unsigned int id) const
returns geometry of a RP box
const DetGeomDesc * sensorNoThrow(unsigned int id) const noexcept
const DetGeomDesc * sensor(unsigned int id) const
returns geometry of a detector performs necessary checks, returns NULL if fails
const std::string DDD_TOTEM_TIMING_SENSOR_TMPL
const std::string DDD_TOTEM_RP_RP_NAME
DDD names of RP volumes.
mapSetType rps_in_station_
Vector rpTranslation(unsigned int id) const
const std::string DDD_CTPPS_DIAMONDS_RP_NAME
RPDeviceMapType rps_map_
map: rp id –> DetGeomDesc
const std::set< unsigned int > & sensorsInRP(unsigned int) const
after checks returns set of sensor ids corresponding to the given RP id
const DetGeomDesc * rpNoThrow(unsigned int id) const noexcept
const RotationMatrix & rotation() const
Base class for CTPPS detector IDs.
bool addSensor(unsigned int, const DetGeomDesc *&)
adds an item to the map (detector ID –> DetGeomDesc) performs necessary checks
const std::string DDD_TOTEM_RP_SENSOR_NAME
DDD names of sensors.
const std::string DDD_CTPPS_PIXELS_SENSOR_NAME
mapType sensors_map_
map: sensor id –> DetGeomDesc
Vector localToGlobalDirection(unsigned int id, const Vector &) const
const std::set< unsigned int > & rpsInStation(unsigned int) const
after checks returns set of RP ids corresponding to the given station id
bool addRP(unsigned int id, const DetGeomDesc *&)
adds a RP box to a map
const std::string DDD_CTPPS_UFSD_SEGMENT_NAME