ATLAS Offline Software
Loading...
Searching...
No Matches
egammaTopoClusterCopierConfig Namespace Reference

Functions

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

Variables

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

Detailed Description

 Instantiate egammaTopoClusterCopier with default configuration

Function Documentation

◆ egammaTopoClusterCopierCfg()

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

Definition at line 11 of file egammaTopoClusterCopierConfig.py.

11def 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()

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.

37def 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.