ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SCT_ConditionsAlgorithms
python
SCT_ReadCalibChipDataTestAlgConfig.py
Go to the documentation of this file.
1
"""Define method to configure and test SCT_ReadCalibChipDataTestAlg
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
8
def
SCT_ReadCalibChipDataTestAlgCfg
(flags, name="SCT_ReadCalibChipDataTestAlg", **kwargs):
9
"""Return a configured SCT_ReadCalibChipDataTestAlg"""
10
acc = ComponentAccumulator()
11
from
SCT_ConditionsTools.SCT_ConditionsToolsConfig
import
SCT_ReadCalibChipDataCfg
12
kwargs.setdefault(
"SCT_ReadCalibChipDataTool"
, acc.popToolsAndMerge(SCT_ReadCalibChipDataCfg(flags)))
13
acc.addEventAlgo(CompFactory.SCT_ReadCalibChipDataTestAlg(name, **kwargs))
14
return
acc
15
16
if
__name__==
"__main__"
:
17
from
AthenaCommon.Logging
import
log
18
from
AthenaCommon.Constants
import
INFO
19
log.setLevel(INFO)
20
21
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
22
flags = initConfigFlags()
23
flags.Input.Files = []
24
flags.Input.isMC =
True
25
flags.Input.ProjectName =
"mc16_13TeV"
26
flags.Input.RunNumbers = [300000]
# MC16c 2017 run number
27
flags.Input.TimeStamps = [1500000000]
# MC16c 2017 time stamp
28
flags.IOVDb.GlobalTag =
"OFLCOND-MC16-SDR-18"
29
from
AthenaConfiguration.TestDefaults
import
defaultGeometryTags
30
flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
31
flags.Detector.GeometrySCT =
True
32
flags.lock()
33
34
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
35
cfg = MainServicesCfg(flags)
36
37
from
McEventSelector.McEventSelectorConfig
import
McEventSelectorCfg
38
cfg.merge(McEventSelectorCfg(flags))
39
40
algkwargs = {}
41
42
algkwargs[
"ModuleOfflinePosition"
] = [-2, 0, 1, 11, 0, 706]
#(EC/B, Disk/Layer, eta, phi, side, strip)
43
algkwargs[
"DoTestmyConditionsSummary"
] =
True
44
algkwargs[
"DoTestmyDataSummary"
] =
True
45
algkwargs[
"OutputLevel"
] = INFO
46
cfg.merge(
SCT_ReadCalibChipDataTestAlgCfg
(flags, **algkwargs))
47
48
cfg.run(maxEvents=20)
Constants
python.SCT_ReadCalibChipDataTestAlgConfig.SCT_ReadCalibChipDataTestAlgCfg
SCT_ReadCalibChipDataTestAlgCfg(flags, name="SCT_ReadCalibChipDataTestAlg", **kwargs)
Definition
SCT_ReadCalibChipDataTestAlgConfig.py:8
Generated on
for ATLAS Offline Software by
1.17.0