DataFormats
Candidate
src
VertexCompositeCandidate.cc
Go to the documentation of this file.
1
#include "
DataFormats/Candidate/interface/VertexCompositeCandidate.h
"
2
3
using namespace
reco
;
4
5
VertexCompositeCandidate::VertexCompositeCandidate
(
Charge
q
,
6
const
LorentzVector
&
p4
,
7
const
Point
&
vtx
,
8
const
CovarianceMatrix
&
err
,
9
double
chi2
,
10
double
ndof
,
11
int
pdgId
,
12
int
status
,
13
bool
integerCharge)
14
:
CompositeCandidate
(
q
,
p4
,
vtx
,
pdgId
,
status
, integerCharge), chi2_(
chi2
), ndof_(
ndof
) {
15
setCovariance
(
err
);
16
}
17
18
VertexCompositeCandidate::~VertexCompositeCandidate
() {}
19
20
VertexCompositeCandidate
*
VertexCompositeCandidate::clone
()
const
{
return
new
VertexCompositeCandidate
(*
this
); }
21
22
void
VertexCompositeCandidate::fillVertexCovariance
(
CovarianceMatrix
&
err
)
const
{
23
index
idx
= 0;
24
for
(
index
i
= 0;
i
<
dimension
; ++
i
)
25
for
(
index
j
= 0;
j
<=
i
; ++
j
)
26
err
(
i
,
j
) =
covariance_
[
idx
++];
27
}
28
29
void
VertexCompositeCandidate::setCovariance
(
const
CovarianceMatrix
&
err
) {
30
index
idx
= 0;
31
for
(
index
i
= 0;
i
<
dimension
; ++
i
)
32
for
(
index
j
= 0;
j
<=
i
; ++
j
)
33
covariance_
[
idx
++] =
err
(
i
,
j
);
34
}
mps_fire.i
i
Definition:
mps_fire.py:355
mps_update.status
status
Definition:
mps_update.py:69
data-class-funcs.q
q
Definition:
data-class-funcs.py:169
reco::Candidate::Charge
int Charge
electric charge type
Definition:
Candidate.h:34
reco::VertexCompositeCandidate::clone
VertexCompositeCandidate * clone() const override
returns a clone of the candidate
Definition:
VertexCompositeCandidate.cc:20
CovarianceMatrix
Definition:
CovarianceMatrix.h:27
reco::VertexCompositeCandidate
Definition:
VertexCompositeCandidate.h:16
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
hltPixelTracks_cff.chi2
chi2
Definition:
hltPixelTracks_cff.py:25
ndof
Definition:
HIMultiTrackSelector.h:49
reco::VertexCompositeCandidate::~VertexCompositeCandidate
~VertexCompositeCandidate() override
destructor
Definition:
VertexCompositeCandidate.cc:18
reco::VertexCompositeCandidate::covariance_
Double32_t covariance_[size]
covariance matrix (3x3) as vector
Definition:
VertexCompositeCandidate.h:71
VertexCompositeCandidate.h
reco::VertexCompositeCandidate::idx
index idx(index i, index j) const
position index
Definition:
VertexCompositeCandidate.h:73
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition:
badGlobalMuonTaggersAOD_cff.py:5
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition:
DMRtrends.cc:57
runTheMatrix.err
err
Definition:
runTheMatrix.py:288
p4
double p4[4]
Definition:
TauolaWrapper.h:92
EgammaValidation_cff.pdgId
pdgId
Definition:
EgammaValidation_cff.py:118
reco::VertexCompositeCandidate::VertexCompositeCandidate
VertexCompositeCandidate()
Definition:
VertexCompositeCandidate.h:18
reco::VertexCompositeCandidate::fillVertexCovariance
void fillVertexCovariance(CovarianceMatrix &v) const override
fill SMatrix
Definition:
VertexCompositeCandidate.cc:22
reco::Candidate::index
unsigned int index
index type
Definition:
Candidate.h:50
reco::Candidate::dimension
Definition:
Candidate.h:44
reco::VertexCompositeCandidate::setCovariance
void setCovariance(const CovarianceMatrix &m)
set covariance matrix
Definition:
VertexCompositeCandidate.cc:29
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:36
dqmiolumiharvest.j
j
Definition:
dqmiolumiharvest.py:66
reco::CompositeCandidate
Definition:
CompositeCandidate.h:21
Generated for CMSSW Reference Manual by
1.8.16