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