60 declareProperty(
"Enable", m_isEnabled =
true);
88 auto appMgr = service<IProperty>(
"ApplicationMgr");
91 for(
int i= 0;
i< (signed)properties.
size();
i++ ){
92 temp=
"ApplicationMgr." + properties[
i]->name();
96 auto mSvc = service<IProperty>(
"MessageSvc");
97 if( mSvc.isValid() ) {
99 for(
int i= 0;
i< (signed)properties2.
size();
i++ ){
100 temp=
"MessageSvc." + properties2[
i]->name();
105 auto nSvc = service<IProperty>(
"NTupleSvc");
106 if( nSvc.isValid() ) {
108 for(
int i= 0;
i< (signed)properties5.
size();
i++ ){
109 temp=
"NTupleSvc." + properties5[
i]->name();
121 for(
int i= 0;
i< (signed)TSvcs.
size();
i++ ){
123 if (
i!=(
signed)TSvcs.
size()-1)temp+=
", ";
134 for (
auto svc: Svcs) {
150 for(
auto alg: allAlgs) {
162 auto joSvc = service<IProperty>(
"JobOptionsSvc");
165 for(
int i= 0;
i< (signed)properties7.
size();
i++ ){
166 temp=
"JobOptionsSvc." + properties7[
i]->name();
173 ss_metadata <<
item.first
178 debug() <<
"Metadata collected:\n" << ss_metadata.
str() <<
endmsg;
StatusCode initialize() override
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
virtual const std::vector< IAlgorithm * > & getAlgorithms() const =0
Return the list of Algorithms.
bool isFailure() const
Test for a status code of FAILURE.
#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.
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::list< IService * > & getServices() const =0
Get a reference to a service and create it if it does not exists.
MSG::Level msgLevel() const
get the output level from the embedded MsgStream
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.