ATLAS Offline Software
Loading...
Searching...
No Matches
LArSCidTest.py
Go to the documentation of this file.
2# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
4from AthenaConfiguration.ComponentFactory import CompFactory
5from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6from AthenaConfiguration.MainServicesConfig import MainServicesCfg
7
9 result=ComponentAccumulator()
10
11 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
12 result.merge(LArGMCfg(flags))
13
14 from LArCabling.LArCablingConfig import LArOnOffIdMappingSCCfg
15 result.merge(LArOnOffIdMappingSCCfg(flags))
16
17 from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
18 result.merge(LArOnOffIdMappingCfg(flags))
19
20 result.addEventAlgo(CompFactory.LArSCIdvsIdTest())
21
22 from McEventSelector.McEventSelectorConfig import McEventSelectorCfg
23 result.merge(McEventSelectorCfg(flags,
24 RunNumber = flags.Input.RunNumbers[0],
25 EventsPerRun = 1,
26 FirstEvent = 1,
27 InitialTimeStamp = 0,
28 TimeStampInterval = 1))
29
30 return result
31
32
33if __name__=="__main__":
34 from AthenaConfiguration.AllConfigFlags import initConfigFlags
35 flags=initConfigFlags()
36 from AthenaConfiguration.TestDefaults import defaultGeometryTags
37 flags.GeoModel.AtlasVersion=defaultGeometryTags.RUN3
38 flags.IOVDb.DatabaseInstance="CONDBR2"
39 flags.LAr.doAlign=False
40 flags.Input.Files=[]
41 flags.Input.isMC=False
42 flags.Input.RunNumbers=[483000,]
43 flags.IOVDb.GlobalTag="CONDBR2-BLKPA-RUN2-09"
44 flags.lock()
45 cfg=MainServicesCfg(flags)
46 cfg.merge(LArScIdVsIdTestCfg(flags))
47 cfg.getService("MessageSvc").errorLimit=99999999
48 cfg.run(1)
49
LArScIdVsIdTestCfg(flags)
Definition LArSCidTest.py:8