BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TFinderBase.cxx
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// $Id: TFinderBase.cxx,v 1.2 2005/09/09 07:47:07 zangsl Exp $
3//-----------------------------------------------------------------------------
4// Filename : TFinderBase.cc
5// Section : Tracking MDC
6// Owner : Yoshi Iwasaki
7// Email : yoshihito.iwasaki@kek.jp
8//-----------------------------------------------------------------------------
9// Description : A virtual class for a track finder in tracking.
10// See http://bsunsrv1.kek.jp/~yiwasaki/tracking/
11//-----------------------------------------------------------------------------
12
13#include "TrkReco/TFinderBase.h"
14#include <iostream>
15
16TFinderBase::TFinderBase() : _debugLevel( 0 ) {}
17
19
20void TFinderBase::dump( const std::string& msg, const std::string& pre ) const {
21 std::cout << pre;
22 if ( msg.find( "name" ) != std::string::npos || msg.find( "version" ) != std::string::npos ||
23 msg.find( "detail" ) != std::string::npos || msg == "" )
24 { std::cout << name() << "(" << version() << ")"; }
25 if ( msg.find( "detail" ) != std::string::npos || msg.find( "state" ) != std::string::npos )
26 { std::cout << "Debug Level=" << _debugLevel; }
27 std::cout << std::endl;
28}
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.
TFinderBase()
Constructor.
virtual std::string name(void) const =0
returns name.
virtual ~TFinderBase()
Destructor.