Go to the documentation of this file.
62 : record_(iConfig.getParameter<
string>(
"record")), iov_(iConfig.getParameter<unsigned long long>(
"iov")) {
63 if (strcmp(
record_.c_str(),
"CTPPSRPAlignmentCorrectionsDataRcd") == 0) {
64 tokenAlignmentIdeal_ = esConsumes<CTPPSRPAlignmentCorrectionsData, CTPPSRPAlignmentCorrectionsDataRcd>();
65 }
else if (strcmp(
record_.c_str(),
"RPRealAlignmentRecord") == 0) {
77 if (strcmp(
record_.c_str(),
"CTPPSRPAlignmentCorrectionsDataRcd") == 0) {
79 }
else if (strcmp(
record_.c_str(),
"RPRealAlignmentRecord") == 0) {
96 time_t unixTime =
event.time().unixTime();
98 strftime(timeStr, 50,
"%F %T", localtime(&unixTime));
101 <<
"New alignments found in run=" <<
event.id().run() <<
", event=" <<
event.id().event()
102 <<
", UNIX timestamp=" << unixTime <<
" (" << timeStr <<
"):\n"
T const * product() const
~CTPPSRPAlignmentInfoAnalyzer() override
void analyze(const edm::Event &e, const edm::EventSetup &es) override
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, CTPPSRPAlignmentCorrectionsDataRcd > tokenAlignmentIdeal_
Log< level::Info, false > LogInfo
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord > tokenAlignmentMisaligned_
Class to print out information on current geometry.
#define DEFINE_FWK_MODULE(type)
CTPPSRPAlignmentInfoAnalyzer(const edm::ParameterSet &ps)
unsigned long long Time_t
edm::ESGetToken< CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecord > tokenAlignmentReal_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
void printInfo(const CTPPSRPAlignmentCorrectionsData &alignments, const edm::Event &event) const