ATLAS Offline Software
Functions
python.PileUpMergeSvcConfig Namespace Reference

Functions

def PileUpMergeSvcCfg (flags, name="PileUpMergeSvc", Intervals=[], **kwargs)
 
def PileUpXingFolderCfg (flags, name="PileUpXingFolder", **kwargs)
 

Detailed Description

ComponentAccumulator configuration for PileUpMergeSvc

Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ PileUpMergeSvcCfg()

def python.PileUpMergeSvcConfig.PileUpMergeSvcCfg (   flags,
  name = "PileUpMergeSvc",
  Intervals = [],
**  kwargs 
)
Return ComponentAccumulator with PileUpMergeSvc

If doing XingByXingPileUp, Intervals should contian PileUpXingFolder tools.
Otherwise it should be empty, and we enforce that here.

Definition at line 10 of file PileUpMergeSvcConfig.py.

10 def PileUpMergeSvcCfg(flags, name="PileUpMergeSvc", Intervals=[], **kwargs):
11  """Return ComponentAccumulator with PileUpMergeSvc
12 
13  If doing XingByXingPileUp, Intervals should contian PileUpXingFolder tools.
14  Otherwise it should be empty, and we enforce that here.
15  """
16  acc = ComponentAccumulator()
17 
18  if not flags.Digitization.DoXingByXingPileUp:
19  # handle input type variety
20  if not isinstance(Intervals, list):
21  Intervals = [Intervals]
22  kwargs["Intervals"] = Intervals
23 
24  presampling = flags.Common.ProductionStep == ProductionStep.PileUpPresampling
25  if presampling:
26  kwargs.setdefault(
27  "EventInfoKeyName", flags.Overlay.BkgPrefix + "EventInfo"
28  ) # FIXME Make default?
29  else:
30  kwargs.setdefault("EventInfoKeyName", "EventInfo") # FIXME Make default?
31  acc.addService(CompFactory.PileUpMergeSvc(name, **kwargs), primary=True)
32  return acc
33 
34 

◆ PileUpXingFolderCfg()

def python.PileUpMergeSvcConfig.PileUpXingFolderCfg (   flags,
  name = "PileUpXingFolder",
**  kwargs 
)
Return a configured PileUpXingFolder tool

Definition at line 35 of file PileUpMergeSvcConfig.py.

35 def PileUpXingFolderCfg(flags, name="PileUpXingFolder", **kwargs):
36  """Return a configured PileUpXingFolder tool"""
37  acc = ComponentAccumulator()
38  acc.setPrivateTools(CompFactory.PileUpXingFolder(name, **kwargs))
39  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.PileUpMergeSvcConfig.PileUpXingFolderCfg
def PileUpXingFolderCfg(flags, name="PileUpXingFolder", **kwargs)
Definition: PileUpMergeSvcConfig.py:35
python.PileUpMergeSvcConfig.PileUpMergeSvcCfg
def PileUpMergeSvcCfg(flags, name="PileUpMergeSvc", Intervals=[], **kwargs)
Definition: PileUpMergeSvcConfig.py:10