34 : ProducerSourceFromFiles(params, desc,
false),
35 reader_(new
LHEReader(
fileNames(0), params.getUntrackedParameter<unsigned int>(
"skipEvents", 0))),
60 newFileOpened =
false;
74 std::unique_ptr<LHERunInfoProduct> product(
new LHERunInfoProduct(*runInfoThis->getHEPRUP()));
116 auto product = std::make_unique<LHERunInfoProduct>(*runInfoProductLast_);
141 std::unique_ptr<LHEEventProduct> product(
176 return std::shared_ptr<edm::LuminosityBlockAuxiliary>();
179 auto aux = std::make_shared<edm::LuminosityBlockAuxiliary>(
187 desc.
setComment(
"A source which reads LHE files.");
189 desc.
addUntracked<
unsigned int>(
"skipEvents", 0U)->setComment(
"Skip the first 'skipEvents' events.");
190 descriptions.
add(
"source", desc);
const std::vector< std::string > & getComments() const
const edm::EventSetup & c
void incrementFileIndex()
std::shared_ptr< edm::LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_() override
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
static Timestamp invalidTimestamp()
void addHeader(const Header &header)
void addComment(const std::string &line)
edm::ProcessHistoryID phid_
void fillLuminosityBlockPrincipal(ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
std::shared_ptr< edm::RunAuxiliary > readRunAuxiliary_() override
void fillRunInfoProduct(lhef::LHERunInfo const &, LHERunInfoProduct &)
edm::LHEProvenanceHelper lheProvenanceHelper_
ProcessHistoryID const & processHistoryID() const
std::unique_ptr< LHERunInfoProduct > runInfoProductLast_
void readLuminosityBlock_(edm::LuminosityBlockPrincipal &lumiPrincipal) override
void addWeight(const WGT &wgt)
LuminosityBlockAuxiliary const & aux() const
std::shared_ptr< lhef::LHERunInfo > runInfoLast_
static void fillDescription(ParameterSetDescription &desc)
LuminosityBlockNumber_t luminosityBlock() const
bool setRunAndEventInfo(edm::EventID &, edm::TimeValue_t &, edm::EventAuxiliary::ExperimentType &) override
BranchDescription const runProductBranchDescription_
void setComment(std::string const &value)
std::shared_ptr< lhef::LHEEvent > partonLevel_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
EventID const & eventID() const
const std::vector< Header > & getHeaders() const
void putRunInfoProduct(edm::RunPrincipal &)
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp, ProductProvenance const &productProvenance) const
unsigned long long TimeValue_t
LHESource(const edm::ParameterSet ¶ms, const edm::InputSourceDescription &desc)
void readEvent_(edm::EventPrincipal &eventPrincipal) override
ProcessHistoryID lheInit(ProcessHistoryRegistry &processHistoryRegistry)
void addComment(const std::string &line)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void setProcessHistoryID(ProcessHistoryID const &phid)
std::unique_ptr< lhef::LHEReader > reader_
void readRun_(edm::RunPrincipal &runPrincipal) override
ProcessHistoryID const & processHistoryID() const
void fillEventPrincipal(EventAuxiliary const &aux, ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
void fillRunPrincipal(ProcessHistoryRegistry const &processHistoryRegistry, DelayedReader *reader=nullptr)
TimeValue_t presentTime() const
ProductProvenance eventProductProvenance_
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
void putOrMerge(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
BranchDescription const eventProductBranchDescription_
void lheAugment(lhef::LHERunInfo const *runInfo)