#include <RecoLuminosity/LumiProducer/src/LumiProducer.cc>
Classes | |
struct | HLTData |
struct | L1Data |
struct | PerLSData |
struct | PerRunData |
Private Member Functions | |
void | beginLuminosityBlockProduce (edm::LuminosityBlock &iLBlock, edm::EventSetup const &iSetup) final |
void | beginRun (edm::Run const &, edm::EventSetup const &) final |
void | endRun (edm::Run const &, edm::EventSetup const &) final |
void | endRunProduce (edm::Run &, edm::EventSetup const &) final |
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) |
void | produce (edm::Event &, const edm::EventSetup &) final |
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 | |
template<typename T > | |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
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::ProducerBase | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
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 79 of file LumiProducer.cc.
|
explicit |
|
override |
Definition at line 282 of file LumiProducer.cc.
|
finalprivate |
Definition at line 424 of file LumiProducer.cc.
References fillLSCache(), edm::LuminosityBlockBase::luminosityBlock(), m_isNullRun, m_lscache, edm::LuminosityBlock::put(), edm::LuminosityBlockBase::run(), cond::runnumber, and writeProductsForEntry().
|
finalprivate |
Definition at line 395 of file LumiProducer.cc.
References lumi::service::DBService::connectReadOnly(), Exception, fillRunCache(), getHltDataId(), getLumiDataId(), getTrgDataId(), edm::Service< T >::isAvailable(), m_cachedhltdataid, m_cachedlumidataid, m_cachedrun, m_cachedtrgdataid, m_connectStr, m_isNullRun, writedatasetfile::run, and cond::runnumber.
|
finalprivate |
Definition at line 441 of file LumiProducer.cc.
|
finalprivate |
Definition at line 442 of file LumiProducer.cc.
References LumiProducer::PerRunData::HLTPathNames, LumiProducer::PerRunData::HLTPathNameToIndex, m_runcache, eostools::move(), writedatasetfile::run, LumiProducer::PerRunData::TRGBitNames, and LumiProducer::PerRunData::TRGBitNameToIndex.
|
private |
Definition at line 518 of file LumiProducer.cc.
References LumiProducer::HLTData::acceptcount, LumiProducer::L1Data::bitname, lumi::service::DBService::connectReadOnly(), Exception, nano_mu_digi_cff::float, free(), LumiProducer::PerRunData::HLTPathNames, mps_fire::i, heavyIonCSV_trainingSettings::idx, createfilelist::int, edm::Service< T >::isAvailable(), MainPageGenerator::l, 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, malloc(), dqmiodumpmetadata::n, LumiProducer::HLTData::pathname, LumiProducer::HLTData::prescale, LumiProducer::L1Data::prescale, hltrates_dqm_sourceclient-live_cfg::prescales, LumiProducer::L1Data::ratecount, AlCaHLTBitMon_QueryRunRegistry::string, and LumiProducer::PerRunData::TRGBitNames.
Referenced by beginLuminosityBlockProduce().
|
private |
|
private |
Definition at line 450 of file LumiProducer.cc.
References LumiProducer::PerRunData::bitzeroname, gather_cfg::cout, getCurrentDataTag(), lumi::LumiNames::hltdataTableName(), LumiProducer::PerRunData::HLTPathNames, LumiProducer::PerRunData::HLTPathNameToIndex, mps_fire::i, m_cachedhltdataid, m_cachedtrgdataid, m_lumiversion, m_runcache, AlCaHLTBitMon_QueryRunRegistry::string, LumiProducer::PerRunData::TRGBitNames, LumiProducer::PerRunData::TRGBitNameToIndex, and lumi::LumiNames::trgdataTableName().
Referenced by beginRun().
|
private |
Definition at line 365 of file LumiProducer.cc.
References mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, createPayload::tagname, and lumi::LumiNames::tagsTableName().
Referenced by fillRunCache().
|
private |
Definition at line 339 of file LumiProducer.cc.
References lumi::LumiNames::hltdataTableName(), and cond::runnumber.
Referenced by beginRun().
|
private |
Definition at line 288 of file LumiProducer.cc.
References lumi::LumiNames::lumidataTableName(), and cond::runnumber.
Referenced by beginRun().
|
private |
Definition at line 314 of file LumiProducer.cc.
References cond::runnumber, and lumi::LumiNames::trgdataTableName().
Referenced by beginRun().
|
finalprivatevirtual |
|
private |
Definition at line 166 of file LumiProducer.cc.
References groupFilesInBlocks::temp.
Referenced by servletTranslation().
|
private |
Definition at line 195 of file LumiProducer.cc.
References hcalRecHitTable_cff::doc, MillePedeFileConverter_cfg::e, m_siteconfpath, writedatasetfile::parser, s2x(), AlCaHLTBitMon_QueryRunRegistry::string, toParentString(), and cms::concurrency::xercesInitialize().
|
private |
Definition at line 171 of file LumiProducer.cc.
References mps_fire::i, dqmiolumiharvest::j, and x2s().
Referenced by servletTranslation().
|
private |
Definition at line 788 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, LumiProducer::PerLSData::hltdata, LumiProducer::PerRunData::HLTPathNameToIndex, mps_fire::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_lumiversion, m_runcache, eostools::move(), LumiProducer::PerLSData::numorbit, LumiSummary::HLT::pathnameidx, LumiSummary::L1::prescale, LumiSummary::HLT::prescale, edm::LuminosityBlock::put(), LumiProducer::PerLSData::startorbit, AlCaHLTBitMon_QueryRunRegistry::string, LumiProducer::PerRunData::TRGBitNameToIndex, and LumiSummary::L1::triggernameidx.
Referenced by beginLuminosityBlockProduce().
|
private |
Definition at line 161 of file LumiProducer.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.
Referenced by toParentString().
|
private |
Definition at line 150 of file LumiProducer.cc.
Referenced by beginRun(), fillLSCache(), and fillRunCache().
|
private |
Definition at line 148 of file LumiProducer.cc.
Referenced by beginRun(), and fillLSCache().
|
private |
Definition at line 147 of file LumiProducer.cc.
Referenced by beginRun().
|
private |
Definition at line 149 of file LumiProducer.cc.
Referenced by beginRun(), fillLSCache(), and fillRunCache().
|
private |
Definition at line 154 of file LumiProducer.cc.
Referenced by fillLSCache().
|
private |
Definition at line 144 of file LumiProducer.cc.
Referenced by beginRun(), and fillLSCache().
|
private |
Definition at line 153 of file LumiProducer.cc.
Referenced by beginLuminosityBlockProduce(), beginRun(), fillLSCache(), and writeProductsForEntry().
|
private |
Definition at line 152 of file LumiProducer.cc.
Referenced by beginLuminosityBlockProduce(), fillLSCache(), and writeProductsForEntry().
|
private |
Definition at line 145 of file LumiProducer.cc.
Referenced by fillRunCache(), and writeProductsForEntry().
|
private |
Definition at line 151 of file LumiProducer.cc.
Referenced by endRunProduce(), fillLSCache(), fillRunCache(), and writeProductsForEntry().
|
private |
Definition at line 146 of file LumiProducer.cc.
Referenced by servletTranslation().