CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VertexCompositePtrCandidate.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  CompositePtrCandidate(q, p4, vtx, pdgId, status, integerCharge),
9  chi2_(chi2), ndof_(ndof) {
10  setCovariance(err);
11 }
12 
14 
16  return new VertexCompositePtrCandidate(*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:39
int i
Definition: DBlmapReader.cc:9
virtual void fillVertexCovariance(CovarianceMatrix &v) const
fill SMatrix
double p4[4]
Definition: TauolaWrapper.h:92
index idx(index i, index j) const
position index
int j
Definition: DBlmapReader.cc:9
unsigned int index
index type
Definition: Candidate.h:55
Double32_t covariance_[size]
covariance matrix (3x3) as vector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:41
void setCovariance(const CovarianceMatrix &m)
set covariance matrix
math::XYZPoint Point
point in the space
Definition: Candidate.h:45
tuple status
Definition: ntuplemaker.py:245
virtual VertexCompositePtrCandidate * clone() const
returns a clone of the candidate