#include <RecoLuminosity/LumiProducer/src/DIPLumiProducer.cc>
Public Types | |
typedef std::shared_ptr< const DIPLumiDetail > | ReturnDetailType |
typedef std::shared_ptr< const DIPLumiSummary > | ReturnSummaryType |
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 | |
void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override |
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 > | |
ESConsumesCollector | 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 &) |
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 &) |
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 266 of file DIPLumiProducer.cc.
References lumi::service::DBService::connectReadOnly(), Exception, edm::Service< T >::isAvailable(), m_cachesize, m_connectStr, m_detailcache, m_detailcachedrun, m_summarycachedrun, maxavailableLSforRun(), eostools::move(), cond::runnumber, dataDML::schema, dataDML::session, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by produceDetail().
|
private |
Definition at line 145 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, dataDML::schema, dataDML::session, 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 240 of file DIPLumiProducer.cc.
References 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 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 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 44 of file DIPLumiProducer.h.
Referenced by DIPLumiProducer(), filldetailcache(), and fillsummarycache().
|
private |
Definition at line 38 of file DIPLumiProducer.h.
Referenced by DIPLumiProducer(), filldetailcache(), and fillsummarycache().
|
private |
Definition at line 40 of file DIPLumiProducer.h.
Referenced by filldetailcache(), and produceDetail().
|
private |
Definition at line 43 of file DIPLumiProducer.h.
Referenced by filldetailcache(), and produceDetail().
|
private |
Definition at line 46 of file DIPLumiProducer.h.
Referenced by produceDetail().
|
private |
Definition at line 41 of file DIPLumiProducer.h.
|
private |
Definition at line 47 of file DIPLumiProducer.h.
Referenced by produceDetail(), produceSummary(), and setIntervalFor().
|
private |
Definition at line 39 of file DIPLumiProducer.h.
Referenced by fillsummarycache(), and produceSummary().
|
private |
Definition at line 42 of file DIPLumiProducer.h.
Referenced by filldetailcache(), fillsummarycache(), and produceSummary().
|
private |
Definition at line 45 of file DIPLumiProducer.h.
Referenced by produceSummary().