ATLAS Offline Software
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)
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonCondAlgConfig.NswCalibDbAlgCfg
def NswCalibDbAlgCfg(flags, **kwargs)
Definition: MuonCondAlgConfig.py:181
MuonConfigUtils.executeTest
def executeTest(cfg)
Definition: MuonConfigUtils.py:15
MuonConfigUtils.configureCondTag
def configureCondTag(flags)
Definition: MuonConfigUtils.py:19
MuonConfigUtils.SetupMuonStandaloneCA
def SetupMuonStandaloneCA(flags)
Definition: MuonConfigUtils.py:79
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
NswPassivationAlgTest.NSWPassivAlgTest
def NSWPassivAlgTest(flags, alg_name="NSWPassivAlgTest", **kwargs)
Definition: NswPassivationAlgTest.py:3