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 }
int Charge
electric charge type
Definition: Candidate.h:34
void fillVertexCovariance(CovarianceMatrix &v) const override
fill SMatrix
VertexCompositeCandidate * clone() const override
returns a clone of the candidate
void setCovariance(const CovarianceMatrix &m)
set covariance matrix
unsigned int index
index type
Definition: Candidate.h:50
Double32_t covariance_[size]
covariance matrix (3x3) as vector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
fixed size matrix
Structure Point Contains parameters of Gaussian fits to DMRs.
index idx(index i, index j) const
position index
~VertexCompositeCandidate() override
destructor