Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

TrackVertex Class Reference

#include <TrackVertex.h>

List of all members.

Public Member Functions

 TrackVertex (int key)
 create a vertex with a selected key
 TrackVertex ()
 Default Constructor.
virtual ~TrackVertex ()
 Default Destructor.
virtual const CLID & clID () const
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
const HepPoint3D & position () const
 Retrieve const Position in LHCb reference system.
HepPoint3D & position ()
 Retrieve Position in LHCb reference system.
void setPosition (const HepPoint3D &value)
 Update Position in LHCb reference system.
const HepSymMatrix & positionErr () const
 Retrieve const Covariance matrix containing errors on vertex position.
HepSymMatrix & positionErr ()
 Retrieve Covariance matrix containing errors on vertex position.
void setPositionErr (const HepSymMatrix &value)
 Update Covariance matrix containing errors on vertex position.
double chi2 () const
 Retrieve const chi2 of the vertex fit.
void setChi2 (double value)
 Update chi2 of the vertex fit.
int nDoF () const
 Retrieve const Degree of freedom of the vertex fit.
void setNDoF (int value)
 Update Degree of freedom of the vertex fit.
const SmartRefVector< Track > & tracks () const
 Retrieve (const) Tracks this vertex was made from.
SmartRefVector< Track > & tracks ()
 Retrieve Tracks this vertex was made from.
void setTracks (const SmartRefVector< Track > &value)
 Update Tracks this vertex was made from.
void addToTracks (const SmartRef< Track > &value)
 Add to Tracks this vertex was made from.
void addToTracks (const Track *value)
 Att to (pointer) Tracks this vertex was made from.
void removeFromTracks (const SmartRef< Track > &value)
 Remove from Tracks this vertex was made from.
void clearTracks ()
 Clear Tracks this vertex was made from.

Static Public Member Functions

static const CLID & classID ()

Private Attributes

HepPoint3D m_position
 Position in LHCb reference system.
HepSymMatrix m_positionErr
 Covariance matrix containing errors on vertex position.
double m_chi2
 chi2 of the vertex fit
int m_nDoF
 Degree of freedom of the vertex fit.
SmartRefVector< Trackm_tracks
 Tracks this vertex was made from.

Friends

std::ostream & operator<< (std::ostream &str, const TrackVertex &obj)
 Operator overloading for stringoutput.


Detailed Description

Track Vertex

Author:
Olivier Callot created Fri May 27 11:53:52 2005

Definition at line 50 of file TrackVertex.h.


Constructor & Destructor Documentation

TrackVertex::TrackVertex int  key  )  [inline]
 

create a vertex with a selected key

Definition at line 55 of file TrackVertex.h.

References m_position, and m_positionErr.

00055                        : KeyedObject<int>( key ),
00056                         m_position(0.0,
00057                          0.0,
00058                          -1*km),
00059                          m_positionErr(3,
00060                          0) {}

TrackVertex::TrackVertex  )  [inline]
 

Default Constructor.

Definition at line 63 of file TrackVertex.h.

References m_chi2, m_nDoF, m_position, and m_positionErr.

00063                 : m_position(0.0, 0.0, -1*km),
00064                   m_positionErr(3, 0),
00065                   m_chi2(0.0),
00066                   m_nDoF(0) {}

virtual TrackVertex::~TrackVertex  )  [inline, virtual]
 

Default Destructor.

Definition at line 69 of file TrackVertex.h.

00069 {}


Member Function Documentation

void TrackVertex::addToTracks const Track value  )  [inline]
 

Att to (pointer) Tracks this vertex was made from.

Definition at line 247 of file TrackVertex.h.

References m_tracks.

00248 {
00249   m_tracks.push_back(value);
00250 }

void TrackVertex::addToTracks const SmartRef< Track > &  value  )  [inline]
 

Add to Tracks this vertex was made from.

Definition at line 242 of file TrackVertex.h.

References m_tracks.

00243 {
00244   m_tracks.push_back(value);
00245 }

double TrackVertex::chi2  )  const [inline]
 

Retrieve const chi2 of the vertex fit.

Definition at line 207 of file TrackVertex.h.

References m_chi2.

00208 {
00209   return m_chi2;
00210 }

const CLID & TrackVertex::classID  )  [inline, static]
 

Definition at line 156 of file TrackVertex.h.

References CLID_TrackVertex.

Referenced by clID().

00157 {
00158   return CLID_TrackVertex;
00159 }

void TrackVertex::clearTracks  )  [inline]
 

Clear Tracks this vertex was made from.

Definition at line 259 of file TrackVertex.h.

References m_tracks.

00260 {
00261   m_tracks.clear();
00262 }

const CLID & TrackVertex::clID  )  const [inline, virtual]
 

Definition at line 151 of file TrackVertex.h.

References classID().

00152 {
00153   return TrackVertex::classID();
00154 }

std::ostream & TrackVertex::fillStream std::ostream &  s  )  const [inline, virtual]
 

Fill the ASCII output stream.

Definition at line 167 of file TrackVertex.h.

References m_chi2, m_nDoF, m_position, and m_positionErr.

00168 {
00169   s << "{ " << "position :      " << m_position << std::endl
00170             << "positionErr :   " << m_positionErr << std::endl
00171             << "chi2 :  " << (float)m_chi2 << std::endl
00172             << "nDoF :  " << m_nDoF << std::endl << " }";
00173   return s;
00174 }

int TrackVertex::nDoF  )  const [inline]
 

Retrieve const Degree of freedom of the vertex fit.

Definition at line 217 of file TrackVertex.h.

References m_nDoF.

00218 {
00219   return m_nDoF;
00220 }

HepPoint3D & TrackVertex::position  )  [inline]
 

Retrieve Position in LHCb reference system.

Definition at line 182 of file TrackVertex.h.

References m_position.

00183 {
00184   return m_position;
00185 }

const HepPoint3D & TrackVertex::position  )  const [inline]
 

Retrieve const Position in LHCb reference system.

Definition at line 177 of file TrackVertex.h.

References m_position.

00178 {
00179   return m_position;
00180 }

HepSymMatrix & TrackVertex::positionErr  )  [inline]
 

Retrieve Covariance matrix containing errors on vertex position.

Definition at line 197 of file TrackVertex.h.

References m_positionErr.

00198 {
00199   return m_positionErr;
00200 }

const HepSymMatrix & TrackVertex::positionErr  )  const [inline]
 

Retrieve const Covariance matrix containing errors on vertex position.

Definition at line 192 of file TrackVertex.h.

References m_positionErr.

00193 {
00194   return m_positionErr;
00195 }

void TrackVertex::removeFromTracks const SmartRef< Track > &  value  )  [inline]
 

Remove from Tracks this vertex was made from.

Definition at line 252 of file TrackVertex.h.

References m_tracks.

00253 {
00254   SmartRefVector<Track>::iterator iter =
00255     std::remove(m_tracks.begin(), m_tracks.end(), value);
00256   m_tracks.erase(iter, m_tracks.end());
00257 }

void TrackVertex::setChi2 double  value  )  [inline]
 

Update chi2 of the vertex fit.

Definition at line 212 of file TrackVertex.h.

References m_chi2.

00213 {
00214   m_chi2 = value;
00215 }

void TrackVertex::setNDoF int  value  )  [inline]
 

Update Degree of freedom of the vertex fit.

Definition at line 222 of file TrackVertex.h.

References m_nDoF.

00223 {
00224   m_nDoF = value;
00225 }

void TrackVertex::setPosition const HepPoint3D &  value  )  [inline]
 

Update Position in LHCb reference system.

Definition at line 187 of file TrackVertex.h.

References m_position.

00188 {
00189   m_position = value;
00190 }

void TrackVertex::setPositionErr const HepSymMatrix &  value  )  [inline]
 

Update Covariance matrix containing errors on vertex position.

Definition at line 202 of file TrackVertex.h.

References m_positionErr.

00203 {
00204   m_positionErr = value;
00205 }

void TrackVertex::setTracks const SmartRefVector< Track > &  value  )  [inline]
 

Update Tracks this vertex was made from.

Definition at line 237 of file TrackVertex.h.

References m_tracks.

00238 {
00239   m_tracks = value;
00240 }

SmartRefVector< Track > & TrackVertex::tracks  )  [inline]
 

Retrieve Tracks this vertex was made from.

Definition at line 232 of file TrackVertex.h.

References m_tracks.

00233 {
00234   return m_tracks;
00235 }

const SmartRefVector< Track > & TrackVertex::tracks  )  const [inline]
 

Retrieve (const) Tracks this vertex was made from.

Definition at line 227 of file TrackVertex.h.

References m_tracks.

00228 {
00229   return m_tracks;
00230 }


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  str,
const TrackVertex obj
[friend]
 

Operator overloading for stringoutput.

Definition at line 161 of file TrackVertex.h.

00163 {
00164   return obj.fillStream(str);
00165 }


Member Data Documentation

double TrackVertex::m_chi2 [private]
 

chi2 of the vertex fit

Definition at line 139 of file TrackVertex.h.

Referenced by chi2(), fillStream(), setChi2(), and TrackVertex().

int TrackVertex::m_nDoF [private]
 

Degree of freedom of the vertex fit.

Definition at line 140 of file TrackVertex.h.

Referenced by fillStream(), nDoF(), setNDoF(), and TrackVertex().

HepPoint3D TrackVertex::m_position [private]
 

Position in LHCb reference system.

Definition at line 137 of file TrackVertex.h.

Referenced by fillStream(), position(), setPosition(), and TrackVertex().

HepSymMatrix TrackVertex::m_positionErr [private]
 

Covariance matrix containing errors on vertex position.

Definition at line 138 of file TrackVertex.h.

Referenced by fillStream(), positionErr(), setPositionErr(), and TrackVertex().

SmartRefVector<Track> TrackVertex::m_tracks [private]
 

Tracks this vertex was made from.

Definition at line 141 of file TrackVertex.h.

Referenced by addToTracks(), clearTracks(), removeFromTracks(), setTracks(), and tracks().


The documentation for this class was generated from the following file:
Generated on Fri May 27 13:59:49 2005 for New Track Event Model by doxygen 1.4.1