#include <GenParticle.h>
Public Member Functions | |
GenParticle * | clone () const |
return a clone | |
int | collisionId () const |
GenParticle (Charge q, const PolarLorentzVector &p4, const Point &vtx, int pdgId, int status, bool integerCharge) | |
constrocturo from values | |
GenParticle (Charge q, const LorentzVector &p4, const Point &vtx, int pdgId, int status, bool integerCharge) | |
constrocturo from values | |
GenParticle (const LeafCandidate &c) | |
default constructor | |
GenParticle () | |
default constructor | |
void | setCollisionId (int s) |
virtual | ~GenParticle () |
destructor | |
Private Member Functions | |
bool | overlap (const Candidate &) const |
checp overlap with another candidate | |
Private Attributes | |
int | collisionId_ |
particle candidate with information from HepMC::GenParticle
Definition at line 21 of file GenParticle.h.
reco::GenParticle::GenParticle | ( | ) | [inline] |
reco::GenParticle::GenParticle | ( | const LeafCandidate & | c | ) | [inline] |
default constructor
Definition at line 26 of file GenParticle.h.
: CompositeRefCandidateT<GenParticleRefVector>(c) { }
GenParticle::GenParticle | ( | Charge | q, |
const LorentzVector & | p4, | ||
const Point & | vtx, | ||
int | pdgId, | ||
int | status, | ||
bool | integerCharge | ||
) |
constrocturo from values
Definition at line 6 of file GenParticle.cc.
: CompositeRefCandidateT<GenParticleRefVector>( q, p4, vtx, pdgId, status, integerCharge ) { }
GenParticle::GenParticle | ( | Charge | q, |
const PolarLorentzVector & | p4, | ||
const Point & | vtx, | ||
int | pdgId, | ||
int | status, | ||
bool | integerCharge | ||
) |
constrocturo from values
Definition at line 11 of file GenParticle.cc.
: CompositeRefCandidateT<GenParticleRefVector>( q, p4, vtx, pdgId, status, integerCharge ) { }
GenParticle::~GenParticle | ( | ) | [virtual] |
GenParticle * GenParticle::clone | ( | void | ) | const [virtual] |
return a clone
Reimplemented from reco::CompositeRefCandidateT< GenParticleRefVector >.
Definition at line 22 of file GenParticle.cc.
References GenParticle().
{ return new GenParticle( * this ); }
int reco::GenParticle::collisionId | ( | ) | const [inline] |
Definition at line 39 of file GenParticle.h.
References collisionId_.
Referenced by cms::SubEventGenJetProducer::inputTowers(), HiGammaJetSignalDef::IsIsolated(), HiGammaJetSignalDef::IsIsolatedJP(), and HiGammaJetSignalDef::IsIsolatedPP().
{return collisionId_;}
bool GenParticle::overlap | ( | const Candidate & | c | ) | const [private, virtual] |
checp overlap with another candidate
Reimplemented from reco::CompositeRefCandidateT< GenParticleRefVector >.
Definition at line 18 of file GenParticle.cc.
{ return & c == this; }
void reco::GenParticle::setCollisionId | ( | int | s | ) | [inline] |
Definition at line 38 of file GenParticle.h.
References collisionId_, and alignCSCRings::s.
Referenced by GenParticleProducer::convertParticle().
{collisionId_ = s;}
int reco::GenParticle::collisionId_ [private] |
Definition at line 44 of file GenParticle.h.
Referenced by collisionId(), and setCollisionId().