Skip to content
Snippets Groups Projects
Commit 1ecd2cf2 authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'master-SCT-summary' into 'master'

Add SCT_ConditionsSummaryTestAlgConfig.py

See merge request atlas/athena!37171
parents 2791ec36 a8a1db32
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,9 @@ atlas_add_test( TestTdaqEnabled
atlas_add_test( TestDCSConditionsNewConf
SCRIPT python -m SCT_ConditionsAlgorithms.SCT_DCSConditionsTestAlgConfig
PROPERTIES TIMEOUT 600 )
atlas_add_test( TestSummaryNewConf
SCRIPT python -m SCT_ConditionsAlgorithms.SCT_ConditionsSummaryTestAlgConfig
PROPERTIES TIMEOUT 600 )
# Install files from the package:
atlas_install_joboptions( share/*.py )
......
"""Define method to configure and test SCT_ConditionsSummaryTestAlg
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
"""
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
from AthenaConfiguration.ComponentFactory import CompFactory
def SCT_ConditionsSummaryTestAlgCfg(flags, name="SCT_ConditionsSummaryTestAlg", **kwargs):
"""Return a configured SCT_ConditionsSummaryTestAlg"""
acc = ComponentAccumulator()
from InDetConfig.InDetRecToolConfig import InDetSCT_ConditionsSummaryToolCfg
InDetSCT_ConditionsSummaryToolWithoutFlagged = acc.popToolsAndMerge(InDetSCT_ConditionsSummaryToolCfg(flags,withFlaggedCondTool=False))
kwargs.setdefault("SCT_ConditionsSummaryTool", InDetSCT_ConditionsSummaryToolWithoutFlagged)
acc.addEventAlgo(CompFactory.SCT_ConditionsSummaryTestAlg(**kwargs))
return acc
if __name__=="__main__":
from AthenaCommon.Logging import log
from AthenaCommon.Constants import INFO
log.setLevel(INFO)
from AthenaCommon.Configurable import Configurable
Configurable.configurableRun3Behavior=1
from AthenaConfiguration.AllConfigFlags import ConfigFlags
ConfigFlags.Input.isMC = False
ConfigFlags.Input.ProjectName = "data17_13TeV"
ConfigFlags.Input.RunNumber = [310809]
ConfigFlags.addFlag("Input.InitialTimeStamp", 1476741326) # LB 18 of run 310809, 10/17/2016 @ 9:55pm (UTC)
ConfigFlags.IOVDb.GlobalTag = "CONDBR2-BLKPA-2017-06"
ConfigFlags.GeoModel.AtlasVersion = "ATLAS-R2-2015-03-01-00"
ConfigFlags.Detector.GeometrySCT = True
ConfigFlags.lock()
from AthenaConfiguration.MainServicesConfig import MainServicesCfg
cfg = MainServicesCfg(ConfigFlags)
from SCT_GeoModel.SCT_GeoModelConfig import SCT_GeometryCfg
cfg.merge(SCT_GeometryCfg(ConfigFlags))
from McEventSelector.McEventSelectorConfig import McEventSelectorCfg
cfg.merge(McEventSelectorCfg(ConfigFlags))
cfg.merge(SCT_ConditionsSummaryTestAlgCfg(ConfigFlags))
cfg.run(maxEvents=20)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment