CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Typedefs | Functions
GenParticlesHelper.h File Reference
#include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h"
#include <iostream>

Go to the source code of this file.

Namespaces

 GenParticlesHelper
 

Typedefs

typedef
reco::GenParticleCollection::const_iterator 
GenParticlesHelper::IG
 
typedef
reco::GenParticleRefVector::const_iterator 
GenParticlesHelper::IGR
 

Functions

void GenParticlesHelper::findDescendents (const reco::GenParticleRef &base, reco::GenParticleRefVector &descendents, int status, int pdgId=0)
 find all descendents of a given status and pdgId (recursive) More...
 
void GenParticlesHelper::findParticles (const reco::GenParticleCollection &sourceParticles, reco::GenParticleRefVector &particleRefs, int pdgId, int status)
 find all particles of a given pdgId and status More...
 
void GenParticlesHelper::findSisters (const reco::GenParticleRef &baseSister, reco::GenParticleRefVector &sisterRefs)
 find the particles having the same daughter as baseSister More...
 
bool GenParticlesHelper::hasAncestor (const reco::GenParticle *particle, int pdgId, int status)
 does the particle have an ancestor with this pdgId and this status? More...
 
bool GenParticlesHelper::isDirect (const reco::GenParticleRef &particle)
 check if particle is direct (has status 3 or is a daughter of particle with status 3) More...
 
std::ostream & GenParticlesHelper::operator<< (std::ostream &out, const reco::GenParticleRef &genRef)