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