ATLAS Offline Software
Loading...
Searching...
No Matches
PFPhysValConfig.py
Go to the documentation of this file.
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
11from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
12from AthenaConfiguration.ComponentFactory import CompFactory
13
14def 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
27def 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
PhysValPFOToolCfg(name, container='', **kwargs)
PhysValPFOCfg(flags, useGlobalContainers=False)