Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MdcHitUse Class Reference

#include <MdcHitUse.h>

Inheritance diagram for MdcHitUse:

TrkHitUse TrkHitOnTrkUpdater TrkHitUse TrkHitOnTrkUpdater List of all members.

Public Member Functions

int ambig () const
int ambig () const
virtual TrkHitOnTrkcreateHitOnTrk (const TrkRep &) const
virtual TrkHitOnTrkcreateHitOnTrk (const TrkRep &) const
double fltLen () const
double fltLen () const
const TrkFundHithit () const
const TrkFundHithit () const
bool isActive () const
bool isActive () const
int isUsable () const
int isUsable () const
const MdcHitmdcHit () const
const MdcHitmdcHit () const
 MdcHitUse (const MdcHit &, double fltLen, int ambig, bool active=true, int usable=1)
 MdcHitUse (const MdcHit &, double fltLen, int ambig, bool active=true, int usable=1)
virtual bool operator== (const TrkHitUse &) const
virtual bool operator== (const TrkHitUse &) const
void setFltLen (double flt)
void setFltLen (double flt)
virtual ~MdcHitUse ()
virtual ~MdcHitUse ()

Private Member Functions

 MdcHitUse (const MdcHitUse &)
 MdcHitUse (const MdcHitUse &)
MdcHitUseoperator= (const MdcHitUse &)
MdcHitUseoperator= (const MdcHitUse &)
TrkBase::Functors::setActive setActive (bool active) const
TrkBase::Functors::setActive setActive (bool active) const
void setActivity (TrkHitOnTrk &hot, bool active) const
void setActivity (TrkHitOnTrk &hot, bool active) const
TrkBase::Functors::setParent setParent (TrkRep *parent) const
void setParent (TrkHitOnTrk &hot, TrkRep *parent) const
TrkBase::Functors::setParent setParent (TrkRep *parent) const
void setParent (TrkHitOnTrk &hot, TrkRep *parent) const
TrkBase::Functors::updateMeasurement updateMeasurement (const TrkDifTraj *traj=0, bool maintainAmbiguity=false) const
TrkErrCode updateMeasurement (TrkHitOnTrk &hot, const TrkDifTraj *traj=0, bool maintainAmbiguity=false) const
TrkBase::Functors::updateMeasurement updateMeasurement (const TrkDifTraj *traj=0, bool maintainAmbiguity=false) const
TrkErrCode updateMeasurement (TrkHitOnTrk &hot, const TrkDifTraj *traj=0, bool maintainAmbiguity=false) const

Private Attributes

int _ambig
double _t0

Constructor & Destructor Documentation

MdcHitUse::MdcHitUse const MdcHit ,
double  fltLen,
int  ambig,
bool  active = true,
int  usable = 1
 

00022                                               :
00023   TrkHitUse(thehit, flt, active, usable) 
00024 {
00025     _ambig = amb;
00026 }

MdcHitUse::~MdcHitUse  )  [virtual]
 

00029 { }

MdcHitUse::MdcHitUse const MdcHitUse  )  [private]
 

MdcHitUse::MdcHitUse const MdcHit ,
double  fltLen,
int  ambig,
bool  active = true,
int  usable = 1
 

virtual MdcHitUse::~MdcHitUse  )  [virtual]
 

MdcHitUse::MdcHitUse const MdcHitUse  )  [private]
 


Member Function Documentation

int MdcHitUse::ambig  )  const [inline]
 

00032 {return _ambig;}

int MdcHitUse::ambig  )  const [inline]
 

00032 {return _ambig;}

virtual TrkHitOnTrk* MdcHitUse::createHitOnTrk const TrkRep  )  const [virtual]
 

Implements TrkHitUse.

TrkHitOnTrk * MdcHitUse::createHitOnTrk const TrkRep  )  const [virtual]
 

Implements TrkHitUse.

00033 {
00034   // This is a kludge -- fix once MdcHitOnTrack gets more cleaned up
00035   //   (time should not be used for anything (I hope)
00036   // Also note that I temporarily have to cast off const from TrkRep
00037   const MdcHit *h=mdcHit(); assert(h!=0);
00038   MdcRecoHitOnTrack tempHot(*h, ambig(), 0.);
00039   TrkHitOnTrk* newHot = tempHot.clone(&const_cast<TrkRep&>(rep));
00040   newHot->setFltLen( fltLen() );
00041   updateMeasurement(*newHot);
00042   return newHot;
00043 }

double TrkHitUse::fltLen  )  const [inline, inherited]
 

00034 {return _fltLen;}

double TrkHitUse::fltLen  )  const [inline, inherited]
 

00034 {return _fltLen;}

const TrkFundHit& TrkHitUse::hit void   )  const [inline, inherited]
 

00035 {return _hit;}

const TrkFundHit& TrkHitUse::hit  )  const [inline, inherited]
 

00035 {return _hit;}

bool TrkHitUse::isActive  )  const [inline, inherited]
 

00032 {return _isActive;}

bool TrkHitUse::isActive  )  const [inline, inherited]
 

00032 {return _isActive;}

int TrkHitUse::isUsable  )  const [inline, inherited]
 

00033 {return _isUsable;}

int TrkHitUse::isUsable  )  const [inline, inherited]
 

00033 {return _isUsable;}

const MdcHit* MdcHitUse::mdcHit  )  const [virtual]
 

Reimplemented from TrkHitUse.

const MdcHit * MdcHitUse::mdcHit  )  const [virtual]
 

Reimplemented from TrkHitUse.

00056 {
00057   return static_cast<const MdcHit*>(&(hit()));
00058 }

MdcHitUse& MdcHitUse::operator= const MdcHitUse  )  [private]
 

MdcHitUse& MdcHitUse::operator= const MdcHitUse  )  [private]
 

virtual bool MdcHitUse::operator== const TrkHitUse  )  const [virtual]
 

Implements TrkHitUse.

bool MdcHitUse::operator== const TrkHitUse  )  const [virtual]
 

Implements TrkHitUse.

00047 {
00048   // This is not going to win any design prizes:
00049   if (mdcHit() == 0 || rhs.mdcHit() ==0) return false;
00050   const MdcHitUse& x = static_cast<const MdcHitUse&>(rhs);
00051   return ( ambig() == x.ambig() && TrkHitUse::operator==(x) );
00052 }

TrkBase::Functors::setActive TrkHitOnTrkUpdater::setActive bool  active  )  const [inline, protected, inherited]
 

00056   { return TrkBase::Functors::setActive(active); }

TrkBase::Functors::setActive TrkHitOnTrkUpdater::setActive bool  active  )  const [inline, protected, inherited]
 

00056   { return TrkBase::Functors::setActive(active); }

void TrkHitOnTrkUpdater::setActivity TrkHitOnTrk hot,
bool  active
const [inline, protected, inherited]
 

00044                                                        {
00045     hot.setActive(active); }

void TrkHitOnTrkUpdater::setActivity TrkHitOnTrk hot,
bool  active
const [inline, protected, inherited]
 

00044                                                        {
00045     hot.setActive(active); }

void TrkHitUse::setFltLen double  flt  )  [inline, inherited]
 

00040 {_fltLen = flt;}

void TrkHitUse::setFltLen double  flt  )  [inline, inherited]
 

00040 {_fltLen = flt;}

TrkBase::Functors::setParent TrkHitOnTrkUpdater::setParent TrkRep parent  )  const [inline, protected, inherited]
 

00054   { return TrkBase::Functors::setParent(parent); }

void TrkHitOnTrkUpdater::setParent TrkHitOnTrk hot,
TrkRep parent
const [inline, protected, inherited]
 

00047                                                         {
00048     hot._parentRep = parent;
00049   }

TrkBase::Functors::setParent TrkHitOnTrkUpdater::setParent TrkRep parent  )  const [inline, protected, inherited]
 

00054   { return TrkBase::Functors::setParent(parent); }

void TrkHitOnTrkUpdater::setParent TrkHitOnTrk hot,
TrkRep parent
const [inline, protected, inherited]
 

00047                                                         {
00048     hot._parentRep = parent;
00049   }

TrkBase::Functors::updateMeasurement TrkHitOnTrkUpdater::updateMeasurement const TrkDifTraj traj = 0,
bool  maintainAmbiguity = false
const [inline, protected, inherited]
 

00052   { return TrkBase::Functors::updateMeasurement(traj,maintainAmbiguity); }

TrkErrCode TrkHitOnTrkUpdater::updateMeasurement TrkHitOnTrk hot,
const TrkDifTraj traj = 0,
bool  maintainAmbiguity = false
const [inline, protected, inherited]
 

00042     { return hot.updateMeasurement(traj,maintainAmbiguity);}

TrkBase::Functors::updateMeasurement TrkHitOnTrkUpdater::updateMeasurement const TrkDifTraj traj = 0,
bool  maintainAmbiguity = false
const [inline, protected, inherited]
 

00052   { return TrkBase::Functors::updateMeasurement(traj,maintainAmbiguity); }

TrkErrCode TrkHitOnTrkUpdater::updateMeasurement TrkHitOnTrk hot,
const TrkDifTraj traj = 0,
bool  maintainAmbiguity = false
const [inline, protected, inherited]
 

00042     { return hot.updateMeasurement(traj,maintainAmbiguity);}


Member Data Documentation

int MdcHitUse::_ambig [private]
 

double MdcHitUse::_t0 [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:26:14 2011 for BOSS6.5.5 by  doxygen 1.3.9.1