CMS 3D CMS Logo

VertexCompositeCandidate.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6  const CovarianceMatrix & err, double chi2, double ndof,
7  int pdgId, int status, bool integerCharge) :
8  CompositeCandidate(q, p4, vtx, pdgId, status, integerCharge),
9  chi2_(chi2), ndof_(ndof) {
10  setCovariance(err);
11 }
12 
14 
16  return new VertexCompositeCandidate(*this);
17 }
18 
20  index idx = 0;
21  for(index i = 0; i < dimension; ++i)
22  for(index j = 0; j <= i; ++ j)
23  err(i, j) = covariance_[idx++];
24 }
25 
27  index idx = 0;
28  for(index i = 0; i < dimension; ++i)
29  for(index j = 0; j <= i; ++j)
30  covariance_[idx++] = err(i, j);
31 }
int Charge
electric charge type
Definition: Candidate.h:35
virtual ~VertexCompositeCandidate()
destructor
virtual VertexCompositeCandidate * clone() const
returns a clone of the candidate
double p4[4]
Definition: TauolaWrapper.h:92
void setCovariance(const CovarianceMatrix &m)
set covariance matrix
index idx(index i, index j) const
position index
unsigned int index
index type
Definition: Candidate.h:51
Double32_t covariance_[size]
covariance matrix (3x3) as vector
virtual void fillVertexCovariance(CovarianceMatrix &v) const
fill SMatrix
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
fixed size matrix
math::XYZPoint Point
point in the space
Definition: Candidate.h:41