Classes | Public Types | Public Member Functions | Friends

ForIA::Vertex Class Reference

Tracking vertex. More...

#include <Vertex.hh>

List of all members.

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)

Detailed Description

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.


Member Enumeration Documentation

Enum of the possible vertex types. The main ones you are likely to want are:

NONE PRIMARY SECONDARY PILE_UP TRUTH

Enumerator:
BAD 
TYPE_BEGIN 
NONE 
PRIMARY 
SECONDARY 
PILE_UP 
CONVERSION 
V0 
KINK 
V0_LAMBDA 
V0_LAMBDA_BAR 
V0_KSHORT 
TRUTH 
TYPE_END 

Definition at line 44 of file Vertex.hh.


Constructor & Destructor Documentation

ForIA::Vertex::Vertex (  )

No-argument constructor.

Definition at line 11 of file Vertex.cxx.


Member Function Documentation

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.


Friends And Related Function Documentation

friend class DataConverter [friend]

Definition at line 89 of file Vertex.hh.

friend class Event [friend]

Definition at line 90 of file Vertex.hh.

std::ostream& operator<< ( std::ostream &  out,
const Vertex vtx 
) [friend]

Definition at line 82 of file Vertex.cxx.


The documentation for this class was generated from the following files: