ATLAS Offline Software
Functions
TrigTauHypoMonitoring Namespace Reference

Functions

def getTrigTauPrecisionIDHypoToolMonitoring (flags, str name, list[str] tau_ids)
 
def getTrigTauPrecisionDiKaonHypoToolMonitoring (flags, str name)
 

Function Documentation

◆ getTrigTauPrecisionDiKaonHypoToolMonitoring()

def TrigTauHypoMonitoring.getTrigTauPrecisionDiKaonHypoToolMonitoring (   flags,
str  name 
)

Definition at line 35 of file TrigTauHypoMonitoring.py.

36  monTool = GenericMonitoringTool(flags, f'MonTool_{name}')
37  monTool.HistPath = 'ComboHypo/' + name.replace('leg001_', '')
38 
39  # We will fix the naming convention as soon as the first weekly HLT Reprocessing validation goes through, because it will break the references
40 
41  monTool.defineHistogram('NInputTaus', path='EXPERT', type='TH1F', title='Input Taus (before selection); N Taus; Entries', xbins=10, xmin=0, xmax=10)
42 
43  monTool.defineHistogram('PtAccepted', path='EXPERT', type='TH1F', title='Accepted Tau p_{T}; p_{T} [GeV]; Entries', xbins=80, xmin=0, xmax=800)
44  monTool.defineHistogram('NTracksAccepted', path='EXPERT', type='TH1F', title='Accepted Tau Tracks; N Tracks; Entries', xbins=10, xmin=0, xmax=10)
45  monTool.defineHistogram('NIsoTracksAccepted', path='EXPERT', type='TH1F', title='Accepted Tau Isolation Tracks; N Isolation Tracks; Entries', xbins=10, xmin=0, xmax=10)
46 
47  monTool.defineHistogram('dRAccepted', path='EXPERT', type='TH1F', title='Accepted Tau Maximum #DeltaR(Tau, Tracks); Maximum #DeltaR(Tau, Tracks); Entries', xbins=40, xmin=0, xmax=0.4)
48  monTool.defineHistogram('massTrkSysAccepted', path='EXPERT', type='TH1F', title='Accepted Tau Di-pion system Mass; m_{#pi#pi} [GeV]; Entries', xbins=50, xmin=0, xmax=3)
49  monTool.defineHistogram('massTrkSysKaonAccepted', path='EXPERT', type='TH1F', title='Accepted Tau Di-kaon system Mass; m_{KK} [GeV]; Entries', xbins=50, xmin=0, xmax=3)
50  monTool.defineHistogram('massTrkSysKaonPiAccepted', path='EXPERT', type='TH1F', title='Accepted Tau Kaon+Pion system Mass; m_{K#pi} [GeV]; Entries', xbins=50, xmin=0, xmax=3)
51  monTool.defineHistogram('leadTrkPtAccepted', path='EXPERT', type='TH1F', title='Accepted Tau Leading Track p_{T}; Leading Track p_{T} [GeV]; Entries', xbins=50, xmin=0, xmax=300)
52  monTool.defineHistogram('etOverPtLeadTrkAccepted', path='EXPERT', type='TH1F', title='Accepted Tau (E_{T}^{EM} + E_{T}^{Had}) / p_{T}^{lead trk.}; (E_{T}^{EM} + E_{T}^{Had}) / p_{T}^{lead trk.}; Entries', xbins=50, xmin=0, xmax=5)
53  monTool.defineHistogram('EMOverTrkSysPAccepted', path='EXPERT', type='TH1F', title='Accepted Tau E_{T}^{EM} over Track system p_{T}; E_{T}^{EM} / p_{T}^{trk sys}; Entries', xbins=50, xmin=0, xmax=5)
54 
55  return monTool

◆ getTrigTauPrecisionIDHypoToolMonitoring()

def TrigTauHypoMonitoring.getTrigTauPrecisionIDHypoToolMonitoring (   flags,
str  name,
list[str tau_ids 
)

Definition at line 5 of file TrigTauHypoMonitoring.py.

5 def getTrigTauPrecisionIDHypoToolMonitoring(flags, name: str, tau_ids: list[str]):
6  monTool = GenericMonitoringTool(flags, f'MonTool_{name}')
7  monTool.HistPath = f'TrigTauRecMerged_TrigTauPrecisionIDHypo/{name}'
8 
9  # Define quantities to be monitored
10  monTool.defineHistogram('NInputTaus', path='EXPERT', type='TH1F', title='Input Taus (before selection); N Taus; Entries', xbins=10, xmin=0, xmax=10)
11 
12  labels = ['Initial', 'p_{T}', 'NTracks & NIsoTracks', 'ID']
13  monTool.defineHistogram('CutCounter', path='EXPERT', type='TH1I', title='Passed Tau cuts; Cut; Entries', xbins=len(labels), xmin=0, xmax=len(labels), xlabels=labels)
14 
15  monTool.defineHistogram('PtAccepted', path='EXPERT', type='TH1F', title='Accepted Tau p_{T}; p_{T} [GeV]; Entries', xbins=80, xmin=0, xmax=800)
16  monTool.defineHistogram('NTracksAccepted', path='EXPERT', type='TH1F', title='Accepted Tau Tracks; N Tracks; Entries', xbins=10, xmin=0, xmax=10)
17  monTool.defineHistogram('NIsoTracksAccepted', path='EXPERT', type='TH1F', title='Accepted Tau Isolation Tracks; N Isolation Tracks; Entries', xbins=10, xmin=0, xmax=10)
18 
19  for tau_id in tau_ids:
20  if tau_id in ['DeepSet', 'RNNLLP']: xbins, xmax = 40, 1
21  else: xbins, xmax = 100, 5
22 
23  monTool.defineHistogram(f'{tau_id}_TauJetScoreAccepted_0p', path='EXPERT', type='TH1F', title=f'Accepted 0-prong {tau_id} Tau ID score; Score; Entries', xbins=xbins, xmin=0, xmax=xmax)
24  monTool.defineHistogram(f'{tau_id}_TauJetScoreTransAccepted_0p', path='EXPERT', type='TH1F', title=f'Accepted 0-prong {tau_id} Tau ID transformed score; Transformed Signal Score; Entries', xbins=xbins, xmin=0, xmax=xmax)
25 
26  monTool.defineHistogram(f'{tau_id}_TauJetScoreAccepted_1p', path='EXPERT', type='TH1F', title=f'Accepted 1-prong {tau_id} Tau ID score; Score; Entries', xbins=xbins, xmin=0, xmax=xmax)
27  monTool.defineHistogram(f'{tau_id}_TauJetScoreTransAccepted_1p', path='EXPERT', type='TH1F', title=f'Accepted 1-prong {tau_id} Tau ID transformed score; Transformed Signal Score; Entries', xbins=xbins, xmin=0, xmax=xmax)
28 
29  monTool.defineHistogram(f'{tau_id}_TauJetScoreAccepted_mp', path='EXPERT', type='TH1F', title=f'Accepted multi-prong {tau_id} Tau ID score; Score; Entries', xbins=xbins, xmin=0, xmax=xmax)
30  monTool.defineHistogram(f'{tau_id}_TauJetScoreTransAccepted_mp', path='EXPERT', type='TH1F', title=f'Accepted multi-prong {tau_id} Tau ID transformed score; Transformed Signal Score; Entries', xbins=xbins, xmin=0, xmax=xmax)
31 
32  return monTool
33 
34 
GenericMonitoringTool
Definition: GenericMonitoringTool.h:53
TrigTauHypoMonitoring.getTrigTauPrecisionIDHypoToolMonitoring
def getTrigTauPrecisionIDHypoToolMonitoring(flags, str name, list[str] tau_ids)
Definition: TrigTauHypoMonitoring.py:5
TrigTauHypoMonitoring.getTrigTauPrecisionDiKaonHypoToolMonitoring
def getTrigTauPrecisionDiKaonHypoToolMonitoring(flags, str name)
Definition: TrigTauHypoMonitoring.py:35