34 : ProducerSourceFromFiles(params, desc,
false),
36 reader_(new
LH5Reader(
fileNames(0), params.getUntrackedParameter<unsigned int>(
"skipEvents", 0))),
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", 0U)->setComment(
"Skip the first 'skipEvents' events.");
192 descriptions.
add(
"source", desc);
const std::vector< std::string > & getComments() const
void readLuminosityBlock_(edm::LuminosityBlockPrincipal &lumiPrincipal) override
std::unique_ptr< LHERunInfoProduct > runInfoProductLast_
const edm::EventSetup & c
edm::ProcessHistoryID phid_
void incrementFileIndex()
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
static Timestamp invalidTimestamp()
void addHeader(const Header &header)
void addComment(const std::string &line)
void fillLuminosityBlockPrincipal(ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
void readRun_(edm::RunPrincipal &runPrincipal) override
ProcessHistoryID const & processHistoryID() const
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
void addWeight(const WGT &wgt)
LuminosityBlockAuxiliary const & aux() const
std::shared_ptr< lhef::LHERunInfo > runInfoLast_
static void fillDescription(ParameterSetDescription &desc)
LuminosityBlockNumber_t luminosityBlock() const
std::shared_ptr< lhef::LHEEvent > partonLevel_
BranchDescription const runProductBranchDescription_
void setComment(std::string const &value)
std::shared_ptr< edm::LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_() override
LH5Source(const edm::ParameterSet ¶ms, const edm::InputSourceDescription &desc)
void putRunInfoProduct(edm::RunPrincipal &)
EventID const & eventID() const
const std::vector< Header > & getHeaders() const
edm::LHEProvenanceHelper lheProvenanceHelper_
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp, ProductProvenance const &productProvenance) const
unsigned long long TimeValue_t
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ProcessHistoryID lheInit(ProcessHistoryRegistry &processHistoryRegistry)
void addComment(const std::string &line)
std::shared_ptr< edm::RunAuxiliary > readRunAuxiliary_() override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void setProcessHistoryID(ProcessHistoryID const &phid)
void readEvent_(edm::EventPrincipal &eventPrincipal) 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.
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