#include <RecoLuminosity/LumiProducer/src/ExpressLumiProducer.cc>
Classes | |
struct | PerLSData |
Public Member Functions | |
ExpressLumiProducer (const edm::ParameterSet &) | |
~ExpressLumiProducer () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Member Functions | |
virtual void | beginLuminosityBlock (edm::LuminosityBlock &iLBlock, edm::EventSetup const &iSetup) |
virtual void | beginRun (edm::Run &, edm::EventSetup const &) |
virtual void | endLuminosityBlock (edm::LuminosityBlock &lumiBlock, edm::EventSetup const &c) |
virtual void | endRun (edm::Run &, edm::EventSetup const &) |
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 &) |
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::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
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 118 of file ExpressLumiProducer.cc.
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 145 of file ExpressLumiProducer.cc.
References fillLSCache(), edm::LuminosityBlockBase::luminosityBlock(), m_cachedrun, m_isNullRun, m_lscache, edm::LuminosityBlockBase::run(), v, writeEmptyProductForEntry(), and writeProductsForEntry().
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 129 of file ExpressLumiProducer.cc.
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 185 of file ExpressLumiProducer.cc.
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 189 of file ExpressLumiProducer.cc.
|
private |
Definition at line 220 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, and ExpressLumiProducer::PerLSData::startorbit.
Referenced by beginLuminosityBlock().
|
private |
|
private |
select max(lumisection) as maxavailable from cms_runtime_logger.lumi_sections where runnumber=:runnumber;
Definition at line 194 of file ExpressLumiProducer.cc.
References UserOptions_cff::myQuery, and query::result.
Referenced by fillLSCache().
|
privatevirtual |
|
private |
Definition at line 134 of file ExpressLumiProducer.cc.
References edm::LuminosityBlock::put().
Referenced by beginLuminosityBlock().
|
private |
Definition at line 377 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 beginLuminosityBlock().
|
private |
Definition at line 101 of file ExpressLumiProducer.cc.
Referenced by beginLuminosityBlock(), and fillLSCache().
|
private |
Definition at line 103 of file ExpressLumiProducer.cc.
Referenced by fillLSCache().
|
private |
Definition at line 100 of file ExpressLumiProducer.cc.
Referenced by fillLSCache().
|
private |
Definition at line 102 of file ExpressLumiProducer.cc.
Referenced by beginLuminosityBlock(), fillLSCache(), and writeProductsForEntry().
|
private |
Definition at line 104 of file ExpressLumiProducer.cc.
Referenced by beginLuminosityBlock(), fillLSCache(), and writeProductsForEntry().