104 std::ostringstream oss;
107 const unsigned int rpDecId =
id.arm()*100 +
id.station()*10 +
id.rp();
111 oss <<
" (strip RP " << std::setw(3) << rpDecId;
113 oss <<
", plane " << fid.
plane();
119 oss <<
" (pixel RP " << std::setw(3) << rpDecId;
121 oss <<
", plane " << fid.
plane();
127 oss <<
" (diamd RP " << std::setw(3) << rpDecId;
129 oss <<
", plane " << fid.
plane() <<
", channel " << std::setw(2) << fid.
channel();
135 oss <<
" (totim RP " << std::setw(3) << rpDecId;
137 oss <<
", plane " << fid.
plane() <<
", channel " << std::setw(2) << fid.
channel();
149 time_t unixTime =
event.time().unixTime();
151 strftime( timeStr, 50,
"%F %T", localtime( &unixTime ) );
153 std::ostringstream oss;
158 <<
" ce: RP center in global coordinates, in mm\n";
160 for (
auto it = geometry.
beginRP(); it != geometry.
endRP(); ++it ) {
164 <<
std::fixed << std::setprecision( 3 ) << std::showpos
165 <<
" | ce=(" << t.x() <<
", " << t.y() <<
", " << t.z() <<
")\n";
173 oss <<
"* sensors:\n" 174 <<
" ce: sensor center in global coordinates, in mm\n" 175 <<
" a1: local axis (1, 0, 0) in global coordinates\n" 176 <<
" a2: local axis (0, 1, 0) in global coordinates\n" 177 <<
" a3: local axis (0, 0, 1) in global coordinates\n";
182 const CLHEP::Hep3Vector gl_o = geometry.
localToGlobal( detId, CLHEP::Hep3Vector( 0, 0, 0 ) );
183 const CLHEP::Hep3Vector gl_a1 = geometry.
localToGlobal( detId, CLHEP::Hep3Vector( 1, 0, 0 ) ) - gl_o;
184 const CLHEP::Hep3Vector gl_a2 = geometry.
localToGlobal( detId, CLHEP::Hep3Vector( 0, 1, 0 ) ) - gl_o;
185 const CLHEP::Hep3Vector gl_a3 = geometry.
localToGlobal( detId, CLHEP::Hep3Vector( 0, 0, 1 ) ) - gl_o;
188 <<
std::fixed << std::setprecision( 3 ) << std::showpos
189 <<
" | ce=(" << gl_o.x() <<
", " << gl_o.y() <<
", " << gl_o.z() <<
")" 190 <<
" | a1=(" << gl_a1.x() <<
", " << gl_a1.y() <<
", " << gl_a1.z() <<
")" 191 <<
" | a2=(" << gl_a2.x() <<
", " << gl_a2.y() <<
", " << gl_a2.z() <<
")" 192 <<
" | a3=(" << gl_a3.x() <<
", " << gl_a3.y() <<
", " << gl_a3.z() <<
")\n";
198 <<
event.id().run() <<
", event=" <<
event.id().event() <<
", UNIX timestamp=" << unixTime
199 <<
" (" << timeStr <<
")\n"
Detector ID class for TOTEM Si strip detectors.
std::string geometryType_
Class to print out information on current geometry.
edm::ESWatcher< VeryForwardRealGeometryRecord > watcherRealGeometry_
#define DEFINE_FWK_MODULE(type)
mapType::const_iterator beginSensor() const
begin iterator over sensors
Event setup record containing the real (actual) geometry information.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::ESWatcher< VeryForwardMisalignedGeometryRecord > watcherMisalignedGeometry_
RPDeviceMapType::const_iterator beginRP() const
begin iterator over RPs
CTPPSGeometryInfo(const edm::ParameterSet &)
static std::string formatDetId(const CTPPSDetId &id, bool printDetails=true)
CLHEP::Hep3Vector localToGlobal(const DetGeomDesc *, const CLHEP::Hep3Vector &) const
The manager class for TOTEM RP geometry.
mapType::const_iterator endSensor() const
end iterator over sensors
RPDeviceMapType::const_iterator endRP() const
end iterator over RPs
bool check(const edm::EventSetup &iSetup)
Base class for CTPPS detector IDs.
ESHandle< TrackerGeometry > geometry
Event setup record containing the misaligned geometry information. It is used for alignment studies o...
void printGeometry(const CTPPSGeometry &, const edm::Event &)
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...
edm::ESWatcher< IdealGeometryRecord > watcherIdealGeometry_
Detector ID class for CTPPS Totem Timing detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bits ...