ATLAS Offline Software
Functions
IDAlignMonGenericTracksAlgCfg Namespace Reference

Functions

def IDAlignMonGenericTracksAlgCfg (helper, alg, **kwargs)
 

Function Documentation

◆ IDAlignMonGenericTracksAlgCfg()

def IDAlignMonGenericTracksAlgCfg.IDAlignMonGenericTracksAlgCfg (   helper,
  alg,
**  kwargs 
)

Definition at line 14 of file IDAlignMonGenericTracksAlgCfg.py.

14 def IDAlignMonGenericTracksAlgCfg(helper, alg, **kwargs):
15 
16  # values
17  m_pTRange = 100
18  m_NTracksRange = 100
19  m_rangePixHits = 10
20  m_rangeSCTHits = 20
21  m_rangeTRTHits = 60
22  m_etaRange = 2.7
23  m_etaBins = 40
24  m_phiBins = 80
25  m_d0BsNbins = 100
26  m_d0Range = 2
27  m_z0Range = 90.
28  m_d0BsRange = 0.05
29 
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
35  m_EtaModulesSCTEC = 3
36  m_PhiModulesSCTEC = 52
37  m_EtaModulesSCT = 13
38  m_EtaModulesMinSCT = -6.5
39  m_EtaModulesMaxSCT = 6.5
40 
41  # Set a folder name from the user options
42  folderName = "ExtendedTracks"
43  if "TrackName" in kwargs:
44  folderName = kwargs["TrackName"]
45 
46  # this creates a "genericTrackGroup" called "alg" which will put its histograms into the subdirectory "GenericTracks"
47  genericTrackGroup = helper.addGroup(alg, 'IDA_Tracks')
48  pathtrack = '/IDAlignMon/'+folderName+'/GenericTracks'
49 
50  # BeamSpot position histos
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)
54 
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)
58 
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)
62 
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)
66 
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)
70 
71  # Plots per events
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)
75 
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)
79 
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)
83 
84  # Plots per lumiblock
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)
88 
89  # Start loop on tracks
90 
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)
94 
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)
98 
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)
102 
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)
106 
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)
110 
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)
114 
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)
118 
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)
122 
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)
126 
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)
130 
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)
134 
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)
138 
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)
142 
143 
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)
147 
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)
151 
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)
155 
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.)
159 
160 
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)
164 
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)
168 
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')
172 
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')
176 
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)
180 
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)
184 
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)
188 
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)
192 
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)
196 
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)
200 
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)
204 
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)
208 
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)
212 
213  varName = 'm_pT;pT'
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)
216 
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.)
220 
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.)
224 
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)
228 
229  varName = 'm_p;P'
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)
232 
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)
236 
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)
240 
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)
244 
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)
248 
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')
252 
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')
256 
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')
260 
261 
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)
272 
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)
281 
282 
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)
291 
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)
299 
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)
308 
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)
316 
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)
324 
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)
332 
333  # end histograms
334 
335 
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
IDAlignMonGenericTracksAlgCfg.IDAlignMonGenericTracksAlgCfg
def IDAlignMonGenericTracksAlgCfg(helper, alg, **kwargs)
Definition: IDAlignMonGenericTracksAlgCfg.py:14