1 #ifndef ICHiggsTauTau_Vertex_hh
2 #define ICHiggsTauTau_Vertex_hh
5 #include "Math/Point3D.h"
6 #include "Math/Point3Dfwd.h"
17 typedef ROOT::Math::XYZPoint Point;
18 typedef std::pair<std::size_t, float> TrkPair;
23 virtual void Print()
const;
27 inline Point
const&
point()
const {
return point_; }
31 inline std::size_t
id()
const {
return id_; }
34 inline float vx()
const {
return point_.x(); }
37 inline float vy()
const {
return point_.y(); }
40 inline float vz()
const {
return point_.z(); }
43 inline float chi2()
const {
return chi2_; }
46 inline float ndof()
const {
return ndof_; }
50 inline std::vector<std::pair<std::size_t, float> >
const&
tracks()
const {
62 inline void set_id(std::size_t
const&
id) { id_ =
id; }
65 inline void set_vx(
float const& x) { point_.SetX(x); }
68 inline void set_vy(
float const& y) { point_.SetY(y); }
71 inline void set_vz(
float const& z) { point_.SetZ(z); }
81 std::vector<std::pair<std::size_t, float> >
const&
tracks) {
86 inline void AddTrack(std::size_t
id,
float weight) {
87 tracks_.push_back(std::make_pair(
id, weight));
95 std::vector<TrkPair> tracks_;
98 #ifndef SKIP_CINT_DICT
std::size_t id() const
Unique identifier.
void set_vz(float const &z)
Vertex z-coordinate.
void set_vx(float const &x)
Vertex x-coordinate.
float vz() const
Vertex z-coordinate.
std::vector< std::pair< std::size_t, float > > const & tracks() const
A vector of track information pairs, where each contains an ic::Track::id() and the weight of that tr...
std::vector< ic::Vertex > VertexCollection
float ndof() const
The number-of-degrees-of-freedom in the vertex fit.
void set_ndof(float const &ndof)
The number-of-degrees-of-freedom in the vertex fit.
float vx() const
Vertex x-coordinate.
virtual void Print() const
void set_tracks(std::vector< std::pair< std::size_t, float > > const &tracks)
A vector of track information pairs, where each contains an ic::Track::id() and the weight of that tr...
void set_id(std::size_t const &id)
Unique identifier.
void set_chi2(float const &chi2)
The of the vertex fit.
void AddTrack(std::size_t id, float weight)
Add an ic::Track::id with a vertex fit weight.
float chi2() const
The of the vertex fit.
Point const & point() const
The vertex position co-ordinates.
void set_point(Point const &point)
The vertex position co-ordinates.
float vy() const
Vertex y-coordinate.
void set_vy(float const &y)
Vertex y-coordinate.
Stores information about the position of an event vertex and the quality of the track fit...