ATLAS Offline Software
Functions | Variables
python.egammaMVACalibConfig Namespace Reference

Functions

def egammaMVAToolCfg (flags, **kwargs)
 
def egammaMVASvcCfg (flags, name="egammaMVASvc", **kwargs)
 

Variables

 flags = initConfigFlags()
 
 Files
 
 cfg = ComponentAccumulator()
 
 mlog = logging.getLogger("egammaMVASvcConfigTest")
 
 nestLevel
 
 printDefaults
 
 f = open("egmvatools.pkl", "wb")
 

Function Documentation

◆ egammaMVASvcCfg()

def python.egammaMVACalibConfig.egammaMVASvcCfg (   flags,
  name = "egammaMVASvc",
**  kwargs 
)

Definition at line 15 of file egammaMVACalibConfig.py.

15 def egammaMVASvcCfg(flags, name="egammaMVASvc", **kwargs):
16 
17  acc = ComponentAccumulator()
18 
19  if "folder" not in kwargs:
20  folder = flags.Egamma.Calib.MVAVersion
21  else:
22  # we pop. As folder is not a property of
23  # egammaMVASvc but of the tools
24  folder = kwargs.pop("folder")
25 
26  if "ElectronTool" not in kwargs:
27  kwargs["ElectronTool"] = acc.popToolsAndMerge(
29  flags,
30  name="electronMVATool",
31  ParticleType=xAOD.EgammaParameters.electron,
32  folder=folder)
33  )
34 
35  if "UnconvertedPhotonTool" not in kwargs:
36  kwargs["UnconvertedPhotonTool"] = acc.popToolsAndMerge(
38  flags,
39  name="unconvertedPhotonMVATool",
40  ParticleType=xAOD.EgammaParameters.unconvertedPhoton,
41  folder=folder)
42  )
43 
44  if "ConvertedPhotonTool" not in kwargs:
45  kwargs["ConvertedPhotonTool"] = acc.popToolsAndMerge(
47  flags,
48  name="convertedPhotonMVATool",
49  ParticleType=xAOD.EgammaParameters.convertedPhoton,
50  folder=folder)
51  )
52 
53  acc.addService(
54  CompFactory.egammaMVASvc(
55  name=name,
56  **kwargs), primary=True)
57  return acc
58 
59 

◆ egammaMVAToolCfg()

def python.egammaMVACalibConfig.egammaMVAToolCfg (   flags,
**  kwargs 
)

Definition at line 9 of file egammaMVACalibConfig.py.

9 def egammaMVAToolCfg(flags, **kwargs):
10  acc = ComponentAccumulator()
11  acc.setPrivateTools(CompFactory.egammaMVACalibTool(**kwargs))
12  return acc
13 
14 

Variable Documentation

◆ cfg

python.egammaMVACalibConfig.cfg = ComponentAccumulator()

Definition at line 70 of file egammaMVACalibConfig.py.

◆ f

python.egammaMVACalibConfig.f = open("egmvatools.pkl", "wb")

Definition at line 80 of file egammaMVACalibConfig.py.

◆ Files

python.egammaMVACalibConfig.Files

Definition at line 66 of file egammaMVACalibConfig.py.

◆ flags

python.egammaMVACalibConfig.flags = initConfigFlags()

Definition at line 65 of file egammaMVACalibConfig.py.

◆ mlog

python.egammaMVACalibConfig.mlog = logging.getLogger("egammaMVASvcConfigTest")

Definition at line 71 of file egammaMVACalibConfig.py.

◆ nestLevel

python.egammaMVACalibConfig.nestLevel

Definition at line 76 of file egammaMVACalibConfig.py.

◆ printDefaults

python.egammaMVACalibConfig.printDefaults

Definition at line 77 of file egammaMVACalibConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.egammaMVACalibConfig.egammaMVASvcCfg
def egammaMVASvcCfg(flags, name="egammaMVASvc", **kwargs)
Definition: egammaMVACalibConfig.py:15
python.egammaMVACalibConfig.egammaMVAToolCfg
def egammaMVAToolCfg(flags, **kwargs)
Definition: egammaMVACalibConfig.py:9