|
std::unique_ptr< CTPPSRPAlignmentCorrectionsData > | produceMeasured (const CTPPSRPAlignmentCorrectionsDataRcd &) |
|
std::unique_ptr< CTPPSRPAlignmentCorrectionsData > | produceMisaligned (const RPMisalignedAlignmentRecord &) |
|
std::unique_ptr< CTPPSRPAlignmentCorrectionsData > | produceReal (const RPRealAlignmentRecord &) |
|
void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const char *iLabel) |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const es::Label &iLabel={}) |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const std::string &iLabel) |
|
template<typename T , typename TDecorator > |
auto | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={}) |
|
template<typename T , typename TReturn , typename TRecord > |
auto | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const es::Label &iLabel={}) |
|
template<typename T , typename TReturn , typename TRecord , typename TArg > |
ESConsumesCollectorT< TRecord > | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={}) |
|
void | usesResources (std::vector< std::string > const &) |
|
template<class TFactory > |
void | registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
|
virtual void | registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string()) |
|
KeyedProxiesVector | registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override |
|
template<class T > |
void | usingRecord () |
|
void | usingRecordWithKey (const EventSetupRecordKey &key) |
|
template<class T > |
void | findingRecord () |
|
void | findingRecordWithKey (const eventsetup::EventSetupRecordKey &) |
|
Loads alignment corrections to EventSetup.
Definition at line 39 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 99 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.
105 strftime(timeStr, 50,
"%F %T", localtime(&unixTime));
107 LogInfo(
"PPS") <<
">> CTPPSRPAlignmentCorrectionsDataESSourceXML::setIntervalFor(" <<
key.name() <<
")";
109 LogInfo(
"PPS") <<
" event=" << iosv.
eventID() <<
", UNIX timestamp=" << unixTime <<
" (" << timeStr <<
")";
116 if (strcmp(
key.name(),
"CTPPSRPAlignmentCorrectionsDataRcd") == 0) {
121 if (strcmp(
key.name(),
"RPRealAlignmentRecord") == 0) {
126 if (strcmp(
key.name(),
"RPMisalignedAlignmentRecord") == 0) {
131 if (p_corr ==
nullptr)
132 throw cms::Exception(
"CTPPSRPAlignmentCorrectionsDataESSourceXML::setIntervalFor")
133 <<
"Unknown record " <<
key.name();
136 bool next_exists =
false;
140 for (
const auto &it : *p_seq) {
141 const auto &it_event_first = it.first.first().eventID();
142 const auto &it_event_last = it.first.last().eventID();
144 bool it_contained_lo = ((it_event_first.run() < event_curr.
run()) ||
145 ((it_event_first.run() == event_curr.
run()) &&
148 bool it_contained_up = ((it_event_last.run() > event_curr.
run()) ||
149 ((it_event_last.run() == event_curr.
run()) &&
152 if (it_contained_lo && it_contained_up) {
157 LogInfo(
"PPS") <<
" setting validity interval ["
165 bool it_in_future = ((it_event_first.run() > event_curr.
run()) ||
166 ((it_event_first.run() == event_curr.
run() &&
171 if (event_next_start > it_event_first)
172 event_next_start = it_event_first;
187 LogInfo(
"PPS") <<
" setting validity interval ["
190 <<
"] (empty alignment corrections)";
References edm::IOVSyncValue::endOfTime(), edm::IOVSyncValue::eventID(), Exception, edm::ValidityInterval::first(), CTPPSRPAlignmentCorrectionsMethods::iovValueToString(), crabWrapper::key, edm::ValidityInterval::last(), edm::EventID::luminosityBlock(), edm::EventID::maxLuminosityBlockNumber(), edm::EventID::maxRunNumber(), edm::EventID::run(), edm::IOVSyncValue::time(), and edm::Timestamp::unixTime().