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
c43e865a
Commit
c43e865a
authored
4 years ago
by
Nicolas Köhler
Browse files
Options
Downloads
Patches
Plain Diff
add CaloMuonScoreTool to new configuration
parent
af0f5c99
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Reconstruction/MuonIdentification/MuonCombinedConfig/python/MuonCombinedRecToolsConfig.py
+15
-1
15 additions, 1 deletion
...n/MuonCombinedConfig/python/MuonCombinedRecToolsConfig.py
with
15 additions
and
1 deletion
Reconstruction/MuonIdentification/MuonCombinedConfig/python/MuonCombinedRecToolsConfig.py
+
15
−
1
View file @
c43e865a
...
...
@@ -816,6 +816,16 @@ def CaloMuonLikelihoodToolCfg(flags, name='CaloMuonLikelihoodTool', **kwargs ):
result
.
setPrivateTools
(
tool
)
return
result
def
CaloMuonScoreToolCfg
(
flags
,
name
=
'
CaloMuonScoreTool
'
,
**
kwargs
):
from
TrackToCalo.TrackToCaloConfig
import
ParticleCaloCellAssociationToolCfg
result
=
ParticleCaloCellAssociationToolCfg
(
flags
)
kwargs
.
setdefault
(
"
ParticleCaloCellAssociationTool
"
,
result
.
popPrivateTools
())
caloMuonScoreSvc
=
CompFactory
.
CaloMuonScoreONNXRuntimeSvc
(
name
=
"
CaloMuonScoreONNXRuntimeSvc
"
)
result
.
addService
(
caloMuonScoreSvc
)
tool
=
CompFactory
.
CaloMuonScoreTool
(
name
,
**
kwargs
)
result
.
setPrivateTools
(
tool
)
return
result
def
MuonCaloTagToolCfg
(
flags
,
name
=
'
MuonCaloTagTool
'
,
**
kwargs
):
result
=
ComponentAccumulator
()
kwargs
.
setdefault
(
"
CaloMuonTagLoose
"
,
CompFactory
.
CaloMuonTag
(
name
=
"
CaloMuonTagLoose
"
,
TagMode
=
"
Loose
"
)
)
...
...
@@ -827,6 +837,10 @@ def MuonCaloTagToolCfg(flags, name='MuonCaloTagTool', **kwargs ):
kwargs
.
setdefault
(
"
CaloMuonLikelihoodTool
"
,
acc
.
popPrivateTools
()
)
result
.
addPublicTool
(
kwargs
[
'
CaloMuonLikelihoodTool
'
])
acc
=
CaloMuonScoreToolCfg
(
flags
)
kwargs
.
setdefault
(
"
CaloMuonScoreTool
"
,
acc
.
popPrivateTools
()
)
result
.
addPublicTool
(
kwargs
[
'
CaloMuonScoreTool
'
])
result
.
merge
(
acc
)
acc
=
TrackDepositInCaloToolCfg
(
flags
)
trackDepositInCaloTool
=
acc
.
popPrivateTools
()
...
...
@@ -838,7 +852,7 @@ def MuonCaloTagToolCfg(flags, name='MuonCaloTagTool', **kwargs ):
result
.
addPublicTool
(
calotrkmuidalgtrackselectortool
)
kwargs
.
setdefault
(
"
TrackSelectorTool
"
,
calotrkmuidalgtrackselectortool
)
result
.
merge
(
acc
)
kwargs
.
setdefault
(
"
doCaloLR
"
,
True
)
kwargs
.
setdefault
(
"
doCaloLR
"
,
True
)
tool
=
CompFactory
.
MuonCombined
.
MuonCaloTagTool
(
name
,
**
kwargs
)
result
.
setPrivateTools
(
tool
)
return
result
...
...
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