00001 //----------------------------------------------------------------------------- 00002 // $Id: TFinderBase.cxx,v 1.2 2005/09/09 07:47:07 zangsl Exp $ 00003 //----------------------------------------------------------------------------- 00004 // Filename : TFinderBase.cc 00005 // Section : Tracking MDC 00006 // Owner : Yoshi Iwasaki 00007 // Email : yoshihito.iwasaki@kek.jp 00008 //----------------------------------------------------------------------------- 00009 // Description : A virtual class for a track finder in tracking. 00010 // See http://bsunsrv1.kek.jp/~yiwasaki/tracking/ 00011 //----------------------------------------------------------------------------- 00012 00013 #include <iostream> 00014 #include "TrkReco/TFinderBase.h" 00015 00016 TFinderBase::TFinderBase() : _debugLevel(0) { 00017 } 00018 00019 TFinderBase::~TFinderBase() { 00020 } 00021 00022 void 00023 TFinderBase::dump(const std::string & msg, const std::string & pre) const { 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 }