4 src_ ( cfg.getParameter<edm::InputTag>(
"src" ) )
6 produces<reco::GenParticleCollection>();
30 for(reco::GenParticleCollection::const_iterator
t=src.begin();
t!=src.end(); ++
t){
32 for(
int idx=0; idx<(int)
t->numberOfMothers(); ++idx){
34 t->mother(idx)->vertex(),
t->mother(idx)->pdgId(),
35 t->mother(idx)->status(),
false );
36 std::auto_ptr<reco::GenParticle> ptr( cand );
37 sel.push_back( *ptr );
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
TopInitSubset(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &)
void fillOutput(const reco::GenParticleCollection &, reco::GenParticleCollection &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
RefProd< PROD > getRefBeforePut()
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")