18 auto it = sensorGeometry.find(
id);
19 if (
it == sensorGeometry.end())
20 throw cms::Exception(
"PPS") <<
"No geometry available for sensor " <<
id <<
".";
32 for (
const auto &
it : sensorGeometry) {
35 printf(
" z = %+10.4f mm │ shift: x = %+7.3f mm, y = %+7.3f mm │ ",
it.second.z,
it.second.sx,
it.second.sy);
37 for (
const auto &dit :
it.second.directionData) {
38 printf(
"dir%u: %+.3f, %+.3f, %+.3f │ ", dit.first, dit.second.dx, dit.second.dy, dit.second.dz);
42 printf(
"%s", (
it.second.isU) ?
"U-det" :
"V-det");
A structure to hold relevant geometrical information about one detector/sensor.
void print() const
Prints the geometry.
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
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void printId(unsigned int id)
Base class for CTPPS detector IDs.
const DetGeometry & get(unsigned int id) const
retrieves sensor geometry
void insert(unsigned int id, const DetGeometry &g)
puts an element to the map