5def LArCalibBaseCfg(flags):
6 result=ComponentAccumulator()
7
8 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
9 result.merge(LArGMCfg(flags))
10
11 if flags.LArCalib.isSC:
12
13 from LArCabling.LArCablingConfig import LArOnOffIdMappingSCCfg, LArCalibIdMappingSCCfg, LArLATOMEMappingCfg
14 result.merge(LArOnOffIdMappingSCCfg(flags))
15 result.merge(LArCalibIdMappingSCCfg(flags))
16 result.merge(LArLATOMEMappingCfg(flags))
17 else:
18
19 from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg, LArCalibIdMappingCfg
20 result.merge(LArOnOffIdMappingCfg(flags))
21 result.merge(LArCalibIdMappingCfg(flags))
22
23
24 from LArCalibProcessing.LArCalib_BadChannelConfig import LArCalibBadChannelCfg
25
26 result.merge(LArCalibBadChannelCfg(flags))
27 return result
28
29
30
31
32