Go to the documentation of this file.
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 globalToLocal(const DetGeomDesc *, const Vector &) const
Vector rpTranslation(unsigned int id) const
Vector globalToLocalDirection(unsigned int id, const Vector &) const
const std::string DDD_CTPPS_UFSD_SEGMENT_NAME
const std::string DDD_CTPPS_PIXELS_SENSOR_NAME
const Translation & translation() const
const std::set< unsigned int > & stationsInArm(unsigned int) const
after checks returns set of station ids corresponding to the given arm id
const std::string DDD_CTPPS_PIXELS_RP_NAME
const std::string DDD_TOTEM_TIMING_RP_NAME
const std::string DDD_CTPPS_DIAMONDS_SEGMENT_NAME
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
const std::string DDD_CTPPS_PIXELS_SENSOR_NAME_2x2
Vector localToGlobalDirection(unsigned int id, const Vector &) const
Vector sensorTranslation(unsigned int id) const
const DetGeomDesc * sensorNoThrow(unsigned int id) const noexcept
const std::string DDD_CTPPS_DIAMONDS_RP_NAME
RPDeviceMapType rps_map_
map: rp id --> DetGeomDesc
Base class for CTPPS detector IDs.
const std::string DDD_TOTEM_TIMING_SENSOR_TMPL
const DetGeomDesc * rpNoThrow(unsigned int id) const noexcept
const std::string DDD_TOTEM_RP_RP_NAME
DDD names of RP volumes.
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
bool addSensor(unsigned int, const DetGeomDesc *&)
adds an item to the map (detector ID --> DetGeomDesc) performs necessary checks
CTPPSDetId stationId() const
Log< level::Info, true > LogVerbatim
const std::set< unsigned int > & sensorsInRP(unsigned int) const
after checks returns set of sensor ids corresponding to the given RP id
const std::string DDD_TOTEM_RP_SENSOR_NAME
DDD names of sensors.
const DetGeomDesc * rp(unsigned int id) const
returns geometry of a RP box
void build(const DetGeomDesc *, unsigned int verbosity)
build up from DetGeomDesc structure
const RotationMatrix & rotation() const
Vector localToGlobal(const DetGeomDesc *, const Vector &) const
mapSetType rps_in_station_
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
const DetGeomDesc * sensor(unsigned int id) const
returns geometry of a detector performs necessary checks, returns NULL if fails
DetGeomDesc::Translation Vector