#include <Example/ExternalLHEProducer/src/ExternalLHEProducer.cc>
Classes | |
class | FileCloseSentry |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | beginRun (edm::Run const &, edm::EventSetup const &) override |
void | beginRunProduce (edm::Run &run, edm::EventSetup const &es) override |
int | closeDescriptors (int preserve) const |
void | endRun (edm::Run const &, edm::EventSetup const &) override |
void | executeScript (std::vector< std::string > const &args, int id, bool isPost) const |
std::unique_ptr < LHERunInfoProduct > | generateRunInfo (std::vector< std::string > const &files) const |
std::vector< std::string > | makeArgs (uint32_t nEvents, unsigned int nThreads, std::uint32_t seed) const |
void | nextEvent () |
void | preallocThreads (unsigned int) override |
void | produce (edm::Event &, const edm::EventSetup &) override |
Private Attributes | |
const std::vector< std::string > | args_ |
edm::EDPutTokenT < LHERunInfoProduct > | beginRunPutToken_ |
edm::EDPutTokenT< LHEEventProduct > | eventPutToken_ |
bool | generateConcurrently_ {false} |
uint32_t | nEvents_ |
uint32_t | npars_ |
std::map< unsigned, std::pair < unsigned, unsigned > > | nPartonMapping_ {} |
unsigned int | nThreads_ |
std::string | outputContents_ |
std::string | outputFile_ |
std::shared_ptr< lhef::LHEEvent > | partonLevel_ |
const std::vector< std::string > | postGenerationCommand_ |
std::unique_ptr< lhef::LHEReader > | reader_ |
std::string | scriptName_ |
bool | storeXML_ |
bool | wasMerged_ |
edm::EDPutTokenT < LHEXMLStringProduct > | xmlPutToken_ |
Additional Inherited Members | |
Public Types inherited from edm::one::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) |
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 69 of file ExternalLHEProducer.cc.
|
explicit |
Definition at line 129 of file ExternalLHEProducer.cc.
References args_, beginRunPutToken_, looper::cfg, eventPutToken_, Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameterSetVector(), np, npars_, nPartonMapping_, AlCaHLTBitMon_QueryRunRegistry::string, and xmlPutToken_.
|
overrideprivate |
Definition at line 342 of file ExternalLHEProducer.cc.
|
overrideprivate |
Definition at line 237 of file ExternalLHEProducer.cc.
References beginRunPutToken_, CMS_SA_ALLOW, alignCSCRings::e, Exception, executeScript(), mergeVDriftHistosByStation::file, edm::FileInPath::fullPath(), generateConcurrently_, generateRunInfo(), watchdog::group, edm::Service< T >::isAvailable(), makeArgs(), eostools::move(), edm::RandomNumberGenerator::mySeed(), submitPVValidationJobs::nEvents, nEvents_, nextEvent(), nThreads_, submitPVResolutionJobs::out, outputFile_, AlCaHLTBitMon_ParallelJobs::p, fed_dqm_sourceclient-live_cfg::path, postGenerationCommand_, edm::Run::put(), reader_, submitPVValidationJobs::runInfo, alignCSCRings::s, fileCollector::seed, createPayload::skip, storeXML_, AlCaHLTBitMon_QueryRunRegistry::string, submitPVValidationJobs::t, cond::impl::to_string(), and xmlPutToken_.
|
private |
Definition at line 400 of file ExternalLHEProducer.cc.
References dqmPostProcessing_online::DIR, DeadROC_duringRun::dir, and ztee::fd.
Referenced by executeScript().
|
overrideprivate |
Definition at line 344 of file ExternalLHEProducer.cc.
References edm::errors::EventGenerationFailure, Exception, generateConcurrently_, nextEvent(), nThreads_, submitPVResolutionJobs::out, outputFile_, partonLevel_, fed_dqm_sourceclient-live_cfg::path, reader_, alignCSCRings::s, submitPVValidationJobs::t, and cond::impl::to_string().
|
private |
Definition at line 437 of file ExternalLHEProducer.cc.
References dir2webdir::argc, cmsStageWithFailover::argv, closeDescriptors(), Exception, generateConcurrently_, mps_fire::i, NULL, fed_dqm_sourceclient-live_cfg::path, pipe::pipe(), SiPixelLorentzAngle_cfi::read, alignCSCRings::s, scriptName_, mps_update::status, cond::impl::to_string(), and TablePrint::write.
Referenced by beginRunProduce().
|
static |
Definition at line 540 of file ExternalLHEProducer.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), edm::ParameterSetDescription::addUntracked(), edm::ParameterSetDescription::addVPSetOptional(), submitPVResolutionJobs::desc, edm::ParameterSetDescription::setComment(), edm::ParameterDescriptionNode::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 568 of file ExternalLHEProducer.cc.
References LHERunInfoProduct::addComment(), LHERunInfoProduct::addHeader(), mergeVDriftHistosByStation::file, LHERunInfoProduct::mergeProduct(), eostools::move(), DQM::reader, submitPVValidationJobs::runInfo, and createPayload::skip.
Referenced by beginRunProduce().
|
private |
Definition at line 378 of file ExternalLHEProducer.cc.
References writedatasetfile::args, args_, filterCSVwithJSON::copy, LogDebug, and cond::impl::to_string().
Referenced by beginRunProduce().
|
private |
Definition at line 598 of file ExternalLHEProducer.cc.
References partonLevel_, and reader_.
Referenced by beginRunProduce(), endRun(), and produce().
|
overrideprivatevirtual |
Reimplemented from edm::one::EDProducerBase.
Definition at line 174 of file ExternalLHEProducer.cc.
References nThreads_.
|
overrideprivatevirtual |
Implements edm::one::EDProducerBase.
Definition at line 177 of file ExternalLHEProducer.cc.
References LHEEventProduct::addComment(), LHEEventProduct::addWeight(), edm::errors::EventGenerationFailure, eventPutToken_, Exception, eostools::move(), nextEvent(), np, nPartonMapping_, partonLevel_, and edm::Event::put().
|
private |
Definition at line 92 of file ExternalLHEProducer.cc.
Referenced by ExternalLHEProducer(), makeArgs(), and batchmanager.BatchManager::ParseOptions().
|
private |
Definition at line 110 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), and ExternalLHEProducer().
|
private |
Definition at line 109 of file ExternalLHEProducer.cc.
Referenced by ExternalLHEProducer(), and produce().
|
private |
Definition at line 98 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), endRun(), and executeScript().
|
private |
Definition at line 94 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce().
|
private |
Definition at line 93 of file ExternalLHEProducer.cc.
Referenced by ExternalLHEProducer().
|
private |
Definition at line 102 of file ExternalLHEProducer.cc.
Referenced by ExternalLHEProducer(), and produce().
|
private |
Definition at line 96 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), endRun(), and preallocThreads().
|
private |
Definition at line 97 of file ExternalLHEProducer.cc.
|
private |
Definition at line 91 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), and endRun().
|
private |
Definition at line 105 of file ExternalLHEProducer.cc.
Referenced by endRun(), nextEvent(), and produce().
|
private |
Definition at line 99 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce().
|
private |
Definition at line 104 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), endRun(), and nextEvent().
|
private |
Definition at line 90 of file ExternalLHEProducer.cc.
Referenced by executeScript().
|
private |
Definition at line 95 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce().
|
private |
Definition at line 106 of file ExternalLHEProducer.cc.
|
private |
Definition at line 108 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), and ExternalLHEProducer().