def RPC_DigitizationBasicCfg(flags, **kwargs): """Return ComponentAccumulator for RPC digitization""" acc = MuonGeoModelCfg(flags) if "PileUpTools" not in kwargs: PileUpTools = acc.popToolsAndMerge(RPC_DigitizationToolCfg(flags)) kwargs["PileUpTools"] = PileUpTools acc.merge(PileUpToolsCfg(flags, **kwargs)) return acc
def CSC_OverlayDigitizationBasicCfg(flags, **kwargs): """Return ComponentAccumulator with CSC Overlay digitization""" acc = MuonGeoModelCfg(flags) acc.merge(CscCondDbAlgCfg(flags)) if "DigitizationTool" not in kwargs: tool = acc.popToolsAndMerge(CSC_OverlayDigitizationToolCfg(flags)) kwargs["DigitizationTool"] = tool if flags.Concurrency.NumThreads > 0: kwargs.setdefault("Cardinality", flags.Concurrency.NumThreads) # Set common overlay extra inputs kwargs.setdefault("ExtraInputs", flags.Overlay.ExtraInputs) CscDigitBuilder = CompFactory.CscDigitBuilder acc.addEventAlgo(CscDigitBuilder(name="CscOverlayDigitBuilder", **kwargs)) return acc