11 """Return ComponentAccumulator with PileUpMergeSvc
13 If doing XingByXingPileUp, Intervals should contian PileUpXingFolder tools.
14 Otherwise it should be empty, and we enforce that here.
16 acc = ComponentAccumulator()
18 if not flags.Digitization.DoXingByXingPileUp:
20 if not isinstance(Intervals, list):
21 Intervals = [Intervals]
22 kwargs[
"Intervals"] = Intervals
24 presampling = flags.Common.ProductionStep == ProductionStep.PileUpPresampling
27 "EventInfoKeyName", flags.Overlay.BkgPrefix +
"EventInfo"
30 kwargs.setdefault(
"EventInfoKeyName",
"EventInfo")
31 acc.addService(CompFactory.PileUpMergeSvc(name, **kwargs), primary=
True)