Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PFPhysValConfig.py
Go to the documentation of this file.
1 #
2 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 #
4 
5 '''@file PFlowPhysVal.py
6 @author N. Pettersson
7 @date 2022-07-11
8 @brief Main CA-based python configuration for PFODQA
9 '''
10 
11 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
12 from AthenaConfiguration.ComponentFactory import CompFactory
13 
14 def PhysValPFOToolCfg(name, container='', **kwargs):
15  acc = ComponentAccumulator()
16 
17  from AthenaCommon.Constants import WARNING
18  kwargs.setdefault("OutputLevel", WARNING)
19  kwargs.setdefault("DetailLevel", 10)
20  kwargs.setdefault("EnableLumi", False)
21  kwargs.setdefault("FlowElementContainerName", container)
22  kwargs.setdefault("useNeutralFE", "Neutral" in container)
23  tool = CompFactory.PhysValFE(name, **kwargs)
24  acc.setPrivateTools(tool)
25  return acc
26 
27 def PhysValPFOCfg(flags, useGlobalContainers=False):
28  acc = ComponentAccumulator()
29 
30  if useGlobalContainers:
31  chargedName="GlobalChargedParticleFlowObjects"
32  neutralName="GlobalNeutralParticleFlowObjects"
33  else:
34  chargedName="JetETMissChargedParticleFlowObjects"
35  neutralName="JetETMissNeutralParticleFlowObjects"
36 
37  tools = [ acc.popToolsAndMerge(PhysValPFOToolCfg("PhysValFE_charged", chargedName)) ]
38  tools += [ acc.popToolsAndMerge(PhysValPFOToolCfg("PhysValFE_neutral", neutralName)) ]
39  acc.setPrivateTools(tools)
40  return acc
PFPhysValConfig.PhysValPFOToolCfg
def PhysValPFOToolCfg(name, container='', **kwargs)
Definition: PFPhysValConfig.py:14
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
PFPhysValConfig.PhysValPFOCfg
def PhysValPFOCfg(flags, useGlobalContainers=False)
Definition: PFPhysValConfig.py:27
Constants
some useful constants -------------------------------------------------—