7def TrigVrtSecInclusiveMonitoring(flags, name):
8
9 def addTrackPairHistograms(montool):
10 montool.defineHistogram('pair_dphi', path='EXPERT',type='TH1F',title="Delta phi of track pair", xbins = 132, xmin=-0.1, xmax=3.2)
11 montool.defineHistogram('pair_dr', path='EXPERT',type='TH1F',title="Delta r of track pair", xbins = 132, xmin=-0.1, xmax=3.2)
12 montool.defineHistogram('intersect_r', path='EXPERT',type='TH1F',title="R of two circles intersections (mm)", xbins = 200, xmin=0, xmax=600)
13 montool.defineHistogram('init_r', path='EXPERT',type='TH1F',title="R of initial vertex (mm)", xbins = 200, xmin=0, xmax=600)
14 montool.defineHistogram('init_trkd0', path='EXPERT',type='TH1F',title="Trk d0 wrt initial vertex", xbins = 200, xmin=0, xmax=200)
15 montool.defineHistogram('init_trkz0', path='EXPERT',type='TH1F',title="Trk z0 wrt initial vertex", xbins = 100, xmin=0, xmax=100)
16 montool.defineHistogram('vtxfit_chi2', path='EXPERT',type='TH1F',title="Chi2 of fitted vertex", xbins = 100, xmin=0, xmax=5)
17 montool.defineHistogram('vtxfit_r', path='EXPERT',type='TH1F',title="R of fitted vertex (mm)", xbins = 200, xmin=0, xmax=600)
18 montool.defineHistogram('vtx_chi2', path='EXPERT',type='TH1F',title="Chi2 of vertex", xbins = 100, xmin=0, xmax=5)
19 montool.defineHistogram('vtx_mass', path='EXPERT',type='TH1F',title="Mass of vertex (GeV)", xbins = 200, xmin=0, xmax=5)
20 montool.defineHistogram('vtx_mass_high', path='EXPERT',type='TH1F',title="Mass of vertex (GeV, high)", xbins = 200, xmin=0, xmax=100)
21 montool.defineHistogram('vtx_pt', path='EXPERT',type='TH1F',title="Pt of vertex (GeV)", xbins = 100, xmin=0, xmax=100)
22 montool.defineHistogram('vtx_charge', path='EXPERT',type='TH1F',title="Charge of vertex", xbins = 5, xmin=-2.5,xmax=2.5)
23 montool.defineHistogram('vtx_r', path='EXPERT',type='TH1F',title="R of vertex (mm)", xbins = 200, xmin=0, xmax=600)
24
25 def addTimingHistograms(montool):
26 montool.defineHistogram('TIME_TrackSel', path='EXPERT',type='TH1F',title="Track selection time (ns)", xbins = 200, xmin=0.0, xmax=1000.0)
27 montool.defineHistogram('TIME_TwoTrackVertex', path='EXPERT',type='TH1F',title="Two track vertexing time (ms)", xbins = 200, xmin=0.0, xmax=1000.0)
28 montool.defineHistogram('TIME_MapClustering', path='EXPERT',type='TH1F',title="Time spent in vertex map clustering (us)", xbins = 200, xmin=0.0, xmax=10000.0)
29 montool.defineHistogram('TIME_NTrackVertex', path='EXPERT',type='TH1F',title="Time spent in Ntrack vertexing (ms)", xbins = 200, xmin=0.0, xmax=50.0)
30 montool.defineHistogram('TIME_NTrackVtxOffVSI',path='EXPERT',type='TH1F',title="Time spent in Ntrack vertexing (ms)", xbins = 200, xmin=0.0, xmax=1000.0)
31 montool.defineHistogram('TIME_CleanUp', path='EXPERT',type='TH1F',title="Time spent in vertex cleaning (ns)", xbins = 200, xmin=0.0, xmax=10000.0)
32 montool.defineHistogram('TIME_WriteVertices', path='EXPERT',type='TH1F',title="Time spent in writing vertex out (us)", xbins = 200, xmin=0.0, xmax=100.0)
33 montool.defineHistogram('TIME_Overall', path='EXPERT',type='TH1F',title="Time spent over all vertexing (ms)", xbins = 200, xmin=0.0, xmax=1000.0)
34
35 montool.defineHistogram('TIME_TwoCircIntsect', path='EXPERT',type='TH1F',title="Two circles intersection time (ns) / Di-track vertexing", xbins = 200, xmin=0.0, xmax=1000.0)
36 montool.defineHistogram('TIME_VrtFitFast', path='EXPERT',type='TH1F',title="Two track vertexing fast time (ns) / Di-track vertexing", xbins = 200, xmin=0.0, xmax=10000.0)
37 montool.defineHistogram('TIME_VrtFit', path='EXPERT',type='TH1F',title="Two track vertexing time (us) / Di-track vertexing", xbins = 200, xmin=0.0, xmax=2000.0)
38
39 montool.defineHistogram('TIME_RetrvFromMap', path='EXPERT',type='TH1F',title="Time spent in track list retrieving from the map (ns) / N-track vertexing", xbins = 200, xmin=0.0, xmax=10000.0)
40 montool.defineHistogram('TIME_MergeParGraph', path='EXPERT',type='TH1F',title="Time spent in vertex merging using partial graph (us) / N-track vertexing", xbins = 200, xmin=0.0, xmax=1000.0)
41 montool.defineHistogram('TIME_MergeSimple', path='EXPERT',type='TH1F',title="Time spent in simple vertex merging (us) / N-track vertexing", xbins = 200, xmin=0.0, xmax=1000.0)
42
43
45 addTrackPairHistograms(montool)
46 addTimingHistograms(montool)
47
48 return montool
49