ATLAS Offline Software
Loading...
Searching...
No Matches
ClusterDQAConfig.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 InDetPhysValMonitoringConfig.py
6@author N.Pettersson
7@date 2022-07-08
8@brief Main CA-based python configuration for ClusterDQACfg
9'''
10
11from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
12from AthenaConfiguration.ComponentFactory import CompFactory
13
14def PhysValClusterToolCfg(name, container, flags, **kwargs):
15 acc = ComponentAccumulator()
16
17 from AthenaCommon.Constants import INFO
18 kwargs.setdefault("OutputLevel", INFO)
19 kwargs.setdefault("DetailLevel", 10)
20 kwargs.setdefault("EnableLumi", False)
21 kwargs.setdefault("ClusterContainerName", container)
22
23 tool = CompFactory.PhysValCluster(name, **kwargs)
24 acc.setPrivateTools(tool)
25 return acc
26
27
29 acc = ComponentAccumulator()
30
31 tools = [ acc.popToolsAndMerge(PhysValClusterToolCfg("PhysValCluster_LC", "CaloCalTopoClusters", flags)) ]
32 tools += [ acc.popToolsAndMerge(PhysValClusterToolCfg("PhysValCluster_origin", "LCOriginTopoClusters", flags)) ]
33 acc.setPrivateTools(tools)
34 return acc
PhysValClusterToolCfg(name, container, flags, **kwargs)