ATLAS Offline Software
LArRawSCDataReadingConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from ByteStreamCnvSvc.ByteStreamConfig import ByteStreamReadCfg
6 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
7 
8 def LArRawSCDataReadingCfg(configFlags, ROBList=None, name="LArRawSCDataReadingAlg", **kwargs):
10  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
11  acc.merge(LArGMCfg(configFlags))
12  from LArCabling.LArCablingConfig import LArLATOMEMappingCfg
13  acc.merge(LArLATOMEMappingCfg(configFlags))
14 
15  if ( not (ROBList is None) ):
16  acc.addEventAlgo(CompFactory.LArRawSCDataReadingAlg(name,
17  LATOMEDecoder = CompFactory.LArLATOMEDecoder("LArLATOMEDecoder",ProtectSourceId = True),
18  ROBList=ROBList,
19  **kwargs)
20  )
21  else :
22  acc.addEventAlgo(CompFactory.LArRawSCDataReadingAlg(name,
23  LATOMEDecoder = CompFactory.LArLATOMEDecoder("LArLATOMEDecoder",ProtectSourceId = True),
24  **kwargs)
25  )
26 
27  return acc
28 
29 def LArRawSCDataReadingInRoICfg(configFlags,name="LArRawSCDataReadingInRoI",etIdCollKey="SC_ET_ID_RoI",ROBList=[]):
30  return LArRawSCDataReadingCfg(configFlags,name=name,adcCollKey="",adcBasCollKey="",etCollKey="",LArLATOMEHeaderKey="",etIdCollKey=etIdCollKey,ROBList=ROBList)
31 
32 
33 if __name__=="__main__":
34 
35  from AthenaConfiguration.AllConfigFlags import initConfigFlags
37  from AthenaCommon.Logging import log
38  from AthenaCommon.Constants import DEBUG
39  log.setLevel(DEBUG)
40 
41  from AthenaConfiguration.TestDefaults import defaultTestFiles
42  flags.LAr.doAlign=False
43  flags.Exec.OutputLevel=DEBUG
44  flags.Input.Files = defaultTestFiles.RAW_RUN2
45  flags.lock()
46 
47  acc = MainServicesCfg( flags )
48  acc.merge(ByteStreamReadCfg(flags))
49  acc.merge(LArRawSCDataReadingCfg(flags))
50 
51  acc.run(2)
52 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.ByteStreamConfig.ByteStreamReadCfg
def ByteStreamReadCfg(flags, type_names=None)
Definition: Event/ByteStreamCnvSvc/python/ByteStreamConfig.py:25
LArCablingConfig.LArLATOMEMappingCfg
def LArLATOMEMappingCfg(configFlags)
Definition: LArCablingConfig.py:95
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:312
Constants
some useful constants -------------------------------------------------—
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.LArRawSCDataReadingConfig.LArRawSCDataReadingInRoICfg
def LArRawSCDataReadingInRoICfg(configFlags, name="LArRawSCDataReadingInRoI", etIdCollKey="SC_ET_ID_RoI", ROBList=[])
Definition: LArRawSCDataReadingConfig.py:29
python.LArRawSCDataReadingConfig.LArRawSCDataReadingCfg
def LArRawSCDataReadingCfg(configFlags, ROBList=None, name="LArRawSCDataReadingAlg", **kwargs)
Definition: LArRawSCDataReadingConfig.py:8