Commit c49efd63 authored by Johannes Junggeburth's avatar Johannes Junggeburth
Browse files

Allow AnaTool handles to be set in the JO

parent c08c814e
......@@ -1089,21 +1089,20 @@ namespace asg
#ifndef NDEBUG
this->testInvariant ();
#endif
assert (!m_isInitialized);
if (m_handleUser->isSet())
if (m_handleUser->isSet() || (!m_handleUser->typeAndName().empty() && (m_handleUser->type() != this->type() || m_handleUser->name() != this->name()))){
return detail::AnaToolHandleMode::USER;
}
if (!m_originalTypeAndName.empty() &&
m_handleUser->typeAndName() != m_originalTypeAndName)
return detail::AnaToolHandleMode::USER;
#ifdef XAOD_STANDALONE
if (m_parentPtr != nullptr)
{
if (m_parentPtr != nullptr) {
if (m_handleUser->parentName() != m_parentPtr->name())
return detail::AnaToolHandleMode::USER;
return detail::AnaToolHandleMode::USER;
} else
{
if (m_handleUser->parentName() != "ToolSvc")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment