ATLAS Offline Software
Loading...
Searching...
No Matches
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
4from AthenaConfiguration.AllConfigFlags import initConfigFlags
5from AthenaConfiguration.MainServicesConfig import MainServicesCfg
6from AthenaCommon.Logging import log
7
8
9flags = initConfigFlags()
10flags.Input.isMC = True
11
12flags.Input.Files = []
13
14flags.IOVDb.GlobalTag = "OFLCOND-SIM-00-00-00"
15flags.GeoModel.AtlasVersion = "ATLAS-R2-2016-01-00-01"
16flags.Detector.GeometryBpipe = True
17flags.Detector.GeometryID = True
18flags.Detector.GeometryPixel = True
19flags.Detector.GeometrySCT = True
20
21flags.Detector.GeometryTRT = False
22flags.Detector.GeometryCalo = False
23flags.Detector.GeometryMuon = False
24
25# This should run serially for the moment.
26flags.Concurrency.NumThreads = 1
27flags.Concurrency.NumConcurrentEvents = 1
28
29log.debug('Lock config flags now.')
30flags.lock()
31
32log.debug('dumping config flags now.')
33flags.dump()
34
35cfg=MainServicesCfg(flags)
36
37from TrkExUnitTests.TrkExUnitTestsConfig import ExtrapolationEngineTestCfg
38topoAcc=ExtrapolationEngineTestCfg(flags,
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 )
63cfg.merge(topoAcc)
64
65cfg.printConfig()
66
67cfg.run(10)