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  kwargs.setdefault("folder", flags.Egamma.Calib.MVAVersion)
20 
21  if "ElectronTool" not in kwargs:
22  kwargs["ElectronTool"] = acc.popToolsAndMerge(
24  flags,
25  name="electronMVATool",
26  ParticleType=xAOD.EgammaParameters.electron,
27  folder=kwargs['folder'])
28  )
29 
30  if "UnconvertedPhotonTool" not in kwargs:
31  kwargs["UnconvertedPhotonTool"] = acc.popToolsAndMerge(
33  flags,
34  name="unconvertedPhotonMVATool",
35  ParticleType=xAOD.EgammaParameters.unconvertedPhoton,
36  folder=kwargs['folder'])
37  )
38 
39  if "ConvertedPhotonTool" not in kwargs:
40  kwargs["ConvertedPhotonTool"] = acc.popToolsAndMerge(
42  flags,
43  name="convertedPhotonMVATool",
44  ParticleType=xAOD.EgammaParameters.convertedPhoton,
45  folder=kwargs['folder'])
46  )
47 
48  acc.addService(
49  CompFactory.egammaMVASvc(
50  name=name,
51  **kwargs), primary=True)
52  return acc
53 
54 

◆ 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 65 of file egammaMVACalibConfig.py.

◆ f

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

Definition at line 75 of file egammaMVACalibConfig.py.

◆ Files

python.egammaMVACalibConfig.Files

Definition at line 61 of file egammaMVACalibConfig.py.

◆ flags

python.egammaMVACalibConfig.flags = initConfigFlags()

Definition at line 60 of file egammaMVACalibConfig.py.

◆ mlog

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

Definition at line 66 of file egammaMVACalibConfig.py.

◆ nestLevel

python.egammaMVACalibConfig.nestLevel

Definition at line 71 of file egammaMVACalibConfig.py.

◆ printDefaults

python.egammaMVACalibConfig.printDefaults

Definition at line 72 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