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
Commits
5df559e5
Verified
Commit
5df559e5
authored
1 year ago
by
Tadej Novak
Browse files
Options
Downloads
Patches
Plain Diff
L1CaloCTPMonitoring: do not use global flags and remove legacy configuration usage
parent
8c7379f6
No related branches found
No related tags found
1 merge request
!68073
L1CaloCTPMonitoring: do not use global flags and remove legacy configuration usage
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Trigger/TrigT1/TrigT1Monitoring/python/L1CaloCTPMonitorAlgorithm.py
+13
-20
13 additions, 20 deletions
...igT1/TrigT1Monitoring/python/L1CaloCTPMonitorAlgorithm.py
with
13 additions
and
20 deletions
Trigger/TrigT1/TrigT1Monitoring/python/L1CaloCTPMonitorAlgorithm.py
+
13
−
20
View file @
5df559e5
#
# Copyright (C) 2002-202
2
CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-202
4
CERN for the benefit of the ATLAS collaboration
#
def
L1CaloCTPMonitoringConfig
(
inputF
lags
):
def
L1CaloCTPMonitoringConfig
(
f
lags
):
'''
Function to configure LVL1 L1CaloCTP algorithm in the monitoring system.
'''
#import math
...
...
@@ -12,11 +12,11 @@ def L1CaloCTPMonitoringConfig(inputFlags):
# any things that need setting up for job e.g.
#from AtlasGeoModel.AtlasGeoModelConfig import AtlasGeometryCfg
#result.merge(AtlasGeometryCfg(
inputF
lags))
#result.merge(AtlasGeometryCfg(
f
lags))
# make the athena monitoring helper
from
AthenaMonitoring
import
AthMonitorCfgHelper
helper
=
AthMonitorCfgHelper
(
inputF
lags
,
'
L1CaloCTPMonitoringCfg
'
)
helper
=
AthMonitorCfgHelper
(
f
lags
,
'
L1CaloCTPMonitoringCfg
'
)
# get any algorithms
L1CaloCTPMonAlg
=
helper
.
addAlgorithm
(
CompFactory
.
L1CaloCTPMonitorAlgorithm
,
'
L1CaloCTPMonAlg
'
)
...
...
@@ -59,38 +59,31 @@ def L1CaloCTPMonitoringConfig(inputFlags):
if
__name__
==
'
__main__
'
:
# For direct tests
from
AthenaCommon.Configurable
import
Configurable
Configurable
.
configurableRun3Behavior
=
1
# set debug level for whole job
from
AthenaCommon.Logging
import
log
from
AthenaCommon.Constants
import
INFO
#DEBUG
log
.
setLevel
(
INFO
)
# set input file and config options
from
AthenaConfiguration.AllConfigFlags
import
ConfigFlags
from
AthenaConfiguration.AllConfigFlags
import
init
ConfigFlags
import
glob
#inputs = glob.glob('/eos/atlas/atlastier0/rucio/data18_13TeV/physics_Main/00357750/data18_13TeV.00357750.physics_Main.recon.ESD.f1072/data18_13TeV.00357750.physics_Main.recon.ESD.f1072._lb0117._SFO-1._0201.1')
inputs
=
glob
.
glob
(
'
/eos/atlas/atlastier0/rucio/data18_13TeV/physics_Main/00354311/data18_13TeV.00354311.physics_Main.recon.ESD.f1129/data18_13TeV.00354311.physics_Main.recon.ESD.f1129._lb0013._SFO-8._0001.1
'
)
flags
=
initConfigFlags
()
flags
.
Input
.
Files
=
inputs
flags
.
Output
.
HISTFileName
=
'
ExampleMonitorOutput_LVL1.root
'
ConfigFlags
.
Input
.
Files
=
inputs
ConfigFlags
.
Output
.
HISTFileName
=
'
ExampleMonitorOutput_LVL1.root
'
ConfigFlags
.
lock
()
ConfigFlags
.
dump
()
# print all the configs
from
AthenaCommon.AppMgr
import
ServiceMgr
ServiceMgr
.
Dump
=
False
flags
.
lock
()
flags
.
dump
()
# print all the configs
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
from
AthenaPoolCnvSvc.PoolReadConfig
import
PoolReadCfg
cfg
=
MainServicesCfg
(
ConfigF
lags
)
cfg
.
merge
(
PoolReadCfg
(
ConfigF
lags
))
cfg
=
MainServicesCfg
(
f
lags
)
cfg
.
merge
(
PoolReadCfg
(
f
lags
))
L1CaloCTPMonitorCfg
=
L1CaloCTPMonitoringConfig
(
ConfigF
lags
)
L1CaloCTPMonitorCfg
=
L1CaloCTPMonitoringConfig
(
f
lags
)
cfg
.
merge
(
L1CaloCTPMonitorCfg
)
# message level for algorithm
...
...
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