1 #ifndef DataFormats_PatCandidates_interface_Vertexing_h 2 #define DataFormats_PatCandidates_interface_Vertexing_h 77 template <
typename T1,
typename T2>
void setDistances(const AlgebraicVector3 &dist, const AlgebraicSymMatrix33 &err)
Set dz and dr given the distance and the 3x3 total covariance matrix of the distance.
bool isAvailable() const
Return 'true' if the reco::Vertex is available in the file, false if it has been dropped.
bool isNonnull() const
Return 'true' unless this is a null association (that is, no vertex)
VertexAssociation()
Create a null vertx association.
void setDr(const Measurement1DFloat &dr)
bool isNonnull() const
Checks for non-null.
const Measurement1DFloat & dz() const
VertexAssociation(const reco::VertexRef &vertex, const reco::TrackBaseRef &tk)
const reco::Vertex * operator->() const
Allows VertexAssociation to behave like a vertex ref (e.g. to do "assoc->position()") ...
void setDz(const Measurement1D &dz)
const reco::Vertex * vertex() const
Returns a pointer to the vertex, or a null pointer if there is no vertex (null association) ...
void setDz(const Measurement1DFloat &dz)
const reco::TrackBaseRef & trackRef() const
Returns a reference to the track stored in this vertex (can be null)
bool hasErrors() const
True if the errors on dr and dz have been set, false if they're nulls.
const Measurement1DFloat & dr() const
Distance between the object and the vertex in the transverse plane, and it's error.
bool isNull() const
Checks for null.
bool isNull() const
Checks for null.
void setDr(const Measurement1D &dr)
bool isNull() const
Return 'true' if this is a null association (that is, no vertex)
VertexAssociation(const reco::VertexRef &vertex)
Create a vertex association given a ref to a vertex.
const reco::VertexRef & vertexRef() const
Returns the reference to the vertex (can be a null reference)
bool hasTrack() const
Returns 'true' if a reference to a track was stored in this VertexAssociation.
const reco::Track * track() const
Returns a C++ pointer to the track stored in this vertex (can be a null pointer)
ROOT::Math::SVector< double, 3 > AlgebraicVector3
T const * get() const
Returns C++ pointer to the item.
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
Analysis-level structure for vertex-related information.
bool hasTransverseIP() const
True if the transverse distance was computed for this VertexAssociation.
const reco::Vertex & operator*() const
Return the vertex (that is, you can do "const reco::Vertex &vtx = *assoc")
value_type const * get() const
void setDistances(const T1 &p1, const T2 &p2, const AlgebraicSymMatrix33 &err)
reco::TrackBaseRef track_