15 '''Function to configures some algorithms in the monitoring system.'''
18 m_useBeamspot = useBeamSpot
20 m_vxContainerWithBeamConstraint =
False
23 bsGroup = helper.addGroup(alg,
'BeamSpot')
24 pathbs =
'/InDetGlobal/BeamSpot'
27 varName =
'm_trkD0Phi,m_trkD0;trkDPhi'
28 bsGroup.defineHistogram(varName,type=
"TH2F",title=
"DCA vs Phi; #varphi (rad);d_{0} (#mum)", path=pathbs, xbins=100, xmin=-3.5, xmax=3.5, ybins=100, ymin=-1000, ymax=1000)
29 varName =
'm_trkD0;trkD0'
30 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"DCA; d_{0} (#mum)",path=pathbs,xbins=100,xmin=-500,xmax=500)
33 varName =
'm_trkPt;trkPt'
34 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Track Pt;p_{T} (GeV)",path=pathbs,xbins=100,xmin=0,xmax=20)
35 varName =
'm_trkNPt;trkNPt'
36 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Number of Tracks per event (after p_{T} cut);Number of tracks", path=pathbs, xbins=100, xmin=0, xmax=1000)
40 varName =
'm_trkD0PhiCorr,m_trkD0Corr;trkDPhiCorr'
41 bsGroup.defineHistogram(varName,type=
"TH2F",title=
"DCA vs Phi wrt Beamspot;#varphi (rad);d_{0} (#mum)",path=pathbs,xbins=100, xmin=-3.5,xmax=3.5, ybins=100, ymin=-500,ymax=500)
42 varName =
'm_trkD0Corr;trkD0Corr'
43 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"DCA; d_{0} (#mum)",path=pathbs,xbins=100,xmin=-500,xmax=500)
45 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Beam spot position: x;x (mm)",path=pathbs,xbins=100,xmin=-10,xmax=10)
47 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Beam spot position: y;y (mm)",path=pathbs,xbins=100,xmin=-10,xmax=10)
49 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Beam spot position: z;z (mm)",path=pathbs,xbins=100,xmin=-500,xmax=500)
50 varName =
'm_bsTiltX;bsTiltX'
51 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Beam spot tile angle: x-z plane; Tilt angle (#murad)",path=pathbs,xbins=100,xmin=-1e3,xmax=1e3)
52 varName =
'm_bsTiltY;bsTiltY'
53 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Beam spot tile angle: y-z plane; Tilt angle (#murad)",path=pathbs,xbins=100,xmin=-1e3,xmax=1e3)
56 if (
not m_vxContainerWithBeamConstraint):
59 varName =
'm_pvXbeam;pvX'
60 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Primary vertex: x - x_{beam};x-x_{beam} (#mum)",path=pathbs,xbins=100,xmin=-200,xmax=200)
61 varName =
'm_pvYbeam;pvY'
62 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Primary vertex: y - y_{beam};y-y_{beam} (#mum)",path=pathbs,xbins=100,xmin=-200,xmax=200)
63 varName =
'm_pvZbeam;pvZ'
64 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Primary vertex: z - z_{beam};z-z_{beam} (#mum)",path=pathbs,xbins=100,xmin=-500,xmax=500)
66 varName =
'm_pvXbeam;pvX'
67 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Primary vertex: x;x (mm)",path=pathbs,xbins=100,xmin=-2,xmax=2)
68 varName =
'm_pvYbeam;pvY'
69 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Primary vertex: y;y (mm)",path=pathbs,xbins=100,xmin=-2,xmax=2)
70 varName =
'm_pvZbeam;pvZ'
71 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Primary vertex: z;z (mm)",path=pathbs,xbins=100,xmin=-500,xmax=500)
75 varName =
'm_pvZ,m_pvX;pvXZ'
76 bsGroup.defineHistogram(varName, type=
"TH2F", title=
"Primary vertex: x vs z;z (mm);x (mm)", path=pathbs, xbins=100, xmin=-500, xmax=500, ybins=100, ymin=-10, ymax=10)
77 varName =
'm_pvZ,m_pvY;pvYZ'
78 bsGroup.defineHistogram(varName, type=
"TH2F", title=
"Primary vertex: y vs z;z (mm);y (mm)", path=pathbs, xbins=100, xmin=-500, xmax=500, ybins=100, ymin=-10,ymax=10)
79 varName =
'm_pvX,m_pvY;pvYX'
80 bsGroup.defineHistogram(varName, type=
"TH2F", title=
"Primary vertex: y vs x;x (mm);y (mm)", path=pathbs, xbins=100, xmin=-10, xmax=10, ybins=100, ymin=-10, ymax=10)
81 varName =
'm_pvChiSqDof;pvChiSqDof'
82 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"",path=pathbs,xbins=100,xmin=0,xmax=20)
86 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Number of primary vertices;Number of vertices", path=pathbs, xbins=100,xmin=0,xmax=100)
87 varName =
'm_pvNPriVtx;pvNPriVtx'
88 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Number of primary vertices;Number of vertices", path=pathbs, xbins=3,xmin=0,xmax=3)
89 varName =
'm_pvNPileupVtx;pvNPileupVtx'
90 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Number of pileup vertices;Number of vertices", path=pathbs, xbins=100,xmin=0,xmax=100)
91 varName =
'm_pvErrX;pvErrX'
92 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Primary vertex: #sigma_{x}; #sigma_{x} (mm)",path=pathbs,xbins=100,xmin=0,xmax=0.5)
93 varName =
'm_pvErrY;pvErrY'
94 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Primary vertex: #sigma_{y}; #sigma_{y} (mm)",path=pathbs,xbins=100,xmin=0,xmax=0.5)
95 varName =
'm_pvErrZ;pvErrZ'
96 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Primary vertex: #sigma_{z}; #sigma_{z} (mm)",path=pathbs,xbins=100,xmin=0,xmax=0.5)
97 varName =
'm_pvNTracks;pvNTracks'
98 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Number of tracks in primary vertex;Number of tracks",path=pathbs,xbins=100,xmin=0,xmax=500)
99 varName =
'm_pvTrackPt;pvTrackPt'
100 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Primary vertex: original track p_{t};p_{t} (GeV)",path=pathbs,xbins=100,xmin=0,xmax=20)
101 varName =
'm_pvTrackEta;pvTrackEta'
102 bsGroup.defineHistogram(varName, type=
"TH1F", title=
"Primary vertex: original track #eta; #eta",path=pathbs,xbins=100,xmin=-3,xmax=3)