24 #ifndef DuneToolManager_H 25 #define DuneToolManager_H 52 T*
get() {
return m_ptr.get(); }
83 std::string myname =
"DuneToolManager::getPrivate: ";
85 if ( name.size() == 0 ) {
86 std::cout << myname <<
"Tool name is blank" <<
std::endl;
88 }
else if ( name[0] ==
'{' ) {
93 std::cout << myname <<
"No such tool name: " << name <<
std::endl;
96 return art::make_tool<T>(psTool);
102 std::string myname =
"DuneToolManager::getShared: ";
110 std::cout << myname <<
"ERROR: Null tool pointer for " << name <<
"." <<
std::endl;
115 std::unique_ptr<T> ptoo = art::make_tool<T>(psTool);
122 std::cout << myname <<
"No such tool name: " << name <<
std::endl;
135 const std::vector<std::string>&
toolNames()
const;
std::unique_ptr< T > ToolPtr
virtual ~SharedToolEntry()=default
T get(std::string const &key) const
TSharedToolEntry(ToolPtr &a_ptr)
static constexpr double ps
QTextStream & endl(QTextStream &s)