1 #ifndef VertexReco_Vertex_h
2 #define VertexReco_Vertex_h
26 #include <Math/GenVector/PxPyPzE4D.h>
27 #include <Math/GenVector/PxPyPzM4D.h>
72 template<
typename TREF>
77 if ( (r.id()==
t.id()) & (
t.key()==r.key()) )
return weights_[
i]/255.f;
155 unsigned int nTracks(
float minWeight=0.5)
const;
184 index
idx( index i, index
j )
const {
185 int a = ( i <= j ? i :
j ),
b = ( i <= j ? j : i );
186 return b * (
b + 1 ) / 2 + a;
std::vector< TrackBaseRef > tracks_
reference to tracks
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.
math::Error< dimension >::type Error
covariance error matrix (3x3)
void fill(CovarianceMatrix &v) const
fill SMatrix
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)
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
float trackWeight(const TrackBaseRef &r) const
returns the weight with which a Track has contributed to the vertex-fit.
double pt() const
track transverse momentum
double chi2() const
chi-squares
double z() const
y coordinate
math::XYZPoint Point
point in the space
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.
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...
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Error error() const
return SMatrix
bool operator()(const Track &t) const
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
float covariance_[size]
covariance matrix (3x3) as vector
index idx(index i, index j) const
position index
double yError() const
error on y
size_t tracksSize() const
number of tracks
float ndof_
number of degrees of freedom
bool validity_
tells wether the vertex is really valid.
std::vector< uint8_t > weights_