CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GenParticle.cc
Go to the documentation of this file.
1 // $Id: GenParticle.cc,v 1.1 2007/09/11 16:17:14 llista Exp $
3 #include <iostream>
4 using namespace reco;
5 
7  const Point & vtx, int pdgId, int status, bool integerCharge ) :
8  CompositeRefCandidateT<GenParticleRefVector>( q, p4, vtx, pdgId, status, integerCharge ) {
9 }
10 
12  const Point & vtx, int pdgId, int status, bool integerCharge ) :
13  CompositeRefCandidateT<GenParticleRefVector>( q, p4, vtx, pdgId, status, integerCharge ) {
14 }
15 
17 
18 bool GenParticle::overlap( const Candidate & c ) const {
19  return & c == this;
20 }
21 
23  return new GenParticle( * this );
24 }
int Charge
electric charge type
Definition: Candidate.h:37
bool overlap(const Candidate &) const
checp overlap with another candidate
Definition: GenParticle.cc:18
virtual ~GenParticle()
destructor
Definition: GenParticle.cc:16
GenParticle()
default constructor
Definition: GenParticle.h:24
double p4[4]
Definition: TauolaWrapper.h:92
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:39
math::XYZPoint Point
point in the space
Definition: Candidate.h:43
tuple status
Definition: ntuplemaker.py:245
GenParticle * clone() const
return a clone
Definition: GenParticle.cc:22
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:41