Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

QvecBase Class Reference

base class for all track-related objects. More...

#include <QvecBase.h>

Inheritance diagram for QvecBase:

Inheritance graph
[legend]
Collaboration diagram for QvecBase:

Collaboration graph
[legend]
List of all members.

Public Methods

 QvecBase ()
 constructor. More...

 QvecBase (const QvecBase &origin)
 copy constructor. More...

 ~QvecBase ()
 destructor. More...

bool operator< (const QvecBase &other) const
 Compare two objects... More...

virtual void setA4V (float x, float y, float z, float e)
 set the Lorentz Vector. More...

virtual void setA4V (HepLorentzVector vec)
 set the Lorentz Vector. More...

virtual HepLorentzVector A4V () const
 return the Lorentzvector. More...

virtual void setQCH (float qch)
 set the charge. More...

virtual ALEPHTYPE TYPE () const
 get the type. More...

virtual QvrtBasegetOriginVertex () const
 get the origin vertex. More...

virtual QvrtBasegetEndVertex () const
 get the end vertex. More...

virtual void setOriginVertex (QvrtBase *vrt)
 set the origin vertex. More...

virtual void setEndVertex (QvrtBase *vrt)
 set the end vertex. More...

virtual float sign (float k) const
 sign. More...

virtual float QP () const
 |momentum|. More...

virtual float QX () const
 px. More...

virtual float QY () const
 py. More...

virtual float QZ () const
 pz. More...

virtual float QE () const
 Energy. More...

virtual float QM () const
 mass. More...

virtual float QCH () const
 charge. More...

virtual float QCT () const
  . More...

virtual float QPH () const
  . More...

virtual float QPT () const
 Pt. More...

virtual float QBETA () const
  . More...

virtual float QGAMMA () const
  . More...

virtual float QMSQ2 (const QvecBase j) const
virtual float QM2 (const QvecBase j) const
virtual float QDMSQ (const QvecBase j) const
virtual float QPPAR (const QvecBase j) const
virtual float QPPER (const QvecBase j) const
virtual float QDOT3 (const QvecBase j) const
 3 dim cross product. More...

virtual float QDOT4 (const QvecBase j) const
 4 dim cross product. More...

virtual float QCOSA (const QvecBase j) const
virtual float QDECA2 (const QvecBase j) const
virtual float QDECAN (const QvecBase j) const
virtual QvecBase operator+ (const QvecBase j) const
 add two objects. More...

virtual HepDouble DECAY_ANG (const QvecBase j) const
 get decay angle. More...

virtual void Lock (bool recurse=false)
 lock the track. More...

virtual void unLock (bool recurse=false)
 unlock the track. More...

virtual int isLocked () const
 =0 if not locked, else locked. More...


Static Public Attributes

int SortCriterium = 3
 sort criterium [0,1,2,3] = [px,py,pz,e] default is 3 = e. More...


Protected Attributes

HepLorentzVector _A4V
 this is a data member containing the instance of the four vector. More...

QvrtBaseoVertex
 the origin vertex. More...

QvrtBaseeVertex
 the end vertex. More...

int _locked
 lock status, returned by isLocked(). More...

float _qch
 charge, returned by QCH(). More...


Static Private Attributes

int NERR = 0

Detailed Description

base class for all track-related objects.

Definition at line 25 of file QvecBase.h.


Constructor & Destructor Documentation

QvecBase::QvecBase ( )
 

constructor.

Definition at line 23 of file QvecBase.cpp.

QvecBase::QvecBase ( const QvecBase & origin )
 

copy constructor.

Definition at line 33 of file QvecBase.cpp.

QvecBase::~QvecBase ( ) [inline]
 

destructor.

Definition at line 37 of file QvecBase.h.


Member Function Documentation

HepLorentzVector QvecBase::A4V ( ) const [virtual]
 

return the Lorentzvector.

Reimplemented from AlObject.

Definition at line 56 of file QvecBase.cpp.

Referenced by DECAY_ANG(), DurhamProtoJet::DurhamProtoJet(), JadeProtoJet::JadeProtoJet(), QBETA(), QCOSA(), QDECAN(), QDMSQ(), QDOT3(), QDOT4(), QE(), QM(), QM2(), QMSQ2(), QP(), QPPAR(), QPPER(), QX(), QY(), QZ(), AlThrust::getThrustDirection(), AlThrust::getThrustValue(), AlMuon::setTrack(), and AlElec::setTrack().

HepDouble QvecBase::DECAY_ANG ( const QvecBase j ) const [virtual]
 

get decay angle.

Definition at line 142 of file QvecBase.cpp.

void QvecBase::Lock ( bool recurse = false ) [virtual]
 

lock the track.

Reimplemented from AlObject.

Reimplemented in AlEflw, AlElec, AlJet, and AlMuon.

Definition at line 178 of file QvecBase.cpp.

Referenced by AlMuon::Lock(), AlElec::Lock(), and AlEflw::Lock().

float QvecBase::QBETA ( ) const [virtual]
 

.

Definition at line 89 of file QvecBase.cpp.

float QvecBase::QCH ( ) const [virtual]
 

charge.

Reimplemented from AlObject.

Definition at line 79 of file QvecBase.cpp.

Referenced by Helix::Helix(), AlMuon::setTrack(), AlElec::setTrack(), and Helix::setTrackParameters().

float QvecBase::QCOSA ( const QvecBase j ) const [virtual]
 

Definition at line 116 of file QvecBase.cpp.

float QvecBase::QCT ( ) const [virtual]
 

.

Definition at line 86 of file QvecBase.cpp.

Referenced by AlephExManager::UserEvent().

float QvecBase::QDECA2 ( const QvecBase j ) const [virtual]
 

Definition at line 121 of file QvecBase.cpp.

float QvecBase::QDECAN ( const QvecBase j ) const [virtual]
 

Definition at line 158 of file QvecBase.cpp.

float QvecBase::QDMSQ ( const QvecBase j ) const [virtual]
 

Definition at line 105 of file QvecBase.cpp.

float QvecBase::QDOT3 ( const QvecBase j ) const [virtual]
 

3 dim cross product.

Definition at line 113 of file QvecBase.cpp.

Referenced by QPPAR().

float QvecBase::QDOT4 ( const QvecBase j ) const [virtual]
 

4 dim cross product.

Definition at line 114 of file QvecBase.cpp.

float QvecBase::QE ( ) const [virtual]
 

Energy.

Reimplemented from AlObject.

Definition at line 84 of file QvecBase.cpp.

Referenced by AlephCollection::FilterTau(), AlUserTrack::SIGMM(), AlTrack::SIGMM(), and AlephExManager::UserEvent().

float QvecBase::QGAMMA ( ) const [virtual]
 

.

Definition at line 90 of file QvecBase.cpp.

float QvecBase::QM ( ) const [virtual]
 

mass.

Reimplemented from AlObject.

Definition at line 85 of file QvecBase.cpp.

Referenced by Helix::Helix(), GeneralEventInfo::Run(), AlUserTrack::SIGMM(), AlTrack::SIGMM(), AlephExManager::UserEvent(), and Helix::setTrackParameters().

float QvecBase::QM2 ( const QvecBase j ) const [virtual]
 

Definition at line 99 of file QvecBase.cpp.

float QvecBase::QMSQ2 ( const QvecBase j ) const [virtual]
 

Definition at line 93 of file QvecBase.cpp.

float QvecBase::QP ( ) const [virtual]
 

|momentum|.

Reimplemented from AlObject.

Definition at line 83 of file QvecBase.cpp.

Referenced by GeneralEventInfo::Run(), AlUserTrack::SIGPP(), AlTrack::SIGPP(), and AlephExManager::UserEvent().

float QvecBase::QPH ( ) const [virtual]
 

.

Definition at line 87 of file QvecBase.cpp.

Referenced by AlephExManager::UserEvent().

float QvecBase::QPPAR ( const QvecBase j ) const [virtual]
 

Definition at line 111 of file QvecBase.cpp.

float QvecBase::QPPER ( const QvecBase j ) const [virtual]
 

Definition at line 112 of file QvecBase.cpp.

float QvecBase::QPT ( ) const [virtual]
 

Pt.

Definition at line 88 of file QvecBase.cpp.

Referenced by AlephExManager::UserEvent(), and operator<().

float QvecBase::QX ( ) const [virtual]
 

px.

Reimplemented from AlObject.

Definition at line 80 of file QvecBase.cpp.

Referenced by Helix::Helix(), AlUserTrack::SIGMM(), AlTrack::SIGMM(), AlUserTrack::SIGPP(), AlTrack::SIGPP(), and Helix::setTrackParameters().

float QvecBase::QY ( ) const [virtual]
 

py.

Reimplemented from AlObject.

Definition at line 81 of file QvecBase.cpp.

Referenced by Helix::Helix(), AlUserTrack::SIGMM(), AlTrack::SIGMM(), AlUserTrack::SIGPP(), AlTrack::SIGPP(), and Helix::setTrackParameters().

float QvecBase::QZ ( ) const [virtual]
 

pz.

Reimplemented from AlObject.

Definition at line 82 of file QvecBase.cpp.

Referenced by Helix::Helix(), AlUserTrack::SIGMM(), AlTrack::SIGMM(), AlUserTrack::SIGPP(), AlTrack::SIGPP(), and Helix::setTrackParameters().

ALEPHTYPE QvecBase::TYPE ( ) const [inline, virtual]
 

get the type.

Reimplemented from AlObject.

Reimplemented in AlEflw, AlElec, AlGamp, AlJet, AlMCtruth, AlMuon, AlTau, AlThrust, AlTrack, and AlUserTrack.

Definition at line 54 of file QvecBase.h.

Referenced by Helix::Helix(), and Helix::setTrackParameters().

QvrtBase * QvecBase::getEndVertex ( ) const [inline, virtual]
 

get the end vertex.

Definition at line 58 of file QvecBase.h.

QvrtBase * QvecBase::getOriginVertex ( ) const [inline, virtual]
 

get the origin vertex.

Definition at line 56 of file QvecBase.h.

int QvecBase::isLocked ( ) const [virtual]
 

=0 if not locked, else locked.

Reimplemented from AlObject.

Definition at line 180 of file QvecBase.cpp.

QvecBase QvecBase::operator+ ( const QvecBase j ) const [virtual]
 

add two objects.

Definition at line 69 of file QvecBase.cpp.

bool QvecBase::operator< ( const QvecBase & other ) const
 

Compare two objects...

Definition at line 45 of file QvecBase.cpp.

void QvecBase::setA4V ( HepLorentzVector vec ) [inline, virtual]
 

set the Lorentz Vector.

Reimplemented from AlObject.

Definition at line 45 of file QvecBase.h.

void QvecBase::setA4V ( float x,
float y,
float z,
float e ) [virtual]
 

set the Lorentz Vector.

Reimplemented from AlObject.

Definition at line 59 of file QvecBase.cpp.

Referenced by AlephCollection::AThrust(), AlJet::AlJet(), AlephCollection::FilterTau(), AlephCollection::GetMiss(), AlephCollection::GetSum(), QvecBase(), QvecLink::SetPointer(), AlToolBox::TagBjets(), AlGamp::UseCorrectedA4V(), AlGamp::UseRawA4V(), AlGamp::UseStandardA4V(), AlVertexFitter::doFit(), and operator+().

void QvecBase::setEndVertex ( QvrtBase * vrt ) [inline, virtual]
 

set the end vertex.

Definition at line 62 of file QvecBase.h.

Referenced by AlVertexFitter::doFit().

void QvecBase::setOriginVertex ( QvrtBase * vrt ) [inline, virtual]
 

set the origin vertex.

Definition at line 60 of file QvecBase.h.

void QvecBase::setQCH ( float qch ) [inline, virtual]
 

set the charge.

Definition at line 51 of file QvecBase.h.

Referenced by AlJet::AlJet(), AlephCollection::GetMiss(), AlephCollection::GetSum(), and operator+().

float QvecBase::sign ( float k ) const [virtual]
 

sign.

Definition at line 53 of file QvecBase.cpp.

void QvecBase::unLock ( bool recurse = false ) [virtual]
 

unlock the track.

Reimplemented from AlObject.

Reimplemented in AlEflw, AlElec, AlJet, and AlMuon.

Definition at line 179 of file QvecBase.cpp.

Referenced by AlMuon::unLock(), AlElec::unLock(), and AlEflw::unLock().


Member Data Documentation

int QvecBase::NERR = 0 [static, private]
 

Definition at line 20 of file QvecBase.cpp.

int QvecBase::SortCriterium = 3 [static]
 

sort criterium [0,1,2,3] = [px,py,pz,e] default is 3 = e.

this is used to define the sort criterium between 2 objects. Using this, AlephCollections can be sorted as a STL vector, just using sort. Be Carefull: sort will NOT work with collections of pointers. for that, you have to define some functor calling QvecBase::operator<

Definition at line 184 of file QvecBase.cpp.

HepLorentzVector QvecBase::_A4V [protected]
 

this is a data member containing the instance of the four vector.

Definition at line 111 of file QvecBase.h.

int QvecBase::_locked [protected]
 

lock status, returned by isLocked().

Definition at line 114 of file QvecBase.h.

float QvecBase::_qch [protected]
 

charge, returned by QCH().

Definition at line 115 of file QvecBase.h.

QvrtBase * QvecBase::eVertex [protected]
 

the end vertex.

Definition at line 113 of file QvecBase.h.

QvrtBase * QvecBase::oVertex [protected]
 

the origin vertex.

Definition at line 112 of file QvecBase.h.


The documentation for this class was generated from the following files:
Generated at Wed Jun 18 17:21:52 2003 for ALPHA++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001