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