Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gaudi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository 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
lhcb-nightlies
Gaudi
Commits
8ab1b214
Commit
8ab1b214
authored
3 years ago
by
Local account for build
Browse files
Options
Downloads
Plain Diff
Merge commit '
f20fb955
' into HEAD
parents
040ccadd
f20fb955
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GaudiExamples/src/AlgTools/MyServiceWithTool.cpp
+2
-1
2 additions, 1 deletion
GaudiExamples/src/AlgTools/MyServiceWithTool.cpp
GaudiKernel/python/GaudiKernel/Configurable.py
+6
-2
6 additions, 2 deletions
GaudiKernel/python/GaudiKernel/Configurable.py
with
8 additions
and
3 deletions
GaudiExamples/src/AlgTools/MyServiceWithTool.cpp
+
2
−
1
View file @
8ab1b214
/***********************************************************************************\
* (c) Copyright 1998-201
9
CERN for the benefit of the LHCb and ATLAS collaborations *
* (c) Copyright 1998-20
2
1 CERN for the benefit of the LHCb and ATLAS collaborations *
* *
* This software is distributed under the terms of the Apache version 2 licence, *
* copied verbatim in the file "LICENSE". *
...
...
@@ -22,6 +22,7 @@ namespace GaudiTesting {
private:
PublicToolHandle
<
IMyTool
>
m_tool
{
this
,
"MyTool"
,
"MyTool"
};
ToolHandle
<
IMyTool
>
m_privTool
{
this
,
"MyPrivateTool"
,
""
};
};
DECLARE_COMPONENT
(
SvcWithTool
)
...
...
This diff is collapsed.
Click to expand it.
GaudiKernel/python/GaudiKernel/Configurable.py
+
6
−
2
View file @
8ab1b214
#####################################################################################
# (c) Copyright 1998-202
0
CERN for the benefit of the LHCb and ATLAS collaborations #
# (c) Copyright 1998-202
1
CERN for the benefit of the LHCb and ATLAS collaborations #
# #
# This software is distributed under the terms of the Apache version 2 licence, #
# copied verbatim in the file "LICENSE". #
...
...
@@ -1161,7 +1161,11 @@ class ConfigurableService(Configurable):
return
self
# services are always shared
def
copyChild
(
self
,
child
):
return
child
# full sharing
# Copy private tools but all else is shared
if
isinstance
(
child
,
ConfigurableAlgTool
)
and
not
child
.
isPublic
():
return
copy
.
deepcopy
(
child
)
else
:
return
child
def
getHandle
(
self
):
return
iService
(
self
.
_name
)
...
...
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