From f93194c182be8b746640cbdd25e00d1ccd5a403b Mon Sep 17 00:00:00 2001 From: charles leggett <leggett@cern.ch> Date: Wed, 12 Jul 2017 01:27:01 -0700 Subject: [PATCH] override ExtraInputs/Outputs Property update handler for CondInputLoader --- Control/IOVSvc/src/CondInputLoader.cxx | 15 +++++++++++++++ Control/IOVSvc/src/CondInputLoader.h | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/Control/IOVSvc/src/CondInputLoader.cxx b/Control/IOVSvc/src/CondInputLoader.cxx index 7788811f130..4d646800a01 100644 --- a/Control/IOVSvc/src/CondInputLoader.cxx +++ b/Control/IOVSvc/src/CondInputLoader.cxx @@ -38,6 +38,14 @@ CondInputLoader::CondInputLoader( const std::string& name, // // Property declaration // + auto props = getProperties(); + for( Property* prop : props ) { + if (prop->name() == "ExtraOutputs" || prop->name() == "ExtraInputs") { + prop->declareUpdateHandler + (&CondInputLoader::extraDeps_update_handler, this); + } + } + declareProperty( "Load", m_load); //->declareUpdateHandler(&CondInputLoader::loader, this); declareProperty( "ShowEventDump", m_dump=false); @@ -287,3 +295,10 @@ CondInputLoader::execute() //----------------------------------------------------------------------------- +// need to override the handling of the DataObjIDs that's done by +// AthAlgorithm, so we don't inject the name of the Default Store +void +CondInputLoader::extraDeps_update_handler( Property& ExtraDeps ) +{ + // do nothing +} diff --git a/Control/IOVSvc/src/CondInputLoader.h b/Control/IOVSvc/src/CondInputLoader.h index b66b57a482f..b65171463a0 100644 --- a/Control/IOVSvc/src/CondInputLoader.h +++ b/Control/IOVSvc/src/CondInputLoader.h @@ -69,6 +69,10 @@ class CondInputLoader /// Default constructor: // CondInputLoader(); + // need to override the ExtraInputs/Outputs property handler + // from AthAlgorithm + void extraDeps_update_handler(Property&); + // void loader(Property&); /// Containers -- GitLab