test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
int i
Definition: DBlmapReader.cc:9
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
int j
Definition: DBlmapReader.cc:9
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
math::XYZPoint Point
point in the space
Definition: Candidate.h:41
tuple status
Definition: ntuplemaker.py:245