ATLAS Offline Software
Functions | Variables
python.TrigTauMonitorAlgorithm Namespace Reference

Functions

def TrigTauMonConfig (flags)
 

Variables

 nightly
 
 file
 
 flags
 
 Files
 
 isMC
 
 HISTFileName
 
 cfg
 
 trigTauMonitorAcc
 
 withDetails
 
 sc
 

Function Documentation

◆ TrigTauMonConfig()

def python.TrigTauMonitorAlgorithm.TrigTauMonConfig (   flags)
Function to configures some algorithms in the monitoring system.

Definition at line 3 of file TrigTauMonitorAlgorithm.py.

3 def TrigTauMonConfig(flags):
4  '''Function to configures some algorithms in the monitoring system.'''
5  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7 
8  # We need the TauID inference to run first
9  from AthenaCommon.CFElements import seqAND
10  seq_name = 'TrigTauMonitoringSeq'
11  acc.addSequence(seqAND(seq_name))
12 
13 
14  # Schedule the offline GNTau inference when running from AOD (GNTau is now transiently available in RAWtoALL)
15  if flags.DQ.Environment == 'AOD':
16  TauContainerCopy = 'TTMTauJets'
17 
18  from tauRec.TauToolHolder import TauVertexedClusterDecoratorCfg, TauGNNEvaluatorCfg, TauWPDecoratorGNNCfg
19  tool_accs = [
21  TauGNNEvaluatorCfg(flags, 0, tauContainerName=TauContainerCopy),
22  TauWPDecoratorGNNCfg(flags, 0, TauContainerCopy),
23  ]
24 
25  tools = []
26  for tool_acc in tool_accs:
27  tools.append(tool_acc.popPrivateTools())
28  tools[-1].inAOD = True
29  acc.merge(tool_acc, seq_name)
30  acc.addPublicTool(tools[-1])
31 
32  from AthenaConfiguration.ComponentFactory import CompFactory
33  acc.addEventAlgo(CompFactory.TauAODRunnerAlg(
34  name='TrigTauMonitoring_TauJets_TauIDDecorator',
35  Key_tauContainer='TauJets',
36  Key_pi0ClusterInputContainer='',
37  Key_tauOutputContainer=TauContainerCopy,
38  Key_pi0OutputContainer='',
39  Key_neutralPFOOutputContainer='',
40  Key_chargedPFOOutputContainer='',
41  Key_hadronicPFOOutputContainer='',
42  Key_tauTrackOutputContainer='',
43  Key_vertexOutputContainer='',
44  officialTools=tools,
45  ), sequenceName=seq_name)
46 
47 
48  # The following class will make a sequence, configure the base monitoring infrastructure
49  # and algorithms, and link them to GenericMonitoringTools
50  from AthenaMonitoring import AthMonitorCfgHelper
51  helper = AthMonitorCfgHelper(flags, 'TrigTauAthMonitorCfg')
52 
53  # Configure the actual TrigTauMonitoring algorithm(s)
54  from TrigTauMonitoring.TrigTauMonitoringConfig import TrigTauMonAlgBuilder
55  monAlgCfg = TrigTauMonAlgBuilder(helper)
56  if flags.DQ.Environment == 'AOD':
57  monAlgCfg.offline_taujets = 'TTMTauJets'
58  else:
59  monAlgCfg.offline_taujets = 'TauJets'
60  monAlgCfg.offline_GNTau_WP = flags.Tau.GNTauDecorWPNames[0][2]
61  monAlgCfg.configure()
62  acc.merge(helper.result(), seq_name)
63 
64  return acc
65 
66 

Variable Documentation

◆ cfg

python.TrigTauMonitorAlgorithm.cfg

Definition at line 87 of file TrigTauMonitorAlgorithm.py.

◆ file

python.TrigTauMonitorAlgorithm.file

Definition at line 76 of file TrigTauMonitorAlgorithm.py.

◆ Files

python.TrigTauMonitorAlgorithm.Files

Definition at line 78 of file TrigTauMonitorAlgorithm.py.

◆ flags

python.TrigTauMonitorAlgorithm.flags

Definition at line 77 of file TrigTauMonitorAlgorithm.py.

◆ HISTFileName

python.TrigTauMonitorAlgorithm.HISTFileName

Definition at line 80 of file TrigTauMonitorAlgorithm.py.

◆ isMC

python.TrigTauMonitorAlgorithm.isMC

Definition at line 79 of file TrigTauMonitorAlgorithm.py.

◆ nightly

python.TrigTauMonitorAlgorithm.nightly

Definition at line 75 of file TrigTauMonitorAlgorithm.py.

◆ sc

python.TrigTauMonitorAlgorithm.sc

Definition at line 97 of file TrigTauMonitorAlgorithm.py.

◆ trigTauMonitorAcc

python.TrigTauMonitorAlgorithm.trigTauMonitorAcc

Definition at line 90 of file TrigTauMonitorAlgorithm.py.

◆ withDetails

python.TrigTauMonitorAlgorithm.withDetails

Definition at line 95 of file TrigTauMonitorAlgorithm.py.

TauToolHolder.TauVertexedClusterDecoratorCfg
def TauVertexedClusterDecoratorCfg(flags)
Definition: TauToolHolder.py:132
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TauToolHolder.TauGNNEvaluatorCfg
def TauGNNEvaluatorCfg(flags, version=0, applyLooseTrackSel=False, applyTightTrackSel=False, tauContainerName="")
Definition: TauToolHolder.py:741
TauToolHolder.TauWPDecoratorGNNCfg
def TauWPDecoratorGNNCfg(flags, version, tauContainerName="")
Definition: TauToolHolder.py:771
python.CFElements.seqAND
def seqAND(name, subs=[], invert=False)
Definition: CFElements.py:27
python.TrigTauMonitorAlgorithm.TrigTauMonConfig
def TrigTauMonConfig(flags)
Definition: TrigTauMonitorAlgorithm.py:3