6 @file IDAlignMonGenericTracksAlgCfg.py
9 @brief Configuration for Run 3 based on IDAlignMonGenericTracks.cxx
12 from math
import pi
as M_PI
30 m_EtaModulesPix = [20, 13, 13, 13]
31 m_EtaModulesMinPix = [-10.5, -6.5, -6.5, -6.5]
32 m_EtaModulesMaxPix = [9.5, 6.5, 6.5, 6.5]
33 m_PhiModules = [14, 22, 38, 52]
34 m_PhiModulesPerRing = 48
36 m_PhiModulesSCTEC = 52
38 m_EtaModulesMinSCT = -6.5
39 m_EtaModulesMaxSCT = 6.5
42 folderName =
"ExtendedTracks"
43 if "TrackName" in kwargs:
44 folderName = kwargs[
"TrackName"]
47 genericTrackGroup = helper.addGroup(alg,
'IDA_Tracks')
48 pathtrack =
'/IDAlignMon/'+folderName+
'/GenericTracks'
51 varName =
'm_beamSpotX,m_beamSpotY;YBs_vs_XBs'
52 title =
'BeamSpot Position: y vs x; x_{BS} [mm]; y_{BS} [mm]'
53 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=100, xmin=-0.9, xmax=-0.1, ybins=100, ymin=-0.8, ymax=-0.1)
55 varName =
'm_beamSpotZ,m_beamSpotY;YBs_vs_ZBs'
56 title =
'BeamSpot Position: y vs z; z_{BS} [mm]; y_{BS} [mm]'
57 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=100, xmin= -m_z0Range, xmax= m_z0Range, ybins=100, ymin=-0.8, ymax=-0.1)
59 varName =
'm_beamSpotX,m_beamSpotZ;XBs_vs_ZBs'
60 title =
'BeamSpot Position: x vs z; z_{BS} [mm]; x_{BS} [mm]'
61 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=100, xmin= -m_z0Range, xmax= m_z0Range, ybins=100, ymin=-0.8, ymax=-0.1)
63 varName =
'm_lb,m_beamSpotY;YBs_vs_LumiBlock'
64 title =
'Y BeamSpot position: y vs lumiblock; LumiBlock; y_{BS} [mm]'
65 genericTrackGroup.defineHistogram(varName, type=
'TProfile', path=pathtrack, title=title, xbins=1024, xmin=-0.5, xmax=1023.5, ybins=100, ymin=-0.8, ymax=-0.1)
67 varName =
'm_lb,m_beamSpotX;XBs_vs_LumiBlock'
68 title =
'X BeamSpot position: x vs lumiblock; LumiBlock; x_{BS} [mm]'
69 genericTrackGroup.defineHistogram(varName, type=
'TProfile', path=pathtrack, title=title, xbins=1024, xmin=-0.5, xmax=1023.5, ybins=100, ymin=-0.8, ymax=-0.1)
72 varName =
'm_ngTracks;NTracksPerEvent'
73 title =
'Number of good tracks per event; Tracks; Events'
74 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_NTracksRange+1, xmin=-0.5, xmax=m_NTracksRange +0.5)
76 varName =
'm_mu;mu_perEvent'
77 title =
'#LT#mu#GT average interactions per crossing;#LT#mu#GT;Events'
78 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=101, xmin=-0.5, xmax= 100.5)
80 varName =
'm_lb;LumiBlock'
81 title =
'Lumiblock of the events;Lumiblock;Events'
82 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=1024, xmin=-0.5, xmax=1023.5)
85 varName =
'm_lb_track;NTracksPerLumiBlock'
86 title =
'Tracks Per LumiBlock;Lumiblock;Tracks'
87 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=1024, xmin=-0.5, xmax=1023.5)
91 varName =
'm_nhits_per_track;Nhits_per_track'
92 title =
'Number of hits per track;Hits;Tracks'
93 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangePixHits + m_rangeSCTHits + m_rangeTRTHits + 1, xmin=-0.5, xmax=m_rangePixHits + m_rangeSCTHits + m_rangeTRTHits + 0.5)
95 varName =
'm_npixelhits_per_track;Npixhits_per_track'
96 title =
'Number of PIXEL (PIX+IBL) hits per track;Pixel hits (PIX+IBL);Tracks'
97 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangePixHits+1, xmin=-0.5, xmax=m_rangePixHits +0.5)
99 varName =
'm_npixelhits_per_track_barrel;Npixhits_per_track_barrel'
100 title =
'Number of PIXEL (PIX+IBL) hits per track (Barrel);Pixel hits in Barrel (PIX+IBL);Tracks'
101 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangePixHits+1, xmin=-0.5, xmax=m_rangePixHits +0.5)
103 varName =
'm_npixelhits_per_track_eca;Npixhits_per_track_eca'
104 title =
'Number of PIXEL (PIX+IBL) hits per track (ECA);Pixel hits in EndCap A;Tracks'
105 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangePixHits+1, xmin=-0.5, xmax=m_rangePixHits +0.5)
107 varName =
'm_npixelhits_per_track_ecc;Npixhits_per_track_ecc'
108 title =
'Number of PIXEL (PIX+IBL) hits per track (ECC);Pixel hits in EndCap C;Tracks'
109 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangePixHits+1, xmin=-0.5, xmax=m_rangePixHits +0.5)
111 varName =
'm_nscthits_per_track;Nscthits_per_track'
112 title =
'Number of SCT hits per track;SCT hits;Tracks'
113 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangeSCTHits+1, xmin=-0.5, xmax=m_rangeSCTHits +0.5)
115 varName =
'm_nscthits_per_track_barrel;Nscthits_per_track_barrel'
116 title =
'Number of SCT hits per track (Barrel);SCT hits in Barrel;Tracks'
117 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangeSCTHits+1, xmin=-0.5, xmax=m_rangeSCTHits +0.5)
119 varName =
'm_nscthits_per_track_eca;Nscthits_per_track_eca'
120 title =
'Number of SCT hits per track (ECA);SCT hits in EndCap A;Tracks'
121 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangeSCTHits+1, xmin=-0.5, xmax=m_rangeSCTHits +0.5)
123 varName =
'm_nscthits_per_track_ecc;Nscthits_per_track_ecc'
124 title =
'Number of SCT hits per track (ECC);SCT hits in EndCap C;Tracks'
125 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangeSCTHits+1, xmin=-0.5, xmax=m_rangeSCTHits +0.5)
127 varName =
'm_ntrthits_per_track;Ntrthits_per_track'
128 title =
'Number of TRT hits per track;TRT hits;Tracks'
129 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangeTRTHits+1, xmin=-0.5, xmax=m_rangeTRTHits +0.5)
131 varName =
'm_ntrthits_per_track_barrel;Ntrthits_per_track_barrel'
132 title =
'Number of TRT hits per track (Barrel);TRT hits in Barrel;Tracks'
133 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangeTRTHits+1, xmin=-0.5, xmax=m_rangeTRTHits +0.5)
135 varName =
'm_ntrthits_per_track_eca;Ntrthits_per_track_eca'
136 title =
'Number of TRT hits per track (ECA);TRT hits in EndCap A;Tracks'
137 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangeTRTHits+1, xmin=-0.5, xmax=m_rangeTRTHits +0.5)
139 varName =
'm_ntrthits_per_track_ecc;Ntrthits_per_track_ecc'
140 title =
'Number of TRT hits per track (ECC);TRT hits in EndCap C;Tracks'
141 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_rangeTRTHits+1, xmin=-0.5, xmax=m_rangeTRTHits +0.5)
144 varName =
'm_eta,m_npixelhits_per_track;Npixhits_vs_eta'
145 title =
"Number of Pixel hits vs track #eta; Track #eta;Pixel hits (PIX+IBL)"
146 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=m_etaBins, xmin=-m_etaRange, xmax=m_etaRange, ybins=m_rangePixHits+1, ymin=-0.5, ymax=m_rangePixHits +0.5)
148 varName =
'm_eta,m_nscthits_per_track;Nscthits_vs_eta'
149 title =
"Number of SCT hits vs track #eta; Track #eta;SCT hits"
150 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=m_etaBins, xmin=-m_etaRange, xmax=m_etaRange, ybins=m_rangeSCTHits+1, ymin=-0.5, ymax=m_rangeSCTHits +0.5)
152 varName =
'm_eta,m_ntrthits_per_track;Ntrthits_vs_eta'
153 title =
"Number of TRT hits vs track #eta; Track #eta;TRT hits"
154 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=m_etaBins, xmin=-m_etaRange, xmax=m_etaRange, ybins=m_rangeTRTHits+1, ymin=-0.5, ymax=m_rangeTRTHits +0.5)
156 varName =
'm_chi2oDoF;chi2oDoF'
157 title =
'chi2oDoF;#chi^{2} / NDoF;Tracks'
158 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=50, xmin=0, xmax=5.)
161 varName =
'm_eta;eta'
162 title =
'#eta;Track #eta;Tracks'
163 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_etaBins, xmin=-m_etaRange, xmax=m_etaRange)
165 varName =
'm_errEta;err_Eta'
166 title =
'Track #eta error;Track #eta error;Tracks'
167 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=50, xmin=0, xmax=0.002)
169 varName =
'm_eta;eta_pos'
170 title =
'#eta for positive tracks;Track #eta(#plusq);Tracks'
171 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_etaBins, xmin=-m_etaRange, xmax=m_etaRange, cutmask=
'isTrkPositive')
173 varName =
'm_eta;eta_neg'
174 title =
'#eta for negative tracks;Track #eta(#minusq);Tracks'
175 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_etaBins, xmin=-m_etaRange, xmax=m_etaRange, cutmask=
'isTrkNegative')
177 varName =
'm_phi;phi'
178 title =
'Track #phi_{0};Track #phi_{0} [rad];Tracks'
179 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_phiBins, xmin=0, xmax= 2 * M_PI)
181 varName =
'm_errPhi;err_Phi'
182 title =
'Track #phi_{0} error;Track #phi_{0} error [rad];Tracks'
183 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=50, xmin=0, xmax= 0.002)
185 varName =
'm_z0;z0_origin'
186 title =
'z_{0} (computed vs origin); z_{0} (origin) [mm];Tracks'
187 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_d0BsNbins, xmin=-m_z0Range, xmax=m_z0Range)
189 varName =
'm_errZ0;err_z0'
190 title =
'z_{0} error; z_{0} error [mm];Tracks'
191 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=50, xmin=0, xmax=0.3)
193 varName =
'm_z0_bscorr;z0'
194 title =
'z_{0} (corrected for beamspot);z_{0} (BS) [mm]; Tracks'
195 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_d0BsNbins, xmin=-m_z0Range, xmax=m_z0Range)
197 varName =
'm_z0sintheta;z0sintheta'
198 title =
'z_{0}sin#theta; z_{0}sin#theta [mm];Tracks'
199 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_d0BsNbins, xmin=-m_z0Range, xmax=m_z0Range)
201 varName =
'm_d0;d0_origin'
202 title =
'd_{0} (computed vs origin);d_{0} (origin) [mm];Tracks'
203 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_d0BsNbins, xmin=-m_d0Range, xmax=m_d0Range)
205 varName =
'm_errD0;errD0'
206 title =
'd_{0} error;d_{0} error [mm]; Tracks'
207 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=60, xmin=0, xmax=0.05)
209 varName =
'm_d0_bscorr;d0_bscorr'
210 title =
'd_{0} (corrected for beamspot);d_{0} (BS) [mm]; Tracks'
211 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=m_d0BsNbins, xmin=-m_d0BsRange, xmax=m_d0BsRange)
214 title =
'Momentum p_{T};Signed Track p_{T} [GeV];Tracks'
215 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=200, xmin=-m_pTRange, xmax=m_pTRange)
217 varName =
'm_errPt;err_pT'
218 title =
'Momentum p_{T} error;p_{T} error [GeV];Tracks'
219 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=50, xmin=0., xmax=3.)
221 varName =
'm_pT,m_errPt;errpTvspT'
222 title =
'p_{T} error Vs p_{T};Signed Track p_{T} [GeV];p_{T} error [GeV]'
223 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=200, xmin=-m_pTRange, xmax=m_pTRange, ybins=50, ymin=0., ymax=3.)
225 varName =
'm_pT,m_pTRes;pTResVspT'
226 title =
'p_{T} Resolution Vs p_{T};Signed Track p_{T} [GeV];p_{T} Resolution (#sigma(p_{T})/p_{T})'
227 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=200, xmin=-m_pTRange, xmax=m_pTRange, ybins=100, ymin=0, ymax=0.1)
230 title =
'Momentum P;Signed Track P [GeV];Tracks'
231 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=200, xmin=-m_pTRange, xmax=m_pTRange)
233 varName =
'm_pTRes;pTResolution'
234 title =
'Momentum p_{T} Resolution;p_{T} Resolution (#sigma(p_{T})/p_{T});Tracks'
235 genericTrackGroup.defineHistogram(varName, type=
'TH1F', path=pathtrack, title=title, xbins=100, xmin=0, xmax=0.1)
237 varName =
'm_eta,m_d0_bscorr;D0bsVsEta'
238 title =
'd_{0} (BS) Vs #eta;Track #eta;d_{0} (BS) [mm]'
239 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=m_etaBins, xmin=-m_etaRange, xmax=m_etaRange, ybins=m_d0BsNbins, ymin=-m_d0BsRange, ymax=m_d0BsRange)
241 varName =
'm_pT,m_d0_bscorr;D0bsVsPt'
242 title =
'd_{0} (BS) Vs p_{T};Signed track p_{T} [GeV];d_{0} (BS) [mm]'
243 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=200, xmin=-m_pTRange, xmax=m_pTRange, ybins=m_d0BsNbins, ymin=-m_d0BsRange, ymax=m_d0BsRange)
245 varName =
'm_phi,m_d0_bscorr;D0bsVsPhi0'
246 title =
'd_{0} (BS) Vs #phi_{0};Track #phi_{0} [rad];d_{0} (BS) [mm]'
247 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=m_phiBins, xmin=0, xmax= 2 * M_PI, ybins=m_d0BsNbins, ymin=-m_d0BsRange, ymax=m_d0BsRange)
249 varName =
'm_phi,m_d0_bscorr;D0bsVsPhi0_Barrel'
250 title =
'd_{0} (BS) Vs #phi_{0} (Barrel);Track #phi_{0} [rad];d_{0} (BS) [mm]'
251 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=m_phiBins, xmin=0, xmax= 2 * M_PI, ybins=m_d0BsNbins, ymin=-m_d0BsRange, ymax=m_d0BsRange, cutmask=
'isTrackBarrel')
253 varName =
'm_phi,m_d0_bscorr;D0bsVsPhi0_ECA'
254 title =
'd_{0} (BS) Vs #phi_{0} (ECA);Track #phi_{0} [rad];d_{0} (BS) [mm]'
255 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=m_phiBins, xmin=0, xmax= 2 * M_PI, ybins=m_d0BsNbins, ymin=-m_d0BsRange, ymax=m_d0BsRange, cutmask=
'isTrackECA')
257 varName =
'm_phi,m_d0_bscorr;D0bsVsPhi0_ECC'
258 title =
'd_{0} (BS) Vs #phi_{0} (ECC);Track #phi_{0} [rad];d_{0} (BS) [mm]'
259 genericTrackGroup.defineHistogram(varName, type=
'TH2F', path=pathtrack, title=title, xbins=m_phiBins, xmin=0, xmax= 2 * M_PI, ybins=m_d0BsNbins, ymin=-m_d0BsRange, ymax=m_d0BsRange, cutmask=
'isTrackECC')
263 layersPix = [
'0',
'1',
'2',
'3']
264 layersName = [
'IBL',
'B-layer',
'1',
'2']
265 pixBhitmeasArray = helper.addArray([len(layersPix)], alg,
'measurements_vs_Eta_Phi_pix_b', topPath=pathtrack)
266 for postfix, tool
in pixBhitmeasArray.Tools.items():
267 layer = layersPix[
int( postfix.split(
'_')[1] )]
268 title = (
'Number of hits vs Module Eta-Phi-ID Pixel Barrel layer %s; Mod Eta; Mod Phi; Pixel hits (PIX+IBL)' % layersName[
int(layer)])
269 name =
'm_modEta,m_modPhi;measurements_vs_Eta_Phi_pix_b' + layer
270 tool.defineHistogram(name, title = title, type =
'TH2F', xbins = m_EtaModulesPix[
int(layer)], xmin = m_EtaModulesMinPix[
int(layer)], xmax = m_EtaModulesMaxPix[
int(layer)],
271 ybins = m_PhiModules[
int(layer)], ymin = -0.5, ymax = m_PhiModules[
int(layer)] - 0.5)
273 endcapsPix = [
'a',
'c']
274 pixEChitmeAsrray = helper.addArray([len(endcapsPix)], alg,
'measurements_vs_Eta_Phi_pix_ec', topPath = pathtrack)
275 for postfix, tool
in pixEChitmeAsrray.Tools.items():
276 layer = endcapsPix[
int(postfix.split(
'_')[1])]
277 title = (
'Number of hits vs Module Eta-Phi-ID Pixel EndCap %s; Disk; Mod Phi; Pixel hits (PIX+IBL)' % layer.upper())
278 name =
'm_layerDisk,m_modPhi;measurements_vs_Eta_Phi_pix_ec' + layer
279 tool.defineHistogram(name, title = title, type =
'TH2F', xbins = 3, xmin = - 0.5, xmax = 3 - 0.5,
280 ybins = m_PhiModulesPerRing, ymin = -0.5, ymax = m_PhiModulesPerRing - 0.5)
283 layersSCTB = [
'0',
'1',
'2',
'3']
284 sctBhitmeasArray = helper.addArray([len(layersSCTB)], alg,
'measurements_vs_Eta_Phi_sct_b_s0', topPath = pathtrack)
285 for postfix, tool
in sctBhitmeasArray.Tools.items():
286 layer = layersSCTB[
int( postfix.split(
'_')[1] )]
287 title = (
'Number of hits vs Module Eta-Phi-ID SCT Barrel layer %s side 0; Mod Eta; Mod Phi; SCT hits ' % layer)
288 name =
'm_modEta,m_modPhi;measurements_vs_Eta_Phi_sct_b' + layer +
'_s0'
289 tool.defineHistogram(name, title = title, type =
'TH2F', xbins = m_EtaModulesSCT, xmin = m_EtaModulesMinSCT, xmax = m_EtaModulesMaxSCT,
290 ybins = m_PhiModules[
int(layer)], ymin = -0.5, ymax = m_PhiModules[
int(layer)] - 0.5)
292 sctBhitmeasArray = helper.addArray([len(layersSCTB)], alg,
'measurements_vs_Eta_Phi_sct_b_s1', topPath = pathtrack)
293 for postfix, tool
in sctBhitmeasArray.Tools.items():
294 layer = layersSCTB[
int( postfix.split(
'_')[1] )]
295 title = (
'Number of hits vs Module Eta-Phi-ID SCT Barrel layer %s side 1; Mod Eta; Mod Phi; SCT hits ' % layer)
296 name =
'm_modEta,m_modPhi;measurements_vs_Eta_Phi_sct_b' + layer +
'_s1'
297 tool.defineHistogram(name, title = title, type =
'TH2F', xbins = m_EtaModulesSCT, xmin = m_EtaModulesMinSCT, xmax = m_EtaModulesMaxSCT,
298 ybins = m_PhiModules[
int(layer)], ymin = -0.5, ymax = m_PhiModules[
int(layer)] - 0.5)
300 layersSCTEC = [
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8']
301 sctECAs0hitmeasArray = helper.addArray([len(layersSCTEC)], alg,
'measurements_vs_Eta_Phi_sct_eca_s0', topPath = pathtrack)
302 for postfix, tool
in sctECAs0hitmeasArray.Tools.items():
303 layer = layersSCTEC[
int( postfix.split(
'_')[1] )]
304 title = (
'Number of hits vs Module Eta-Phi-ID SCT EndCap A Disk %s side 0; Mod Eta; Mod Phi; SCT hits EndCap A s0 ' % layer)
305 name =
'm_modEta,m_modPhi;measurements_vs_Eta_Phi_sct_eca' + layer +
'_s0'
306 tool.defineHistogram(name, title = title, type =
'TH2F', xbins = m_EtaModulesSCTEC, xmin = -0.5, xmax = m_EtaModulesSCTEC - 0.5,
307 ybins = m_PhiModulesSCTEC, ymin = -0.5, ymax = m_PhiModulesSCTEC - 0.5)
309 sctECAs1hitmeasArray = helper.addArray([len(layersSCTEC)], alg,
'measurements_vs_Eta_Phi_sct_eca_s1', topPath = pathtrack)
310 for postfix, tool
in sctECAs1hitmeasArray.Tools.items():
311 layer = layersSCTEC[
int( postfix.split(
'_')[1] )]
312 title = (
'Number of hits vs Module Eta-Phi-ID SCT EndCap A Disk %s side 1; Mod Eta; Mod Phi; SCT hits EndCap A s1 ' % layer)
313 name =
'm_modEta,m_modPhi;measurements_vs_Eta_Phi_sct_eca' + layer +
'_s1'
314 tool.defineHistogram(name, title = title, type =
'TH2F', xbins = m_EtaModulesSCTEC, xmin = -0.5, xmax = m_EtaModulesSCTEC - 0.5,
315 ybins = m_PhiModulesSCTEC, ymin = -0.5, ymax = m_PhiModulesSCTEC - 0.5)
317 sctECCs0hitmeasArray = helper.addArray([len(layersSCTEC)], alg,
'measurements_vs_Eta_Phi_sct_ecc_s0', topPath = pathtrack)
318 for postfix, tool
in sctECCs0hitmeasArray.Tools.items():
319 layer = layersSCTEC[
int( postfix.split(
'_')[1] )]
320 title = (
'Number of hits vs Module Eta-Phi-ID SCT EndCap C Disk %s side 0; Mod Eta; Mod Phi; SCT hits EndCap C s0 ' % layer)
321 name =
'm_modEta,m_modPhi;measurements_vs_Eta_Phi_sct_ecc' + layer +
'_s0'
322 tool.defineHistogram(name, title = title, type =
'TH2F', xbins = m_EtaModulesSCTEC, xmin = -0.5, xmax = m_EtaModulesSCTEC - 0.5,
323 ybins = m_PhiModulesSCTEC, ymin = -0.5, ymax = m_PhiModulesSCTEC - 0.5)
325 sctECCs1hitmeasArray = helper.addArray([len(layersSCTEC)], alg,
'measurements_vs_Eta_Phi_sct_ecc_s1', topPath = pathtrack)
326 for postfix, tool
in sctECCs1hitmeasArray.Tools.items():
327 layer = layersSCTEC[
int( postfix.split(
'_')[1] )]
328 title = (
'Number of hits vs Module Eta-Phi-ID SCT EndCap C Disk %s side 1; Mod Eta; Mod Phi; SCT hits EndCap C s1 ' % layer)
329 name =
'm_modEta,m_modPhi;measurements_vs_Eta_Phi_sct_ecc' + layer +
'_s1'
330 tool.defineHistogram(name, title = title, type =
'TH2F', xbins = m_EtaModulesSCTEC, xmin = -0.5, xmax = m_EtaModulesSCTEC - 0.5,
331 ybins = m_PhiModulesSCTEC, ymin = -0.5, ymax = m_PhiModulesSCTEC - 0.5)