#include <TFinderBase.h>
Inheritance diagram for TFinderBase:
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 |
Definition at line 31 of file TFinderBase.h.
TFinderBase::TFinderBase | ( | ) |
TFinderBase::~TFinderBase | ( | ) | [virtual] |
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().
sets flag to salvage hits.
Reimplemented in TConformalFinder0.
Definition at line 108 of file TFinderBase.h.
Referenced by TrkReco::initialize().
sets flag to reconstruct 3D.
Reimplemented in TConformalFinder0.
Definition at line 102 of file TFinderBase.h.
Referenced by TrkReco::initialize().
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().
int TFinderBase::_debugLevel [private] |