ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SCT_ConditionsAlgorithms
python
SCT_RODVetoTestAlgConfig.py
Go to the documentation of this file.
1
"""Define method to configure and test SCT_RODVetoTestAlg
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_RODVetoTestAlgCfg
(flags, name="SCT_RODVetoTestAlg", **kwargs):
9
"""Return a configured SCT_RODVetoTestAlg"""
10
acc = ComponentAccumulator()
11
from
SCT_ConditionsTools.SCT_ConditionsToolsConfig
import
SCT_RODVetoCfg
12
algArgs = {}
13
algArgs[
"SCT_RODVetoTool"
] = acc.popToolsAndMerge(SCT_RODVetoCfg(flags, **kwargs))
14
acc.addEventAlgo(CompFactory.SCT_RODVetoTestAlg(name, **algArgs))
15
return
acc
16
17
if
__name__==
"__main__"
:
18
from
AthenaCommon.Logging
import
log
19
from
AthenaCommon.Constants
import
INFO
20
log.setLevel(INFO)
21
22
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
23
flags = initConfigFlags()
24
flags.Input.Files = []
25
flags.Input.isMC =
True
26
flags.Input.ProjectName =
"mc16_13TeV"
27
flags.Input.RunNumbers = [300000]
# MC16c 2017 run number
28
flags.Input.TimeStamps = [1500000000]
29
flags.IOVDb.GlobalTag =
"OFLCOND-MC16-SDR-18"
30
from
AthenaConfiguration.TestDefaults
import
defaultGeometryTags
31
flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
32
flags.Detector.GeometrySCT =
True
33
flags.lock()
34
35
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
36
cfg = MainServicesCfg(flags)
37
38
from
McEventSelector.McEventSelectorConfig
import
McEventSelectorCfg
39
cfg.merge(McEventSelectorCfg(flags))
40
41
kwargs = {}
42
kwargs[
"BadRODIds"
] = [0x240100, 0x240030]
# RODs to be vetoed
43
cfg.merge(
SCT_RODVetoTestAlgCfg
(flags, **kwargs))
44
45
cfg.run(maxEvents=20)
Constants
python.SCT_RODVetoTestAlgConfig.SCT_RODVetoTestAlgCfg
SCT_RODVetoTestAlgCfg(flags, name="SCT_RODVetoTestAlg", **kwargs)
Definition
SCT_RODVetoTestAlgConfig.py:8
Generated on
for ATLAS Offline Software by
1.17.0