Go to the documentation of this file.
7 #include <boost/bind.hpp>
63 newFileOpened =
false;
77 std::unique_ptr<LHERunInfoProduct> product(
new LHERunInfoProduct(*runInfoThis->getHEPRUP()));
144 std::unique_ptr<LHEEventProduct> product(
179 return std::shared_ptr<edm::LuminosityBlockAuxiliary>();
182 auto aux = std::make_shared<edm::LuminosityBlockAuxiliary>(
190 desc.setComment(
"A source which reads LHE files.");
192 desc.addUntracked<
unsigned int>(
"skipEvents", 0
U)->setComment(
"Skip the first 'skipEvents' events.");
194 descriptions.
add(
"source",
desc);
edm::LHEProvenanceHelper lheProvenanceHelper_
void incrementFileIndex()
void readRun_(edm::RunPrincipal &runPrincipal) override
edm::ProcessHistoryID phid_
std::shared_ptr< lhef::LHEEvent > partonLevel_
ProcessHistoryID lheInit(ProcessHistoryRegistry &processHistoryRegistry)
void fillRunInfoProduct(lhef::LHERunInfo const &, LHERunInfoProduct &)
LuminosityBlockNumber_t luminosityBlock() const
void addHeader(const Header &header)
std::shared_ptr< edm::LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_() override
const std::vector< std::string > & getComments() const
LuminosityBlockAuxiliary const & aux() const
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
const std::vector< Header > & getHeaders() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void addComment(const std::string &line)
void putRunInfoProduct(edm::RunPrincipal &)
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp, ProductProvenance const &productProvenance) const
EventID const & eventID() const
ProcessHistoryID const & processHistoryID() const
void readLuminosityBlock_(edm::LuminosityBlockPrincipal &lumiPrincipal) override
std::shared_ptr< lhef::LHERunInfo > runInfoLast_
std::unique_ptr< LHERunInfoProduct > runInfoProductLast_
static void fillDescription(ParameterSetDescription &desc)
void fillLuminosityBlockPrincipal(ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
void lheAugment(lhef::LHERunInfo const *runInfo)
ProductProvenance eventProductProvenance_
std::shared_ptr< edm::RunAuxiliary > readRunAuxiliary_() override
std::unique_ptr< lhef::LH5Reader > reader_
void fillEventPrincipal(EventAuxiliary const &aux, ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
void fillRunPrincipal(ProcessHistoryRegistry const &processHistoryRegistry, DelayedReader *reader=nullptr)
static Timestamp invalidTimestamp()
LH5Source(const edm::ParameterSet ¶ms, const edm::InputSourceDescription &desc)
TimeValue_t presentTime() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const BranchDescription eventProductBranchDescription_
void readEvent_(edm::EventPrincipal &eventPrincipal) override
bool setRunAndEventInfo(edm::EventID &, edm::TimeValue_t &, edm::EventAuxiliary::ExperimentType &) override
unsigned long long TimeValue_t
const BranchDescription runProductBranchDescription_
void addComment(const std::string &line)
void addWeight(const WGT &wgt)