#include <RecoLuminosity/LumiProducer/src/DIPLumiProducer.cc>
Public Types | |
typedef boost::shared_ptr < DIPLumiDetail > | ReturnDetailType |
typedef boost::shared_ptr < 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 | |
virtual void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) |
Protected Member Functions inherited from edm::ESProducer | |
template<typename T > | |
void | setWhatProduced (T *iThis, const es::Label &iLabel=es::Label()) |
template<typename T > | |
void | setWhatProduced (T *iThis, const char *iLabel) |
template<typename T > | |
void | setWhatProduced (T *iThis, const std::string &iLabel) |
template<typename T , typename TDecorator > | |
void | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label()) |
template<typename T , typename TReturn , typename TRecord > | |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label()) |
template<typename T , typename TReturn , typename TRecord , typename TArg > | |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label()) |
Protected Member Functions inherited from edm::ESProxyFactoryProducer | |
template<class TFactory > | |
void | registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
virtual void | registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string()) |
virtual void | registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) |
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, boost::shared_ptr < DIPLumiDetail > > | m_detailcache |
unsigned int | m_detailcachedrun |
boost::shared_ptr< DIPLumiDetail > | m_detailresult |
bool | m_isNullRun |
const edm::IOVSyncValue * | m_pcurrentTime |
std::map< unsigned int, boost::shared_ptr < DIPLumiSummary > > | m_summarycache |
unsigned int | m_summarycachedrun |
boost::shared_ptr< 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 boost::shared_ptr<DIPLumiDetail> DIPLumiProducer::ReturnDetailType |
Definition at line 27 of file DIPLumiProducer.h.
typedef boost::shared_ptr<DIPLumiSummary> DIPLumiProducer::ReturnSummaryType |
Definition at line 25 of file DIPLumiProducer.h.
DIPLumiProducer::DIPLumiProducer | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 64 of file DIPLumiProducer.cc.
References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), m_cachesize, m_connectStr, produceDetail(), produceSummary(), edm::ESProducer::setWhatProduced(), and AlCaHLTBitMon_QueryRunRegistry::string.
DIPLumiProducer::~DIPLumiProducer | ( | ) |
Definition at line 348 of file DIPLumiProducer.cc.
|
private |
Definition at line 270 of file DIPLumiProducer.cc.
References lumi::service::DBService::connectReadOnly(), lumi::service::DBService::disconnect(), Exception, edm::Service< T >::isAvailable(), m_cachesize, m_connectStr, m_detailcache, m_detailcachedrun, m_summarycachedrun, maxavailableLSforRun(), cond::runnumber, dataDML::schema, models::session, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by produceDetail().
|
private |
Definition at line 147 of file DIPLumiProducer.cc.
References lumi::service::DBService::connectReadOnly(), lumi::service::DBService::disconnect(), Exception, edm::Service< T >::isAvailable(), m_cachesize, m_connectStr, m_summarycache, m_summarycachedrun, maxavailableLSforRun(), cond::runnumber, dataDML::schema, models::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 244 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 105 of file DIPLumiProducer.cc.
References edm::IOVSyncValue::eventID(), filldetailcache(), edm::IOVSyncValue::luminosityBlockNumber(), m_detailcache, m_detailcachedrun, m_detailresult, m_pcurrentTime, edm::EventID::run(), and findQualityFiles::v.
Referenced by DIPLumiProducer().
DIPLumiProducer::ReturnSummaryType DIPLumiProducer::produceSummary | ( | const DIPLuminosityRcd & | ) |
Definition at line 73 of file DIPLumiProducer.cc.
References edm::IOVSyncValue::eventID(), fillsummarycache(), edm::IOVSyncValue::luminosityBlockNumber(), m_pcurrentTime, m_summarycache, m_summarycachedrun, m_summaryresult, edm::EventID::run(), and findQualityFiles::v.
Referenced by DIPLumiProducer().
|
protectedvirtual |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 138 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().