ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonDetDescr
MuonGeoModelTest
python
PlotNSWGeo.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
from
AthenaConfiguration.ComponentFactory
import
CompFactory
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
5
def
NSWGeoPlottingAlgCfg
(flags, name = "NSWGeoPlottingAlg", **kwargs):
6
result = ComponentAccumulator()
7
event_algo = CompFactory.MuonGM.NSWGeoPlottingAlg(name, **kwargs)
8
result.addEventAlgo(event_algo, primary =
True
)
9
return
result
10
11
if
__name__ ==
"__main__"
:
12
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
13
from
MuonCondTest.MdtCablingTester
import
SetupArgParser
14
from
AthenaCommon.TestDefaults
import
defaultTestFiles
15
parser = SetupArgParser()
16
parser.set_defaults(inputFile=defaultTestFiles.EVNT)
17
args = parser.parse_args()
18
19
flags = initConfigFlags()
20
flags.Concurrency.NumThreads = args.threads
21
flags.Concurrency.NumConcurrentEvents = args.threads
# Might change this later, but good enough for the moment.
22
flags.Output.ESDFileName = args.output
23
flags.Input.Files = args.inputFile
24
flags.Muon.applyMMPassivation =
True
25
from
AthenaConfiguration.TestDefaults
import
defaultConditionsTags, defaultGeometryTags
26
flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
27
flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
28
flags.lock()
29
30
from
MuonCondTest.MdtCablingTester
import
setupServicesCfg
31
cfg = setupServicesCfg(flags)
32
33
cfg.merge(
NSWGeoPlottingAlgCfg
(flags))
34
35
msgService = cfg.getService(
'MessageSvc'
)
36
37
cfg.printConfig(withDetails=
True
, summariseProps=
True
)
38
39
flags.dump()
40
41
sc = cfg.run(1)
42
if
not
sc.isSuccess():
43
import
sys
44
sys.exit(
"Execution failed"
)
PlotNSWGeo.NSWGeoPlottingAlgCfg
NSWGeoPlottingAlgCfg(flags, name="NSWGeoPlottingAlg", **kwargs)
Definition
PlotNSWGeo.py:5
Generated on
for ATLAS Offline Software by
1.17.0