Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
atlas
athena
Merge requests
!36385
Configure L1TopoConfigSvc in MT setup
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Configure L1TopoConfigSvc in MT setup
stelzer/athena:master-ATR-22016
into
master
Overview
6
Commits
2
Pipelines
2
Changes
4
Merged
Joerg Stelzer
requested to merge
stelzer/athena:master-ATR-22016
into
master
4 years ago
Overview
6
Commits
2
Pipelines
2
Changes
4
Expand
Closes
ATR-22016
0
0
Merge request reports
Compare
master
version 1
a1ac1689
4 years ago
master (base)
and
latest version
latest version
5a4885e4
2 commits,
4 years ago
version 1
a1ac1689
1 commit,
4 years ago
4 files
+
33
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
Trigger/TrigConfiguration/TrigConfigSvc/python/TrigConfigSvcCfg.py
+
24
−
1
Options
@@ -116,11 +116,34 @@ def generateL1Menu( flags ):
return
outfile
# configuration of L1ConfigSvc
@memoize
def
getL1TopoConfigSvc
(
flags
):
log
=
logging
.
getLogger
(
'
TrigConfigSvcCfg
'
)
# configure config svc
TrigConf__L1TopoConfigSvc
=
CompFactory
.
getComp
(
"
TrigConf::L1TopoConfigSvc
"
)
l1topoConfigSvc
=
TrigConf__L1TopoConfigSvc
(
"
L1TopoConfigSvc
"
)
l1topoConfigSvc
.
ConfigSource
=
"
XML
"
from
TriggerJobOpts.TriggerFlags
import
TriggerFlags
l1topoXMLFile
=
TriggerFlags
.
inputL1TopoConfigFile
()
if
flags
is
None
else
flags
.
Trigger
.
LVL1TopoConfigFile
# check if file exists in this directory otherwise add the package to aid path resolution
# also a '/' in the file name indicates that no package needs to be added
import
os.path
if
not
(
"
/
"
in
l1topoXMLFile
or
os
.
path
.
isfile
(
l1topoXMLFile
)
):
l1topoXMLFile
=
"
TriggerMenuMT/
"
+
l1topoXMLFile
l1topoConfigSvc
.
XMLMenuFile
=
l1topoXMLFile
log
.
info
(
"
Configured L1TopoConfigSvc with input file : %s
"
,
l1topoXMLFile
)
from
AthenaCommon.AppMgr
import
theApp
theApp
.
CreateSvc
+=
[
"
TrigConf::L1TopoConfigSvc/L1TopoConfigSvc
"
]
return
l1topoConfigSvc
# configuration of L1ConfigSvc
@memoize
def
getL1ConfigSvc
(
flags
):
log
=
logging
.
getLogger
(
'
TrigConfigSvcCfg
'
)
from
AthenaCommon.Logging
import
log
# generate menu file
generatedFile
=
generateL1Menu
(
flags
)
Loading