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