24 std::deque<const DetGeomDesc*>
buffer;
25 buffer.emplace_back(gD);
26 while (!buffer.empty()) {
48 buffer.emplace_back(
comp);
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();
Log< level::Info, true > LogVerbatim
const std::string DDD_CTPPS_PIXELS_RP_NAME
uint16_t *__restrict__ id
void build(const DetGeomDesc *, unsigned int verbosity)
build up from DetGeomDesc structure
DetId geographicalID() const
const Translation & translation() 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...
const DetGeomDesc * rp(unsigned int id) const
returns geometry of a RP box
const std::string DDD_TOTEM_TIMING_RP_NAME
const std::string DDD_CTPPS_PIXELS_SENSOR_NAME_2x2
const std::set< unsigned int > & rpsInStation(unsigned int) const
after checks returns set of RP ids corresponding to the given station id
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
Vector localToGlobal(const DetGeomDesc *, const Vector &) const
const std::string DDD_CTPPS_DIAMONDS_SEGMENT_NAME
CTPPSDetId stationId() const
Vector globalToLocal(const DetGeomDesc *, const Vector &) const
const DetGeomDesc * sensorNoThrow(unsigned int id) const noexcept
const std::string DDD_TOTEM_TIMING_SENSOR_TMPL
const Container & components() const
Vector globalToLocalDirection(unsigned int id, const Vector &) const
const std::string & name() const
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
const std::string DDD_TOTEM_RP_RP_NAME
DDD names of RP volumes.
mapSetType rps_in_station_
const std::string DDD_CTPPS_DIAMONDS_RP_NAME
RPDeviceMapType rps_map_
map: rp id –> DetGeomDesc
Vector localToGlobalDirection(unsigned int id, const Vector &) const
Vector sensorTranslation(unsigned int id) const
const DetGeomDesc * rpNoThrow(unsigned int id) const noexcept
Base class for CTPPS detector IDs.
const std::set< unsigned int > & stationsInArm(unsigned int) const
after checks returns set of station ids corresponding to the given arm id
Vector rpTranslation(unsigned int id) const
bool addSensor(unsigned int, const DetGeomDesc *&)
adds an item to the map (detector ID –> DetGeomDesc) performs necessary checks
const RotationMatrix & rotation() const
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
bool addRP(unsigned int id, const DetGeomDesc *&)
adds a RP box to a map
const std::string DDD_CTPPS_UFSD_SEGMENT_NAME