ATLAS Offline Software
testMuonGen1.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 """
4  Run ACTS geometry construction for Muon
5 """
6 from AthenaConfiguration.AllConfigFlags import initConfigFlags
7 flags = initConfigFlags()
8 
9 from AthenaConfiguration.TestDefaults import defaultGeometryTags, defaultConditionsTags
10 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN4
11 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN4_MC
12 flags.GeoModel.Align.Dynamic = False
13 flags.Input.Files = ['/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/SimCoreTests/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.evgen.EVNT.e4993.EVNT.08166201._000012.pool.root.1']
14 
15 flags.Detector.GeometryITkPixel = False
16 flags.Detector.GeometryITkStrip = False
17 flags.Detector.GeometryBpipe = False
18 flags.Detector.GeometryCalo = False
19 flags.Detector.GeometryMuon = True
20 
21 flags.Concurrency.NumThreads = 64
22 flags.Concurrency.NumConcurrentEvents = 64
23 
24 flags.Exec.MaxEvents = 100
25 
26 from MuonGeoModelTestR4.testGeoModel import geoModelFileDefault, configureDefaultTagsCfg
27 flags.GeoModel.SQLiteDBFullPath = geoModelFileDefault(useR4Layout = True)
28 
29 flags.GeoModel.SQLiteDB = True
31 flags.lock()
32 flags.dump()
33 
34 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
35 acc = MainServicesCfg( flags )
36 
37 from ActsConfig.ActsGeometryConfig import ActsExtrapolationAlgCfg, ActsTrackingGeometrySvcCfg
38 
39 from AthenaCommon.Constants import INFO
41  OutputLevel=INFO,
42  RunConsistencyChecks=False,
43  # ConsistencyCheckOutput="trk_geo_check.csv", # enable debug output writing
44  ObjDebugOutput=True)
45 
46 acc.merge(tgSvc)
47 
49  OutputLevel=INFO,
50  NParticlesPerEvent = int(100),
51  WritePropStep = True,
52  EtaRange = [-5, 5],
53  PtRange = [20, 100])
54 
55 acc.merge(alg)
56 acc.printConfig()
57 sc = acc.run()
58 
59 if sc.isFailure():
60  import sys
61  sys.exit(1)
62 
ActsGeometryConfig.ActsTrackingGeometrySvcCfg
ComponentAccumulator ActsTrackingGeometrySvcCfg(flags, str name="ActsTrackingGeometrySvc", **kwargs)
Definition: ActsGeometryConfig.py:6
testGeoModel.geoModelFileDefault
def geoModelFileDefault(useR4Layout=False)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:5
ActsGeometryConfig.ActsExtrapolationAlgCfg
ComponentAccumulator ActsExtrapolationAlgCfg(flags, str name="ActsExtrapolationAlg", **kwargs)
Definition: ActsGeometryConfig.py:211
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:312
Constants
some useful constants -------------------------------------------------—
testGeoModel.configureDefaultTagsCfg
def configureDefaultTagsCfg(flags)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:104
python.CaloAddPedShiftConfig.int
int
Definition: CaloAddPedShiftConfig.py:45
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19