Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &) |
Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
Private Types | |
enum | DetectorType { DetectorType::INVALID = 0, DetectorType::TOTEM_UFSD = 1, DetectorType::PPS_DIAMOND = 2 } |
Private Member Functions | |
std::unique_ptr< PPSTimingCalibration > | parsePPSDiamondJsonFile () const |
Extract calibration data from JSON file (PPS horizontal diamond) More... | |
std::unique_ptr< PPSTimingCalibration > | parseTotemUFSDJsonFile () const |
Extract calibration data from JSON file (TOTEM vertical) More... | |
void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override |
Private Attributes | |
const std::string | filename_ |
DetectorType | subdetector_ |
Additional Inherited Members | |
Protected Types inherited from edm::ESProxyFactoryProducer | |
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
Protected Types inherited from edm::eventsetup::DataProxyProvider | |
using | KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >> |
Protected Member Functions inherited from edm::ESProducer | |
ESConsumesInfo * | consumesInfoPushBackNew () |
unsigned int | consumesInfoSize () const |
template<typename CallbackT , typename TList , typename TRecord > | |
void | registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel) |
template<typename CallbackT , typename TRecord > | |
void | registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const es::Label &iLabel={}) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const char *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 TDecorator > | |
auto | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={}) |
template<typename TFunc > | |
auto | setWhatProduced (TFunc &&func, const es::Label &iLabel={}) |
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator > | |
ESConsumesCollectorT< TRecord > | setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={}) |
void | usesResources (std::vector< std::string > const &) |
Protected Member Functions inherited from edm::ESProxyFactoryProducer | |
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 |
Protected Member Functions inherited from edm::eventsetup::DataProxyProvider | |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &key) |
Protected Member Functions inherited from edm::EventSetupRecordIntervalFinder | |
template<class T > | |
void | findingRecord () |
void | findingRecordWithKey (const eventsetup::EventSetupRecordKey &) |
Definition at line 34 of file PPSTimingCalibrationESSource.cc.
|
strongprivate |
Enumerator | |
---|---|
INVALID | |
TOTEM_UFSD | |
PPS_DIAMOND |
Definition at line 43 of file PPSTimingCalibrationESSource.cc.
PPSTimingCalibrationESSource::PPSTimingCalibrationESSource | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 60 of file PPSTimingCalibrationESSource.cc.
References edm::ESProducer::setWhatProduced().
|
static |
Definition at line 161 of file PPSTimingCalibrationESSource.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, createfilelist::int, and INVALID.
|
private |
Extract calibration data from JSON file (PPS horizontal diamond)
Definition at line 126 of file PPSTimingCalibrationESSource.cc.
References filename_, pfMETCorrectionType0_cfi::formula, crabWrapper::key, submitPVValidationJobs::params, AlCaHLTBitMon_QueryRunRegistry::string, simBeamSpotPI::timeOffset, and contentValuesCheck::values.
Referenced by produce().
|
private |
Extract calibration data from JSON file (TOTEM vertical)
Definition at line 91 of file PPSTimingCalibrationESSource.cc.
References filename_, pfMETCorrectionType0_cfi::formula, createfilelist::int, crabWrapper::key, submitPVValidationJobs::params, AlCaHLTBitMon_QueryRunRegistry::string, simBeamSpotPI::timeOffset, and contentValuesCheck::values.
Referenced by produce().
edm::ESProducts< std::unique_ptr< PPSTimingCalibration > > PPSTimingCalibrationESSource::produce | ( | const PPSTimingCalibrationRcd & | ) |
Definition at line 69 of file PPSTimingCalibrationESSource.cc.
References Exception, createfilelist::int, parsePPSDiamondJsonFile(), parseTotemUFSDJsonFile(), PPS_DIAMOND, edm::es::products(), subdetector_, and TOTEM_UFSD.
|
overrideprivatevirtual |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 83 of file PPSTimingCalibrationESSource.cc.
References edm::IOVSyncValue::beginOfTime(), and edm::IOVSyncValue::endOfTime().
|
private |
Definition at line 54 of file PPSTimingCalibrationESSource.cc.
Referenced by parsePPSDiamondJsonFile(), and parseTotemUFSDJsonFile().
|
private |
Definition at line 55 of file PPSTimingCalibrationESSource.cc.
Referenced by produce().