ATLAS Offline Software
RunExEngineTest.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4 from AthenaConfiguration.AllConfigFlags import initConfigFlags
5 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
6 from AthenaCommon.Logging import log
7 
8 
9 flags = initConfigFlags()
10 flags.Input.isMC = True
11 
12 flags.Input.Files = []
13 
14 flags.IOVDb.GlobalTag = "OFLCOND-SIM-00-00-00"
15 flags.GeoModel.AtlasVersion = "ATLAS-R2-2016-01-00-01"
16 flags.Detector.GeometryBpipe = True
17 flags.Detector.GeometryID = True
18 flags.Detector.GeometryPixel = True
19 flags.Detector.GeometrySCT = True
20 
21 flags.Detector.GeometryTRT = False
22 flags.Detector.GeometryCalo = False
23 flags.Detector.GeometryMuon = False
24 
25 # This should run serially for the moment.
26 flags.Concurrency.NumThreads = 1
27 flags.Concurrency.NumConcurrentEvents = 1
28 
29 log.debug('Lock config flags now.')
30 flags.lock()
31 
32 log.debug('dumping config flags now.')
33 flags.dump()
34 
35 cfg=MainServicesCfg(flags)
36 
37 from TrkExUnitTests.TrkExUnitTestsConfig import ExtrapolationEngineTestCfg
39  NumberOfTestsPerEvent = 100,
40  # parameters mode: 0 - neutral tracks, 1 - charged particles
41  ParametersMode = 1,
42  # do the full test backwards as well
43  BackExtrapolation = False,
44  # Smear the production vertex - standard primary vertex paramters
45  SmearOrigin = True,
46  SimgaOriginD0 = 2./3.,
47  SimgaOriginZ0 = 50.,
48  # pT range for testing
49  PtMin = 1000,
50  PtMax = 1000,
51  # The test range in Eta
52  EtaMin = -3.,
53  EtaMax = 3.,
54  # Configure how you wanna run
55  CollectSensitive = True,
56  CollectPassive = True,
57  CollectBoundary = True,
58  CollectMaterial = True,
59  UseHGTD = False,
60  # the path limit to test
61  PathLimit = -1.,
62  )
63 cfg.merge(topoAcc)
64 
65 cfg.printConfig()
66 
67 cfg.run(10)
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:256
TrkExUnitTestsConfig.ExtrapolationEngineTestCfg
def ExtrapolationEngineTestCfg(configFlags, name="ExtrapolationEngineTest", **kwargs)
Definition: TrkExUnitTestsConfig.py:17
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19