3 from AthenaConfiguration.ComponentAccumulator 
import ComponentAccumulator
 
    4 from AthenaConfiguration.ComponentFactory 
import CompFactory
 
    5 from AthenaConfiguration.Enums 
import ProductionStep
 
    6 from AthenaConfiguration.MainServicesConfig 
import MainServicesCfg
 
    7 from ByteStreamCnvSvc.ByteStreamConfig 
import ByteStreamReadCfg
 
    8 from LArConfiguration.LArConfigFlags 
import RawChannelSource 
 
   13     from LArGeoAlgsNV.LArGMConfig 
import LArGMCfg
 
   17     if flags.Common.ProductionStep 
is ProductionStep.MinbiasPreprocessing:
 
   18         kwargs.setdefault(
"LArDigitKey", f
"{flags.Overlay.BkgPrefix}LArDigitContainer_data")
 
   19         kwargs.setdefault(
"LArFebHeaderKey", 
"LArFebHeader")
 
   20     elif flags.Overlay.ByteStream:
 
   21         kwargs.setdefault(
"LArDigitKey", f
"{flags.Overlay.BkgPrefix}FREE")
 
   22         kwargs.setdefault(
"LArFebHeaderKey", 
"LArFebHeader")
 
   23     if flags.LAr.RawChannelSource 
is RawChannelSource.Calculated 
or flags.Overlay.DataOverlay:
 
   24         kwargs.setdefault(
"LArRawChannelKey", 
"")
 
   26     print(
'LArRawDataReadingCfg flags.LAr.RawChannelSource ',flags.LAr.RawChannelSource)
 
   28     acc.addEventAlgo(CompFactory.LArRawDataReadingAlg(**kwargs))
 
   32 if __name__==
"__main__":
 
   34     from AthenaConfiguration.AllConfigFlags 
import initConfigFlags
 
   36     from AthenaCommon.Logging 
import log
 
   40     from AthenaConfiguration.TestDefaults 
import defaultTestFiles
 
   41     flags.LAr.doAlign=
False 
   42     flags.Exec.OutputLevel=DEBUG
 
   43     flags.Input.Files = defaultTestFiles.RAW_RUN2
 
   49     DumpLArRawChannels=CompFactory.DumpLArRawChannels
 
   50     from LArCabling.LArCablingConfig 
import LArOnOffIdMappingCfg