#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 | beginRunProduce (edm::Run &run, edm::EventSetup const &es) override |
int | closeDescriptors (int preserve) const |
void | endRunProduce (edm::Run &, edm::EventSetup const &) override |
void | executeScript (std::vector< std::string > const &args, int id) 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_ |
bool | generateConcurrently_ {false} |
uint32_t | nEvents_ |
uint32_t | npars_ |
std::map< unsigned, std::pair< unsigned, unsigned > > | nPartonMapping_ {} |
unsigned int | nThreads_ {1} |
std::string | outputContents_ |
std::string | outputFile_ |
std::shared_ptr< lhef::LHEEvent > | partonLevel_ |
std::unique_ptr< lhef::LHEReader > | reader_ |
std::shared_ptr< lhef::LHERunInfo > | runInfo_ |
std::shared_ptr< lhef::LHERunInfo > | runInfoLast_ |
boost::ptr_deque< LHERunInfoProduct > | runInfoProducts_ |
std::string | scriptName_ |
bool | storeXML_ |
bool | wasMerged |
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::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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
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: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 72 of file ExternalLHEProducer.cc.
|
explicit |
Definition at line 129 of file ExternalLHEProducer.cc.
References args_, looper::cfg, Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameterSetVector(), np, npars_, nPartonMapping_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
overrideprivate |
Definition at line 271 of file ExternalLHEProducer.cc.
References LHERunInfoProduct::addComment(), LHERunInfoProduct::addHeader(), pyrootRender::destroy(), Exception, executeScript(), FrontierConditions_GlobalTag_cff::file, generateConcurrently_, edm::Service< T >::isAvailable(), edm::make_functor_task(), makeArgs(), eostools::move(), edm::RandomNumberGenerator::mySeed(), nEvents, nEvents_, nextEvent(), nThreads_, MillePedeFileConverter_cfg::out, outputFile_, AlCaHLTBitMon_ParallelJobs::p, callgraph::path, edm::Run::put(), reader_, runInfo_, runInfoLast_, runInfoProducts_, alignCSCRings::s, SurveyInfoScenario_cff::seed, createPayload::skip, storeXML_, AlCaHLTBitMon_QueryRunRegistry::string, protons_cff::t, TrackValidation_cff::task, and wasMerged.
|
private |
Definition at line 449 of file ExternalLHEProducer.cc.
References dir.
Referenced by executeScript().
|
overrideprivate |
Definition at line 392 of file ExternalLHEProducer.cc.
References edm::errors::EventGenerationFailure, Exception, generateConcurrently_, eostools::move(), nextEvent(), nThreads_, MillePedeFileConverter_cfg::out, outputFile_, partonLevel_, callgraph::path, edm::Run::put(), reader_, runInfoProducts_, alignCSCRings::s, and protons_cff::t.
|
private |
Definition at line 488 of file ExternalLHEProducer.cc.
References dir2webdir::argc, cmsBatch::argv, closeDescriptors(), RecoEcal_EventContent_cff::ec, Exception, generateConcurrently_, mps_fire::i, NULL, callgraph::path, sysUtil::pid, pipe::pipe(), alignCSCRings::s, scriptName_, mps_update::status, and TriggerAnalyzer::write().
Referenced by beginRunProduce().
|
static |
Definition at line 580 of file ExternalLHEProducer.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), edm::ParameterSetDescription::addUntracked(), edm::ParameterSetDescription::addVPSetOptional(), edm::ParameterSetDescription::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 426 of file ExternalLHEProducer.cc.
References writedatasetfile::args, args_, popcon2dropbox::copy(), and LogDebug.
Referenced by beginRunProduce().
|
private |
Definition at line 605 of file ExternalLHEProducer.cc.
References DEFINE_FWK_MODULE, partonLevel_, reader_, runInfo_, and runInfoLast_.
Referenced by beginRunProduce(), endRunProduce(), and produce().
|
overrideprivatevirtual |
Reimplemented from edm::one::EDProducerBase.
Definition at line 175 of file ExternalLHEProducer.cc.
References nThreads_.
|
overrideprivate |
Definition at line 182 of file ExternalLHEProducer.cc.
References LHEEventProduct::addComment(), LHERunInfoProduct::addComment(), LHERunInfoProduct::addHeader(), LHEEventProduct::addWeight(), edm::errors::EventGenerationFailure, Exception, eostools::move(), nextEvent(), np, nPartonMapping_, partonLevel_, edm::Event::put(), runInfo_, runInfoProducts_, and wasMerged.
|
private |
Definition at line 95 of file ExternalLHEProducer.cc.
Referenced by ExternalLHEProducer(), makeArgs(), valtools.webpage::parseArgs(), and batchmanager.BatchManager::ParseOptions().
|
private |
Definition at line 101 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), endRunProduce(), and executeScript().
|
private |
Definition at line 97 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce().
|
private |
Definition at line 96 of file ExternalLHEProducer.cc.
Referenced by ExternalLHEProducer().
|
private |
Definition at line 104 of file ExternalLHEProducer.cc.
Referenced by ExternalLHEProducer(), and produce().
|
private |
Definition at line 99 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), endRunProduce(), and preallocThreads().
|
private |
Definition at line 100 of file ExternalLHEProducer.cc.
|
private |
Definition at line 94 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), and endRunProduce().
|
private |
Definition at line 109 of file ExternalLHEProducer.cc.
Referenced by endRunProduce(), nextEvent(), and produce().
|
private |
Definition at line 106 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), endRunProduce(), and nextEvent().
|
private |
Definition at line 108 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), nextEvent(), and produce().
|
private |
Definition at line 107 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), and nextEvent().
|
private |
Definition at line 110 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), endRunProduce(), and produce().
|
private |
Definition at line 93 of file ExternalLHEProducer.cc.
Referenced by executeScript().
|
private |
Definition at line 98 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce().
|
private |
Definition at line 111 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), and produce().