Public Types | Public Member Functions | Friends

ForIA::Track Class Reference

Represents a single track. More...

#include <Track.hh>

Inheritance diagram for ForIA::Track:
ForIA::IFourMomentum

List of all members.

Public Types

enum  Origin { ORIGIN, BEAM_SPOT, PRIMARY_VERTEX, TRACK_VERTEX }
enum  TrackAuthor {
  INSIDE_OUT = 0, BACK_TRACKING = 4, TRT_STANDALONE = 20, LOW_PT = 36,
  VERY_LOW_PT = 38, BAD_AUTHOR = 9999
}

Public Member Functions

 Track ()
 Default constructor.
double eta () const
 The pseudorapidity of this track.
double theta () const
 The angle \theta of this track w.r.t the primary vertex.
double theta (Origin org) const
double phi () const
 The azimuthal angle \phi of this track w.r.t the primary vertex.
double phi (Origin org) const
double ET () const
 The ET of a track is returned as the PT.
double PT () const
 The PT of this track.
double E () const
 The energy of this track.
double px () const
 x component of momentum
double py () const
 y compontent of momentum
double pz () const
 z component of momentum
double px (Origin org) const
 x component of momentum w.r.t a given origin
double py (Origin org) const
 y compontent of momentum w.r.t a given origin
double pz (Origin org) const
 z component of momentum w.r.t a given origin
double d0 (Origin org) const
 The perigee of this track w.r.t a given origin.
double z0 (Origin org) const
 The min z distance of this track from a given origin.
double chi2 () const
 The chi^2 of the fit for this track.
int DOF () const
 The number of degrees of freedom for the fit to this track.
double chi2_DOF () const
 The chi^2 per degree of freedom for this track.
double fitProbability () const
 The fit probability for this track assuming a Normal distribution for the chi^2.
int nPix () const
 The number of pixel hits along this track.
int nSCT () const
 The number of SCT hits along this track.
int nTRT () const
 The number of TRT hits along this track.
bool expectBLayer () const
 Is this track expected to create a b layer hit?
int nBLayer () const
 Number of b layer hits created by this track.
TrackAuthor author () const
 The algorithm that reconstructed this track.
bool isMC () const
 Does this track come from MC or data. Returns true if MC.
int id () const
VertexVector associatedVertices () const
 List of vertices to which this track is associated.

Friends

class DataConverter
std::ostream & operator<< (std::ostream &out, const Track &trk)
void Event::matchVerticesToTracks () const

Detailed Description

Represents a single track.

Definition at line 21 of file Track.hh.


Member Enumeration Documentation

Possible origins of the coordinate system used for d0, z0, theta etc... ORIGIN : The detector co-ordinate system origin BEAM_SPOT : The beam spot position PRIMARY_VERTEX : The position of the primary vertex TRACK_VERTEX : The vertex that this track is associated with

By default all quantities returned by a track will be w.r.t the primary vertex

Enumerator:
ORIGIN 
BEAM_SPOT 
PRIMARY_VERTEX 
TRACK_VERTEX 

Definition at line 34 of file Track.hh.

Possible track authors from 15.5.7.5 onwards. Taken from track seed finder

Enumerator:
INSIDE_OUT 
BACK_TRACKING 
TRT_STANDALONE 
LOW_PT 
VERY_LOW_PT 
BAD_AUTHOR 

Definition at line 38 of file Track.hh.


Constructor & Destructor Documentation

ForIA::Track::Track (  )

Default constructor.

Definition at line 10 of file Track.cxx.


Member Function Documentation

VertexVector ForIA::Track::associatedVertices (  ) const

List of vertices to which this track is associated.

Definition at line 272 of file Track.cxx.

Track::TrackAuthor ForIA::Track::author (  ) const

The algorithm that reconstructed this track.

Definition at line 257 of file Track.cxx.

double ForIA::Track::chi2 (  ) const

The chi^2 of the fit for this track.

Definition at line 193 of file Track.cxx.

double ForIA::Track::chi2_DOF (  ) const

The chi^2 per degree of freedom for this track.

Definition at line 208 of file Track.cxx.

double ForIA::Track::d0 ( Origin  org ) const

The perigee of this track w.r.t a given origin.

Definition at line 145 of file Track.cxx.

int ForIA::Track::DOF (  ) const

The number of degrees of freedom for the fit to this track.

Definition at line 203 of file Track.cxx.

double ForIA::Track::E (  ) const [virtual]

The energy of this track.

Implements ForIA::IFourMomentum.

Definition at line 97 of file Track.cxx.

double ForIA::Track::ET (  ) const [virtual]

The ET of a track is returned as the PT.

Implements ForIA::IFourMomentum.

Definition at line 92 of file Track.cxx.

double ForIA::Track::eta (  ) const [virtual]

The pseudorapidity of this track.

Implements ForIA::IFourMomentum.

Definition at line 18 of file Track.cxx.

bool ForIA::Track::expectBLayer (  ) const

Is this track expected to create a b layer hit?

Definition at line 247 of file Track.cxx.

double ForIA::Track::fitProbability (  ) const

The fit probability for this track assuming a Normal distribution for the chi^2.

Definition at line 216 of file Track.cxx.

int ForIA::Track::id (  ) const

Unique ID with which to identify this track in the event The eact value of this ID *may* depend on the data format

Definition at line 267 of file Track.cxx.

bool ForIA::Track::isMC (  ) const

Does this track come from MC or data. Returns true if MC.

Definition at line 262 of file Track.cxx.

int ForIA::Track::nBLayer (  ) const

Number of b layer hits created by this track.

Definition at line 252 of file Track.cxx.

int ForIA::Track::nPix (  ) const

The number of pixel hits along this track.

Definition at line 232 of file Track.cxx.

int ForIA::Track::nSCT (  ) const

The number of SCT hits along this track.

Definition at line 237 of file Track.cxx.

int ForIA::Track::nTRT (  ) const

The number of TRT hits along this track.

Definition at line 242 of file Track.cxx.

double ForIA::Track::phi (  ) const [virtual]

The azimuthal angle \phi of this track w.r.t the primary vertex.

Implements ForIA::IFourMomentum.

Definition at line 87 of file Track.cxx.

double ForIA::Track::phi ( Origin  org ) const

The azimuthal angle \phi of this track w.r.t a given origin (primary vtx, beam spot or detector origin)

Definition at line 62 of file Track.cxx.

double ForIA::Track::PT (  ) const [virtual]

The PT of this track.

Implements ForIA::IFourMomentum.

Definition at line 105 of file Track.cxx.

double ForIA::Track::px ( Origin  org ) const

x component of momentum w.r.t a given origin

Definition at line 110 of file Track.cxx.

double ForIA::Track::px (  ) const [virtual]

x component of momentum

Implements ForIA::IFourMomentum.

Definition at line 131 of file Track.cxx.

double ForIA::Track::py (  ) const [virtual]

y compontent of momentum

Implements ForIA::IFourMomentum.

Definition at line 136 of file Track.cxx.

double ForIA::Track::py ( Origin  org ) const

y compontent of momentum w.r.t a given origin

Definition at line 115 of file Track.cxx.

double ForIA::Track::pz (  ) const [virtual]

z component of momentum

Implements ForIA::IFourMomentum.

Definition at line 141 of file Track.cxx.

double ForIA::Track::pz ( Origin  org ) const

z component of momentum w.r.t a given origin

Definition at line 120 of file Track.cxx.

double ForIA::Track::theta ( Origin  org ) const

The angle \theta of this track w.r.t a given origin (primary vtx, beam spot or detector origin)

Definition at line 23 of file Track.cxx.

double ForIA::Track::theta (  ) const [virtual]

The angle \theta of this track w.r.t the primary vertex.

Implements ForIA::IFourMomentum.

Definition at line 57 of file Track.cxx.

double ForIA::Track::z0 ( Origin  org ) const

The min z distance of this track from a given origin.

Definition at line 169 of file Track.cxx.


Friends And Related Function Documentation

friend class DataConverter [friend]

Definition at line 117 of file Track.hh.

void Event::matchVerticesToTracks (  ) const [friend]
std::ostream& operator<< ( std::ostream &  out,
const Track trk 
) [friend]

Definition at line 281 of file Track.cxx.


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