ATLAS Offline Software
Functions | Variables
MCTruthClassifierConfig Namespace Reference

Functions

def MCTruthClassifierCfg (flags, **kwargs)
 
def MCTruthClassifierCaloTruthMatchCfg (flags, **kwargs)
 

Variables

string __doc__
 
 flags = initConfigFlags()
 
 isMC
 
 Files
 
 mlog = logging.getLogger("MCTruthClassifierConfigTest")
 
 cfg = ComponentAccumulator()
 
 nestLevel
 
 printDefaults
 
 f = open("mctruthclassifer.pkl", "wb")
 

Function Documentation

◆ MCTruthClassifierCaloTruthMatchCfg()

def MCTruthClassifierConfig.MCTruthClassifierCaloTruthMatchCfg (   flags,
**  kwargs 
)
This is the default configuration allowing all options.
By default, it does calo truth matching using a
dedicated instance of the ParticleCaloExtensionTool

Definition at line 18 of file MCTruthClassifier/python/MCTruthClassifierConfig.py.

18 def MCTruthClassifierCaloTruthMatchCfg(flags, **kwargs):
19  """
20  This is the default configuration allowing all options.
21  By default, it does calo truth matching using a
22  dedicated instance of the ParticleCaloExtensionTool
23  """
24  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
25  from AthenaConfiguration.Enums import LHCPeriod
26 
27  acc = ComponentAccumulator()
28 
29  if "ParticleCaloExtensionTool" not in kwargs:
30 
31  from TrkConfig.AtlasExtrapolatorConfig import (
32  MCTruthClassifierExtrapolatorCfg)
33  extrapolator = acc.popToolsAndMerge(
35 
36  from TrackToCalo.TrackToCaloConfig import (
37  EMParticleCaloExtensionToolCfg)
39  flags, Extrapolator=extrapolator)
40  kwargs["ParticleCaloExtensionTool"] = acc.popToolsAndMerge(extension)
41 
42  kwargs.setdefault("CaloDetDescrManager", "CaloDetDescrManager")
43 
44  if flags.GeoModel.Run >= LHCPeriod.Run4:
45  kwargs.setdefault("FwdElectronUseG4Sel", False)
46 
47  from AthenaConfiguration.ComponentFactory import CompFactory
48  acc.setPrivateTools(CompFactory.MCTruthClassifier(**kwargs))
49  return acc
50 
51 

◆ MCTruthClassifierCfg()

def MCTruthClassifierConfig.MCTruthClassifierCfg (   flags,
**  kwargs 
)
This is the default configuration allowing all options.
By default, it does not do calo truth matching.

Definition at line 8 of file MCTruthClassifier/python/MCTruthClassifierConfig.py.

8 def MCTruthClassifierCfg(flags, **kwargs):
9  """
10  This is the default configuration allowing all options.
11  By default, it does not do calo truth matching.
12  """
13  kwargs.setdefault("ParticleCaloExtensionTool", "")
14  kwargs.setdefault("CaloDetDescrManager", "")
15  return MCTruthClassifierCaloTruthMatchCfg(flags, **kwargs)
16 
17 

Variable Documentation

◆ __doc__

string MCTruthClassifierConfig.__doc__
private
Initial value:
1 = """
2  Tool configuration to instantiate MCTruthClassifier
3  with default configurations."""

Definition at line 3 of file MCTruthClassifier/python/MCTruthClassifierConfig.py.

◆ cfg

MCTruthClassifierConfig.cfg = ComponentAccumulator()

◆ f

MCTruthClassifierConfig.f = open("mctruthclassifer.pkl", "wb")

◆ Files

MCTruthClassifierConfig.Files

◆ flags

MCTruthClassifierConfig.flags = initConfigFlags()

◆ isMC

MCTruthClassifierConfig.isMC

◆ mlog

MCTruthClassifierConfig.mlog = logging.getLogger("MCTruthClassifierConfigTest")

◆ nestLevel

MCTruthClassifierConfig.nestLevel

◆ printDefaults

MCTruthClassifierConfig.printDefaults
MCTruthClassifierConfig.MCTruthClassifierCfg
def MCTruthClassifierCfg(flags, **kwargs)
Definition: MCTruthClassifier/python/MCTruthClassifierConfig.py:8
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.AtlasExtrapolatorConfig.MCTruthClassifierExtrapolatorCfg
def MCTruthClassifierExtrapolatorCfg(flags, name='MCTruthClassifierExtrapolator')
Definition: AtlasExtrapolatorConfig.py:277
MCTruthClassifierConfig.MCTruthClassifierCaloTruthMatchCfg
def MCTruthClassifierCaloTruthMatchCfg(flags, **kwargs)
Definition: MCTruthClassifier/python/MCTruthClassifierConfig.py:18
TrackToCaloConfig.EMParticleCaloExtensionToolCfg
def EMParticleCaloExtensionToolCfg(flags, name='EMParticleCaloExtensionTool', **kwargs)
Definition: TrackToCaloConfig.py:30