#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 |
typedef WorkerT< EDProducerBase > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
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::one::EDProducerBase | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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 63 of file ExpressLumiProducer.cc.
|
explicit |
ExpressLumiProducer::~ExpressLumiProducer | ( | ) |
Definition at line 112 of file ExpressLumiProducer.cc.
|
finaloverrideprivatevirtual |
Definition at line 135 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 202 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(), edm::hlt::Exception, edm::Service< T >::isAvailable(), prof2calltree::l, ExpressLumiProducer::PerLSData::lsnum, ExpressLumiProducer::PerLSData::lumivalue, m_cachedrun, m_cachesize, m_connectStr, m_isNullRun, m_lscache, maxavailableLSforRun(), 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 176 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 119 of file ExpressLumiProducer.cc.
|
private |
Definition at line 124 of file ExpressLumiProducer.cc.
References edm::LuminosityBlock::put().
Referenced by beginLuminosityBlockProduce().
|
private |
Definition at line 359 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 95 of file ExpressLumiProducer.cc.
Referenced by beginLuminosityBlockProduce(), and fillLSCache().
|
private |
Definition at line 97 of file ExpressLumiProducer.cc.
Referenced by fillLSCache().
|
private |
Definition at line 94 of file ExpressLumiProducer.cc.
Referenced by fillLSCache().
|
private |
Definition at line 96 of file ExpressLumiProducer.cc.
Referenced by beginLuminosityBlockProduce(), fillLSCache(), and writeProductsForEntry().
|
private |
Definition at line 98 of file ExpressLumiProducer.cc.
Referenced by beginLuminosityBlockProduce(), fillLSCache(), and writeProductsForEntry().