ATLAS Offline Software
Functions | Variables
egammaTopoClusterCopierConfig Namespace Reference

Functions

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

Variables

 flags = initConfigFlags()
 
 Files
 
 acc = MainServicesCfg(flags)
 
 mlog = logging.getLogger("egammaTopoClusterCopierConfigTest")
 
 nestLevel
 
 printDefaults
 

Function Documentation

◆ egammaTopoClusterCopierCfg()

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

Definition at line 11 of file egammaTopoClusterCopierConfig.py.

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

◆ 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 37 of file egammaTopoClusterCopierConfig.py.

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

Variable Documentation

◆ acc

egammaTopoClusterCopierConfig.acc = MainServicesCfg(flags)

Definition at line 69 of file egammaTopoClusterCopierConfig.py.

◆ Files

egammaTopoClusterCopierConfig.Files

Definition at line 67 of file egammaTopoClusterCopierConfig.py.

◆ flags

egammaTopoClusterCopierConfig.flags = initConfigFlags()

Definition at line 66 of file egammaTopoClusterCopierConfig.py.

◆ mlog

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

Definition at line 70 of file egammaTopoClusterCopierConfig.py.

◆ nestLevel

egammaTopoClusterCopierConfig.nestLevel

Definition at line 75 of file egammaTopoClusterCopierConfig.py.

◆ printDefaults

egammaTopoClusterCopierConfig.printDefaults

Definition at line 76 of file egammaTopoClusterCopierConfig.py.

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