1 #ifndef VertexReco_Vertex_h 2 #define VertexReco_Vertex_h 26 #include <Math/GenVector/PxPyPzE4D.h> 27 #include <Math/GenVector/PxPyPzM4D.h> 63 Vertex(
const Point &,
const Error &);
65 Vertex(
const Point &,
const Error4D &,
double);
69 Vertex(
const Point &,
const Error4D &,
double time,
double chi2,
double ndof,
size_t size);
83 template <
typename TREF>
87 if ((r.id() ==
t.id()) & (
t.key() == r.key()))
162 void fill(CovarianceMatrix &
v)
const;
164 void fill(CovarianceMatrix4D &v)
const;
219 int a = (i <= j ? i :
j),
b = (i <= j ? j : i);
220 return b * (
b + 1) / 2 + a;
void fill(CovarianceMatrix &v) const
fill SMatrix
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
trackRef_iterator tracks_end() const
last iterator over tracks
double zError() const
error on z
TrackBaseRef originalTrack(const Track &refTrack) const
double y() const
y coordinate
bool isValid() const
Tells whether the vertex is valid.
std::vector< Track > refittedTracks_
The vector of refitted tracks.
bool hasRefittedTracks() const
Checks whether refitted tracks are stored.
const TrackBaseRef & trackRefAt(size_t idx) const
python friendly track getting
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< TrackBaseRef > tracks_
reference to tracks
CovarianceMatrix4D covariance4D() const
return SMatrix 4D
unsigned int index
index type
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
const std::vector< Track > & refittedTracks() const
Returns the container of refitted tracks.
const Point & position() const
position
math::Error< dimension >::type CovarianceMatrix
covariance error matrix (3x3)
TrackEqual(const Track &t)
double pt() const
track transverse momentum
double chi2() const
chi-squares
double z() const
z coordinate
math::XYZPoint Point
point in the space
float trackWeight(const TREF &r) const
returns the weight with which a Track has contributed to the vertex-fit.
math::Error< dimension4D >::type CovarianceMatrix4D
covariance error matrix (4x4)
void add(const TrackBaseRef &r, float w=1.0)
add a reference to a Track
CovarianceMatrix covariance() const
return SMatrix
double x() const
x coordinate
double xError() const
error on x
unsigned int nTracks(float minWeight=0.5) const
Returns the number of tracks in the vertex with weight above minWeight.
Error4D error4D() const
return SMatrix
XYZPointD XYZPoint
point in space with cartesian internal representation
math::XYZTLorentzVectorD p4(float mass=0.13957018, float minWeight=0.5) const
Returns the four momentum of the sum of the tracks, assuming the given mass for the decay products...
Error error() const
return SMatrix
bool operator()(const Track &t) const
float covariance_[size4D]
covariance matrix (4x4) as vector
Track refittedTrack(const TrackBaseRef &track) const
math::Error< dimension4D >::type Error4D
covariance error matrix (4x4)
double normalizedChi2() const
chi-squared divided by n.d.o.f.
trackRef_iterator tracks_begin() const
first iterator over tracks
index idx(index i, index j) const
position index
double yError() const
error on y
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
double tError() const
error on t
size_t tracksSize() const
number of tracks
double t() const
t coordinate
float ndof_
number of degrees of freedom
bool validity_
tells wether the vertex is really valid.
std::vector< uint8_t > weights_