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

Nav Namespace Reference


Enumerations

enum  ESide { kLeft = 1, kRight = 2, kBoth = 3 }
enum  EDebugFlagBits {
  kCtorDtor = 0x01, kDebug = 0x02, kInfo = 0x04, kWarning = 0x08,
  kError = 0x10
}

Functions

UInt_t GetDebugFlags ()
void SetDebugFlags (const UInt_t dbgflgs)
void SetLogLevel (int level)
std::string GetName (const char *classTypeInfoName, const char *templateName=0)


Enumeration Type Documentation

enum EDebugFlagBits
 

Enumeration values:
kCtorDtor 
kDebug 
kInfo 
kWarning 
kError 

Definition at line 34 of file Nav.h.

00034                       { kCtorDtor = 0x01, // ctor and dtor
00035                         kDebug    = 0x02, // debug
00036                         kInfo     = 0x04, // information
00037                         kWarning  = 0x08, // warning
00038                         kError    = 0x10  // errors
00039   };

enum ESide
 

Enumeration values:
kLeft 
kRight 
kBoth 

Definition at line 31 of file Nav.h.

00031 { kLeft = 1,  kRight = 2, kBoth = 3 };


Function Documentation

UInt_t Nav::GetDebugFlags  ) 
 

Definition at line 54 of file Nav.cxx.

00054 { return fgDebugFlgs; }

std::string Nav::GetName const char *  classTypeInfoName,
const char *  templateName = 0
 

Definition at line 58 of file Nav.cxx.

References MSG.

Referenced by GeoScintMdlVolume::AddAirNode(), MCApplication::AddIons(), GeoStripVolume::AddPstyreneNodes(), PTSimApplication::BeginEvent(), IoFileListItem::BuildDefStreamList(), GeoShieldGroup::BuildNode(), GeoStripVolume::BuildStripShape(), PerOutputStream::ChangeFile(), Registry::Clear(), Anp::CountHist::ComputeRatio(), Anp::DrawSnarl::Config(), UgliLoanPool::DefaultConfig(), PlexLoanPool::DefaultConfig(), BfldLoanPool::DefaultConfig(), CamEvd::DoPrint(), MyClass::Draw(), NC::FitMaster::DrawAndWriteChiSqGraphs(), NC::FitMaster::DrawAndWriteContourGraphs(), PIDSpectrum::DrawSpectrum(), Registry::Dump(), G3Material::Dump(), G3Node::ExpandDivisions(), DbuRunSummary::Fill(), DbuDaqFileSummary::Fill(), TrackRecoPerf::Finish(), ShowerRecoPerf::Finish(), ShowerEnergyPerf::Finish(), SimEventResult::FormatToOStream(), RawNDErrorBlock::FormatToOStream(), RawLIHeader::FormatToOStream(), RawHeader::FormatToOStream(), RawDigit::FormatToOStream(), RawDataBlock::FormatToOStream(), RawCrateStatus::FormatToOStream(), RawCalibrationFitsBlock::FormatToOStream(), FabSteelPlate::FormatToOStream(), FabPlnInstall::FormatToOStream(), CandBase::FormatToOStream(), BfldDbiPlaneMap::FormatToOStream(), BfieldCoilCurrent::FormatToOStream(), GeoScintMdlVolume::GeoScintMdlVolume(), GeoScintPlnVolume::GeoScintPlnVolume(), GeoSteelPlnVolume::GeoSteelPlnVolume(), RawRecord::GetName(), AlgHandle::GetName(), AlgConfig::GetName(), TNodeX::GetNodeToDepth(), PIDSpectrum::GetOnePredicted(), Registry::GetRegistry(), GeoNode::GlobalToLocal(), GeoNode::GlobalToLocalVect(), MCApplication::InitMedia(), Anp::EventDisplay::InitTab(), GeoNode::LocalToGlobal(), GeoNode::LocalToGlobalVect(), MINFDetector::MakeBranch(), CamEvd::MakeCanvases(), TrackRecoPerf::MakeHistos(), ShowerVertexPerf::MakeHistos(), ShowerRecoPerf::MakeHistos(), ShowerEnergyPerf::MakeHistos(), ShowerDirectionPerf::MakeHistos(), CamEvd::MakeHistos(), Registry::Merge(), PIDSpectrum::PIDSpectrum(), PTGuiMainFrame::Plot(), Registry::PrettyPrint(), UgliGeometry::Print(), RecMinosHdr::Print(), PTGuiMedium::Print(), PTGuiMaterial::Print(), Plexus::Print(), GeoStripVolume::Print(), GeoSteelPlnVolume::Print(), GeoScintPlnVolume::Print(), GeoScintMdlVolume::Print(), GeoMedium::Print(), MadScanDisplay::PrintDisplay(), MadEvDisplay::PrintDisplay(), Registry::PrintStream(), Anp::EventDisplay::PrintTab(), Plot::Hist::Rebin(), Anp::CountHist::Refill(), CalScheme::Reset(), MakePlots::SaveRatioPlots(), Registry::Set(), TNodeX::SetParent(), GeoMedium::SetTracking(), MINFDetector::SetTreeAddress(), CheezyDisplay::SetupDisplay(), UgliScintMdlNode::UgliScintMdlNode(), UgliStripNode::UgliStripNode(), CalScheme::Unimplimented(), PTGuiMainFrame::Update(), and GeoNode::UpdateGlobalMatrix().

00059                                                    {
00060 
00061 //  Utility to convert name returned by typeid().name() into 
00062 //  class name and thence, if required, the iterator class name.
00063 //  
00064 //  Arguments: 
00065 //    classTypeInfoName   in   typeid().name() for class Xxx
00066 //    templateName        in   Template name = Ttt
00067 //
00068 //  Return:    
00069 //      class name    i.e.  Xxx        (if templateName = 0)
00070 //      iterator name i.e.  Ttt<Xxx>   (     otherwise     )
00071 //  
00072 
00073   static int encodingRegime = 0;
00074 
00075   // If the encoding regime isn't known, try to deduce it.
00076   if ( ! encodingRegime ) {
00077     const char* testName = typeid(NavEncodingRegimeTest).name();
00078     if ( strcmp(testName,"21NavEncodingRegimeTest") == 0 ) encodingRegime = 1;
00079     else { 
00080       MSG("Nav",Msg::kError) 
00081         << "Cannot deduce the type_info name encoding for: " 
00082         << testName << endl;
00083       encodingRegime = -1;
00084     }
00085   }
00086 
00087   if ( encodingRegime == 1 ) 
00088     while ( isdigit(*classTypeInfoName) ) ++classTypeInfoName;
00089 
00090   std::string name = classTypeInfoName;
00091   if ( templateName ) {
00092     std::string name2(templateName);
00093     name2 += "<" + name + ">";
00094     name = name2;
00095   }
00096   
00097   return name;
00098 
00099 }

void Nav::SetDebugFlags const UInt_t  dbgflgs  ) 
 

Definition at line 103 of file Nav.cxx.

References fgDebugFlgs.

00103 { fgDebugFlgs = dbgflgs; }

void Nav::SetLogLevel int  level  ) 
 

Definition at line 107 of file Nav.cxx.

References MsgService::GetStream(), MsgService::Instance(), and MsgStream::SetLogLevel().

Referenced by IoInputModuleValidate::IoInputModuleValidate(), main(), PerValidate::OutputStreamMgr(), and NavValidate::RunAllTests().

00107                                {
00108   MsgService::Instance()->GetStream("Nav")->SetLogLevel(level);
00109 }


Generated on Sat Nov 21 22:52:51 2009 for loon by  doxygen 1.3.9.1