ATLAS Offline Software
Loading...
Searching...
No Matches
python.TrigTauMonitorAlgorithm Namespace Reference

Functions

 TrigTauMonConfig (flags)

Variables

str nightly = '/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/CampaignInputs/'
str file = 'data22/AOD/data22_13p6TeV.00431906.physics_Main.merge.AOD.r13928_p5279/1000events.AOD.30220215._001367.pool.root.1'
 flags = initConfigFlags()
 Files
 isMC
 HISTFileName
 cfg = MainServicesCfg(flags)
 trigTauMonitorAcc = TrigTauMonConfig(flags)
 withDetails
 sc = cfg.run()

Function Documentation

◆ TrigTauMonConfig()

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

Definition at line 3 of file TrigTauMonitorAlgorithm.py.

3def TrigTauMonConfig(flags):
4 '''Function to configures some algorithms in the monitoring system.'''
5 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6 acc = 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 = [
20 TauVertexedClusterDecoratorCfg(flags),
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 = MainServicesCfg(flags)

Definition at line 87 of file TrigTauMonitorAlgorithm.py.

◆ file

str python.TrigTauMonitorAlgorithm.file = 'data22/AOD/data22_13p6TeV.00431906.physics_Main.merge.AOD.r13928_p5279/1000events.AOD.30220215._001367.pool.root.1'

Definition at line 76 of file TrigTauMonitorAlgorithm.py.

◆ Files

python.TrigTauMonitorAlgorithm.Files

Definition at line 78 of file TrigTauMonitorAlgorithm.py.

◆ flags

python.TrigTauMonitorAlgorithm.flags = initConfigFlags()

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

str python.TrigTauMonitorAlgorithm.nightly = '/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/CampaignInputs/'

Definition at line 75 of file TrigTauMonitorAlgorithm.py.

◆ sc

python.TrigTauMonitorAlgorithm.sc = cfg.run()

Definition at line 97 of file TrigTauMonitorAlgorithm.py.

◆ trigTauMonitorAcc

python.TrigTauMonitorAlgorithm.trigTauMonitorAcc = TrigTauMonConfig(flags)

Definition at line 90 of file TrigTauMonitorAlgorithm.py.

◆ withDetails

python.TrigTauMonitorAlgorithm.withDetails

Definition at line 95 of file TrigTauMonitorAlgorithm.py.