#include <RecoLuminosity/LumiProducer/src/DIPLumiProducer.cc>
Public Types | |
typedef std::shared_ptr< const DIPLumiDetail > | ReturnDetailType |
typedef std::shared_ptr< const DIPLumiSummary > | ReturnSummaryType |
Protected Member Functions | |
void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override |
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::ESProductResolverFactoryProducer | |
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::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string()) |
KeyedResolversVector | registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override |
Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider | |
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 &) |
Private Member Functions | |
void | filldetailcache (unsigned int runnumber, unsigned int startlsnum) |
void | fillsummarycache (unsigned int runnumber, unsigned int startlsnum) |
unsigned int | maxavailableLSforRun (coral::ISchema &schema, const std::string &tablename, unsigned int runnumber) |
Private Attributes | |
unsigned int | m_cachesize |
std::string | m_connectStr |
std::map< unsigned int, std::shared_ptr< const DIPLumiDetail > > | m_detailcache |
unsigned int | m_detailcachedrun |
std::shared_ptr< const DIPLumiDetail > | m_detailresult |
bool | m_isNullRun |
const edm::IOVSyncValue * | m_pcurrentTime |
std::map< unsigned int, std::shared_ptr< const DIPLumiSummary > > | m_summarycache |
unsigned int | m_summarycachedrun |
std::shared_ptr< const DIPLumiSummary > | m_summaryresult |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Types inherited from edm::ESProductResolverFactoryProducer | |
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
Protected Types inherited from edm::eventsetup::ESProductResolverProvider | |
using | KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >> |
HF Luminosity numbers from DIP. Only exist if stable beam. No data available for other beam status
Description: A essource/esproducer for lumi values from DIP via runtime logger DB
Definition at line 22 of file DIPLumiProducer.h.
typedef std::shared_ptr<const DIPLumiDetail> DIPLumiProducer::ReturnDetailType |
Definition at line 27 of file DIPLumiProducer.h.
typedef std::shared_ptr<const DIPLumiSummary> DIPLumiProducer::ReturnSummaryType |
Definition at line 25 of file DIPLumiProducer.h.
DIPLumiProducer::DIPLumiProducer | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 59 of file DIPLumiProducer.cc.
References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), m_cachesize, m_connectStr, produceDetail(), produceSummary(), edm::ESProducer::setWhatProduced(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 342 of file DIPLumiProducer.cc.
|
private |
Definition at line 262 of file DIPLumiProducer.cc.
References lumi::service::DBService::connectReadOnly(), Exception, edm::Service< T >::isAvailable(), B2GTnPMonitor_cfi::item, remoteMonitoring_LASER_era2018_cfg::lsmax, remoteMonitoring_LASER_era2018_cfg::lsmin, m_cachesize, m_connectStr, m_detailcache, m_detailcachedrun, m_summarycachedrun, maxavailableLSforRun(), eostools::move(), cond::runnumber, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by produceDetail().
|
private |
Definition at line 141 of file DIPLumiProducer.cc.
References lumi::service::DBService::connectReadOnly(), Exception, edm::Service< T >::isAvailable(), remoteMonitoring_LASER_era2018_cfg::lsmax, remoteMonitoring_LASER_era2018_cfg::lsmin, m_cachesize, m_connectStr, m_summarycache, m_summarycachedrun, maxavailableLSforRun(), eostools::move(), cond::runnumber, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by produceSummary().
|
private |
select max(lumisection) as maxavailable from cms_runtime_logger.lumi_sections where runnumber=:runnumber;
Definition at line 235 of file DIPLumiProducer.cc.
References inputsource_file_cfi::myQuery, mps_fire::result, cond::runnumber, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by filldetailcache(), and fillsummarycache().
DIPLumiProducer::ReturnDetailType DIPLumiProducer::produceDetail | ( | const DIPLuminosityRcd & | ) |
Definition at line 100 of file DIPLumiProducer.cc.
References dqmiodumpmetadata::currentrun, edm::IOVSyncValue::eventID(), filldetailcache(), edm::IOVSyncValue::luminosityBlockNumber(), m_detailcache, m_detailcachedrun, m_detailresult, m_pcurrentTime, genParticles_cff::map, edm::EventID::run(), and findQualityFiles::v.
Referenced by DIPLumiProducer().
DIPLumiProducer::ReturnSummaryType DIPLumiProducer::produceSummary | ( | const DIPLuminosityRcd & | ) |
Definition at line 68 of file DIPLumiProducer.cc.
References dqmiodumpmetadata::currentrun, edm::IOVSyncValue::eventID(), fillsummarycache(), edm::IOVSyncValue::luminosityBlockNumber(), m_pcurrentTime, m_summarycache, m_summarycachedrun, m_summaryresult, genParticles_cff::map, edm::EventID::run(), and findQualityFiles::v.
Referenced by DIPLumiProducer().
|
overrideprotectedvirtual |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 133 of file DIPLumiProducer.cc.
References m_pcurrentTime, edm::ValidityInterval::setFirst(), and edm::ValidityInterval::setLast().
|
private |
Definition at line 46 of file DIPLumiProducer.h.
Referenced by DIPLumiProducer(), filldetailcache(), and fillsummarycache().
|
private |
Definition at line 40 of file DIPLumiProducer.h.
Referenced by DIPLumiProducer(), filldetailcache(), and fillsummarycache().
|
private |
Definition at line 42 of file DIPLumiProducer.h.
Referenced by filldetailcache(), and produceDetail().
|
private |
Definition at line 45 of file DIPLumiProducer.h.
Referenced by filldetailcache(), and produceDetail().
|
private |
Definition at line 48 of file DIPLumiProducer.h.
Referenced by produceDetail().
|
private |
Definition at line 43 of file DIPLumiProducer.h.
|
private |
Definition at line 49 of file DIPLumiProducer.h.
Referenced by produceDetail(), produceSummary(), and setIntervalFor().
|
private |
Definition at line 41 of file DIPLumiProducer.h.
Referenced by fillsummarycache(), and produceSummary().
|
private |
Definition at line 44 of file DIPLumiProducer.h.
Referenced by filldetailcache(), fillsummarycache(), and produceSummary().
|
private |
Definition at line 47 of file DIPLumiProducer.h.
Referenced by produceSummary().