3from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory
import CompFactory
5from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
6from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
9 acc=ComponentAccumulator()
10 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
11 acc.merge(LArGMCfg(configFlags))
12 from LArCabling.LArCablingConfig
import LArLATOMEMappingCfg
13 acc.merge(LArLATOMEMappingCfg(configFlags))
15 if (
not (ROBList
is None) ):
16 acc.addEventAlgo(CompFactory.LArRawSCDataReadingAlg(name,
17 LATOMEDecoder = CompFactory.LArLATOMEDecoder(
"LArLATOMEDecoder",ProtectSourceId =
True),
22 acc.addEventAlgo(CompFactory.LArRawSCDataReadingAlg(name,
23 LATOMEDecoder = CompFactory.LArLATOMEDecoder(
"LArLATOMEDecoder",ProtectSourceId =
True),
30 return LArRawSCDataReadingCfg(configFlags,name=name,adcCollKey=
"",adcBasCollKey=
"",etCollKey=
"",LArLATOMEHeaderKey=
"",etIdCollKey=etIdCollKey,ROBList=ROBList)
33if __name__==
"__main__":
35 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
36 flags=initConfigFlags()
37 from AthenaCommon.Logging
import log
41 from AthenaConfiguration.TestDefaults
import defaultTestFiles
42 flags.LAr.doAlign=
False
43 flags.Exec.OutputLevel=DEBUG
44 flags.Input.Files = defaultTestFiles.RAW_RUN2
47 acc = MainServicesCfg( flags )
48 acc.merge(ByteStreamReadCfg(flags))
LArRawSCDataReadingCfg(configFlags, ROBList=None, name="LArRawSCDataReadingAlg", **kwargs)
LArRawSCDataReadingInRoICfg(configFlags, name="LArRawSCDataReadingInRoI", etIdCollKey="SC_ET_ID_RoI", ROBList=[])