#include <RecoLuminosity/LumiProducer/src/LumiProducer.cc>
Classes | |
struct | HLTData |
struct | L1Data |
struct | PerLSData |
struct | PerRunData |
Public Member Functions | |
LumiProducer (const edm::ParameterSet &) | |
~LumiProducer () | |
Public Member Functions inherited from edm::one::EDProducer< edm::one::WatchRuns, edm::BeginLuminosityBlockProducer, edm::EndRunProducer > | |
EDProducer ()=default | |
Public Member Functions inherited from edm::one::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
virtual void | beginLuminosityBlockProduce (edm::LuminosityBlock &iLBlock, edm::EventSetup const &iSetup) overridefinal |
virtual void | beginRun (edm::Run const &, edm::EventSetup const &) overridefinal |
virtual void | endRun (edm::Run const &, edm::EventSetup const &) overridefinal |
virtual void | endRunProduce (edm::Run &, edm::EventSetup const &) overridefinal |
void | fillLSCache (unsigned int luminum) |
bool | fillLumi (edm::LuminosityBlock &iLBlock) |
void | fillRunCache (const coral::ISchema &schema, unsigned int runnumber) |
std::string | getCurrentDataTag (const coral::ISchema &schema) |
unsigned long long | getHltDataId (const coral::ISchema &schema, unsigned int runnumber) |
unsigned long long | getLumiDataId (const coral::ISchema &schema, unsigned int runnumber) |
unsigned long long | getTrgDataId (const coral::ISchema &schema, unsigned int runnumber) |
virtual void | produce (edm::Event &, const edm::EventSetup &) overridefinal |
XMLCh * | s2x (const std::string &input) const |
const std::string | servletTranslation (const std::string &servlet) const |
std::string | toParentString (const xercesc::DOMNode &nodeToConvert) const |
void | writeProductsForEntry (edm::LuminosityBlock &iLBlock, unsigned int runnumber, unsigned int luminum) |
std::string | x2s (const XMLCh *input) const |
Private Attributes | |
unsigned long long | m_cachedhltdataid |
unsigned long long | m_cachedlumidataid |
unsigned int | m_cachedrun |
unsigned long long | m_cachedtrgdataid |
unsigned int | m_cachesize |
std::string | m_connectStr |
bool | m_isNullRun |
std::map< unsigned int, PerLSData > | m_lscache |
std::string | m_lumiversion |
PerRunData | m_runcache |
std::string | m_siteconfpath |
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: This class would load the luminosity object into a Luminosity Block
Implementation: The are two main steps, the first one retrieve the record of the luminosity data from the DB and the second loads the Luminosity Obj into the Lumi Block. (Actually in the initial implementation it is retrieving from the ParameterSet from the configuration file, the DB is not implemented yet)
Definition at line 81 of file LumiProducer.cc.
|
explicit |
LumiProducer::~LumiProducer | ( | ) |
Definition at line 292 of file LumiProducer.cc.
|
finaloverrideprivatevirtual |
Definition at line 445 of file LumiProducer.cc.
References fillLSCache(), edm::LuminosityBlockBase::luminosityBlock(), m_isNullRun, m_lscache, edm::LuminosityBlock::put(), edm::LuminosityBlockBase::run(), cond::runnumber, and writeProductsForEntry().
|
finaloverrideprivatevirtual |
Definition at line 413 of file LumiProducer.cc.
References lumi::service::DBService::connectReadOnly(), lumi::service::DBService::disconnect(), Exception, fillRunCache(), getHltDataId(), getLumiDataId(), getTrgDataId(), edm::Service< T >::isAvailable(), m_cachedhltdataid, m_cachedlumidataid, m_cachedrun, m_cachedtrgdataid, m_connectStr, m_isNullRun, edm::RunBase::run(), cond::runnumber, and models::session.
|
finaloverrideprivatevirtual |
Definition at line 470 of file LumiProducer.cc.
|
finaloverrideprivatevirtual |
Definition at line 473 of file LumiProducer.cc.
References LumiProducer::PerRunData::HLTPathNames, LumiProducer::PerRunData::HLTPathNameToIndex, m_runcache, edm::Run::put(), LumiProducer::PerRunData::TRGBitNames, and LumiProducer::PerRunData::TRGBitNameToIndex.
|
private |
Definition at line 550 of file LumiProducer.cc.
References LumiProducer::HLTData::acceptcount, LumiProducer::PerLSData::beam1intensity, LumiProducer::PerLSData::beam2intensity, LumiProducer::L1Data::bitname, LumiProducer::PerLSData::bunchlumierror, LumiProducer::PerLSData::bunchlumiquality, LumiProducer::PerLSData::bunchlumivalue, estimatePileup2::cmslsnum, lumi::service::DBService::connectReadOnly(), lumi::service::DBService::disconnect(), Exception, LumiProducer::PerLSData::hltdata, LumiProducer::PerRunData::HLTPathNames, i, customizeTrackingMonitorSeedNumber::idx, edm::Service< T >::isAvailable(), cmsLHEtoEOSManager::l, LumiProducer::PerLSData::l1data, LumiProducer::HLTData::l1passcount, lumi::LumiNames::lshltTableName(), lumi::LumiNames::lstrgTableName(), lumi::LumiNames::lumisummaryv2TableName(), m_cachedhltdataid, m_cachedlumidataid, m_cachedtrgdataid, m_cachesize, m_connectStr, m_isNullRun, m_lscache, m_runcache, gen::n, LumiProducer::HLTData::pathname, LumiProducer::HLTData::prescale, LumiProducer::L1Data::prescale, makeHLTPrescaleTable::prescales, LumiProducer::L1Data::ratecount, dataDML::schema, models::session, AlCaHLTBitMon_QueryRunRegistry::string, and LumiProducer::PerRunData::TRGBitNames.
Referenced by beginLuminosityBlockProduce().
|
private |
|
private |
Definition at line 483 of file LumiProducer.cc.
References LumiProducer::PerRunData::bitzeroname, gather_cfg::cout, getCurrentDataTag(), lumi::LumiNames::hltdataTableName(), LumiProducer::PerRunData::HLTPathNames, LumiProducer::PerRunData::HLTPathNameToIndex, i, m_cachedhltdataid, m_cachedtrgdataid, m_runcache, lumiPlot::pathnames, cmsHarvester::sep, AlCaHLTBitMon_QueryRunRegistry::string, LumiProducer::PerRunData::TRGBitNames, LumiProducer::PerRunData::TRGBitNameToIndex, and lumi::LumiNames::trgdataTableName().
Referenced by beginRun().
|
private |
Definition at line 382 of file LumiProducer.cc.
References lumiTag::alltags, query::result, AlCaHLTBitMon_QueryRunRegistry::string, createPayload::tagname, and lumi::LumiNames::tagsTableName().
Referenced by fillRunCache().
|
private |
Definition at line 355 of file LumiProducer.cc.
References lumi::LumiNames::hltdataTableName().
Referenced by beginRun().
|
private |
Definition at line 302 of file LumiProducer.cc.
References lumi::LumiNames::lumidataTableName().
Referenced by beginRun().
|
private |
Definition at line 329 of file LumiProducer.cc.
References lumi::LumiNames::trgdataTableName().
Referenced by beginRun().
|
finaloverrideprivatevirtual |
|
private |
Definition at line 175 of file LumiProducer.cc.
References XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by servletTranslation().
|
private |
Definition at line 208 of file LumiProducer.cc.
References alignCSCRings::e, m_siteconfpath, geometryXMLtoCSV::parser, s2x(), AlCaHLTBitMon_QueryRunRegistry::string, toParentString(), and cms::concurrency::xercesInitialize().
|
private |
Definition at line 181 of file LumiProducer.cc.
Referenced by servletTranslation().
|
private |
Definition at line 819 of file LumiProducer.cc.
References LumiProducer::PerLSData::beam1intensity, LumiProducer::PerLSData::beam2intensity, LumiProducer::PerLSData::bitzerocount, LumiProducer::PerLSData::bitzeroprescale, LumiProducer::PerLSData::bunchlumierror, LumiProducer::PerLSData::bunchlumiquality, LumiProducer::PerLSData::bunchlumivalue, LumiProducer::PerLSData::deadcount, LumiDetails::fill(), LumiDetails::fillBeamIntensities(), LumiProducer::PerLSData::hltdata, LumiProducer::PerRunData::HLTPathNameToIndex, i, LumiDetails::kET, LumiDetails::kOCC1, LumiDetails::kOCC2, LumiDetails::kPLT, LumiProducer::PerLSData::l1data, LumiProducer::PerLSData::lumierror, LumiProducer::PerLSData::lumiquality, LumiProducer::PerLSData::lumivalue, m_isNullRun, m_lscache, m_runcache, LumiProducer::PerLSData::numorbit, LumiSummary::HLT::pathnameidx, LumiSummary::L1::prescale, LumiSummary::HLT::prescale, edm::LuminosityBlock::put(), LumiSummary::setBitZeroCount(), LumiSummary::setDeadCount(), LumiSummary::setlsnumber(), LumiSummary::setLumiData(), LumiDetails::setLumiVersion(), LumiSummary::setLumiVersion(), LumiSummary::setOrbitData(), LumiProducer::PerLSData::startorbit, AlCaHLTBitMon_QueryRunRegistry::string, LumiSummary::swapHLTData(), LumiSummary::swapL1Data(), LumiProducer::PerRunData::TRGBitNameToIndex, and LumiSummary::L1::triggernameidx.
Referenced by beginLuminosityBlockProduce().
|
private |
Definition at line 169 of file LumiProducer.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, tmp, and XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by toParentString().
|
private |
Definition at line 157 of file LumiProducer.cc.
Referenced by beginRun(), fillLSCache(), and fillRunCache().
|
private |
Definition at line 155 of file LumiProducer.cc.
Referenced by beginRun(), and fillLSCache().
|
private |
Definition at line 154 of file LumiProducer.cc.
Referenced by beginRun().
|
private |
Definition at line 156 of file LumiProducer.cc.
Referenced by beginRun(), fillLSCache(), and fillRunCache().
|
private |
Definition at line 161 of file LumiProducer.cc.
Referenced by fillLSCache().
|
private |
Definition at line 151 of file LumiProducer.cc.
Referenced by beginRun(), and fillLSCache().
|
private |
Definition at line 160 of file LumiProducer.cc.
Referenced by beginLuminosityBlockProduce(), beginRun(), fillLSCache(), and writeProductsForEntry().
|
private |
Definition at line 159 of file LumiProducer.cc.
Referenced by beginLuminosityBlockProduce(), fillLSCache(), and writeProductsForEntry().
|
private |
Definition at line 152 of file LumiProducer.cc.
|
private |
Definition at line 158 of file LumiProducer.cc.
Referenced by endRunProduce(), fillLSCache(), fillRunCache(), and writeProductsForEntry().
|
private |
Definition at line 153 of file LumiProducer.cc.
Referenced by servletTranslation().