188{
189 auto* currentFile = TFile::CurrentFile();
190 currentFile->mkdir(
cut_name.data())->cd();
191#define HIST_INIT( NAME, AXIS_LABEL, AXIS_N, AXIS_XL, AXIS_XH ) \
192 do{ \
193 h_##NAME = new TH2F(#NAME, #NAME ";#eta;" AXIS_LABEL, 50,-2.5,2.5, \
194 AXIS_N, AXIS_XL, AXIS_XH); \
195 } while (false)
196
197 HIST_INIT( pt,
"p_{T} [GeV]", 100, 0, 20 );
198 HIST_INIT( si_hits_phys,
"Si physical hits", 24, 0, 24 );
199 HIST_INIT( si_hits,
"Si hits", 24, 0, 24 );
200 HIST_INIT( si_holes,
"Si holes", 6, 0, 6 );
201 HIST_INIT( si_shared,
"Si shared hits", 6, 0, 6 );
202 HIST_INIT( pix_hits_phys,
"Pixel physical hits", 10, 0, 10 );
203 HIST_INIT( pix_hits,
"Pixel hits", 10, 0, 10 );
204 HIST_INIT( pix_holes,
"Pixel holes", 4, 0, 4 );
205 HIST_INIT( pix_shared,
"Pixel shared hits", 4, 0, 4 );
206 HIST_INIT( sct_hits_phys,
"SCT physical hits", 16, 0, 16 );
207 HIST_INIT( sct_hits,
"SCT hits", 16, 0, 16 );
208 HIST_INIT( sct_holes,
"SCT holes", 4, 0, 4 );
209 HIST_INIT( sct_shared,
"SCT shared hits", 4, 0, 4 );
210 HIST_INIT( ibl_hits,
"IBL hits", 4, 0, 4 );
211 HIST_INIT( ibl_expected,
"expect IBL hit", 2, 0, 2 );
212 HIST_INIT( bl_hits,
"BLayer hits", 4, 0, 4 );
213 HIST_INIT( bl_expected,
"expect BLayer hit", 2, 0, 2 );
214 HIST_INIT( trt_hits,
"TRT hits + outliers", 60, 0, 60 );
215 HIST_INIT( trt_outlier_fraction,
"TRT outlier fraction", 25, 0., 1. );
216
217 h_d0 =
new TH2F(
"d0",
"d_{0}^{BL};d_{0}^{BL} [mm];#sigma_{d_{0}} [mm]", 60, -3., 3., 60, 0., 3. );
218 h_z0sintheta =
new TH2F(
"z0sintheta",
"z_{0}^{PV} sin #theta;z_{0}^{PV} sin #theta [mm];#sigma_{z_{0} sin #theta} [mm]", 100, -5., 5., 50, 0., 5. );
219
220#undef HIST_INIT
221
222 currentFile->cd();
223}
TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)