Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
HepMCCandidate
interface
GenParticle.h
Go to the documentation of this file.
1
#ifndef HepMCCandidate_GenParticle_h
2
#define HepMCCandidate_GenParticle_h
3
10
#include "
DataFormats/Candidate/interface/CompositeRefCandidateT.h
"
11
#include "
DataFormats/HepMCCandidate/interface/GenParticleFwd.h
"
12
#include <vector>
13
14
namespace
HepMC {
15
class
GenParticle
;
16
}
17
18
namespace
reco
{
19
20
class
GenParticle
:
public
CompositeRefCandidateT
<GenParticleRefVector> {
21
public
:
23
GenParticle
() { }
25
GenParticle
(
const
LeafCandidate
&
c
) :
26
CompositeRefCandidateT
<
GenParticleRefVector
>(c) { }
28
GenParticle
(
Charge
q
,
const
LorentzVector
&
p4
,
const
Point
& vtx,
29
int
pdgId
,
int
status
,
bool
integerCharge);
31
GenParticle
(
Charge
q
,
const
PolarLorentzVector
&
p4
,
const
Point
& vtx,
32
int
pdgId
,
int
status
,
bool
integerCharge);
34
virtual
~GenParticle
();
36
GenParticle
*
clone
()
const
;
37
void
setCollisionId
(
int
s
) {
collisionId_
=
s
;}
38
int
collisionId
()
const
{
return
collisionId_
;}
39
40
private
:
42
bool
overlap
(
const
Candidate
&)
const
;
43
int
collisionId_
;
44
};
45
46
}
47
48
#endif
reco::LeafCandidate
Definition:
LeafCandidate.h:19
reco::GenParticle::setCollisionId
void setCollisionId(int s)
Definition:
GenParticle.h:37
reco::LeafCandidate::p4
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
Definition:
LeafCandidate.h:123
reco::GenParticle::overlap
bool overlap(const Candidate &) const
checp overlap with another candidate
Definition:
GenParticle.cc:17
reco::LeafCandidate::pdgId
virtual int pdgId() const GCC11_FINAL
PDG identifier.
Definition:
LeafCandidate.h:211
reco::LeafCandidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition:
LeafCandidate.h:28
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition:
HLTMuonMatchAndPlot.h:55
reco::Candidate
Definition:
Candidate.h:32
lumiQueryAPI.q
tuple q
Definition:
lumiQueryAPI.py:1839
reco::GenParticle::collisionId
int collisionId() const
Definition:
GenParticle.h:38
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:105
reco::GenParticle::~GenParticle
virtual ~GenParticle()
destructor
Definition:
GenParticle.cc:15
reco::GenParticle::GenParticle
GenParticle()
default constructor
Definition:
GenParticle.h:23
reco::GenParticle::collisionId_
int collisionId_
Definition:
GenParticle.h:43
reco::LeafCandidate::status
virtual int status() const GCC11_FINAL
status word
Definition:
LeafCandidate.h:215
reco::CompositeRefCandidateT
Definition:
CompositeRefCandidateT.h:19
CompositeRefCandidateT.h
Point
math::XYZPoint Point
Definition:
TrackerDpgAnalysis.cc:107
GenParticleFwd.h
reco::GenParticle::GenParticle
GenParticle(const LeafCandidate &c)
default constructor
Definition:
GenParticle.h:25
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
edm::RefVector< GenParticleCollection >
configurableAnalysis::GenParticle
char GenParticle[]
Definition:
modules.cc:23
trackerHits.c
tuple c
Definition:
trackerHits.py:26
reco::GenParticle
Definition:
GenParticle.h:20
reco::GenParticle::clone
GenParticle * clone() const
return a clone
Definition:
GenParticle.cc:21
reco::LeafCandidate::Charge
int Charge
electric charge type
Definition:
LeafCandidate.h:24
Generated for CMSSW Reference Manual by
1.8.5