ATLAS Offline Software
TauDQAConfig.py
Go to the documentation of this file.
1 
2 #
3 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4 #
5 
6 '''@file TauDQAConfig.py
7 @author N.Pettersson
8 @date 2022-06-16
9 @brief Main CA-based python configuration for TauDQA
10 '''
11 
12 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
13 from AthenaConfiguration.ComponentFactory import CompFactory
14 
15 def PhysValTauCfg(flags, **kwargs):
16  acc = ComponentAccumulator()
17 
18  from AthenaCommon.Constants import WARNING
19  kwargs.setdefault("EnableLumi", False)
20  kwargs.setdefault("OutputLevel", WARNING)
21  kwargs.setdefault("DetailLevel", 10)
22  kwargs.setdefault("isMC", flags.Input.isMC)
23 
24  from TauDQA.TauDQATools import TauDQAPrimitiveTauSelectionToolCfg, TauDQANominalTauSelectionToolCfg, TauDQATauTruthMatchingToolCfg
25  kwargs.setdefault("NominalTauSelectionTool", TauDQANominalTauSelectionToolCfg(flags))
26  kwargs.setdefault("PrimitiveTauSelectionTool", TauDQAPrimitiveTauSelectionToolCfg(flags))
27  kwargs.setdefault("TauTruthMatchingTool", TauDQATauTruthMatchingToolCfg(flags))
28  tool = CompFactory.PhysValTau(**kwargs)
29  acc.setPrivateTools(tool)
30  return acc
TauDQATools.TauDQATauTruthMatchingToolCfg
def TauDQATauTruthMatchingToolCfg(flags, **kwargs)
Definition: TauDQATools.py:42
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TauDQATools.TauDQAPrimitiveTauSelectionToolCfg
def TauDQAPrimitiveTauSelectionToolCfg(flags, **kwargs)
Definition: TauDQATools.py:8
TauDQAConfig.PhysValTauCfg
def PhysValTauCfg(flags, **kwargs)
Definition: TauDQAConfig.py:15
Constants
some useful constants -------------------------------------------------—
TauDQATools.TauDQANominalTauSelectionToolCfg
def TauDQANominalTauSelectionToolCfg(flags, **kwargs)
Definition: TauDQATools.py:25