25 std::deque<const DetGeomDesc *>
buffer;
26 buffer.emplace_back(gD);
27 while ( !buffer.empty() ) {
47 buffer.emplace_back(
comp );
92 throw cms::Exception(
"CTPPSGeometry") <<
"Not found detector with ID " <<
id <<
", i.e. " 117 throw cms::Exception(
"CTPPSGeometry") <<
"Not found RP device with ID " <<
id <<
", i.e. " 137 const std::set<unsigned int>&
142 throw cms::Exception(
"CTPPSGeometry") <<
"Arm with ID " <<
id <<
" not found.";
148 const std::set<unsigned int>&
153 throw cms::Exception(
"CTPPSGeometry") <<
"Station with ID " <<
id <<
" not found.";
159 const std::set<unsigned int>&
164 throw cms::Exception(
"CTPPSGeometry") <<
"RP with ID " <<
id <<
" not found.";
222 return CLHEP::Hep3Vector( gd->translation().x(), gd->translation().y(), gd->translation().z() );
230 auto gd =
getRP(
id );
231 return CLHEP::Hep3Vector( gd->translation().x(), gd->translation().y(), gd->translation().z() );
Translation translation() const
const std::string DDD_CTPPS_PIXELS_RP_NAME
DetId geographicalID() const
const std::set< unsigned int > & getStationsInArm(unsigned int) const
after checks returns set of station ids corresponding to the given arm id
const DetGeomDesc * getSensorNoThrow(unsigned int id) 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...
CTPPSDetId getStationId() const
const std::string DDD_TOTEM_TIMING_RP_NAME
const std::set< unsigned int > & getRPsInStation(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
const std::string DDD_CTPPS_DIAMONDS_SEGMENT_NAME
const DetGeomDesc * getSensor(unsigned int id) const
returns geometry of a detector performs necessary checks, returns NULL if fails
void build(const DetGeomDesc *)
build up from DetGeomDesc structure
Geometrical description of a sensor.
CTPPSDetId getRPId() const
Container components() const
access to the tree structure
const std::string DDD_TOTEM_TIMING_SENSOR_TMPL
CLHEP::Hep3Vector localToGlobal(const DetGeomDesc *, const CLHEP::Hep3Vector &) const
const DetGeomDesc * getRPNoThrow(unsigned int id) const
RotationMatrix rotation() const
geometry information
const std::string & name() const
CLHEP::Hep3Vector getRPTranslation(unsigned int id) const
CTPPSDetId getArmId() const
const std::string DDD_TOTEM_RP_RP_NAME
DDD names of RP volumes.
mapSetType rps_in_station_
CLHEP::Hep3Vector localToGlobalDirection(unsigned int id, const CLHEP::Hep3Vector &) const
const std::string DDD_CTPPS_DIAMONDS_RP_NAME
RPDeviceMapType rps_map_
map: rp id –> DetGeomDesc
CLHEP::Hep3Vector globalToLocalDirection(unsigned int id, const CLHEP::Hep3Vector &) 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.
CLHEP::Hep3Vector getSensorTranslation(unsigned int id) const
const std::set< unsigned int > & getSensorsInRP(unsigned int) const
after checks returns set of sensor ids corresponding to the given RP id
const std::string DDD_CTPPS_PIXELS_SENSOR_NAME
mapType sensors_map_
map: sensor id –> DetGeomDesc
CLHEP::Hep3Vector globalToLocal(const DetGeomDesc *, const CLHEP::Hep3Vector &) const
const DetGeomDesc * getRP(unsigned int id) const
returns geometry of a RP box
bool addRP(unsigned int id, const DetGeomDesc *&)
adds a RP box to a map
const std::string DDD_CTPPS_UFSD_SEGMENT_NAME