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
!68504
Do not use global config flags in various monitoring algorithms
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Do not use global config flags in various monitoring algorithms
tadej/athena:monitoring-flags
into
main
Overview
3
Commits
1
Pipelines
1
Changes
4
Merged
Tadej Novak
requested to merge
tadej/athena:monitoring-flags
into
main
1 year ago
Overview
3
Commits
1
Pipelines
1
Changes
4
Expand
Do not use global config flags in various monitoring algorithms.
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
fcc5fde7
1 commit,
1 year ago
4 files
+
52
−
49
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
DataQuality/DataQualityTools/python/DQTDetSynchMonAlg.py
+
11
−
11
Options
#
# 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
DQTDetSynchMonAlgConfig
(
flags
):
from
AthenaMonitoring
import
AthMonitorCfgHelper
@@ -157,29 +157,29 @@ if __name__ == '__main__':
log
.
setLevel
(
INFO
)
# Set the Athena configuration flags
from
AthenaConfiguration.AllConfigFlags
import
ConfigFlags
from
AthenaConfiguration.AllConfigFlags
import
init
ConfigFlags
nightly
=
'
/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/CommonInputs/
'
file
=
'
data16_13TeV.00311321.physics_Main.recon.AOD.r9264/AOD.11038520._000001.pool.root.1
'
ConfigFlags
.
Input
.
Files
=
defaultTestFiles
.
RAW_RUN2
#ConfigFlags.Input.isMC = False
ConfigFlags
.
Output
.
HISTFileName
=
'
ExampleMonitorOutput.root
'
flags
=
initConfigFlags
()
flags
.
Input
.
Files
=
defaultTestFiles
.
RAW_RUN2
#flags.Input.isMC = False
flags
.
Output
.
HISTFileName
=
'
ExampleMonitorOutput.root
'
ConfigF
lags
.
lock
()
f
lags
.
lock
()
# Initialize configuration object, add accumulator, merge, and run.
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
#from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
from
ByteStreamCnvSvc.ByteStreamConfig
import
ByteStreamReadCfg
cfg
=
MainServicesCfg
(
ConfigF
lags
)
cfg
.
merge
(
ByteStreamReadCfg
(
ConfigF
lags
))
cfg
=
MainServicesCfg
(
f
lags
)
cfg
.
merge
(
ByteStreamReadCfg
(
f
lags
))
from
TrigInDetConfig.InDetConfig
import
TrigInDetConfig
cfg
.
merge
(
TrigInDetConfig
(
ConfigF
lags
))
cfg
.
merge
(
TrigInDetConfig
(
f
lags
))
cfg
.
merge
(
DQTDetSynchMonAlgConfig
(
ConfigF
lags
))
cfg
.
merge
(
DQTDetSynchMonAlgConfig
(
f
lags
))
# If you want to turn on more detailed messages ...
#exampleMonitorAcc.getEventAlgo('ExampleMonAlg').OutputLevel = 2 # DEBUG
cfg
.
printConfig
(
withDetails
=
False
)
# set True for exhaustive info
cfg
.
run
()
#use cfg.run(20) to only run on first 20 events
Loading