1 #ifndef VertexReco_Vertex_h 2 #define VertexReco_Vertex_h 26 #include <Math/GenVector/PxPyPzE4D.h> 27 #include <Math/GenVector/PxPyPzM4D.h> 60 Vertex(
const Point &,
const Error &);
62 Vertex(
const Point &,
const Error4D &,
double);
66 Vertex(
const Point &,
const Error4D &,
double time,
double chi2,
double ndof,
size_t size );
80 template<
typename TREF>
84 if ( (r.id()==
t.id()) & (
t.key()==r.key()) )
return weights_[
i]/255.f;
144 void fill( CovarianceMatrix &
v )
const;
146 void fill( CovarianceMatrix4D & v )
const;
199 index
idx( index
i, index j )
const {
200 int a = ( i <= j ? i : j ),
b = ( i <= j ? j : i );
201 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
Track refittedTrack(const TrackBaseRef &track) 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)
CovarianceMatrix covariance() const
return SMatrix
void add(const TrackBaseRef &r, float w=1.0)
add a reference to a Track
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
math::Error< dimension4D >::type Error4D
covariance error matrix (4x4)
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
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
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_