73 if(strcmp(
record_.c_str(),
"CTPPSRPAlignmentCorrectionsDataRcd")==0){
76 else if(strcmp(
record_.c_str(),
"RPRealAlignmentRecord")==0){
97 time_t unixTime =
event.time().unixTime();
99 strftime( timeStr, 50,
"%F %T", localtime( &unixTime ) );
102 <<
"New alignments found in run=" 103 <<
event.id().run() <<
", event=" <<
event.id().event() <<
", UNIX timestamp=" << unixTime
104 <<
" (" << timeStr <<
"):\n"
T getParameter(std::string const &) const
void printInfo(const CTPPSRPAlignmentCorrectionsData &alignments, const edm::Event &event) const
Class to print out information on current geometry.
#define DEFINE_FWK_MODULE(type)
unsigned long long Time_t
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
~CTPPSRPAlignmentInfoAnalyzer() override
void analyze(const edm::Event &e, const edm::EventSetup &es) override
bool check(const edm::EventSetup &iSetup)
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
CTPPSRPAlignmentInfoAnalyzer(const edm::ParameterSet &ps)
edm::ESWatcher< CTPPSRPAlignmentCorrectionsDataRcd > watcherAlignments_
T const * product() const