#include <RecoLuminosity/LumiProducer/src/LumiProducer.cc>
Classes | |
struct | HLTData |
struct | L1Data |
struct | PerLSData |
struct | PerRunData |
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 |
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: 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 82 of file LumiProducer.cc.
|
explicit |
LumiProducer::~LumiProducer | ( | ) |
Definition at line 293 of file LumiProducer.cc.
|
finaloverrideprivatevirtual |
Definition at line 446 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 414 of file LumiProducer.cc.
References lumi::service::DBService::connectReadOnly(), lumi::service::DBService::disconnect(), edm::hlt::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 python.CommonUtils::session.
|
finaloverrideprivatevirtual |
Definition at line 471 of file LumiProducer.cc.
|
finaloverrideprivatevirtual |
Definition at line 474 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 551 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(), edm::hlt::Exception, LumiProducer::PerLSData::hltdata, LumiProducer::PerRunData::HLTPathNames, i, customizeTrackingMonitorSeedNumber::idx, edm::Service< T >::isAvailable(), prof2calltree::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, n, LumiProducer::HLTData::pathname, LumiProducer::HLTData::prescale, LumiProducer::L1Data::prescale, makeHLTPrescaleTable::prescales, LumiProducer::L1Data::ratecount, python.IdGenerator::schema, python.CommonUtils::session, AlCaHLTBitMon_QueryRunRegistry::string, and LumiProducer::PerRunData::TRGBitNames.
Referenced by beginLuminosityBlockProduce().
|
private |
|
private |
Definition at line 484 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, AlCaHLTBitMon_QueryRunRegistry::string, LumiProducer::PerRunData::TRGBitNames, LumiProducer::PerRunData::TRGBitNameToIndex, and lumi::LumiNames::trgdataTableName().
Referenced by beginRun().
|
private |
Definition at line 383 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 356 of file LumiProducer.cc.
References lumi::LumiNames::hltdataTableName().
Referenced by beginRun().
|
private |
Definition at line 303 of file LumiProducer.cc.
References lumi::LumiNames::lumidataTableName().
Referenced by beginRun().
|
private |
Definition at line 330 of file LumiProducer.cc.
References lumi::LumiNames::trgdataTableName().
Referenced by beginRun().
|
finaloverrideprivatevirtual |
|
private |
|
private |
Definition at line 209 of file LumiProducer.cc.
References asciidump::doc, alignCSCRings::e, m_siteconfpath, geometryXMLtoCSV::parser, s2x(), AlCaHLTBitMon_QueryRunRegistry::string, and toParentString().
|
private |
Definition at line 182 of file LumiProducer.cc.
References asciidump::attributes, i, j, and x2s().
Referenced by servletTranslation().
|
private |
Definition at line 820 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 170 of file LumiProducer.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, and tmp.
Referenced by toParentString().
|
private |
Definition at line 158 of file LumiProducer.cc.
Referenced by beginRun(), fillLSCache(), and fillRunCache().
|
private |
Definition at line 156 of file LumiProducer.cc.
Referenced by beginRun(), and fillLSCache().
|
private |
Definition at line 155 of file LumiProducer.cc.
Referenced by beginRun().
|
private |
Definition at line 157 of file LumiProducer.cc.
Referenced by beginRun(), fillLSCache(), and fillRunCache().
|
private |
Definition at line 162 of file LumiProducer.cc.
Referenced by fillLSCache().
|
private |
Definition at line 152 of file LumiProducer.cc.
Referenced by beginRun(), and fillLSCache().
|
private |
Definition at line 161 of file LumiProducer.cc.
Referenced by beginLuminosityBlockProduce(), beginRun(), fillLSCache(), and writeProductsForEntry().
|
private |
Definition at line 160 of file LumiProducer.cc.
Referenced by beginLuminosityBlockProduce(), fillLSCache(), and writeProductsForEntry().
|
private |
Definition at line 153 of file LumiProducer.cc.
|
private |
Definition at line 159 of file LumiProducer.cc.
Referenced by endRunProduce(), fillLSCache(), fillRunCache(), and writeProductsForEntry().
|
private |
Definition at line 154 of file LumiProducer.cc.
Referenced by servletTranslation().