CMS 3D CMS Logo

GenParticle.cc
Go to the documentation of this file.
2 #include <iostream>
3 using namespace reco;
4 
6  const Point & vtx, int pdgId, int status, bool integerCharge ) :
7  CompositeRefCandidateT<GenParticleRefVector>( q, p4, vtx, pdgId, status, integerCharge ) {
8 }
9 
10 GenParticle::GenParticle( Charge q, const PolarLorentzVector & p4,
11  const Point & vtx, int pdgId, int status, bool integerCharge ) :
12  CompositeRefCandidateT<GenParticleRefVector>( q, p4, vtx, pdgId, status, integerCharge ) {
13 }
14 
16 
17 bool GenParticle::overlap( const Candidate & c ) const {
18  return & c == this;
19 }
20 
22  return new GenParticle( * this );
23 }
math::XYZTLorentzVector LorentzVector
GenParticle()
default constructor
Definition: GenParticle.h:24
bool overlap(const Candidate &) const
checp overlap with another candidate
double p4[4]
Definition: TauolaWrapper.h:92
math::XYZPoint Point
GenParticle * clone() const
return a clone
fixed size matrix
virtual ~GenParticle()
destructor