ATLAS Offline Software
LArSCidTest.py
Go to the documentation of this file.
1 
2 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
7 
8 def LArScIdVsIdTestCfg(flags):
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 
33 if __name__=="__main__":
34  from AthenaConfiguration.AllConfigFlags import 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.isMC=False
41  flags.Input.RunNumbers=[483000,]
42  flags.IOVDb.GlobalTag="CONDBR2-BLKPA-RUN2-09"
43  flags.lock()
44  cfg=MainServicesCfg(flags)
45  cfg.merge(LArScIdVsIdTestCfg(flags))
46  cfg.getService("MessageSvc").errorLimit=99999999
47  cfg.run(1)
48 
LArCablingConfig.LArOnOffIdMappingSCCfg
def LArOnOffIdMappingSCCfg(configFlags)
Definition: LArCablingConfig.py:65
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
LArSCidTest.LArScIdVsIdTestCfg
def LArScIdVsIdTestCfg(flags)
Definition: LArSCidTest.py:8
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
python.McEventSelectorConfig.McEventSelectorCfg
def McEventSelectorCfg(flags, **kwargs)
Definition: McEventSelectorConfig.py:5
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19