Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TracerSA.cxx

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 #include <cassert>
00006 
00007 #include "MessageService/MsgService.h"
00008 #include "MessageService/MsgFormat.h"
00009 
00010 #include "CandFitTrackSA/TracerSA.h"
00011 
00012 CVSID("$Id: TracerSA.cxx,v 1.2 2006/02/04 07:14:13 avva Exp $");
00013 
00014 // initialise print offset to 0
00015 Int_t TracerSA::fPrintOffset = 0;
00016 
00017 //_____________________________________________________________________________
00018 TracerSA::TracerSA(const char* scope) :
00019     fScope(scope)
00020 {
00021     assert( !fScope.empty() && "Bad character string given!"); 
00022     std::string offset;
00023     offset.resize(2*fPrintOffset, ' ');
00024     
00025     MSG("FitTrackSA",Msg::kDebug) << offset << "Entering " 
00026         << fScope << std::endl;
00027     ++fPrintOffset;
00028 }
00029 
00030 //_____________________________________________________________________________
00031 TracerSA::~TracerSA()
00032 {
00033     --fPrintOffset;
00034     std::string offset;
00035     offset.resize(2*fPrintOffset, ' ');
00036     assert( !fScope.empty() && "String got hosed!"); 
00037     MSG("FitTrackSA",Msg::kDebug) << offset << "Leaving " 
00038         << fScope << std::endl;
00039 }

Generated on Mon Feb 15 11:07:42 2010 for loon by  doxygen 1.3.9.1