37 def printProperties(msg, c, nestLevel = 0, printDefaults=False, onlyComponentsOnly=False):
39 propnames=
sorted(c._descriptors.keys())
40 for propname
in propnames:
42 if not printDefaults
and not c.is_property_set(propname):
45 propval=getattr(c,propname)
48 if isinstance(propval,(GaudiConfig2.semantics._ListHelper,
49 GaudiConfig2.semantics._DictHelper,
50 GaudiConfig2.semantics._SetHelper))
and propval.data
is None:
53 if not c.is_property_set(propname)
and propname
in [
"DetStore",
"EvtStore",
"AuditFinalize",
"AuditInitialize",
"AuditReinitialize",
"AuditRestart",
"AuditStart",
"AuditStop",
"AuditTools",
"ExtraInputs",
"ExtraOutputs"]:
56 if isinstance(propval, GaudiConfig2.Configurable):
57 msg.info(
"%s * %s: %s/%s",
" "*nestLevel, propname, propval.__cpp_type__, propval.getName())
62 if isinstance(propval, GaudiHandles.PublicToolHandleArray):
63 ths = [th.getName()
for th
in propval]
64 propstr =
"PublicToolHandleArray([ {0} ])".
format(
', '.
join(ths))
65 elif isinstance(propval, GaudiHandles.PrivateToolHandleArray):
66 msg.info(
"%s * %s: PrivateToolHandleArray of size %s",
" "*nestLevel, propname, len(propval))
68 msg.info(
"%s * %s/%s",
" "*(nestLevel+3), el.__cpp_type__, el.getName())
70 elif isinstance(propval, GaudiHandles.GaudiHandle):
71 propstr =
"Handle( {0} )".
format(propval.typeAndName)
72 elif not onlyComponentsOnly:
73 propstr =
str(propval)
75 msg.info(
"%s * %s: %s",
" "*nestLevel, propname, propstr)