CMS 3D CMS Logo

reco::GenParticle Class Reference

particle candidate with information from HepMC::GenParticle More...

#include <DataFormats/HepMCCandidate/interface/GenParticle.h>

Inheritance diagram for reco::GenParticle:

reco::CompositeRefCandidateT< D > reco::Candidate reco::Particle GeneratorTau

List of all members.

Public Member Functions

GenParticleclone () const
 return a clone
 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 Particle &p)
 default constructor
 GenParticle ()
 default constructor
virtual ~GenParticle ()
 destructor

Private Member Functions

bool overlap (const Candidate &) const
 checp overlap with another candidate


Detailed Description

particle candidate with information from HepMC::GenParticle

Author:
: Luca Lista, INFN
Version:
Id
GenParticle.h,v 1.4 2007/11/30 09:22:06 llista Exp

Definition at line 21 of file GenParticle.h.


Constructor & Destructor Documentation

reco::GenParticle::GenParticle (  )  [inline]

default constructor

Definition at line 24 of file GenParticle.h.

Referenced by clone().

00024 { }

reco::GenParticle::GenParticle ( const Particle p  )  [inline]

default constructor

Definition at line 26 of file GenParticle.h.

00026                                     : 
00027       CompositeRefCandidateT<GenParticleRefVector>(p) { }

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.

00007                                                                                          : 
00008   CompositeRefCandidateT<GenParticleRefVector>( q, p4, vtx, pdgId, status, integerCharge ) {
00009 }

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.

00012                                                                                          : 
00013   CompositeRefCandidateT<GenParticleRefVector>( q, p4, vtx, pdgId, status, integerCharge ) {
00014 }

GenParticle::~GenParticle (  )  [virtual]

destructor

Definition at line 16 of file GenParticle.cc.

00016 { }


Member Function Documentation

GenParticle * GenParticle::clone ( void   )  const [virtual]

return a clone

Reimplemented from reco::CompositeRefCandidateT< D >.

Definition at line 22 of file GenParticle.cc.

References GenParticle().

00022                                        {
00023   return new GenParticle( * this );
00024 }

bool GenParticle::overlap ( const Candidate c  )  const [private, virtual]

checp overlap with another candidate

Reimplemented from reco::CompositeRefCandidateT< D >.

Definition at line 18 of file GenParticle.cc.

00018                                                      {
00019   return & c == this;
00020 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:51:05 2009 for CMSSW by  doxygen 1.5.4