Go to the documentation of this file. 1 #ifndef DataFormats_Candidate_VertexCompositePtrCandidate_H
2 #define DataFormats_Candidate_VertexCompositePtrCandidate_H
35 bool integerCharge =
true)
46 bool integerCharge =
true);
56 bool integerCharge =
true);
135 int a = (
i <=
j ?
i :
j),
b = (
i <=
j ?
j :
i);
136 return b * (
b + 1) / 2 +
a;
Double32_t covariance_[size4D]
covariance matrix (4x4) as vector
Double32_t ndof_
number of degrees of freedom
double vertexChi2() const override
chi-squares
VertexCompositePtrCandidate(Charge q, const LorentzVector &p4, const Point &vtx, double time, int pdgId=0, int status=0, bool integerCharge=true)
void setChi2AndNdof(double chi2, double ndof)
set chi2 and ndof
math::Error< dimension >::type Error
the following functions are implemented to have a more consistent interface with the one of reco::Ver...
CovarianceMatrix vertexCovariance() const final
return SMatrix
Error4D error4D() const
return SMatrix 4D
int status() const final
status word
void setTime(double time)
VertexCompositePtrCandidate(const Candidate &p)
constructor from values
VertexCompositePtrCandidate * clone() const override
returns a clone of the candidate
math::Error< dimension4D >::type CovarianceMatrix4D
covariance error matrix (3x3)
int Charge
electric charge type
VertexCompositePtrCandidate(Charge q, const LorentzVector &p4, const Point &vtx, int pdgId=0, int status=0, bool integerCharge=true)
constructor from values
double vertexCovariance(int i, int j) const override
(i, j)-th element of error matrix, i, j = 0, ... 3
double vertexNdof() const override
~VertexCompositePtrCandidate() override
destructor
VertexCompositePtrCandidate(const CompositePtrCandidate &p)
constructor from values
index idx(index i, index j) const
position index
int Charge
electric charge type
math::Error< dimension4D >::type Error4D
Structure Point Contains parameters of Gaussian fits to DMRs.
Double32_t time_
vertex time
const Point & position() const
int pdgId() const final
PDG identifier.
const LorentzVector & p4() const final
four-momentum Lorentz vector
CovarianceMatrix4D vertexCovariance4D() const
return SMatrix 4D
Double32_t chi2_
chi-sqared
void setCovariance(const CovarianceMatrix &m)
set covariance matrix
const Point & vertex() const override
vertex position (overwritten by PF...)
double vertexNormalizedChi2() const override
chi-squared divided by n.d.o.f.
math::XYZTLorentzVector LorentzVector
double p() const final
magnitude of momentum vector
unsigned int index
index type
void fillVertexCovariance(CovarianceMatrix &v) const override
fill SMatrix
math::XYZTLorentzVector LorentzVector
Lorentz vector.
VertexCompositePtrCandidate()