ATLAS Offline Software
Trigger
TrigValidation
TrigP1Test
python
MagFieldReader.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
#
3
# Testing job options for magnetic field changes. Can be used e.g. in the
4
# "magFieldToggle" test instead of the full menu. Only runs one algorithm
5
# that prints the field status.
6
7
from
AthenaCommon.Constants
import
DEBUG
8
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
9
from
AthenaConfiguration.ComponentFactory
import
CompFactory
10
from
MagFieldServices.MagFieldServicesConfig
import
AtlasFieldCacheCondAlgCfg
11
12
13
def
run
(flags):
14
"""Setup magnetic field and reader algorithm"""
15
16
# Default flags are good enough:
17
flags.lock()
18
19
cfg =
ComponentAccumulator
()
20
cfg.merge(
AtlasFieldCacheCondAlgCfg
(flags) )
21
cfg.addEventAlgo( CompFactory.getComp(
"MagField::CondReader"
)(
"MagFieldCondReader"
) )
22
23
cfg.foreach_component(
"*AtlasField.*CondAlg"
).OutputLevel = DEBUG
24
25
return
cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition:
JetAnalysisCommon.py:302
Constants
some useful constants -------------------------------------------------—
python.MagFieldReader.run
def run(flags)
Definition:
MagFieldReader.py:13
python.MagFieldServicesConfig.AtlasFieldCacheCondAlgCfg
def AtlasFieldCacheCondAlgCfg(flags, **kwargs)
Definition:
MagFieldServicesConfig.py:8
Generated on Wed Jan 8 2025 21:13:16 for ATLAS Offline Software by
1.8.18