7 #include <boost/bind.hpp>
8 #include <boost/ptr_container/ptr_deque.hpp>
35 ProducerSourceFromFiles(params, desc,
false),
67 bool newFileOpened =
false;
75 boost::shared_ptr<LHERunInfo> runInfoThis =
partonLevel->getRunInfo();
101 std::auto_ptr<LHERunInfoProduct> product(
103 std::for_each(
runInfo->getHeaders().begin(),
108 std::for_each(
runInfo->getComments().begin(),
127 std::auto_ptr<LHERunInfoProduct> product(
151 std::auto_ptr<LHEEventProduct> product(
171 std::auto_ptr<LHERunInfoProduct> product(
173 std::for_each(
runInfo->getHeaders().begin(),
178 std::for_each(
runInfo->getComments().begin(),
boost::shared_ptr< lhef::LHERunInfo > runInfo
void incrementFileIndex()
void addHeader(const Header &header)
void addComment(const std::string &line)
virtual void endJob() override
edm::ProcessHistoryID phid_
edm::LHEProvenanceHelper lheProvenanceHelper_
virtual void readLuminosityBlock_(edm::LuminosityBlockPrincipal &lumiPrincipal) override
virtual void endRun(edm::Run &run) override
void addWeight(const WGT &wgt)
void put(BranchDescription const &bd, WrapperOwningHolder const &edp)
boost::shared_ptr< lhef::LHEEvent > partonLevel
void fillRunPrincipal(ProcessHistoryRegistry const &processHistoryRegistry, DelayedReader *reader=0)
boost::shared_ptr< lhef::LHERunInfo > runInfoLast
BranchDescription const runProductBranchDescription_
void fillLuminosityBlockPrincipal(ProcessHistoryRegistry const &processHistoryRegistry, DelayedReader *reader=0)
virtual void beginRun(edm::Run &run) override
unsigned long long TimeValue_t
virtual bool setRunAndEventInfo(edm::EventID &, edm::TimeValue_t &) override
void fillEventPrincipal(EventAuxiliary const &aux, ProcessHistoryRegistry const &processHistoryRegistry, DelayedReader *reader=nullptr)
LHESource(const edm::ParameterSet ¶ms, const edm::InputSourceDescription &desc)
virtual void readEvent_(edm::EventPrincipal &eventPrincipal) override
void addComment(const std::string &line)
TimeValue_t presentTime() const
edm::RunPrincipal * runPrincipal_
void setProcessHistoryID(ProcessHistoryID const &phid)
ProcessHistoryID lheInit(ProductRegistry &productRegistry, ProcessHistoryRegistry &processHistoryRegistry)
virtual void readRun_(edm::RunPrincipal &runPrincipal) override
EventID const & eventID() const
std::auto_ptr< lhef::LHEReader > reader
volatile std::atomic< bool > shutdown_flag false
ProductProvenance eventProductProvenance_
boost::ptr_deque< LHERunInfoProduct > runInfoProducts
BranchDescription const eventProductBranchDescription_
void lheAugment(lhef::LHERunInfo const *runInfo)
void put(BranchDescription const &bd, WrapperOwningHolder const &edp, ProductProvenance const &productProvenance)