Go to the documentation of this file.
66 if (watcherAlignments_.check(iSetup)) {
67 if (strcmp(record_.c_str(),
"CTPPSRPAlignmentCorrectionsDataRcd") == 0) {
69 }
else if (strcmp(record_.c_str(),
"RPRealAlignmentRecord") == 0) {
77 poolDbService->
writeOne(pCTPPSRPAlignmentCorrectionsData, iov_, record_);
87 time_t unixTime =
event.time().unixTime();
89 strftime(timeStr, 50,
"%F %T", localtime(&unixTime));
92 <<
"New alignments found in run=" <<
event.id().run() <<
", event=" <<
event.id().event()
93 <<
", UNIX timestamp=" << unixTime <<
" (" << timeStr <<
"):\n"
T const * product() const
~CTPPSRPAlignmentInfoAnalyzer() override
void analyze(const edm::Event &e, const edm::EventSetup &es) override
Log< level::Info, false > LogInfo
Class to print out information on current geometry.
#define DEFINE_FWK_MODULE(type)
CTPPSRPAlignmentInfoAnalyzer(const edm::ParameterSet &ps)
edm::ESWatcher< CTPPSRPAlignmentCorrectionsDataRcd > watcherAlignments_
unsigned long long Time_t
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...
T getParameter(std::string const &) const
void printInfo(const CTPPSRPAlignmentCorrectionsData &alignments, const edm::Event &event) const