ATLAS Offline Software
Functions | Variables
egammaTruthAssociationConfig Namespace Reference

Functions

def egammaTruthAssociationCfg (flags, name='egammaTruthAssociation', sequenceName=None, **kwargs)
 

Variables

string __doc__ = "Configure egammaTruthAssociation"
 
 flags = initConfigFlags()
 
 Files
 
 acc = MainServicesCfg(flags)
 
 mlog = logging.getLogger("egammaTruthAssociationConfigTest")
 
 nestLevel
 
 printDefaults
 

Function Documentation

◆ egammaTruthAssociationCfg()

def egammaTruthAssociationConfig.egammaTruthAssociationCfg (   flags,
  name = 'egammaTruthAssociation',
  sequenceName = None,
**  kwargs 
)

Definition at line 12 of file egammaTruthAssociationConfig.py.

12 def egammaTruthAssociationCfg(flags, name='egammaTruthAssociation',
13  sequenceName = None,
14  **kwargs):
15 
16  seqkw = {'sequence': sequenceName} if sequenceName else {}
17  acc = ComponentAccumulator (**seqkw)
18 
19  if "MCTruthClassifier" not in kwargs:
20  kwargs["MCTruthClassifier"] = acc.popToolsAndMerge(
22 
23  kwargs.setdefault(
24  "ClusterContainerName",
25  flags.Egamma.Keys.Output.CaloClusters)
26  kwargs.setdefault(
27  "ElectronContainerName",
28  flags.Egamma.Keys.Output.Electrons)
29  kwargs.setdefault(
30  "PhotonContainerName",
31  flags.Egamma.Keys.Output.Photons)
32  kwargs.setdefault(
33  "FwdElectronContainerName",
34  flags.Egamma.Keys.Output.ForwardElectrons)
35  kwargs.setdefault(
36  "TruthEventContainerName",
37  flags.Egamma.Keys.Input.TruthEvents)
38  kwargs.setdefault(
39  "TruthParticleContainerName",
40  flags.Egamma.Keys.Input.TruthParticles)
41  kwargs.setdefault(
42  "EgammaTruthContainerName",
43  flags.Egamma.Keys.Output.TruthParticles)
44  kwargs.setdefault(
45  "MatchForwardElectrons",
46  flags.Egamma.doForward)
47 
48  egtruthAlg = CompFactory.egammaTruthAssociationAlg(name, **kwargs)
49 
50  acc.addEventAlgo(egtruthAlg)
51  return acc
52 
53 

Variable Documentation

◆ __doc__

string egammaTruthAssociationConfig.__doc__ = "Configure egammaTruthAssociation"
private

Definition at line 5 of file egammaTruthAssociationConfig.py.

◆ acc

egammaTruthAssociationConfig.acc = MainServicesCfg(flags)

Definition at line 62 of file egammaTruthAssociationConfig.py.

◆ Files

egammaTruthAssociationConfig.Files

Definition at line 60 of file egammaTruthAssociationConfig.py.

◆ flags

egammaTruthAssociationConfig.flags = initConfigFlags()

Definition at line 59 of file egammaTruthAssociationConfig.py.

◆ mlog

egammaTruthAssociationConfig.mlog = logging.getLogger("egammaTruthAssociationConfigTest")

Definition at line 63 of file egammaTruthAssociationConfig.py.

◆ nestLevel

egammaTruthAssociationConfig.nestLevel

Definition at line 68 of file egammaTruthAssociationConfig.py.

◆ printDefaults

egammaTruthAssociationConfig.printDefaults

Definition at line 69 of file egammaTruthAssociationConfig.py.

MCTruthClassifierConfig.MCTruthClassifierCaloTruthMatchCfg
def MCTruthClassifierCaloTruthMatchCfg(flags, **kwargs)
Definition: MCTruthClassifier/python/MCTruthClassifierConfig.py:18
egammaTruthAssociationConfig.egammaTruthAssociationCfg
def egammaTruthAssociationCfg(flags, name='egammaTruthAssociation', sequenceName=None, **kwargs)
Definition: egammaTruthAssociationConfig.py:12