TFinderBase Class Reference

A virtual class for a track finder in tracking. More...

#include <TFinderBase.h>

Inheritance diagram for TFinderBase:

TConformalFinder TConformalFinder0 TCurlFinder TFastFinder TPerfectFinder List of all members.

Public Member Functions

 TFinderBase ()
 Constructor.
virtual ~TFinderBase ()
 Destructor.
virtual std::string name (void) const =0
 returns name.
virtual std::string version (void) const =0
 returns version.
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
virtual int debugLevel (void) const
 returns debug level.
virtual void clear (void)=0
 clear internal information.
virtual int debugLevel (int)
 sets debug level.
virtual bool doStereo (bool)
 sets flag to reconstruct 3D.
virtual bool doSalvage (bool)
 sets flag to salvage hits.
virtual int doit (const AList< TMDCWireHit > &axialHits, const AList< TMDCWireHit > &stereoHits, AList< TTrack > &tracks3D, AList< TTrack > &tracks2D)=0
 finds tracks. 'hits' are used to reconstruct. 'tracks' can be used for both inputs and outputs. Return value = (0, +, -) means (success, warning, fatal error).

Private Attributes

int _debugLevel

Detailed Description

A virtual class for a track finder in tracking.

Definition at line 31 of file TFinderBase.h.


Constructor & Destructor Documentation

TFinderBase::TFinderBase (  ) 

Constructor.

Definition at line 16 of file TFinderBase.cxx.

00016                          : _debugLevel(0) {
00017 }

TFinderBase::~TFinderBase (  )  [virtual]

Destructor.

Definition at line 19 of file TFinderBase.cxx.

00019                           {
00020 }


Member Function Documentation

virtual void TFinderBase::clear ( void   )  [pure virtual]

clear internal information.

Implemented in TConformalFinder, TConformalFinder0, TCurlFinder, TFastFinder, and TPerfectFinder.

Referenced by TrkReco::clear(), and TrkReco::finalize().

int TFinderBase::debugLevel ( int   )  [inline, virtual]

sets debug level.

Definition at line 96 of file TFinderBase.h.

References _debugLevel.

00096                              {
00097     return _debugLevel = a;
00098 }

int TFinderBase::debugLevel ( void   )  const [inline, virtual]

returns debug level.

Definition at line 90 of file TFinderBase.h.

References _debugLevel.

Referenced by TConformalFinder0::doit(), TConformalFinder::doit(), TrkReco::initialize(), TConformalFinder0::specialFinding(), and TConformalFinder0::standardFinding().

00090                                   {
00091     return _debugLevel;
00092 }

virtual int TFinderBase::doit ( const AList< TMDCWireHit > &  axialHits,
const AList< TMDCWireHit > &  stereoHits,
AList< TTrack > &  tracks3D,
AList< TTrack > &  tracks2D 
) [pure virtual]

finds tracks. 'hits' are used to reconstruct. 'tracks' can be used for both inputs and outputs. Return value = (0, +, -) means (success, warning, fatal error).

Implemented in TConformalFinder, TConformalFinder0, TCurlFinder, and TPerfectFinder.

Referenced by TrkReco::execute().

bool TFinderBase::doSalvage ( bool   )  [inline, virtual]

sets flag to salvage hits.

Reimplemented in TConformalFinder0.

Definition at line 108 of file TFinderBase.h.

Referenced by TrkReco::initialize().

00108                              {
00109     return a;
00110 }

bool TFinderBase::doStereo ( bool   )  [inline, virtual]

sets flag to reconstruct 3D.

Reimplemented in TConformalFinder0.

Definition at line 102 of file TFinderBase.h.

Referenced by TrkReco::initialize().

00102                             {
00103     return a;
00104 }

void TFinderBase::dump ( const std::string message = std::string(""),
const std::string prefix = std::string("") 
) const [virtual]

dumps debug information.

Reimplemented in TConformalFinder, TConformalFinder0, TFastFinder, and TPerfectFinder.

Definition at line 23 of file TFinderBase.cxx.

References _debugLevel, name(), RealDBUtil::npos, and version().

Referenced by TPerfectFinder::dump(), TFastFinder::dump(), TConformalFinder0::dump(), and TConformalFinder::dump().

00023                                                                     {
00024     std::cout << pre;
00025     if (   msg.find("name")    != std::string::npos
00026         || msg.find("version") != std::string::npos
00027         || msg.find("detail")    != std::string::npos
00028         || msg == "") {
00029         std::cout << name() << "(" << version() << ")";
00030     }
00031     if (msg.find("detail") != std::string::npos || msg.find("state") != std::string::npos) {
00032         std::cout << "Debug Level=" << _debugLevel;
00033     }
00034     std::cout << std::endl;
00035 }

virtual std::string TFinderBase::name ( void   )  const [pure virtual]

returns name.

Implemented in TConformalFinder, TConformalFinder0, TCurlFinder, TFastFinder, and TPerfectFinder.

Referenced by dump().

virtual std::string TFinderBase::version ( void   )  const [pure virtual]

returns version.

Implemented in TConformalFinder, TConformalFinder0, TCurlFinder, TFastFinder, and TPerfectFinder.

Referenced by dump().


Member Data Documentation

int TFinderBase::_debugLevel [private]

Definition at line 74 of file TFinderBase.h.

Referenced by debugLevel(), and dump().


Generated on Tue Nov 29 23:36:00 2016 for BOSS_7.0.2 by  doxygen 1.4.7