BOSS 7.0.5
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).
 
 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 InstallArea/include/TrkReco/TrkReco/TFinderBase.h.

Constructor & Destructor Documentation

◆ TFinderBase() [1/2]

TFinderBase::TFinderBase ( )

Constructor.

Definition at line 16 of file TFinderBase.cxx.

16 : _debugLevel(0) {
17}

◆ ~TFinderBase() [1/2]

TFinderBase::~TFinderBase ( )
virtual

Destructor.

Definition at line 19 of file TFinderBase.cxx.

19 {
20}

◆ TFinderBase() [2/2]

TFinderBase::TFinderBase ( )

Constructor.

◆ ~TFinderBase() [2/2]

virtual TFinderBase::~TFinderBase ( )
virtual

Destructor.

Member Function Documentation

◆ clear() [1/2]

virtual void TFinderBase::clear ( void  )
pure virtual

◆ clear() [2/2]

virtual void TFinderBase::clear ( void  )
pure virtual

◆ debugLevel() [1/4]

int TFinderBase::debugLevel ( int  a)
inlinevirtual

sets debug level.

Definition at line 96 of file InstallArea/include/TrkReco/TrkReco/TFinderBase.h.

96 {
97 return _debugLevel = a;
98}

◆ debugLevel() [2/4]

virtual int TFinderBase::debugLevel ( int  )
virtual

sets debug level.

◆ debugLevel() [3/4]

int TFinderBase::debugLevel ( void  ) const
inlinevirtual

returns debug level.

Definition at line 90 of file InstallArea/include/TrkReco/TrkReco/TFinderBase.h.

90 {
91 return _debugLevel;
92}

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

◆ debugLevel() [4/4]

virtual int TFinderBase::debugLevel ( void  ) const
virtual

returns debug level.

◆ doit() [1/2]

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

Referenced by TrkReco::execute().

◆ doit() [2/2]

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

◆ doSalvage() [1/2]

bool TFinderBase::doSalvage ( bool  a)
inlinevirtual

sets flag to salvage hits.

Reimplemented in TConformalFinder0, and TConformalFinder0.

Definition at line 108 of file InstallArea/include/TrkReco/TrkReco/TFinderBase.h.

108 {
109 return a;
110}

Referenced by TrkReco::initialize().

◆ doSalvage() [2/2]

virtual bool TFinderBase::doSalvage ( bool  )
virtual

sets flag to salvage hits.

Reimplemented in TConformalFinder0, and TConformalFinder0.

◆ doStereo() [1/2]

bool TFinderBase::doStereo ( bool  a)
inlinevirtual

sets flag to reconstruct 3D.

Reimplemented in TConformalFinder0, and TConformalFinder0.

Definition at line 102 of file InstallArea/include/TrkReco/TrkReco/TFinderBase.h.

102 {
103 return a;
104}

Referenced by TrkReco::initialize().

◆ doStereo() [2/2]

virtual bool TFinderBase::doStereo ( bool  )
virtual

sets flag to reconstruct 3D.

Reimplemented in TConformalFinder0, and TConformalFinder0.

◆ dump() [1/2]

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

◆ dump() [2/2]

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

◆ name() [1/2]

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

◆ name() [2/2]

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

◆ version() [1/2]

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

◆ version() [2/2]

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

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