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.
1 // $Id: VertexCompositeCandidate.cc,v 1.4 2008/02/19 13:14:32 llista Exp $
3 
4 using namespace reco;
5 
7  const CovarianceMatrix & err, double chi2, double ndof,
8  int pdgId, int status, bool integerCharge) :
9  CompositeCandidate(q, p4, vtx, pdgId, status, integerCharge),
10  chi2_(chi2), ndof_(ndof) {
11  setCovariance(err);
12 }
13 
15 
17  return new VertexCompositeCandidate(*this);
18 }
19 
21  index idx = 0;
22  for(index i = 0; i < dimension; ++i)
23  for(index j = 0; j <= i; ++ j)
24  err(i, j) = covariance_[idx++];
25 }
26 
28  index idx = 0;
29  for(index i = 0; i < dimension; ++i)
30  for(index j = 0; j <= i; ++j)
31  covariance_[idx++] = err(i, j);
32 }
int Charge
electric charge type
Definition: Candidate.h:36
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:52
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:38
math::XYZPoint Point
point in the space
Definition: Candidate.h:42
tuple status
Definition: ntuplemaker.py:245