CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

reco::GenParticle Class Reference

#include <GenParticle.h>

Inheritance diagram for reco::GenParticle:
reco::CompositeRefCandidateT< GenParticleRefVector > reco::LeafCandidate reco::Candidate GeneratorTau

List of all members.

Public Member Functions

GenParticleclone () 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_

Detailed Description

particle candidate with information from HepMC::GenParticle

Author:
: Luca Lista, INFN
Version:
Id:
GenParticle.h,v 1.6 2009/09/10 09:50:28 srappocc 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().

{ }
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.

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.

GenParticle::~GenParticle ( ) [virtual]

destructor

Definition at line 16 of file GenParticle.cc.

{ }

Member Function Documentation

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]
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 asciidump::s.

Referenced by GenParticleProducer::convertParticle().


Member Data Documentation

Definition at line 44 of file GenParticle.h.

Referenced by collisionId(), and setCollisionId().