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