Public Member Functions | |
std::unique_ptr < LumiCacheInfoHolder > | beginStream (edm::StreamID) const override |
debug_ (params.getUntrackedParameter< bool >("debug", false)) | |
debugRun_ (debug_.load()) | |
void | fillLHEPdfWeightTablesFromGenInfo (Counter *counter, const DynamicWeightChoiceGenInfo *weightChoice, double genWeight, const GenEventInfoProduct &genProd, std::unique_ptr< nanoaod::FlatTable > &outScale, std::unique_ptr< nanoaod::FlatTable > &outPdf, std::unique_ptr< nanoaod::FlatTable > &outNamed, std::unique_ptr< nanoaod::FlatTable > &outPS) const |
void | fillLHEWeightTables (Counter *counter, const DynamicWeightChoice *weightChoice, const DynamicWeightChoiceGenInfo *genWeightChoice, double genWeight, const LHEEventProduct &lheProd, const GenEventInfoProduct &genProd, std::unique_ptr< nanoaod::FlatTable > &outScale, std::unique_ptr< nanoaod::FlatTable > &outPdf, std::unique_ptr< nanoaod::FlatTable > &outRwgt, std::unique_ptr< nanoaod::FlatTable > &outNamed, std::unique_ptr< nanoaod::FlatTable > &outPS) const |
void | fillOnlyPSWeightTable (Counter *counter, const DynamicWeightChoiceGenInfo *genWeightChoice, double genWeight, const GenEventInfoProduct &genProd, std::unique_ptr< nanoaod::FlatTable > &outPS) const |
genLumiInfoHeadTag_ (mayConsume< GenLumiInfoHeader, edm::InLumi >(params.getParameter< edm::InputTag >("genLumiInfoHeader"))) | |
GenWeightsTableProducer (edm::ParameterSet const ¶ms) | |
std::shared_ptr < DynamicWeightChoice > | globalBeginRun (edm::Run const &iRun, edm::EventSetup const &) const override |
std::shared_ptr< CounterMap > | globalBeginRunSummary (edm::Run const &, edm::EventSetup const &) const override |
void | globalEndRun (edm::Run const &, edm::EventSetup const &) const override |
void | globalEndRunProduce (edm::Run &iRun, edm::EventSetup const &, CounterMap const *runCounterMap) const override |
void | globalEndRunSummary (edm::Run const &, edm::EventSetup const &, CounterMap *runCounterMap) const override |
hasIssuedWarning_ (false) | |
keepAllPSWeights_ (params.getParameter< bool >("keepAllPSWeights")) | |
lheRunTag_ (edm::vector_transform(lheLabel_, [this](const edm::InputTag &tag){return mayConsume< LHERunInfoProduct, edm::InRun >(tag);})) | |
lheWeightPrecision_ (params.getParameter< int32_t >("lheWeightPrecision")) | |
maxPdfWeights_ (params.getParameter< uint32_t >("maxPdfWeights")) | |
namedWeightIDs_ (params.getParameter< std::vector< std::string >>("namedWeightIDs")) | |
namedWeightLabels_ (params.getParameter< std::vector< std::string >>("namedWeightLabels")) | |
void | produce (edm::StreamID id, edm::Event &iEvent, const edm::EventSetup &iSetup) const override |
psWeightWarning_ (false) | |
void | setPSWeightInfo (const std::vector< double > &genWeights, const DynamicWeightChoiceGenInfo *genWeightChoice, std::vector< double > &wPS, std::string &psWeightDocStr) const |
void | streamBeginLuminosityBlock (edm::StreamID id, edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &eventSetup) const override |
void | streamBeginRun (edm::StreamID id, edm::Run const &, edm::EventSetup const &) const override |
void | streamEndRunSummary (edm::StreamID id, edm::Run const &, edm::EventSetup const &, CounterMap *runCounterMap) const override |
~GenWeightsTableProducer () override | |
Public Member Functions inherited from edm::global::EDProducer< edm::StreamCache< LumiCacheInfoHolder >, edm::RunCache< DynamicWeightChoice >, edm::RunSummaryCache< CounterMap >, edm::EndRunProducer > | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
EDProducer & | operator= (const EDProducer &)=delete |
bool | wantsGlobalLuminosityBlocks () const final |
bool | wantsGlobalRuns () const final |
bool | wantsInputProcessBlocks () const final |
bool | wantsProcessBlocks () const final |
bool | wantsStreamLuminosityBlocks () const final |
bool | wantsStreamRuns () const final |
Public Member Functions inherited from edm::global::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
~EDProducerBase () override | |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector < edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
std::vector < edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
~ProducerBase () noexcept(false) override | |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector < ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
virtual | ~EDConsumerBase () noexcept(false) |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::global::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Attributes | |
std::atomic< bool > | debug_ |
std::atomic< bool > | debugRun_ |
const edm::EDGetTokenT < GenLumiInfoHeader > | genLumiInfoHeadTag_ |
const edm::EDGetTokenT < GenEventInfoProduct > | genTag_ |
std::atomic< bool > | hasIssuedWarning_ |
bool | keepAllPSWeights_ |
std::unordered_map < std::string, uint32_t > | lhaNameToID_ |
const std::vector< edm::InputTag > | lheLabel_ |
const std::vector < edm::EDGetTokenT < LHERunInfoProduct > > | lheRunTag_ |
const std::vector < edm::EDGetTokenT < LHEEventProduct > > | lheTag_ |
int | lheWeightPrecision_ |
unsigned int | maxPdfWeights_ |
std::vector< std::string > | namedWeightIDs_ |
std::vector< std::string > | namedWeightLabels_ |
std::vector< uint32_t > | preferredPDFLHAIDs_ |
std::atomic< bool > | psWeightWarning_ |
Additional Inherited Members | |
Public Types inherited from edm::global::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
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 |
Protected Member Functions inherited from edm::ProducerBase | |
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 ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
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) |
Definition at line 247 of file GenWeightsTableProducer.cc.
|
inline |
Definition at line 252 of file GenWeightsTableProducer.cc.
References GlobalPosition_Frontier_DevDB_cff::tag.
|
inlineoverride |
Definition at line 290 of file GenWeightsTableProducer.cc.
|
inlineoverride |
Definition at line 937 of file GenWeightsTableProducer.cc.
GenWeightsTableProducer::debug_ | ( | params.getUntrackedParameter< bool > | "debug", false | ) |
GenWeightsTableProducer::debugRun_ | ( | debug_. | load() | ) |
|
inlinestatic |
Definition at line 1135 of file GenWeightsTableProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptionalUntracked(), edm::ParameterSetDescription::addVPSet(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, edm::ParameterDescriptionNode::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 440 of file GenWeightsTableProducer.cc.
References lheWeightPrecision_, setPSWeightInfo(), AlCaHLTBitMon_QueryRunRegistry::string, GenEventInfoProduct::weights(), and HLT_FULL_cff::weights.
Referenced by produce().
|
inline |
Definition at line 369 of file GenWeightsTableProducer.cc.
References debug_, spr::find(), mps_fire::i, lheWeightPrecision_, dqmiodumpmetadata::n, namedWeightIDs_, namedWeightLabels_, LHEEventProduct::originalXWGTUP(), gpuVertexFinder::printf(), setPSWeightInfo(), AlCaHLTBitMon_QueryRunRegistry::string, histoStyle::weight, GenEventInfoProduct::weights(), and LHEEventProduct::weights().
Referenced by produce().
|
inline |
Definition at line 483 of file GenWeightsTableProducer.cc.
References lheWeightPrecision_, setPSWeightInfo(), AlCaHLTBitMon_QueryRunRegistry::string, and GenEventInfoProduct::weights().
Referenced by produce().
GenWeightsTableProducer::genLumiInfoHeadTag_ | ( | mayConsume< GenLumiInfoHeader, edm::InLumi > | params.getParameter< edm::InputTag >("genLumiInfoHeader") | ) |
|
inlineoverride |
Definition at line 544 of file GenWeightsTableProducer.cc.
References filterCSVwithJSON::copy, gather_cfg::cout, debugRun_, dataset::end, spr::find(), first, newFWLiteAna::found, edm::Run::getByLabel(), gpuClustering::id, edm::HandleBase::isValid(), lhaNameToID_, lheLabel_, groupFilesInBlocks::lines, maxPdfWeights_, submitDQMOfflineCAF::nLines, preferredPDFLHAIDs_, gpuVertexFinder::printf(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineoverride |
Definition at line 1071 of file GenWeightsTableProducer.cc.
|
inlineoverride |
Definition at line 1133 of file GenWeightsTableProducer.cc.
|
inlineoverride |
Definition at line 1084 of file GenWeightsTableProducer.cc.
References mps_fire::i, label, eostools::move(), dqmiodumpmetadata::n, namedWeightLabels_, submitPVResolutionJobs::out, edm::Run::put(), AlCaHLTBitMon_QueryRunRegistry::string, hgcalPerformanceValidation::val, and x.
|
inlineoverride |
Definition at line 1082 of file GenWeightsTableProducer.cc.
GenWeightsTableProducer::hasIssuedWarning_ | ( | false | ) |
GenWeightsTableProducer::keepAllPSWeights_ | ( | params.getParameter< bool > | "keepAllPSWeights" | ) |
GenWeightsTableProducer::lheRunTag_ | ( | edm:: | vector_transformlheLabel_,[this](const edm::InputTag &tag){return mayConsume< LHERunInfoProduct, edm::InRun >(tag);} | ) |
GenWeightsTableProducer::lheWeightPrecision_ | ( | params.getParameter< int32_t > | "lheWeightPrecision" | ) |
GenWeightsTableProducer::maxPdfWeights_ | ( | params.getParameter< uint32_t > | "maxPdfWeights" | ) |
GenWeightsTableProducer::namedWeightIDs_ | ( | params.getParameter< std::vector< std::string >> | "namedWeightIDs" | ) |
GenWeightsTableProducer::namedWeightLabels_ | ( | params.getParameter< std::vector< std::string >> | "namedWeightLabels" | ) |
|
inlineoverridevirtual |
Implements edm::global::EDProducerBase.
Definition at line 292 of file GenWeightsTableProducer.cc.
References counter, fillLHEPdfWeightTablesFromGenInfo(), fillLHEWeightTables(), fillOnlyPSWeightTable(), genTag_, edm::Event::getByToken(), edm::Event::getRun(), hasIssuedWarning_, edm::Run::index(), edm::HandleBase::isValid(), lheTag_, eostools::move(), submitPVResolutionJobs::out, edm::Event::put(), AlCaHLTBitMon_QueryRunRegistry::string, and histoStyle::weight.
|
inline |
Definition at line 269 of file GenWeightsTableProducer.cc.
References Exception, lhaNameToID_, mergeVDriftHistosByStation::name, namedWeightIDs_, namedWeightLabels_, submitPVValidationJobs::params, preferredPDFLHAIDs_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 498 of file GenWeightsTableProducer.cc.
References mps_fire::i, keepAllPSWeights_, and psWeightWarning_.
Referenced by fillLHEPdfWeightTablesFromGenInfo(), fillLHEWeightTables(), and fillOnlyPSWeightTable().
|
inlineoverride |
Definition at line 944 of file GenWeightsTableProducer.cc.
References newFWLiteAna::found, genLumiInfoHeadTag_, edm::LuminosityBlock::getByToken(), watchdog::group, mps_fire::i, edm::HandleBase::isValid(), keepAllPSWeights_, label, lhaNameToID_, geometryCSVtoXML::line, maxPdfWeights_, AlCaHLTBitMon_QueryRunRegistry::string, and x.
|
inlineoverride |
Definition at line 941 of file GenWeightsTableProducer.cc.
|
inlineoverride |
Definition at line 1075 of file GenWeightsTableProducer.cc.
|
mutableprotected |
Definition at line 1175 of file GenWeightsTableProducer.cc.
Referenced by fillLHEWeightTables().
|
mutableprotected |
Definition at line 1175 of file GenWeightsTableProducer.cc.
Referenced by globalBeginRun().
|
protected |
Definition at line 1165 of file GenWeightsTableProducer.cc.
Referenced by streamBeginLuminosityBlock().
|
protected |
Definition at line 1161 of file GenWeightsTableProducer.cc.
Referenced by produce().
|
mutableprotected |
Definition at line 1175 of file GenWeightsTableProducer.cc.
Referenced by produce().
|
protected |
Definition at line 1173 of file GenWeightsTableProducer.cc.
Referenced by setPSWeightInfo(), and streamBeginLuminosityBlock().
|
protected |
Definition at line 1168 of file GenWeightsTableProducer.cc.
Referenced by globalBeginRun(), psWeightWarning_(), and streamBeginLuminosityBlock().
|
protected |
Definition at line 1162 of file GenWeightsTableProducer.cc.
Referenced by globalBeginRun().
|
protected |
Definition at line 1164 of file GenWeightsTableProducer.cc.
|
protected |
Definition at line 1163 of file GenWeightsTableProducer.cc.
Referenced by produce().
|
protected |
Definition at line 1171 of file GenWeightsTableProducer.cc.
Referenced by fillLHEPdfWeightTablesFromGenInfo(), fillLHEWeightTables(), and fillOnlyPSWeightTable().
|
protected |
Definition at line 1172 of file GenWeightsTableProducer.cc.
Referenced by globalBeginRun(), and streamBeginLuminosityBlock().
|
protected |
Definition at line 1169 of file GenWeightsTableProducer.cc.
Referenced by fillLHEWeightTables(), and psWeightWarning_().
|
protected |
Definition at line 1170 of file GenWeightsTableProducer.cc.
Referenced by fillLHEWeightTables(), globalEndRunProduce(), and psWeightWarning_().
|
protected |
Definition at line 1167 of file GenWeightsTableProducer.cc.
Referenced by globalBeginRun(), and psWeightWarning_().
|
mutableprotected |
Definition at line 1175 of file GenWeightsTableProducer.cc.
Referenced by setPSWeightInfo().