ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondTest
python
NswPassivationAlgTest.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3
def
NSWPassivAlgTest
(flags,alg_name="NSWPassivAlgTest", **kwargs):
4
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
5
result = ComponentAccumulator()
6
from
AthenaConfiguration.ComponentFactory
import
CompFactory
7
from
MuonConfig.MuonCondAlgConfig
import
NswCalibDbAlgCfg
8
result.merge(NswCalibDbAlgCfg(flags))
9
the_alg = CompFactory.NswPassivationTestAlg(alg_name, **kwargs)
10
result.addEventAlgo(the_alg, primary=
True
)
11
return
result
12
13
14
if
__name__ ==
"__main__"
:
15
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
16
from
AthenaConfiguration.TestDefaults
import
defaultTestFiles
17
from
MuonConfig.MuonConfigUtils
import
executeTest, SetupMuonStandaloneCA, configureCondTag
18
19
flags = initConfigFlags()
20
flags.Input.Files = defaultTestFiles.ESD_RUN3_DATA22
21
22
flags.Concurrency.NumThreads = 1
23
flags.Concurrency.NumConcurrentEvents = 1
24
flags.Exec.MaxEvents = 1
25
configureCondTag(flags)
26
flags.lock()
27
flags.dump()
28
29
cfg = SetupMuonStandaloneCA(flags)
30
cfg.merge(
NSWPassivAlgTest
(flags))
31
32
executeTest(cfg)
NswPassivationAlgTest.NSWPassivAlgTest
NSWPassivAlgTest(flags, alg_name="NSWPassivAlgTest", **kwargs)
Definition
NswPassivationAlgTest.py:3
Generated on
for ATLAS Offline Software by
1.17.0