|
|
Go to the documentation of this file.
59 : geometryType_(iConfig.getUntrackedParameter<
std::
string>(
"geometryType",
"real")),
60 printRPInfo_(iConfig.getUntrackedParameter<
bool>(
"printRPInfo",
true)),
61 printSensorInfo_(iConfig.getUntrackedParameter<
bool>(
"printSensorInfo",
true)) {}
98 std::ostringstream oss;
101 const unsigned int rpDecId =
id.arm() * 100 +
id.station() * 10 +
id.rp();
105 oss <<
" (strip RP " << std::setw(3) << rpDecId;
107 oss <<
", plane " << fid.
plane();
113 oss <<
" (pixel RP " << std::setw(3) << rpDecId;
115 oss <<
", plane " << fid.
plane();
121 oss <<
" (diamd RP " << std::setw(3) << rpDecId;
123 oss <<
", plane " << fid.
plane() <<
", channel " << std::setw(2) << fid.
channel();
129 oss <<
" (totim RP " << std::setw(3) << rpDecId;
131 oss <<
", plane " << fid.
plane() <<
", channel " << std::setw(2) << fid.
channel();
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";
156 <<
" | 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";
178 oss <<
formatDetId(detId) <<
std::fixed << std::setprecision(3) << std::showpos <<
" | ce=(" << gl_o.x() <<
", "
179 << gl_o.y() <<
", " << gl_o.z() <<
")"
180 <<
" | a1=(" << gl_a1.x() <<
", " << gl_a1.y() <<
", " << gl_a1.z() <<
")"
181 <<
" | a2=(" << gl_a2.x() <<
", " << gl_a2.y() <<
", " << gl_a2.z() <<
")"
182 <<
" | a3=(" << gl_a3.x() <<
", " << gl_a3.y() <<
", " << gl_a3.z() <<
")\n";
187 <<
", event=" <<
event.id().event() <<
", UNIX timestamp=" << unixTime <<
" ("
bool check(const edm::EventSetup &iSetup)
Event setup record containing the real (actual) geometry information.
ESHandle< TrackerGeometry > geometry
edm::ESWatcher< VeryForwardRealGeometryRecord > watcherRealGeometry_
The manager class for TOTEM RP geometry.
std::string geometryType_
void analyze(const edm::Event &, const edm::EventSetup &) override
static std::string formatDetId(const CTPPSDetId &id, bool printDetails=true)
#define DEFINE_FWK_MODULE(type)
CTPPSGeometryInfo(const edm::ParameterSet &)
Detector ID class for CTPPS Totem Timing detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bits ...
edm::ESWatcher< VeryForwardMisalignedGeometryRecord > watcherMisalignedGeometry_
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...
Base class for CTPPS detector IDs.
Event setup record containing the misaligned geometry information. It is used for alignment studies o...
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > Translation
void printGeometry(const CTPPSGeometry &, const edm::Event &)
edm::ESWatcher< IdealGeometryRecord > watcherIdealGeometry_
Detector ID class for TOTEM Si strip detectors.
DetGeomDesc::Translation Vector
Class to print out information on current geometry.