7 #include <boost/bind.hpp>
8 #include <boost/ptr_container/ptr_deque.hpp>
35 ProducerSourceFromFiles(params, desc,
false),
67 bool newFileOpened =
false;
74 boost::shared_ptr<LHERunInfo> runInfoThis =
partonLevel->getRunInfo();
80 std::auto_ptr<LHERunInfoProduct> product(
82 std::for_each(
runInfo->getHeaders().begin(),
87 std::for_each(
runInfo->getComments().begin(),
130 std::auto_ptr<LHERunInfoProduct> product(
132 std::for_each(
runInfo->getHeaders().begin(),
137 std::for_each(
runInfo->getComments().begin(),
156 std::auto_ptr<LHERunInfoProduct> product(
185 std::auto_ptr<LHEEventProduct> product(
boost::shared_ptr< lhef::LHERunInfo > runInfo
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
ProcessHistoryID lheInit(ProcessHistoryRegistry &processHistoryRegistry)
void addComment(const std::string &line)
TimeValue_t presentTime() const
edm::RunPrincipal * runPrincipal_
void setProcessHistoryID(ProcessHistoryID const &phid)
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)