#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 | |
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 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 &) |
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::DataProxyProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
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 >>> |
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 62 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 |
|
private |
Definition at line 265 of file DIPLumiProducer.cc.
References lumi::service::DBService::connectReadOnly(), Exception, edm::Service< T >::isAvailable(), B2GTnPMonitor_cfi::item, 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 144 of file DIPLumiProducer.cc.
References lumi::service::DBService::connectReadOnly(), Exception, edm::Service< T >::isAvailable(), 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 238 of file DIPLumiProducer.cc.
References inputsource_file_cfi::myQuery, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by filldetailcache(), and fillsummarycache().
DIPLumiProducer::ReturnDetailType DIPLumiProducer::produceDetail | ( | const DIPLuminosityRcd & | ) |
Definition at line 103 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 71 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 136 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().