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