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 from LArConfiguration.LArConfigFlags
import RawChannelSource
12 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
16 if configFlags.Overlay.DataOverlay:
17 kwargs.setdefault(
"LArDigitKey", configFlags.Overlay.BkgPrefix +
"FREE")
18 kwargs.setdefault(
"LArFebHeaderKey",
"LArFebHeader")
19 if configFlags.LAr.RawChannelSource
is RawChannelSource.Calculated
or configFlags.Overlay.DataOverlay:
20 kwargs.setdefault(
"LArRawChannelKey",
"")
22 print(
'LArRawDataReadingCfg configFlags.LAr.RawChannelSource ',configFlags.LAr.RawChannelSource)
24 acc.addEventAlgo(CompFactory.LArRawDataReadingAlg(**kwargs))
28 if __name__==
"__main__":
30 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
32 from AthenaCommon.Logging
import log
36 from AthenaConfiguration.TestDefaults
import defaultTestFiles
37 flags.LAr.doAlign=
False
38 flags.Exec.OutputLevel=DEBUG
39 flags.Input.Files = defaultTestFiles.RAW_RUN2
45 DumpLArRawChannels=CompFactory.DumpLArRawChannels
46 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg