141 time_t unixTime =
event.time().unixTime();
143 strftime( timeStr, 50,
"%F %T", localtime( &unixTime ) );
145 std::ostringstream oss;
150 <<
" ce: RP center in global coordinates, in mm\n";
152 for (
auto it = geometry.
beginRP(); it != geometry.
endRP(); ++it ) {
156 <<
std::fixed << std::setprecision( 3 ) <<
" | ce=(" << t.x() <<
", " << t.y() <<
", " << t.z() <<
")\n";
164 oss <<
"* sensors:\n" 165 <<
" ce: sensor center in global coordinates, in mm\n" 166 <<
" a1: local axis (1, 0, 0) in global coordinates\n" 167 <<
" a2: local axis (0, 1, 0) in global coordinates\n" 168 <<
" a3: local axis (0, 0, 1) in global coordinates\n";
173 const CLHEP::Hep3Vector gl_o = geometry.
localToGlobal( detId, CLHEP::Hep3Vector( 0, 0, 0 ) );
174 const CLHEP::Hep3Vector gl_a1 = geometry.
localToGlobal( detId, CLHEP::Hep3Vector( 1, 0, 0 ) ) - gl_o;
175 const CLHEP::Hep3Vector gl_a2 = geometry.
localToGlobal( detId, CLHEP::Hep3Vector( 0, 1, 0 ) ) - gl_o;
176 const CLHEP::Hep3Vector gl_a3 = geometry.
localToGlobal( detId, CLHEP::Hep3Vector( 0, 0, 1 ) ) - gl_o;
179 <<
std::fixed << std::setprecision( 3 ) << std::showpos
180 <<
" | ce=(" << gl_o.x() <<
", " << gl_o.y() <<
", " << gl_o.z() <<
")" 181 <<
" | a1=(" << gl_a1.x() <<
", " << gl_a1.y() <<
", " << gl_a1.z() <<
")" 182 <<
" | a2=(" << gl_a2.x() <<
", " << gl_a2.y() <<
", " << gl_a2.z() <<
")" 183 <<
" | a3=(" << gl_a3.x() <<
", " << gl_a3.y() <<
", " << gl_a3.z() <<
")\n";
189 <<
event.id().run() <<
", event=" <<
event.id().event() <<
", UNIX timestamp=" << unixTime
190 <<
" (" << timeStr <<
")\n"
std::string geometryType_
mapType::const_iterator beginSensor() const
begin iterator over sensors
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
RPDeviceMapType::const_iterator beginRP() const
begin iterator over RPs
static std::string formatDetId(const CTPPSDetId &id, bool printDetails=true)
CLHEP::Hep3Vector localToGlobal(const DetGeomDesc *, const CLHEP::Hep3Vector &) const
mapType::const_iterator endSensor() const
end iterator over sensors
RPDeviceMapType::const_iterator endRP() const
end iterator over RPs
Base class for CTPPS detector IDs.