ATLAS Offline Software
ClusterDQAConfig.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 InDetPhysValMonitoringConfig.py
6 @author N.Pettersson
7 @date 2022-07-08
8 @brief Main CA-based python configuration for ClusterDQACfg
9 '''
10 
11 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
12 from AthenaConfiguration.ComponentFactory import CompFactory
13 
14 def 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 
28 def PhysValClusterCfg(flags):
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
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ClusterDQAConfig.PhysValClusterToolCfg
def PhysValClusterToolCfg(name, container, flags, **kwargs)
Definition: ClusterDQAConfig.py:14
Constants
some useful constants -------------------------------------------------—
ClusterDQAConfig.PhysValClusterCfg
def PhysValClusterCfg(flags)
Definition: ClusterDQAConfig.py:28