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