Tracking vertex. More...
#include <Vertex.hh>
Classes | |
struct | ByNTracksDown |
struct | ByNTracksUp |
Public Types | |
enum | VertexType { BAD = -1, TYPE_BEGIN = 0, NONE = TYPE_BEGIN, PRIMARY = 1, SECONDARY = 2, PILE_UP = 3, CONVERSION = 4, V0 = 5, KINK = 6, V0_LAMBDA = 7, V0_LAMBDA_BAR = 8, V0_KSHORT = 9, TRUTH, TYPE_END } |
Public Member Functions | |
Vertex () | |
No-argument constructor. | |
double | x () const |
The x position of the vertex. | |
double | y () const |
The y position of the vertex. | |
double | z () const |
The z position of the vertex. | |
double | r () const |
The distance of the vertex from the detector origin. | |
int | nTracks () const |
The number of tracks attached to this vertex. | |
VertexType | type () const |
The type of this Vertex. See the VertexType enum. | |
bool | hasTrackAssociations () const |
const TrackVector & | associatedTracks () const |
Friends | |
class | DataConverter |
class | Event |
std::ostream & | operator<< (std::ostream &out, const Vertex &vtx) |
Tracking vertex.
A Vertex has a position in x, y, y, a vertex type (primary, pile up, secondary etc.) and a count of the number of tracks on the vertex. It may also contain a list of the tracks associated with the vertex
Definition at line 29 of file Vertex.hh.
ForIA::Vertex::Vertex | ( | ) |
No-argument constructor.
Definition at line 11 of file Vertex.cxx.
const TrackVector & ForIA::Vertex::associatedTracks | ( | ) | const |
Definition at line 50 of file Vertex.cxx.
bool ForIA::Vertex::hasTrackAssociations | ( | ) | const |
Does this vertex object contain the track association info, i.e. is the associatedTracks() method callable
Definition at line 46 of file Vertex.cxx.
int ForIA::Vertex::nTracks | ( | ) | const |
The number of tracks attached to this vertex.
Definition at line 16 of file Vertex.cxx.
double ForIA::Vertex::r | ( | ) | const |
The distance of the vertex from the detector origin.
Definition at line 36 of file Vertex.cxx.
Vertex::VertexType ForIA::Vertex::type | ( | ) | const |
The type of this Vertex. See the VertexType enum.
Definition at line 20 of file Vertex.cxx.
double ForIA::Vertex::x | ( | ) | const |
The x position of the vertex.
Definition at line 24 of file Vertex.cxx.
double ForIA::Vertex::y | ( | ) | const |
The y position of the vertex.
Definition at line 28 of file Vertex.cxx.
double ForIA::Vertex::z | ( | ) | const |
The z position of the vertex.
Definition at line 32 of file Vertex.cxx.
friend class DataConverter [friend] |
std::ostream& operator<< | ( | std::ostream & | out, |
const Vertex & | vtx | ||
) | [friend] |
Definition at line 82 of file Vertex.cxx.