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) |
enum Nav::EDebugFlagBits |
enum Nav::ESide |
UInt_t Nav::GetDebugFlags | ( | ) |
std::string Nav::GetName | ( | const char * | classTypeInfoName, | |
const char * | templateName = 0 | |||
) |
Definition at line 58 of file Nav.cxx.
References Msg::kError, and MSG.
Referenced by GeoScintMdlVolume::AddAirNode(), MCApplication::AddIons(), GeoStripVolume::AddPstyreneNodes(), PTSimApplication::BeginEvent(), IoFileListItem::BuildDefStreamList(), GeoShieldGroup::BuildNode(), GeoStripVolume::BuildStripShape(), PerOutputStream::ChangeFile(), Registry::Clear(), Anp::DrawSnarl::Config(), UgliLoanPool::DefaultConfig(), BfldLoanPool::DefaultConfig(), PlexLoanPool::DefaultConfig(), CamEvd::DoPrint(), MyClass::Draw(), NC::FitMaster::DrawAndWriteChiSqGraphs(), NC::FitMaster::DrawAndWriteContourGraphs(), G3Material::Dump(), Registry::Dump(), G3Node::ExpandDivisions(), DbuRunSummary::Fill(), DbuDaqFileSummary::Fill(), ShowerEnergyPerf::Finish(), TrackRecoPerf::Finish(), ShowerRecoPerf::Finish(), CandBase::FormatToOStream(), BfieldCoilCurrent::FormatToOStream(), BfldDbiPlaneMap::FormatToOStream(), FabPlnInstall::FormatToOStream(), RawHeader::FormatToOStream(), RawCalibrationFitsBlock::FormatToOStream(), RawLIHeader::FormatToOStream(), RawDigit::FormatToOStream(), FabSteelPlate::FormatToOStream(), RawCrateStatus::FormatToOStream(), RawNDErrorBlock::FormatToOStream(), SimEventResult::FormatToOStream(), RawDataBlock::FormatToOStream(), GeoScintMdlVolume::GeoScintMdlVolume(), GeoScintPlnVolume::GeoScintPlnVolume(), GeoSteelPlnVolume::GeoSteelPlnVolume(), 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(), CamEvd::MakeHistos(), ShowerRecoPerf::MakeHistos(), ShowerEnergyPerf::MakeHistos(), ShowerVertexPerf::MakeHistos(), ShowerDirectionPerf::MakeHistos(), Registry::Merge(), PTGuiMainFrame::Plot(), PTGuiMedium::Print(), RecMinosHdr::Print(), GeoScintMdlVolume::Print(), GeoSteelPlnVolume::Print(), GeoStripVolume::Print(), GeoScintPlnVolume::Print(), PTGuiMaterial::Print(), GeoMedium::Print(), UgliGeometry::Print(), Plexus::Print(), MINFAttParticle::Print(), MadEvDisplay::PrintDisplay(), MadScanDisplay::PrintDisplay(), Registry::PrintStream(), Anp::EventDisplay::PrintTab(), Anp::CountHist::Refill(), CalScheme::Reset(), MakePlots::SaveRatioPlots(), HistoDisplay::SearchWarningErrorFolder(), Registry::Set(), TNodeX::SetParent(), GeoMedium::SetTracking(), MINFDetector::SetTreeAddress(), CheezyDisplay::SetupDisplay(), SimpleCalScheme::SimpleCalScheme(), 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.
Referenced by RotoClientModule::HandleCommand().
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 main().
00107 { 00108 MsgService::Instance()->GetStream("Nav")->SetLogLevel(level); 00109 }