From 89047987c67ca492e65e7c1a867211401b7d3cf9 Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Thu, 5 Apr 2018 15:04:32 +0200 Subject: [PATCH] Add possibility to reference pools in used slices. --- examples/DDDB/src/plugins/DeVeloServiceTest.cpp | 5 +++-- examples/DDDB/src/plugins/DeVeloTest.cpp | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/DDDB/src/plugins/DeVeloServiceTest.cpp b/examples/DDDB/src/plugins/DeVeloServiceTest.cpp index 36a3e1bb9..e39c34608 100644 --- a/examples/DDDB/src/plugins/DeVeloServiceTest.cpp +++ b/examples/DDDB/src/plugins/DeVeloServiceTest.cpp @@ -130,7 +130,8 @@ namespace { dd4hep::Condition::detkey_type det_key = de.key(); dd4hep::ConditionKey::KeyMaker lower(det_key, dd4hep::Condition::FIRST_ITEM_KEY); dd4hep::ConditionKey::KeyMaker upper(det_key, dd4hep::Condition::LAST_ITEM_KEY); - cout << "Processing " << e.second << " class " << cat->classID << " -> " << de.path() << endl; + printout(DEBUG, "ServiceTest","Processing %ld class %d -> %s", + e.second, cat->classID, de.path().c_str()); m_context->detectors.insert(make_pair(det_key,make_pair(de,cat))); { auto first = cont->conditions().lower_bound(lower.hash); @@ -218,7 +219,7 @@ namespace { printout(INFO,"DDDB","Setting print level for %s to %s [%d]",__FILE__,argv[i-1],s_PrintLevel); } else if ( ::strcmp(argv[i],"--help")==0 ) { - printout(INFO,"Plugin-Help","Usage: DDDBDetectorDump --opt [--opt] "); + printout(INFO,"Plugin-Help","Usage: DDDB_DeVeloServiceTest --opt [--opt] "); printout(INFO,"Plugin-Help"," -print <value> Printlevel for output "); printout(INFO,"Plugin-Help"," -help Print this help message "); return 0; diff --git a/examples/DDDB/src/plugins/DeVeloTest.cpp b/examples/DDDB/src/plugins/DeVeloTest.cpp index e63358e09..b57108643 100644 --- a/examples/DDDB/src/plugins/DeVeloTest.cpp +++ b/examples/DDDB/src/plugins/DeVeloTest.cpp @@ -128,7 +128,7 @@ namespace { dd4hep::Condition::detkey_type det_key = de.key(); dd4hep::ConditionKey::KeyMaker lower(det_key, dd4hep::Condition::FIRST_ITEM_KEY); dd4hep::ConditionKey::KeyMaker upper(det_key, dd4hep::Condition::LAST_ITEM_KEY); - printout(DEBUG, "ServiceTest","Processing %ld class %d -> %s", + printout(DEBUG, "DeVeloTest","Processing %ld class %d -> %s", e.second, cat->classID, de.path().c_str()); m_context->detectors.insert(make_pair(det_key,make_pair(de,cat))); { @@ -206,7 +206,7 @@ namespace { m_manager.clean(dd4hep::cond::ConditionsFullCleanup()); printout(dd4hep::ALWAYS,"TestSummary","Total %ld conditions load summary (S:%ld,L:%ld,C:%ld,M:%ld)", total.total(), total.selected, total.loaded, total.computed, total.missing); - printout(dd4hep::ALWAYS,"ServiceTest","Test finished...."); + printout(dd4hep::ALWAYS,"DeVeloTest","Test finished...."); return 1; } }; @@ -218,7 +218,7 @@ namespace { printout(INFO,"DDDB","Setting print level for %s to %s [%d]",__FILE__,argv[i-1],s_PrintLevel); } else if ( ::strcmp(argv[i],"--help")==0 ) { - printout(INFO,"Plugin-Help","Usage: DDDBDetectorDump --opt [--opt] "); + printout(INFO,"Plugin-Help","Usage: DDDB_DeVeloTest --opt [--opt] "); printout(INFO,"Plugin-Help"," -print <value> Printlevel for output "); printout(INFO,"Plugin-Help"," -help Print this help message "); return 0; -- GitLab