CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/DataFormats/HepMCCandidate/src/GenParticle.cc

Go to the documentation of this file.
00001 // $Id: GenParticle.cc,v 1.2 2007/10/15 13:03:36 llista Exp $
00002 #include "DataFormats/HepMCCandidate/interface/GenParticle.h"
00003 #include <iostream>
00004 using namespace reco;
00005 
00006 GenParticle::GenParticle( Charge q, const LorentzVector & p4, 
00007                           const Point & vtx, int pdgId, int status, bool integerCharge ) : 
00008   CompositeRefCandidateT<GenParticleRefVector>( q, p4, vtx, pdgId, status, integerCharge ) {
00009 }
00010 
00011 GenParticle::GenParticle( Charge q, const PolarLorentzVector & p4, 
00012                           const Point & vtx, int pdgId, int status, bool integerCharge ) : 
00013   CompositeRefCandidateT<GenParticleRefVector>( q, p4, vtx, pdgId, status, integerCharge ) {
00014 }
00015 
00016 GenParticle::~GenParticle() { }
00017 
00018 bool GenParticle::overlap( const Candidate & c ) const {
00019   return & c == this;
00020 }
00021 
00022 GenParticle * GenParticle::clone() const {
00023   return new GenParticle( * this );
00024 }