3 from AthenaMonitoringKernel.GenericMonitoringTool
import GenericMonitoringTool
7 monTool.HistPath = f
'TrigTauRecMerged_TrigTauPrecisionIDHypo/{name}'
10 monTool.defineHistogram(
'NInputTaus', path=
'EXPERT', type=
'TH1F', title=
'Input Taus (before selection); N Taus; Entries', xbins=10, xmin=0, xmax=10)
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)
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)
19 for tau_id
in tau_ids:
20 if tau_id
in [
'DeepSet',
'RNNLLP']: xbins, xmax = 40, 1
21 else: xbins, xmax = 100, 5
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)
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)
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)
37 monTool.HistPath =
'ComboHypo/' + name.replace(
'leg001_',
'')
41 monTool.defineHistogram(
'NInputTaus', path=
'EXPERT', type=
'TH1F', title=
'Input Taus (before selection); N Taus; Entries', xbins=10, xmin=0, xmax=10)
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)
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)