ATLAS Offline Software
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):
28  acc = ComponentAccumulator()
29 
30  tools = [ acc.popToolsAndMerge(PhysValPFOToolCfg("PhysValFE_charged", "JetETMissChargedParticleFlowObjects")) ]
31  tools += [ acc.popToolsAndMerge(PhysValPFOToolCfg("PhysValFE_neutral", "JetETMissNeutralParticleFlowObjects")) ]
32  acc.setPrivateTools(tools)
33  return acc
PFPhysValConfig.PhysValPFOToolCfg
def PhysValPFOToolCfg(name, container='', **kwargs)
Definition: PFPhysValConfig.py:14
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
Constants
some useful constants -------------------------------------------------—
PFPhysValConfig.PhysValPFOCfg
def PhysValPFOCfg(flags)
Definition: PFPhysValConfig.py:27