#include <StGenEventReco.h>
Public Member Functions | |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
StGenEventReco (const edm::ParameterSet &) | |
~StGenEventReco () | |
Private Member Functions | |
void | fillInitialPartons (const reco::GenParticle *, std::vector< const reco::GenParticle * > &) |
Private Attributes | |
edm::InputTag | init_ |
edm::InputTag | src_ |
Definition at line 15 of file StGenEventReco.h.
StGenEventReco::StGenEventReco | ( | const edm::ParameterSet & | cfg | ) | [explicit] |
Definition at line 8 of file StGenEventReco.cc.
: src_ ( cfg.getParameter<edm::InputTag>( "src" ) ), init_( cfg.getParameter<edm::InputTag>( "init" ) ) { produces<StGenEvent>(); }
StGenEventReco::~StGenEventReco | ( | ) |
Definition at line 15 of file StGenEventReco.cc.
{ }
void StGenEventReco::fillInitialPartons | ( | const reco::GenParticle * | , |
std::vector< const reco::GenParticle * > & | |||
) | [private] |
void StGenEventReco::produce | ( | edm::Event & | evt, |
const edm::EventSetup & | setup | ||
) | [virtual] |
Implements edm::EDProducer.
Definition at line 20 of file StGenEventReco.cc.
References relval_steps::gen(), TtGenEvtProducer_cfi::genEvt, edm::Event::getByLabel(), init_, CfgNavigationSchool_cfi::parts, edm::Event::put(), and src_.
{ edm::Handle<reco::GenParticleCollection> parts; evt.getByLabel(src_, parts); edm::Handle<reco::GenParticleCollection> inits; evt.getByLabel(init_, inits); //add TopDecayTree reco::GenParticleRefProd cands( parts ); //add InitialStatePartons reco::GenParticleRefProd initParts( inits ); //add genEvt to the output stream StGenEvent* genEvt = new StGenEvent( cands, initParts ); std::auto_ptr<StGenEvent> gen( genEvt ); evt.put( gen ); }
edm::InputTag StGenEventReco::init_ [private] |
Definition at line 28 of file StGenEventReco.h.
Referenced by produce().
edm::InputTag StGenEventReco::src_ [private] |
Definition at line 28 of file StGenEventReco.h.
Referenced by produce().