BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
TFinderBase Class Referenceabstract

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

#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).
 

Detailed Description

A virtual class for a track finder in tracking.

Definition at line 31 of file TFinderBase.h.

Constructor & Destructor Documentation

◆ TFinderBase()

TFinderBase::TFinderBase ( )

Constructor.

Definition at line 16 of file TFinderBase.cxx.

16 : _debugLevel(0) {
17}

◆ ~TFinderBase()

TFinderBase::~TFinderBase ( )
virtual

Destructor.

Definition at line 19 of file TFinderBase.cxx.

19 {
20}

Member Function Documentation

◆ clear()

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().

◆ debugLevel() [1/2]

int TFinderBase::debugLevel ( int  a)
inlinevirtual

sets debug level.

Definition at line 96 of file TFinderBase.h.

96 {
97 return _debugLevel = a;
98}

◆ debugLevel() [2/2]

int TFinderBase::debugLevel ( void  ) const
inlinevirtual

returns debug level.

Definition at line 90 of file TFinderBase.h.

90 {
91 return _debugLevel;
92}

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

◆ doit()

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, TCurlFinder, TPerfectFinder, and TConformalFinder0.

Referenced by TrkReco::execute().

◆ doSalvage()

bool TFinderBase::doSalvage ( bool  a)
inlinevirtual

sets flag to salvage hits.

Reimplemented in TConformalFinder0.

Definition at line 108 of file TFinderBase.h.

108 {
109 return a;
110}

Referenced by TrkReco::initialize().

◆ doStereo()

bool TFinderBase::doStereo ( bool  a)
inlinevirtual

sets flag to reconstruct 3D.

Reimplemented in TConformalFinder0.

Definition at line 102 of file TFinderBase.h.

102 {
103 return a;
104}

Referenced by TrkReco::initialize().

◆ dump()

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.

23 {
24 std::cout << pre;
25 if ( msg.find("name") != std::string::npos
26 || msg.find("version") != std::string::npos
27 || msg.find("detail") != std::string::npos
28 || msg == "") {
29 std::cout << name() << "(" << version() << ")";
30 }
31 if (msg.find("detail") != std::string::npos || msg.find("state") != std::string::npos) {
32 std::cout << "Debug Level=" << _debugLevel;
33 }
34 std::cout << std::endl;
35}
virtual std::string version(void) const =0
returns version.
virtual std::string name(void) const =0
returns name.

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

◆ name()

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

returns name.

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

Referenced by dump().

◆ version()

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

returns version.

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

Referenced by dump().


The documentation for this class was generated from the following files: