ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondTest
python
TgcDigiThresholdTester.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
def
TgcDigtThresholdTestAlgCfg
(flags, name="TgcCondDbTestAlg", **kwargs):
4
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
5
result = ComponentAccumulator()
6
from
AthenaConfiguration.ComponentFactory
import
CompFactory
7
the_alg = CompFactory.TgcDigtThresholdTestAlg(name, **kwargs)
8
result.addEventAlgo(the_alg, primary =
True
)
9
return
result
10
if
__name__ ==
"__main__"
:
11
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
12
from
MuonCondTest.MdtCablingTester
import
SetupArgParser
13
from
AthenaConfiguration.TestDefaults
import
defaultTestFiles
14
from
MuonConfig.MuonConfigUtils
import
executeTest, SetupMuonStandaloneCA
15
16
17
parser = SetupArgParser()
18
parser.add_argument(
"--jsonFile"
, default=
"TGC_Digitization_energyThreshold.json"
,
19
help=
"If the test is run multiple times to ensure reproducibility, then the dump of the test can be resteered"
)
20
parser.set_defaults(inputFile=defaultTestFiles.ESD_RUN2_MC)
21
args = parser.parse_args()
22
23
flags = initConfigFlags()
24
flags.Concurrency.NumThreads = 1
25
flags.Concurrency.NumConcurrentEvents = 1
26
flags.Output.ESDFileName = args.output
27
flags.Input.Files = args.inputFile
28
flags.lock()
29
flags.dump()
30
31
cfg = SetupMuonStandaloneCA(flags)
32
from
MuonConfig.MuonCondAlgConfig
import
TgcEnergyThresholdCondAlgCfg
33
cfg.merge(TgcEnergyThresholdCondAlgCfg(flags, readFromJSON = args.jsonFile))
34
cfg.merge(
TgcDigtThresholdTestAlgCfg
(flags))
35
36
executeTest(cfg)
TgcDigiThresholdTester.TgcDigtThresholdTestAlgCfg
TgcDigtThresholdTestAlgCfg(flags, name="TgcCondDbTestAlg", **kwargs)
Definition
TgcDigiThresholdTester.py:3
Generated on
for ATLAS Offline Software by
1.17.0