![]() |
![]() |
#include <Example/ExternalLHEProducer/src/ExternalLHEProducer.cc>
Classes | |
class | FileCloseSentry |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
![]() | |
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) |
void | endRunProduce (edm::Run &, edm::EventSetup const &) override |
void | executeScript () |
void | nextEvent () |
void | preallocThreads (unsigned int) override |
void | produce (edm::Event &, const edm::EventSetup &) override |
std::unique_ptr< std::string > | readOutput () |
Private Attributes | |
std::vector< std::string > | args_ |
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 | |
![]() | |
typedef EDProducerBase | ModuleType |
![]() | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
![]() | |
typedef ProductLabels | Labels |
![]() | |
ProducesCollector | producesCollector () |
![]() | |
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 66 of file ExternalLHEProducer.cc.
|
explicit |
Definition at line 119 of file ExternalLHEProducer.cc.
References args_, looper::cfg, Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameterSetVector(), np, npars_, nPartonMapping_, eventshapeDQM_cfi::order, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 158 of file ExternalLHEProducer.cc.
|
overrideprivate |
Definition at line 249 of file ExternalLHEProducer.cc.
References LHERunInfoProduct::addComment(), LHERunInfoProduct::addHeader(), args_, Exception, executeScript(), edm::Service< T >::isAvailable(), lhe2HepMCConverter_cff::LHERunInfoProduct, LogDebug, eostools::move(), edm::RandomNumberGenerator::mySeed(), nEvents_, nextEvent(), nThreads_, outputFile_, AlCaHLTBitMon_ParallelJobs::p, edm::Run::put(), reader_, runInfo, runInfoLast, runInfoProducts, optionsL1T::skip, storeXML_, and wasMerged.
|
private |
Definition at line 351 of file ExternalLHEProducer.cc.
References dqmPostProcessing_online::DIR, DeadROC_duringRun::dir, Calorimetry_cff::dp, and ztee::fd.
Referenced by executeScript().
|
overrideprivate |
Definition at line 328 of file ExternalLHEProducer.cc.
References edm::errors::EventGenerationFailure, Exception, eostools::move(), nextEvent(), outputFile_, partonLevel, edm::Run::put(), reader_, and runInfoProducts.
|
private |
Definition at line 388 of file ExternalLHEProducer.cc.
References dir2webdir::argc, args_, cmsBatch::argv, closeDescriptors(), Exception, mps_fire::i, NULL, pipe::pipe(), readEcalDQMStatus::read, scriptName_, mps_update::status, and writeEcalDQMStatus::write.
Referenced by beginRunProduce().
|
static |
Definition at line 507 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 530 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 165 of file ExternalLHEProducer.cc.
References nThreads_.
|
overrideprivate |
Definition at line 168 of file ExternalLHEProducer.cc.
References LHEEventProduct::addComment(), LHERunInfoProduct::addComment(), LHERunInfoProduct::addHeader(), LHEEventProduct::addWeight(), edm::errors::EventGenerationFailure, Exception, lhe2HepMCConverter_cff::LHEEventProduct, lhe2HepMCConverter_cff::LHERunInfoProduct, eostools::move(), nextEvent(), np, nPartonMapping_, eventshapeDQM_cfi::order, partonLevel, edm::Event::put(), runInfo, runInfoProducts, and wasMerged.
|
private |
Definition at line 478 of file ExternalLHEProducer.cc.
References BUFSIZE, Exception, ztee::fd, dqmiodumpmetadata::n, outputFile_, readEcalDQMStatus::read, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 88 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), executeScript(), ExternalLHEProducer(), valtools.webpage::parseArgs(), and batchmanager.BatchManager::ParseOptions().
|
private |
Definition at line 90 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce().
|
private |
Definition at line 89 of file ExternalLHEProducer.cc.
Referenced by ExternalLHEProducer().
|
private |
Definition at line 96 of file ExternalLHEProducer.cc.
Referenced by ExternalLHEProducer(), and produce().
|
private |
Definition at line 92 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), and preallocThreads().
|
private |
Definition at line 93 of file ExternalLHEProducer.cc.
|
private |
Definition at line 87 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), endRunProduce(), and readOutput().
|
private |
Definition at line 101 of file ExternalLHEProducer.cc.
Referenced by endRunProduce(), nextEvent(), and produce().
|
private |
Definition at line 98 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), endRunProduce(), and nextEvent().
|
private |
Definition at line 100 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), nextEvent(), and produce().
|
private |
Definition at line 99 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), and nextEvent().
|
private |
Definition at line 102 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), endRunProduce(), and produce().
|
private |
Definition at line 86 of file ExternalLHEProducer.cc.
Referenced by executeScript().
|
private |
Definition at line 91 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce().
|
private |
Definition at line 103 of file ExternalLHEProducer.cc.
Referenced by beginRunProduce(), and produce().