ATLAS Offline Software
LArFCalTowerBuilderTool_test.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 
4 from AthenaConfiguration.AllConfigFlags import initConfigFlags
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 from AthenaConfiguration.TestDefaults import defaultGeometryTags
7 from AthenaCommon import Constants
8 from Campaigns.Utils import Campaign
9 import sys
10 
12 #Set a number of flags to avoid input-file peeking
13 flags.Input.isMC=True
14 flags.Input.RunNumbers=[1]
15 flags.Input.TimeStamps=[0]
16 flags.LAr.doAlign=False
17 flags.IOVDb.GlobalTag = 'OFLCOND-SDR-BS14T-IBL-06'
18 flags.GeoModel.AtlasVersion=defaultGeometryTags.RUN2
19 flags.Input.TypedCollections=[]
20 flags.Input.MCCampaign=Campaign.Unknown
21 flags.lock()
22 
23 from AthenaConfiguration.MainServicesConfig import MainEvgenServicesCfg
25 
26 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
27 acc.merge(LArGMCfg(flags))
28 from TileGeoModel.TileGMConfig import TileGMCfg
29 acc.merge(TileGMCfg(flags))
30 
31 acc.addPublicTool(CompFactory.LArFCalTowerBuilderTool())
32 acc.addEventAlgo(CompFactory.LArFCalTowerBuilderToolTestAlg ('towertest'))
33 
34 acc.getService("GeoModelSvc").OutputLevel=Constants.WARNING
35 
36 sys.exit(acc.run(1).isFailure())
python.MainServicesConfig.MainEvgenServicesCfg
def MainEvgenServicesCfg(flags, LoopMgr="AthenaEventLoopMgr", withSequences=True)
Definition: MainServicesConfig.py:349
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