ATLAS Offline Software
Functions
TrigBjetMonitoringConfig Namespace Reference

Functions

def TrigBjetBtagHypoToolMonitoring (flags, histPath)
 
def TrigBjetOnlineMonitoring (flags, name="TrigBjetOnlineMonitoring")
 

Function Documentation

◆ TrigBjetBtagHypoToolMonitoring()

def TrigBjetMonitoringConfig.TrigBjetBtagHypoToolMonitoring (   flags,
  histPath 
)

Definition at line 4 of file TrigBjetMonitoringConfig.py.

4 def TrigBjetBtagHypoToolMonitoring(flags, histPath):
5  montool = GenericMonitoringTool(flags, "MonTool", HistPath = histPath)
6  montool.defineHistogram('btag_pb', title=': Probability jets are B-jets', xbins=100, xmin=0, xmax=1, path='EXPERT', type='TH1F' )
7  montool.defineHistogram('btag_pc', title=': Probability jets are Charm-jets', xbins=100, xmin=0, xmax=1, path='EXPERT', type='TH1F' )
8  montool.defineHistogram('btag_pu', title=': Probability jets are Light-jets', xbins=100, xmin=0, xmax=1, path='EXPERT', type='TH1F' )
9  montool.defineHistogram('btag_llr', title=': Log(P_{b}/P_{light}), Likelihood Ratio between the B-jet and Light-flavour Jet Hypotheses', xbins=100, xmin=-10, xmax=50, path='EXPERT', type='TH1F' )
10  montool.defineHistogram('JetFitter_mass',
11  title='JetFitter: Invariant Mass of All Tracks Associated to Vertex',
12  path='EXPERT', type='TH1F', xbins=1000, xmin=0, xmax=20000)
13  montool.defineHistogram('JetFitter_energyFraction',
14  title='JetFitter: Fraction of Charged Jet Energy in Secondary Vertices',
15  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=1.1)
16  montool.defineHistogram('SV1_masssvx',
17  title='SV1: Invariant Mass of All Tracks Associated to Vertex',
18  path='EXPERT', type='TH1F', xbins=1000, xmin=0, xmax=10000)
19  montool.defineHistogram('SV1_efracsvx',
20  title='SV1: Ratio of Energy in Vertex Tracks to All Tracks in Jet ',
21  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=1.1)
22  # hypo stage histogram
23  montool.defineHistogram(
24  'stage',
25  title="Bjet hypothesis result",
26  xbins=4,
27  xlabels=['no beamspot', 'no primary vertex', 'fail', 'pass'],
28  path='EXPERT',
29  )
30 
31  return montool
32 
33 

◆ TrigBjetOnlineMonitoring()

def TrigBjetMonitoringConfig.TrigBjetOnlineMonitoring (   flags,
  name = "TrigBjetOnlineMonitoring" 
)

Definition at line 34 of file TrigBjetMonitoringConfig.py.

34 def TrigBjetOnlineMonitoring(flags, name="TrigBjetOnlineMonitoring"):
35 
36  def make_flavor_hists(montool, tagger):
37  montool.defineHistogram('btag_'+tagger+'_pb', title=tagger+': Probability jets are B-jets', type='TH1F', path='EXPERT', xbins=100, xmin=0, xmax=1)
38  montool.defineHistogram('btag_'+tagger+'_pc', title=tagger+': Probability jets are Charm-jets', type='TH1F', path='EXPERT', xbins=100, xmin=0, xmax=1)
39  montool.defineHistogram('btag_'+tagger+'_pu', title=tagger+': Probability jets are Light-jets', type='TH1F', path='EXPERT', xbins=100, xmin=0, xmax=1)
40  montool.defineHistogram('btag_'+tagger+'_llr', title=tagger+': Log(P_{b}/P_{light}), Likelihood Ratio between the B-jet and Light-flavour Jet Hypotheses', type='TH1F', path='EXPERT', xbins=100, xmin=-10, xmax=50)
41 
42  def make_b_flavor_hists(montool, tagger):
43  montool.defineHistogram('bbtag_'+tagger+'_pb', title=tagger+': Probability jets are B-jets', type='TH1F', path='EXPERT', xbins=100, xmin=0, xmax=1)
44  montool.defineHistogram('bbtag_'+tagger+'_pbb', title=tagger+': Probability jets are BB-jets', type='TH1F', path='EXPERT', xbins=100, xmin=0, xmax=1)
45 
46 
47  montool = GenericMonitoringTool(flags, name, HistPath = name)
48  default_bin_count = 100
49 
50  # Event Histograms
51  montool.defineHistogram('track_count', title="Number of Tracks per Trigger Decision", xbins = 100, xmin=0, xmax=100, path='EXPERT', type='TH1I')
52  montool.defineHistogram('jet_count', title="Number of Jets Considered for B-Tagging", xbins = 20, xmin=0, xmax=20, path='EXPERT', type='TH1I')
53  montool.defineHistogram('vertex_count', title="Number of Primary Vertex Candidates per Event", xbins = 200, xmin=0, xmax=200, path='EXPERT', type='TH1I')
54 
55  # Primary Vertex Histogram
56  montool.defineHistogram('primVtx_x', title="Primary Vertex X", xbins = default_bin_count, xmin=-2, xmax=2, path='EXPERT', type='TH1F')
57  montool.defineHistogram('primVtx_y', title="Primary Vertex Y", xbins = default_bin_count, xmin=-2, xmax=2, path='EXPERT', type='TH1F')
58  montool.defineHistogram('primVtx_z', title="Primary Vertex Z", xbins = default_bin_count, xmin=-300, xmax=300, path='EXPERT', type='TH1F')
59 
60 
61  montool.defineHistogram('track_Et', title="Track Transverse Energy;E_{T} (GeV)", xbins = default_bin_count, xmin=0, xmax=200, path='EXPERT', type='TH1F')
62  montool.defineHistogram('track_eta', title="Track #eta;#eta", xbins = default_bin_count, xmin=-5, xmax=5, path='EXPERT', type='TH1F')
63  montool.defineHistogram('track_phi', title="Track #phi;#phi", xbins = default_bin_count, xmin=-3.5, xmax=3.5, path='EXPERT', type='TH1F')
64  montool.defineHistogram('track_eta,track_phi', path='EXPERT', type='TH2F', title="Track #eta vs #phi;#eta;#phi",
65  xbins = default_bin_count, xmin=-5, xmax=5, ybins = default_bin_count, ymin=-4, ymax=4)
66  montool.defineHistogram('track_d0', title="Track d_{0};d_{0} (mm)", xbins = default_bin_count, xmin=-5, xmax=5, path='EXPERT', type='TH1F')
67  montool.defineHistogram('track_d0err', title="Track d_{0} Error;d_{0} Error (mm)", xbins = default_bin_count, xmin=0, xmax=10, path='EXPERT', type='TH1F')
68  montool.defineHistogram('track_d0sig', title="Track d_{0} Significance;d_{0} #sigma", xbins = default_bin_count, xmin=-100, xmax=100, path='EXPERT', type='TH1F')
69  montool.defineHistogram('track_z0', title="Track z_{0};z_{0} (mm)", xbins = default_bin_count, xmin=-200, xmax=200, path='EXPERT', type='TH1F')
70  montool.defineHistogram('track_z0err', title="Track z_{0} Error;z_{0} Error (mm)", xbins = default_bin_count, xmin=0, xmax=10, path='EXPERT', type='TH1F')
71  montool.defineHistogram('track_z0sig', title="Track z_{0} Significance;z_{0} #sigma", xbins = default_bin_count, xmin=-1000, xmax=1000, path='EXPERT', type='TH1F')
72 
73  # Jet Histograms
74  montool.defineHistogram('jet_pt', title="Jet Transverse Momentum;p_{T} (GeV)", xbins = default_bin_count, xmin=0, xmax=1000, path='EXPERT', type='TH1F')
75  montool.defineHistogram('jet_eta', title="Jet #eta;#eta", xbins = default_bin_count, xmin=-5, xmax=5, path='EXPERT', type='TH1F')
76  montool.defineHistogram('jet_phi', title="Jet #phi;#phi", xbins = default_bin_count, xmin=-3.5, xmax=3.5, path='EXPERT', type='TH1F')
77  montool.defineHistogram('jet_eta,jet_phi', path='EXPERT', type='TH2F', title="Jet #eta vs #phi;#eta;#phi",
78  xbins = default_bin_count, xmin=-5, xmax=5, ybins = default_bin_count, ymin=-4, ymax=4)
79 
80  montool.defineHistogram('Bjet_pt', title="B-Tagged Jet Transverse Momentum;p_{T} (GeV)", xbins = default_bin_count, xmin=0, xmax=1000, path='EXPERT', type='TH1F')
81  montool.defineHistogram('Bjet_eta', title="B-Tagged Jet #eta;#eta", xbins = default_bin_count, xmin=-5, xmax=5, path='EXPERT', type='TH1F')
82  montool.defineHistogram('Bjet_phi', title="B-Tagged Jet #phi;#phi", xbins = default_bin_count, xmin=-3.5, xmax=3.5, path='EXPERT', type='TH1F')
83  montool.defineHistogram('Bjet_eta,Bjet_phi', path='EXPERT', type='TH2F', title="B-Tagged Jet #eta vs #phi;#eta;#phi",
84  xbins = default_bin_count, xmin=-5, xmax=5, ybins = default_bin_count, ymin=-4, ymax=4)
85 
86  montool.defineHistogram('jet_bjet_delta_pt', title="Transverse Momentum Difference Between Jet and B-Tagged Jet;#Delta p_{T} (GeV)", xbins = default_bin_count, xmin=0, xmax=1000, path='EXPERT', type='TH1F')
87  montool.defineHistogram('jet_bjet_delta_eta', title="#eta Difference Between Jet and B-Tagged Jet;#Delta #eta", xbins = default_bin_count, xmin=-5, xmax=5, path='EXPERT', type='TH1F')
88  montool.defineHistogram('jet_bjet_delta_phi', title="#phi Difference Between Jet and B-Tagged Jet;#phi", xbins = default_bin_count, xmin=-3.5, xmax=3.5, path='EXPERT', type='TH1F')
89  montool.defineHistogram('jet_bjet_delta_eta,jet_phi', path='EXPERT', type='TH2F', title="#Delta #eta vs #Delta #phi for Jet and B-Tagged Jet;#Delta #eta;#Delta #phi",
90  xbins = default_bin_count, xmin=-5, xmax=5, ybins = default_bin_count, ymin=-4, ymax=4)
91 
92 
93  # B-Tagging Histograms
94  for tagger in ['DL1d20211216', 'dips20211116', 'GN120220813','GN220240122']: make_flavor_hists(montool, tagger)
95  for tagger in []: make_b_flavor_hists(montool, tagger)
96 
97 
98  montool.defineHistogram('JetFitter_N2Tpair',
99  title='JetFitter: Number of 2-Track Pairs',
100  path='EXPERT', type='TH1I', xbins=100, xmin=0, xmax=100)
101  montool.defineHistogram('JetFitter_nVTX',
102  title='JetFitter: Number of Vertices Used',
103  path='EXPERT', type='TH1I', xbins=50, xmin=0, xmax=50)
104  montool.defineHistogram('JetFitter_nSingleTracks',
105  title='JetFitter: Number of Single Tracks',
106  path='EXPERT', type='TH1I', xbins=50, xmin=0, xmax=50)
107  montool.defineHistogram('JetFitter_nTracksAtVtx',
108  title='JetFitter: Number of Tracks Associated with Vertex',
109  path='EXPERT', type='TH1I', xbins=50, xmin=0, xmax=50)
110  montool.defineHistogram('JetFitter_mass',
111  title='JetFitter: Invariant Mass of All Tracks Associated to Vertex',
112  path='EXPERT', type='TH1F', xbins=1000, xmin=0, xmax=20000)
113  montool.defineHistogram('JetFitter_energyFraction',
114  title='JetFitter: Fraction of Charged Jet Energy in Secondary Vertices',
115  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=1.1)
116  montool.defineHistogram('JetFitter_significance3d',
117  title='JetFitter: Significance-3D',
118  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=100)
119  montool.defineHistogram('JetFitter_deltaeta',
120  title='JetFitter: #Delta #eta Between Jet and Track Momentum Sum',
121  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=2)
122  montool.defineHistogram('JetFitter_deltaphi',
123  title='JetFitter: #Delta #phi Between Jet and Track Momentum Sum',
124  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=2)
125  montool.defineHistogram('JetFitter_isDefaults',
126  title='JetFitter: Fraction of Defaulted Jets; 1 -> Jet Has Defaulted, 0 -> Jet is Valid',
127  path='EXPERT', type='TH1I', xbins=2, xmin=0, xmax=2)
128  montool.defineHistogram('JetFitter_deltaR',
129  title='JetFitter: #Delta R Between Jet and Track Momentum Sum',
130  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=2)
131 
132  montool.defineHistogram('SV1_NGTinSvx',
133  title='SV1: Number of "Good" Tracks in Vertex',
134  path='EXPERT', type='TH1I', xbins=100, xmin=0, xmax=100)
135  montool.defineHistogram('SV1_masssvx',
136  title='SV1: Invariant Mass of All Tracks Associated to Vertex',
137  path='EXPERT', type='TH1F', xbins=1000, xmin=0, xmax=10000)
138  montool.defineHistogram('SV1_isDefaults',
139  title='SV1: Fraction of Defaulted Jets; 1 -> Jet Has Defaulted, 0 -> Jet is Valid',
140  path='EXPERT', type='TH1I', xbins=2, xmin=0, xmax=2)
141  montool.defineHistogram('SV1_N2Tpair',
142  title='SV1: Number of 2-Track Pairs',
143  path='EXPERT', type='TH1I', xbins=50, xmin=0, xmax=50)
144  montool.defineHistogram('SV1_efracsvx',
145  title='SV1: Ratio of Energy in Vertex Tracks to All Tracks in Jet ',
146  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=1.1)
147  montool.defineHistogram('SV1_deltaR',
148  title='SV1: #Delta R Between Jet and Track Momentum Sum',
149  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=2)
150  montool.defineHistogram('SV1_Lxy',
151  title='SV1: Transverse Distance Between Primary and Secondary Vertices',
152  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=100)
153  montool.defineHistogram('SV1_L3d',
154  title='SV1: Total Distance Between Primary and Secondary Vertices',
155  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=100)
156  montool.defineHistogram('SV1_significance3d',
157  title='SV1: Significance-3D',
158  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=50)
159 
160  montool.defineHistogram('IP2D_isDefaults',
161  title='IP2D_isDefaults',
162  path='EXPERT', type='TH1I', xbins=2, xmin=0, xmax=2)
163  montool.defineHistogram('IP2D_bu',
164  title='IP2D: Log(P_{b}/P_{light}), Likelihood ratio between the b-jet and light-flavour jet hypotheses',
165  path='EXPERT', type='TH1F', xbins=100, xmin=-10, xmax=50)
166  montool.defineHistogram('IP2D_bc',
167  title='IP2D: Log(P_{b}/P_{c}), Likelihood ratio between the b-jet and c-jet hypotheses',
168  path='EXPERT', type='TH1F', xbins=100, xmin=-10, xmax=50)
169  montool.defineHistogram('IP2D_cu',
170  title='IP2D: Log(P_{c}/P_{light}), Likelihood ratio between the c-jet and light-flavour jet hypotheses',
171  path='EXPERT', type='TH1F', xbins=100, xmin=-10, xmax=50)
172 
173  montool.defineHistogram('JetFitterSecondaryVertex_nTracks',
174  title='JFSV: Number of Tracks',
175  path='EXPERT', type='TH1I', xbins=50, xmin=0, xmax=50)
176  montool.defineHistogram('JetFitterSecondaryVertex_isDefaults',
177  title='JFSV: Fraction of Defaulted Jets; 1 -> Jet Has Defaulted, 0 -> Jet is Valid',
178  path='EXPERT', type='TH1I', xbins=2, xmin=0, xmax=2)
179  montool.defineHistogram('JetFitterSecondaryVertex_mass',
180  title='JFSV: Invariant Mass of All Tracks Associated to Vertex',
181  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=1e4)
182  montool.defineHistogram('JetFitterSecondaryVertex_energy',
183  title='JFSV: Energy of All Tracks Associated to Vertex',
184  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=1e6)
185  montool.defineHistogram('JetFitterSecondaryVertex_energyFraction',
186  title='JFSV: Fraction of Charged Jet Energy in Secondary Vertices',
187  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=1.1)
188  montool.defineHistogram('JetFitterSecondaryVertex_displacement3d',
189  title='JFSV: Total Distance Between Primary and Secondary Vertices',
190  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=500)
191  montool.defineHistogram('JetFitterSecondaryVertex_displacement2d',
192  title='JFSV: Transverse Distance Between Primary and Secondary Vertices',
193  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=500)
194  montool.defineHistogram('JetFitterSecondaryVertex_maximumTrackRelativeEta',
195  title='JFSV: Max #eta Between Track and Jet for Tracks from the SV',
196  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=8)
197  montool.defineHistogram('JetFitterSecondaryVertex_minimumTrackRelativeEta',
198  title='JFSV: Min #eta Between Track and Jet Vector for Tracks from the SV',
199  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=8)
200  montool.defineHistogram('JetFitterSecondaryVertex_averageTrackRelativeEta',
201  title='JFSV: Average #eta Between Track and Jet Vector for Tracks from the SV',
202  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=8)
203  montool.defineHistogram('JetFitterSecondaryVertex_maximumAllJetTrackRelativeEta',
204  title='JFSV: Maximum #eta Between Track and Jet Vector for All Tracks from the Jet',
205  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=8)
206  montool.defineHistogram('JetFitterSecondaryVertex_minimumAllJetTrackRelativeEta',
207  title='JFSV: Minimum #eta Between Track and Jet Vector for All Tracks from the Jet',
208  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=8)
209  montool.defineHistogram('JetFitterSecondaryVertex_averageAllJetTrackRelativeEta',
210  title='JFSV: Average #eta Between Track and Jet Vector for All Tracks from the Jet',
211  path='EXPERT', type='TH1F', xbins=100, xmin=0, xmax=8)
212 
213  return montool
TrigBjetMonitoringConfig.TrigBjetOnlineMonitoring
def TrigBjetOnlineMonitoring(flags, name="TrigBjetOnlineMonitoring")
Definition: TrigBjetMonitoringConfig.py:34
GenericMonitoringTool
Definition: GenericMonitoringTool.h:53
TrigBjetMonitoringConfig.TrigBjetBtagHypoToolMonitoring
def TrigBjetBtagHypoToolMonitoring(flags, histPath)
Definition: TrigBjetMonitoringConfig.py:4