CMS 3D CMS Logo

VertexCompositeCandidate.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
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) {
16 }
17 
19 
21 
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 
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:428
mps_update.status
status
Definition: mps_update.py:68
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:28
reco::VertexCompositeCandidate
Definition: VertexCompositeCandidate.h:16
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
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::Candidate::dimension
Definition: Candidate.h:44
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
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
p4
double p4[4]
Definition: TauolaWrapper.h:92
EgammaValidation_cff.pdgId
pdgId
Definition: EgammaValidation_cff.py:117
submitPVResolutionJobs.q
q
Definition: submitPVResolutionJobs.py:84
submitPVResolutionJobs.err
err
Definition: submitPVResolutionJobs.py:85
reco::VertexCompositeCandidate::VertexCompositeCandidate
VertexCompositeCandidate()
Definition: VertexCompositeCandidate.h:18
extraflags_cff.vtx
vtx
Definition: extraflags_cff.py:19
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::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