BOSS 7.0.8
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 : [email protected]
8//-----------------------------------------------------------------------------
9// Description : A virtual class for a track finder in tracking.
10// See http://bsunsrv1.kek.jp/~yiwasaki/tracking/
11//-----------------------------------------------------------------------------
12
13#include <iostream>
14#include "TrkReco/TFinderBase.h"
15
16TFinderBase::TFinderBase() : _debugLevel(0) {
17}
18
20}
21
22void
23TFinderBase::dump(const std::string & msg, const std::string & pre) const {
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 void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
Definition: TFinderBase.cxx:23
TFinderBase()
Constructor.
Definition: TFinderBase.cxx:16
virtual std::string name(void) const =0
returns name.
virtual ~TFinderBase()
Destructor.
Definition: TFinderBase.cxx:19