Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Sherwood
athena
Commits
99bd28e1
Verified
Commit
99bd28e1
authored
4 years ago
by
Tadej Novak
Browse files
Options
Downloads
Patches
Plain Diff
Initialise MetaDataSvc with tools
parent
efaff636
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Control/AthenaServices/python/MetaDataSvcConfig.py
+7
-3
7 additions, 3 deletions
Control/AthenaServices/python/MetaDataSvcConfig.py
with
7 additions
and
3 deletions
Control/AthenaServices/python/MetaDataSvcConfig.py
+
7
−
3
View file @
99bd28e1
# Copyright (C) 2002-20
19
CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-20
20
CERN for the benefit of the ATLAS collaboration
def
MetaDataSvcCfg
(
flags
,
toolNames
=
[]):
def
MetaDataSvcCfg
(
flags
,
toolNames
=
[]
,
tools
=
[]
):
# should cover most use cases (POOL, RAW) when called with appropriate toolNames argument
# should cover most use cases (POOL, RAW) when called with appropriate toolNames argument
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
AthenaConfiguration.ComponentFactory
import
CompFactory
from
AthenaConfiguration.ComponentFactory
import
CompFactory
...
@@ -16,6 +16,10 @@ def MetaDataSvcCfg(flags, toolNames=[]):
...
@@ -16,6 +16,10 @@ def MetaDataSvcCfg(flags, toolNames=[]):
result
.
addService
(
svc
)
result
.
addService
(
svc
)
result
.
addService
(
CompFactory
.
ProxyProviderSvc
(
ProviderNames
=
[
"
MetaDataSvc
"
]))
result
.
addService
(
CompFactory
.
ProxyProviderSvc
(
ProviderNames
=
[
"
MetaDataSvc
"
]))
for
tool
in
tools
:
result
.
addPublicTool
(
tool
)
svc
.
MetaDataTools
+=
[
tool
]
for
name
in
toolNames
:
for
name
in
toolNames
:
if
not
isinstance
(
name
,
string_types
):
if
not
isinstance
(
name
,
string_types
):
from
AthenaCommon.Logging
import
logging
from
AthenaCommon.Logging
import
logging
...
@@ -26,4 +30,4 @@ def MetaDataSvcCfg(flags, toolNames=[]):
...
@@ -26,4 +30,4 @@ def MetaDataSvcCfg(flags, toolNames=[]):
result
.
addPublicTool
(
thistool
)
result
.
addPublicTool
(
thistool
)
svc
.
MetaDataTools
+=
[
thistool
]
svc
.
MetaDataTools
+=
[
thistool
]
return
result
return
result
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment