ATLAS Offline Software
Functions | Variables
python.PileUpToolsConfig Namespace Reference

Functions

def PileUpToolsCfg (flags, **kwargs)
 

Variables

 PileUpToolsAlg
 
 PileUpMTAlg
 
 DigitizationAlg
 

Detailed Description

Configure the algorithm to carry PileUpTools for Digitization

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

Function Documentation

◆ PileUpToolsCfg()

def python.PileUpToolsConfig.PileUpToolsCfg (   flags,
**  kwargs 
)
Return ComponentAccumulator with the correct algorithm to carry Digitization PileUpTools

Keyword argument "PileUpTools" may be an AlgTool or list of AlgTools.

Definition at line 14 of file PileUpToolsConfig.py.

14 def PileUpToolsCfg(flags, **kwargs):
15  """
16  Return ComponentAccumulator with the correct algorithm to carry Digitization PileUpTools
17 
18  Keyword argument "PileUpTools" may be an AlgTool or list of AlgTools.
19  """
20  acc = ComponentAccumulator()
21 
22  # handle input type variety
23  PileUpTools = kwargs.setdefault("PileUpTools", [])
24  if not isinstance(PileUpTools, list):
25  kwargs["PileUpTools"] = [PileUpTools]
26 
27  # declare common extra inputs
28  kwargs["ExtraInputs"] = flags.Digitization.ExtraInputs
29 
30  # choose the correct alg
31  if flags.Concurrency.NumThreads > 0 and flags.Digitization.PileUp:
32  Alg = PileUpMTAlg
33  else:
34  if flags.Digitization.DoXingByXingPileUp:
35  Alg = PileUpToolsAlg
36  else:
37  Alg = DigitizationAlg
38 
39  # setup EventInfo
40  if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
41  kwargs["EventInfoKey"] = flags.Overlay.BkgPrefix + "EventInfo"
42 
43  acc.addEventAlgo(Alg(flags.Digitization.DigiSteeringConf, **kwargs))
44  return acc

Variable Documentation

◆ DigitizationAlg

python.PileUpToolsConfig.DigitizationAlg

Definition at line 9 of file PileUpToolsConfig.py.

◆ PileUpMTAlg

python.PileUpToolsConfig.PileUpMTAlg

Definition at line 9 of file PileUpToolsConfig.py.

◆ PileUpToolsAlg

python.PileUpToolsConfig.PileUpToolsAlg

Definition at line 9 of file PileUpToolsConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.PileUpToolsConfig.PileUpToolsCfg
def PileUpToolsCfg(flags, **kwargs)
Definition: PileUpToolsConfig.py:14