7 #include <boost/bind.hpp> 37 ProducerSourceFromFiles(params, desc,
false),
69 newFileOpened =
false;
83 std::unique_ptr<LHERunInfoProduct> product(
129 auto product = std::make_unique<LHERunInfoProduct>(*runInfoProductLast_);
156 std::unique_ptr<LHEEventProduct> product(
183 std::shared_ptr<edm::RunAuxiliary>
192 std::shared_ptr<edm::LuminosityBlockAuxiliary>
194 if (
processingMode() ==
Runs)
return std::shared_ptr<edm::LuminosityBlockAuxiliary>();
206 desc.
setComment(
"A source which reads LHE files.");
208 desc.
addUntracked<
unsigned int>(
"skipEvents", 0
U)->setComment(
"Skip the first 'skipEvents' events.");
209 descriptions.
add(
"source", desc);
const std::vector< std::string > & getComments() const
void incrementFileIndex()
std::shared_ptr< edm::LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_() override
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
static Timestamp invalidTimestamp()
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void addHeader(const Header &header)
void addComment(const std::string &line)
edm::ProcessHistoryID phid_
std::shared_ptr< edm::RunAuxiliary > readRunAuxiliary_() override
void fillRunInfoProduct(lhef::LHERunInfo const &, LHERunInfoProduct &)
edm::LHEProvenanceHelper lheProvenanceHelper_
std::unique_ptr< LHERunInfoProduct > runInfoProductLast_
void readLuminosityBlock_(edm::LuminosityBlockPrincipal &lumiPrincipal) override
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
void addWeight(const WGT &wgt)
std::shared_ptr< lhef::LHERunInfo > runInfoLast_
void fillRunPrincipal(ProcessHistoryRegistry const &processHistoryRegistry, DelayedReader *reader=0)
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)
void fillLuminosityBlockPrincipal(ProcessHistoryRegistry const &processHistoryRegistry, DelayedReader *reader=0)
std::shared_ptr< lhef::LHEEvent > partonLevel_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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)
TimeValue_t presentTime() const
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
void fillEventPrincipal(EventAuxiliary const &aux, ProcessHistoryRegistry const &processHistoryRegistry, DelayedReader *reader=0)
EventID const & eventID() const
ProductProvenance eventProductProvenance_
BranchDescription const eventProductBranchDescription_
void lheAugment(lhef::LHERunInfo const *runInfo)