ATLAS Offline Software
Functions | Variables
egammaTopoClusterCopierConfig Namespace Reference

Functions

def egammaTopoClusterCopierCfg (flags, name='', **kwargs)
 
def indetTopoClusterCopierCfg (flags, name='', **kwargs)
 

Variables

string __doc__ = "Instantiate egammaTopoClusterCopier with default configuration"
 
 flags = initConfigFlags()
 
 Files
 
 acc = MainServicesCfg(flags)
 
 mlog = logging.getLogger("egammaTopoClusterCopierConfigTest")
 
 nestLevel
 
 printDefaults
 

Function Documentation

◆ egammaTopoClusterCopierCfg()

def egammaTopoClusterCopierConfig.egammaTopoClusterCopierCfg (   flags,
  name = '',
**  kwargs 
)

Definition at line 10 of file egammaTopoClusterCopierConfig.py.

10 def egammaTopoClusterCopierCfg(flags, name='', **kwargs):
11  acc = ComponentAccumulator()
12 
13  kwargs.setdefault("InputTopoCollection",
14  flags.Egamma.Keys.Input.TopoClusters)
15  kwargs.setdefault("OutputTopoCollection",
16  flags.Egamma.Keys.Internal.EgammaTopoClusters)
17 
18  if flags.Egamma.doForward:
19  kwargs.setdefault("OutputFwdTopoCollection",
20  flags.Egamma.Keys.Internal.ForwardTopoClusters)
21 
22  kwargs.setdefault("ECut", 700 if not flags.Egamma.doLowMu else 300)
23 
24  kwargs.setdefault('hasITk', flags.Detector.GeometryITk)
25 
26  if name == '':
27  name = kwargs["OutputTopoCollection"]+'Copier'
28 
29  egcopierAlg = CompFactory.egammaTopoClusterCopier(name, **kwargs)
30 
31  acc.addEventAlgo(egcopierAlg)
32 
33  return acc
34 
35 

◆ indetTopoClusterCopierCfg()

def egammaTopoClusterCopierConfig.indetTopoClusterCopierCfg (   flags,
  name = '',
**  kwargs 
)
Create a copier to be used in tracking. 
   If 'OutputTopoCollection' is the same as used in 
    'egammaTopoClusterCopierCfg', these two functions will produce
    the same tool that will be de-duplicated later, preventing 
    duplication of the output containers. This will happen in
    a standard pp reconstruction.
   If 'OutputTopoCollection' is not the same, two tools will be
    created, each with a different output container. This will
    happen in a HI reconstruction.

Definition at line 36 of file egammaTopoClusterCopierConfig.py.

36 def indetTopoClusterCopierCfg(flags, name='', **kwargs):
37  """Create a copier to be used in tracking.
38  If 'OutputTopoCollection' is the same as used in
39  'egammaTopoClusterCopierCfg', these two functions will produce
40  the same tool that will be de-duplicated later, preventing
41  duplication of the output containers. This will happen in
42  a standard pp reconstruction.
43  If 'OutputTopoCollection' is not the same, two tools will be
44  created, each with a different output container. This will
45  happen in a HI reconstruction."""
46 
47  kwargs.setdefault(
48  "InputTopoCollection",
49  flags.Tracking.TopoClusters)
50  kwargs.setdefault(
51  "OutputTopoCollection",
52  flags.Tracking.EgammaTopoClusters)
53 
54  if name == '':
55  name = kwargs["OutputTopoCollection"]+'Copier'
56 
57  return egammaTopoClusterCopierCfg(flags, name, **kwargs)
58 
59 

Variable Documentation

◆ __doc__

string egammaTopoClusterCopierConfig.__doc__ = "Instantiate egammaTopoClusterCopier with default configuration"
private

Definition at line 3 of file egammaTopoClusterCopierConfig.py.

◆ acc

egammaTopoClusterCopierConfig.acc = MainServicesCfg(flags)

Definition at line 68 of file egammaTopoClusterCopierConfig.py.

◆ Files

egammaTopoClusterCopierConfig.Files

Definition at line 66 of file egammaTopoClusterCopierConfig.py.

◆ flags

egammaTopoClusterCopierConfig.flags = initConfigFlags()

Definition at line 65 of file egammaTopoClusterCopierConfig.py.

◆ mlog

egammaTopoClusterCopierConfig.mlog = logging.getLogger("egammaTopoClusterCopierConfigTest")

Definition at line 69 of file egammaTopoClusterCopierConfig.py.

◆ nestLevel

egammaTopoClusterCopierConfig.nestLevel

Definition at line 74 of file egammaTopoClusterCopierConfig.py.

◆ printDefaults

egammaTopoClusterCopierConfig.printDefaults

Definition at line 75 of file egammaTopoClusterCopierConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
egammaTopoClusterCopierConfig.indetTopoClusterCopierCfg
def indetTopoClusterCopierCfg(flags, name='', **kwargs)
Definition: egammaTopoClusterCopierConfig.py:36
egammaTopoClusterCopierConfig.egammaTopoClusterCopierCfg
def egammaTopoClusterCopierCfg(flags, name='', **kwargs)
Definition: egammaTopoClusterCopierConfig.py:10