1 #ifndef VERTEXWRAPPER_H 2 #define VERTEXWRAPPER_H 26 typedef std::vector<std::reference_wrapper<const recob::Track> >
TrackRefVec;
51 for (
size_t it = 0; it!=
vtxtks_.size(); ++it) {
52 if (&tk==&
vtxtks_[it].
get())
return it;
61 tks.erase(tks.begin()+element);
const recob::tracking::Point_t & position() const
TrackRefVec tracksWithoutElement(size_t element) const
const recob::tracking::SMatrixSym33 & covariance() const
Wrapper class to facilitate vertex production.
VertexWrapper(const recob::Vertex &vtx)
void addTrack(const recob::Track &tk)
void addTrackAndUpdateVertex(const recob::tracking::Point_t &pos, const recob::tracking::SMatrixSym33 &cov, double chi2, int ndof, const recob::Track &tk)
ROOT::Math::SMatrix< Double32_t, 3, 3, ROOT::Math::MatRepSym< Double32_t, 3 > > SMatrixSym33
void setID(int newID)
Set vertex id.
Definition of vertex object for LArSoft.
size_t tracksSize() const
const TrackRefVec & tracks() const
const SMatrixSym33 & covariance() const
Return vertex 3D covariance (be careful, the matrix may have rank=2).
void setVertexId(int newID)
Provides recob::Track data product.
VertexWrapper(const recob::tracking::Point_t &pos, const recob::tracking::SMatrixSym33 &cov, double chi2, int ndof)
boost::graph_traits< ModuleGraph >::vertex_descriptor Vertex
size_t findTrack(const recob::Track &tk) const
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< Coord_t >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space. See recob::tracking::Coord_t for more detai...
const Point_t & position() const
Return vertex 3D position.
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track:
const recob::Vertex & vertex() const
std::vector< std::reference_wrapper< const recob::Track > > TrackRefVec