Commit c362210a authored by Christopher Rob Jones's avatar Christopher Rob Jones
Browse files

Move all options block to start

parent a30567f1
......@@ -60,6 +60,25 @@ std::map<std::string, std::string> MetaDataSvc::getMetaDataMap() const { return
StatusCode MetaDataSvc::collectData()
{
// save options for all clients
{
auto joSvc = service<IJobOptionsSvc>( "JobOptionsSvc" );
if ( !joSvc.isValid() ) return StatusCode::FAILURE;
for ( const auto c : joSvc->getClients() )
{
// get options for this client
const auto props = joSvc->getProperties(c);
if ( props )
{
for ( const auto prop : *props )
{
m_metadata[ c + "." + prop->name() ] = prop->toString();
}
}
}
}
for ( const auto* name : {"ApplicationMgr", "MessageSvc", "NTupleSvc"} ) {
auto svc = service<IProperty>( name );
if ( !svc.isValid() ) continue;
......@@ -99,24 +118,6 @@ StatusCode MetaDataSvc::collectData()
}
}
// save options for all clients
{
auto joSvc = service<IJobOptionsSvc>( "JobOptionsSvc" );
if ( !joSvc.isValid() ) return StatusCode::FAILURE;
for ( const auto c : joSvc->getClients() )
{
// get options for this client
const auto props = joSvc->getProperties(c);
if ( props )
{
for ( const auto prop : *props )
{
m_metadata[ c + "." + prop->name() ] = prop->toString();
}
}
}
}
if ( msgLevel( MSG::DEBUG ) ) {
debug() << "Metadata collected:\n";
for ( const auto& item : m_metadata ) {
......
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