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();
82 boost::shared_ptr<edm::RunPrincipal>
85 runPrincipal->fillRunPrincipal();
90 boost::shared_ptr<edm::LuminosityBlockPrincipal>
93 lumiPrincipal->fillLuminosityBlockPrincipal();
102 std::auto_ptr<LHERunInfoProduct> product(
104 std::for_each(
runInfo->getHeaders().begin(),
109 std::for_each(
runInfo->getComments().begin(),
128 std::auto_ptr<LHERunInfoProduct> product(
153 std::auto_ptr<LHEEventProduct> product(
167 std::auto_ptr<LHERunInfoProduct> product(
169 std::for_each(
runInfo->getHeaders().begin(),
174 std::for_each(
runInfo->getComments().begin(),
194 return &eventPrincipal;
void fillEventPrincipal(EventAuxiliary const &aux, boost::shared_ptr< EventSelectionIDVector > eventSelectionIDs=boost::shared_ptr< EventSelectionIDVector >(), boost::shared_ptr< BranchListIndexes > branchListIndexes=boost::shared_ptr< BranchListIndexes >(), boost::shared_ptr< BranchMapper > mapper=boost::shared_ptr< BranchMapper >(new BranchMapper), DelayedReader *reader=0)
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 endRun(edm::Run &run) override
boost::shared_ptr< lhef::LHEEvent > partonLevel
void put(ConstBranchDescription const &bd, WrapperOwningHolder const &edp, ProductProvenance const &productProvenance)
boost::shared_ptr< edm::RunPrincipal > runPrincipal_
boost::shared_ptr< lhef::LHERunInfo > runInfoLast
virtual boost::shared_ptr< edm::LuminosityBlockPrincipal > readLuminosityBlock_(boost::shared_ptr< edm::LuminosityBlockPrincipal > lumiPrincipal) override
virtual void beginRun(edm::Run &run) override
unsigned long long TimeValue_t
virtual bool setRunAndEventInfo(edm::EventID &, edm::TimeValue_t &) override
LHESource(const edm::ParameterSet ¶ms, const edm::InputSourceDescription &desc)
void addComment(const std::string &line)
TimeValue_t presentTime() const
virtual boost::shared_ptr< edm::RunPrincipal > readRun_(boost::shared_ptr< edm::RunPrincipal > runPrincipal) override
void setProcessHistoryID(ProcessHistoryID const &phid)
ConstBranchDescription eventProductBranchDescription_
EventID const & eventID() const
virtual edm::EventPrincipal * readEvent_(edm::EventPrincipal &eventPrincipal) override
ProcessHistoryID lheInit(ProductRegistry &productRegistry)
std::auto_ptr< lhef::LHEReader > reader
ProductProvenance eventProductProvenance_
boost::ptr_deque< LHERunInfoProduct > runInfoProducts
void lheAugment(lhef::LHERunInfo const *runInfo)
ConstBranchDescription runProductBranchDescription_