3from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory
import CompFactory
5from AthenaConfiguration.Enums
import ProductionStep
6from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
7from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
8from LArConfiguration.LArConfigFlags
import RawChannelSource
12 acc=ComponentAccumulator()
13 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
14 acc.merge(LArGMCfg(flags))
15 acc.merge(ByteStreamReadCfg(flags))
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))
32if __name__==
"__main__":
34 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
35 flags=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
46 acc = MainServicesCfg( flags )
49 DumpLArRawChannels=CompFactory.DumpLArRawChannels
50 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
51 acc.merge(LArOnOffIdMappingCfg(flags))
void print(char *figname, TCanvas *c1)
LArRawDataReadingCfg(flags, **kwargs)