#include <RecoLuminosity/LumiProducer/src/ExpressLumiProducer.cc>
Classes | |
struct | PerLSData |
Private Member Functions | |
virtual void | beginLuminosityBlockProduce (edm::LuminosityBlock &iLBlock, edm::EventSetup const &iSetup) overridefinal |
void | fillLSCache (unsigned int runnum, unsigned int luminum) |
bool | fillLumi (edm::LuminosityBlock &iLBlock) |
unsigned int | maxavailableLSforRun (coral::ISchema &schema, const std::string &tablename, unsigned int runnumber) |
virtual void | produce (edm::Event &, const edm::EventSetup &) overridefinal |
void | writeEmptyProductForEntry (edm::LuminosityBlock &iLBlock) |
void | writeProductsForEntry (edm::LuminosityBlock &iLBlock, unsigned int luminum) |
Private Attributes | |
unsigned int | m_cachedrun |
unsigned int | m_cachesize |
std::string | m_connectStr |
bool | m_isNullRun |
std::map< unsigned int, PerLSData > | m_lscache |
Additional Inherited Members | |
Public Types inherited from edm::one::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Description: A essource/esproducer for lumi values from DIP via runtime logger DB
Definition at line 62 of file ExpressLumiProducer.cc.
|
explicit |
ExpressLumiProducer::~ExpressLumiProducer | ( | ) |
Definition at line 111 of file ExpressLumiProducer.cc.
|
finaloverrideprivatevirtual |
Definition at line 134 of file ExpressLumiProducer.cc.
References fillLSCache(), edm::LuminosityBlockBase::luminosityBlock(), m_cachedrun, m_isNullRun, m_lscache, edm::LuminosityBlockBase::run(), findQualityFiles::v, writeEmptyProductForEntry(), and writeProductsForEntry().
|
private |
Definition at line 201 of file ExpressLumiProducer.cc.
References ExpressLumiProducer::PerLSData::bitzerocount, ExpressLumiProducer::PerLSData::bunchlumierror, ExpressLumiProducer::PerLSData::bunchlumiquality, ExpressLumiProducer::PerLSData::bunchlumivalue, lumi::service::DBService::connectReadOnly(), ExpressLumiProducer::PerLSData::deadcount, lumi::service::DBService::disconnect(), Exception, edm::Service< T >::isAvailable(), prof2calltree::l, ExpressLumiProducer::PerLSData::lsnum, ExpressLumiProducer::PerLSData::lumivalue, m_cachedrun, m_cachesize, m_connectStr, m_isNullRun, m_lscache, maxavailableLSforRun(), gen::n, ExpressLumiProducer::PerLSData::numorbit, cond::runnumber, python.IdGenerator::schema, python.CommonUtils::session, ExpressLumiProducer::PerLSData::startorbit, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by beginLuminosityBlockProduce().
|
private |
|
private |
select max(lumisection) as maxavailable from cms_runtime_logger.lumi_sections where runnumber=:runnumber;
Definition at line 175 of file ExpressLumiProducer.cc.
References inputsource_file_cfi::myQuery, query::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by fillLSCache().
|
finaloverrideprivatevirtual |
Implements edm::one::EDProducerBase.
Definition at line 118 of file ExpressLumiProducer.cc.
|
private |
Definition at line 123 of file ExpressLumiProducer.cc.
References edm::LuminosityBlock::put().
Referenced by beginLuminosityBlockProduce().
|
private |
Definition at line 358 of file ExpressLumiProducer.cc.
References ExpressLumiProducer::PerLSData::bitzerocount, ExpressLumiProducer::PerLSData::bunchlumierror, ExpressLumiProducer::PerLSData::bunchlumiquality, ExpressLumiProducer::PerLSData::bunchlumivalue, ExpressLumiProducer::PerLSData::deadcount, LumiDetails::fill(), LumiDetails::kOCC1, ExpressLumiProducer::PerLSData::lsnum, ExpressLumiProducer::PerLSData::lumivalue, m_isNullRun, m_lscache, ExpressLumiProducer::PerLSData::numorbit, edm::LuminosityBlock::put(), LumiSummary::setBitZeroCount(), LumiSummary::setDeadCount(), LumiSummary::setlsnumber(), LumiSummary::setLumiData(), LumiDetails::setLumiVersion(), LumiSummary::setLumiVersion(), LumiSummary::setOrbitData(), and ExpressLumiProducer::PerLSData::startorbit.
Referenced by beginLuminosityBlockProduce().
|
private |
Definition at line 94 of file ExpressLumiProducer.cc.
Referenced by beginLuminosityBlockProduce(), and fillLSCache().
|
private |
Definition at line 96 of file ExpressLumiProducer.cc.
Referenced by fillLSCache().
|
private |
Definition at line 93 of file ExpressLumiProducer.cc.
Referenced by fillLSCache().
|
private |
Definition at line 95 of file ExpressLumiProducer.cc.
Referenced by beginLuminosityBlockProduce(), fillLSCache(), and writeProductsForEntry().
|
private |
Definition at line 97 of file ExpressLumiProducer.cc.
Referenced by beginLuminosityBlockProduce(), fillLSCache(), and writeProductsForEntry().