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 }
bool overlap(const Candidate &) const override
checp overlap with another candidate
GenParticle * clone() const override
return a clone
GenParticle()
default constructor
Definition: GenParticle.h:24
~GenParticle() override
destructor
double p4[4]
Definition: TauolaWrapper.h:92
math::XYZTLorentzVector LorentzVector
fixed size matrix
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:55