ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SiLorentzAngleTool
python
SCTSiLorentzAngleTestAlgConfig.py
Go to the documentation of this file.
1
"""Define method to configure and test SCTSiLorentzAngleTestAlg
2
3
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
4
"""
5
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
6
from
AthenaConfiguration.ComponentFactory
import
CompFactory
7
from
AtlasGeoModel.GeoModelConfig
import
GeoModelCfg
8
9
def
SCTSiLorentzAngleTestAlgCfg
(flags, name="SCTSiLorentzAngleTestAlg", **kwargs):
10
"""Return a configured SCTSiLorentzAngleTestAlg"""
11
acc = ComponentAccumulator()
12
acc.merge(GeoModelCfg(flags))
# For SCT_ID used in SCTSiLorentzAngleTestAlg
13
from
SiLorentzAngleTool.SCT_LorentzAngleConfig
import
SCT_LorentzAngleToolCfg
14
kwargs.setdefault(
"SCTLorentzAngleTool"
, acc.popToolsAndMerge(SCT_LorentzAngleToolCfg(flags)))
15
acc.addEventAlgo(CompFactory.SCTSiLorentzAngleTestAlg(**kwargs))
16
return
acc
17
18
if
__name__==
"__main__"
:
19
from
AthenaCommon.Logging
import
log
20
from
AthenaCommon.Constants
import
INFO
21
log.setLevel(INFO)
22
23
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
24
flags = initConfigFlags()
25
flags.Input.Files = []
26
flags.Input.isMC =
True
27
flags.Input.ProjectName =
"mc16_13TeV"
28
flags.Input.RunNumbers = [300000]
# MC16c 2017 run number
29
flags.Input.TimeStamps = [1500000000]
# MC16c 2017 time stamp
30
flags.IOVDb.GlobalTag =
"OFLCOND-MC16-SDR-18"
31
from
AthenaConfiguration.TestDefaults
import
defaultGeometryTags
32
flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
33
flags.Detector.GeometrySCT =
True
34
flags.lock()
35
36
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
37
cfg = MainServicesCfg(flags)
38
39
from
McEventSelector.McEventSelectorConfig
import
McEventSelectorCfg
40
cfg.merge(McEventSelectorCfg(flags))
41
42
cfg.merge(
SCTSiLorentzAngleTestAlgCfg
(flags))
43
44
cfg.run(maxEvents=20)
Constants
python.SCTSiLorentzAngleTestAlgConfig.SCTSiLorentzAngleTestAlgCfg
SCTSiLorentzAngleTestAlgCfg(flags, name="SCTSiLorentzAngleTestAlg", **kwargs)
Definition
SCTSiLorentzAngleTestAlgConfig.py:9
Generated on
for ATLAS Offline Software by
1.17.0