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 | |
Public Types inherited from edm::eventsetup::DataProxyProvider | |
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > | KeyedProxies |
typedef std::vector< EventSetupRecordKey > | Keys |
typedef std::map< EventSetupRecordKey, KeyedProxies > | RecordProxies |
Protected Member Functions inherited from edm::ESProducer | |
ESProducer (const ESProducer &)=delete | |
ESProducer const & | operator= (const ESProducer &)=delete |
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 TArg > | |
ESConsumesCollectorT< TRecord > | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={}) |
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 eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string()) |
void | registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override |
override DataProxyProvider method More... | |
Protected Member Functions inherited from edm::eventsetup::DataProxyProvider | |
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
deletes all the Proxies in aStream More... | |
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &) |
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 44 of file PPSTimingCalibrationESSource.cc.
PPSTimingCalibrationESSource::PPSTimingCalibrationESSource | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 64 of file PPSTimingCalibrationESSource.cc.
References edm::ESProducer::setWhatProduced().
|
static |
Definition at line 175 of file PPSTimingCalibrationESSource.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), DEFINE_FWK_EVENTSETUP_SOURCE, createfilelist::int, INVALID, and edm::ParameterDescriptionNode::setComment().
|
private |
Extract calibration data from JSON file (PPS horizontal diamond)
Definition at line 138 of file PPSTimingCalibrationESSource.cc.
References PPSTimingCalibration::Key::cell, PPSTimingCalibration::Key::channel, PPSTimingCalibration::Key::db, filename_, EcalElecEmulTccOnlyExample_cfg::formula, crabWrapper::key, nullptr, PPSTimingCalibration::Key::sampic, AlCaHLTBitMon_QueryRunRegistry::string, hgcalLayerClusters_cff::timeOffset, and MuonErrorMatrixValues_cff::values.
Referenced by produce().
|
private |
Extract calibration data from JSON file (TOTEM vertical)
Definition at line 101 of file PPSTimingCalibrationESSource.cc.
References PPSTimingCalibration::Key::cell, PPSTimingCalibration::Key::channel, PPSTimingCalibration::Key::db, filename_, EcalElecEmulTccOnlyExample_cfg::formula, createfilelist::int, crabWrapper::key, nullptr, PPSTimingCalibration::Key::sampic, AlCaHLTBitMon_QueryRunRegistry::string, hgcalLayerClusters_cff::timeOffset, and MuonErrorMatrixValues_cff::values.
Referenced by produce().
edm::ESProducts< std::unique_ptr< PPSTimingCalibration > > PPSTimingCalibrationESSource::produce | ( | const PPSTimingCalibrationRcd & | ) |
Definition at line 75 of file PPSTimingCalibrationESSource.cc.
References Exception, createfilelist::int, parsePPSDiamondJsonFile(), parseTotemUFSDJsonFile(), PPS_DIAMOND, edm::es::products(), subdetector_, and TOTEM_UFSD.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
overrideprivatevirtual |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 91 of file PPSTimingCalibrationESSource.cc.
References edm::IOVSyncValue::beginOfTime(), and edm::IOVSyncValue::endOfTime().
|
private |
Definition at line 58 of file PPSTimingCalibrationESSource.cc.
Referenced by parsePPSDiamondJsonFile(), and parseTotemUFSDJsonFile().
|
private |
Definition at line 59 of file PPSTimingCalibrationESSource.cc.
Referenced by produce().