65 auto appMgr = service<IProperty>(
"ApplicationMgr" );
68 for (
int i = 0; i < (signed)properties.
size(); i++ ) {
69 temp =
"ApplicationMgr." + properties[i]->name();
73 auto mSvc = service<IProperty>(
"MessageSvc" );
74 if ( mSvc.isValid() ) {
76 for (
int i = 0; i < (signed)properties2.
size(); i++ ) {
77 temp =
"MessageSvc." + properties2[i]->name();
82 auto nSvc = service<IProperty>(
"NTupleSvc" );
83 if ( nSvc.isValid() ) {
85 for (
int i = 0; i < (signed)properties5.
size(); i++ ) {
86 temp =
"NTupleSvc." + properties5[i]->name();
98 for (
int i = 0; i < (signed)TSvcs.
size(); i++ ) {
100 if ( i != (
signed)TSvcs.
size() - 1 ) temp +=
", ";
111 for (
auto svc : Svcs ) {
127 for (
auto alg : allAlgs ) {
139 auto joSvc = service<IProperty>(
"JobOptionsSvc" );
140 if ( !joSvc.isValid() ) {
144 for (
int i = 0; i < (signed)properties7.
size(); i++ ) {
145 temp =
"JobOptionsSvc." + properties7[i]->name();
146 m_metadata[temp] = properties7[i]->toString();
152 ss_metadata << item.first <<
':' << item.second <<
'\n';
154 debug() <<
"Metadata collected:\n" << ss_metadata.
str() <<
endmsg;
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
bool isValid() const
Allow for check if smart pointer is valid.
virtual const std::list< IService * > & getServices() const =0
Get a reference to a service and create it if it does not exists.
StatusCode service(const std::string &name, const T *&psvc, bool createIf=true) const
Access a service by name, creating it if it doesn't already exist.
virtual const std::vector< IAlgorithm * > & getAlgorithms() const =0
Return the list of Algorithms.
MSG::Level msgLevel() const
get the output level from the embedded MsgStream
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.