ATLAS Offline Software
CaloTowerStore_test.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 #
3 # @file CaloUtils/share/CaloTowerStore_test.py
4 # @author scott snyder <snyder@bnl.gov>
5 # @date Jul, 2013
6 # @brief Regression tests for CaloTowerStore.
7 #
8 
9 
10 
11 from AthenaConfiguration.AllConfigFlags import initConfigFlags
12 from AthenaConfiguration.ComponentFactory import CompFactory
13 from AthenaConfiguration.TestDefaults import defaultGeometryTags
14 from Campaigns.Utils import Campaign
15 
17 flags.Input.isMC=True
18 flags.IOVDb.GlobalTag = 'OFLCOND-SDR-BS14T-IBL-06'
19 flags.GeoModel.AtlasVersion=defaultGeometryTags.RUN2
20 flags.LAr.doAlign=False
21 flags.Input.MCCampaign=Campaign.Unknown
22 flags.lock()
23 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
24 acc=MainServicesCfg(flags)
25 
26 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
27 from TileGeoModel.TileGMConfig import TileGMCfg
28 
29 acc.merge(LArGMCfg(flags))
30 acc.merge(TileGMCfg(flags))
31 
32 # Suppress useless GeoModelSvc messages.
33 from AthenaCommon import Constants
34 acc.getService("GeoModelSvc").OutputLevel=Constants.WARNING
35 
36 acc.addEventAlgo(CompFactory.CaloTowerStoreTestAlg ('towertest'),sequenceName = 'AthAlgSeq')
37 
38 acc.run(1)
39 
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
TileGMConfig.TileGMCfg
def TileGMCfg(flags)
Definition: TileGMConfig.py:7