14 m_sParticleType(sParticleType),
15 h_electron_n(NULL), h_photon_n(NULL),
16 h_electron_author(NULL), h_nvtx(NULL),
17 h_mu(NULL), h_bcid(NULL),
19 h_pv_x(NULL), h_pv_y(NULL), h_pv_z(NULL),
20 h_f1(NULL), h_f3(NULL), h_f1core(NULL), h_f3core(NULL),
21 h_e233(NULL), h_e237(NULL), h_e277(NULL), h_reta(NULL), h_rphi(NULL),
22 h_weta1(NULL), h_weta2(NULL), h_wtots1(NULL),
23 h_ethad(NULL), h_ethad1(NULL),
24 h_fethad(NULL), h_fethad1(NULL),
25 h_e2tsts1(NULL), h_fracs1(NULL),
26 h_emins1(NULL), h_emaxs1(NULL),
27 h_demm1(NULL), h_iso(NULL),
29 h_deta1(NULL), h_deta2(NULL),
30 h_dphi1(NULL), h_dphi2(NULL),
32 h_etcone20(NULL), h_etcone30(NULL), h_etcone40(NULL),
33 h_fetcone20(NULL), h_fetcone30(NULL), h_fetcone40(NULL),
34 h_ptcone20(NULL), h_ptcone30(NULL), h_ptcone40(NULL),
35 h_n_blayer_hits(NULL), h_n_pixel_hits(NULL),
36 h_n_si_hits(NULL), h_n_trt_hits(NULL),
37 h_n_trt_hits_high(NULL), h_r_trt_hits(NULL),
38 h_n_blayer_hits_outliers(NULL), h_n_pixel_hits_outliers(NULL),
39 h_n_si_hits_outliers(NULL), h_n_trt_hits_outliers(NULL),
40 h_n_trt_hits_high_outliers(NULL), h_r_trt_hits_outliers(NULL),
41 h_d0(NULL), h_sigmad0(NULL), h_eoverp(NULL), h_eoverpq(NULL)
67 TH1::SetDefaultSumw2(kTRUE);
72 h_nvtx =
Book1D(
"Nvtx",
"Nvtx distribution;n_{vtx};Events ", 30, 0, 30);
73 h_mu =
Book1D(
"Mu",
"<#mu> distribution;<mu>;Events", 40, 0, 40);
74 h_bcid =
Book1D(
"BCID",
"BCID distribution;BCID;Events", 3500, 0, 3500);
75 h_track_n =
Book1D(
"NTracks",
"#Tracks on primary vtx;N_{tracks};Events", 80, 0, 200);
76 h_pv_x =
Book1D(
"Pv_x",
"Primary Vertex X Position;x_{vtx};Events", 100, -.5, .5);
77 h_pv_y =
Book1D(
"Pv_y",
"Primary Vertex Y Position;y_{vtx};Events", 100, -1.5, 1.5);
78 h_pv_z =
Book1D(
"Pv_z",
"Primary Vertex Z Position;z_{vtx};Events", 100, -250, 250);
93 h_f1 =
Book1D(
"F1",
"E_{1}/E (f1); E_{1}/E (f1); Events", 50, 0., 1.);
94 h_f3 =
Book1D(
"F3",
"E_{3}/E (f3); E_{3}/E (f3); Events", 50, 0., .1);
95 h_f1core =
Book1D(
"F1Core",
"E_{1}(3x1)/E (f1core); E_{1}(3x1)/E (f1core); Events", 50, 0., 1.);
96 h_f3core =
Book1D(
"F3Core",
"E_{3}(3x3)/E (f3core); E_{3}(3x3)/E (f3core); Events", 50, 0., .1);
98 h_e233 =
Book1D(
"E233",
"E_{2}(3x3)/GeV; E_{2}(3x3)/GeV; Events", 100, 0., 500.);
99 h_e237 =
Book1D(
"E237",
"E_{2}(3x7)/GeV; E_{2}(3x7)/GeV; Events", 100, 0., 500.);
100 h_e277 =
Book1D(
"E277",
"E_{2}(7x7)/GeV; E_{2}(7x7)/GeV; Events", 100, 0., 500.);
101 h_reta =
Book1D(
"REta",
"R_{#eta} (E_{2}(3x7)/E_{2}(7x7));R_{#eta}; Events", 50, 0.5, 1.);
102 h_rphi =
Book1D(
"RPhi",
"R_{#phi} (E_{2}(3x3)/E_{2}(3x7));R_{#phi}; Events", 50, 0.5, 1.);
104 h_weta1 =
Book1D(
"WEta1",
"w_{#eta 1} (weta1, shower width); w_{#eta 1}; Events", 70, 0.2, .9);
105 h_weta2 =
Book1D(
"WEta2",
"w_{#eta 2} (weta2, lateral width); w_{#eta 2}; Events", 100, 0.005, .02);
106 h_wtots1 =
Book1D(
"WTots1",
"w_{tot1} (wtots1, shower width); w_{tot1}; Events", 100, 0., 6.);
108 h_ethad =
Book1D(
"EtHad",
"E^{had}_{T}/GeV;E^{had}_{T}/GeV; Events", 100, -1., 9.);
109 h_ethad1 =
Book1D(
"EtHad1",
"E^{had1}_{T}/GeV;E^{had1}_{T}/GeV; Events", 100, -1., 9.);
110 h_fethad =
Book1D(
"FracEtHad",
"E^{had}_{T}/E_{T};E^{had}_{T}/E_{T}; Events", 100, -0.05, .45);
111 h_fethad1 =
Book1D(
"FracEtHad1",
"E^{had1}_{T}/E_{T};E^{had1}_{T}/E_{T}; Events", 100, -0.05, .45);
113 h_e2tsts1 =
Book1D(
"E2tsts1",
"E_{1}^{max2}/GeV (E of 2^{nd} maximum); E_{1}^{max2}/GeV; Events", 100, 0., 3.);
114 h_fracs1 =
Book1D(
"Fracs1",
"fracs1 (shower shape core); fracs1; Events", 50, 0., 1.);
115 h_emins1 =
Book1D(
"Emins1",
"E_{1}^{min}/GeV (E^{min} betw. maximum); E_{1}^{min}/GeV; Events", 100, 0., 3.);
116 h_emaxs1 =
Book1D(
"Emaxs1",
"E_{1}^{max}/GeV; E_{1}^{max}/GeV; Events", 100, 0., 3.);
117 h_demm1 =
Book1D(
"dEmm1",
"#Delta E^{sep}_{1}/GeV (2^{nd} max. separation); #Delta E^{sep}_{1}/GeV; Events", 50, 0., 1.);
118 h_iso =
Book1D(
"Iso",
"1 - E(3x3)/E(3x7)(iso); 1 - E(3x3)/E(3x7); Events", 100, 0., 1.);
119 h_eratio =
Book1D(
"Eratio",
"(E_{1}^{max}/GeV - E_{1}^{max2}/GeV )/(E_{1}^{max}/GeV + E_{1}^{max2}/GeV ); E_{ratio}; Events", 50, 0., 1.);
122 h_deta1 =
Book1D(
"dEta1",
"#Delta #eta_{1} Cluster-Track; #Delta #eta_{1}; Events", 100, -.05, .05);
123 h_deta2 =
Book1D(
"dEta2",
"#Delta #eta_{2} Cluster-Track; #Delta #eta_{2}; Events", 100, -.05, .05);
124 h_dphi1 =
Book1D(
"dPhi1",
"#Delta #phi_{1} Cluster-Track; #Delta #phi_{1}; Events", 100, -.05, .05);
125 h_dphi2 =
Book1D(
"dPhi2",
"#Delta #phi_{2} Cluster-Track; #Delta #phi_{2}; Events", 100, -.05, .05);
126 h_dphires2 =
Book1D(
"dPhiRes2",
"#Delta #phi_{2} Cluster-Track (Rescaled); #Delta #phi_{2} (rescaled); Events", 100, -.05, .05);
129 h_etcone20 =
Book1D(
"EtCone20",
"E_{T}^{cone20}/GeV; E_{T}^{cone20}/GeV; Events", 120, -4., 20.);
130 h_etcone30 =
Book1D(
"EtCone30",
"E_{T}^{cone30}/GeV; E_{T}^{cone30}/GeV; Events", 120, -4., 20.);
131 h_etcone40 =
Book1D(
"EtCone40",
"E_{T}^{cone40}/GeV; E_{T}^{cone40}/GeV; Events", 120, -4., 20.);
132 h_fetcone20 =
Book1D(
"FracEtCone20",
"E_{T}^{cone20}/E_{T}; E_{T}^{cone20}/E_{T}; Events", 120, -.1, .5);
133 h_fetcone30 =
Book1D(
"FracEtCone30",
"E_{T}^{cone30}/E_{T}; E_{T}^{cone30}/E_{T}; Events", 120, -.1, .5);
134 h_fetcone40 =
Book1D(
"FracEtCone40",
"E_{T}^{cone40}/E_{T}; E_{T}^{cone40}/E_{T}; Events", 120, -.1, .5);
136 h_ptcone20 =
Book1D(
"Ptcone20",
"p_{T}^{cone20}/GeV; p_{T}^{cone20}/GeV; Events", 80, 0., 20.);
137 h_ptcone30 =
Book1D(
"Ptcone30",
"p_{T}^{cone30}/GeV; p_{T}^{cone30}/GeV; Events", 80, 0., 20.);
138 h_ptcone40 =
Book1D(
"Ptcone40",
"p_{T}^{cone40}/GeV; p_{T}^{cone40}/GeV; Events", 80, 0., 20.);
145 h_n_trt_hits_high =
Book1D(
"NTRTHitsHighThreshold",
"N^{hits}_{TRT} High Threshold; N^{hits}; Events", 50, 0., 50.);
146 h_r_trt_hits =
Book1D(
"RTRTHits",
"N^{hits}_{TRT,HT} / N^{hits}_{TRT}; N^{hits}; Events", 50, 0., 1.);
153 h_r_trt_hits_outliers =
Book1D(
"RTRTHitsOutliers",
"N^{hits}_{TRT,HT} / N^{hits}_{TRT} incl. Outliers; N^{hits}; Events", 50, 0., 1.);
155 h_d0 =
Book1D(
"TrackD0",
"Track d0; d0; Events", 20, -1., 1.);
156 h_sigmad0 =
Book1D(
"TrackSigmaD0",
"Track #sigma_{d0}; #sigma_{d0}; Events", 20, 0., 0.1);
158 h_eoverpq =
Book1D(
"EoverPQ",
"E/p * q; E/p * q; Events", 50, -5., 5.);
164 int nGoodVertices = 0;
165 for (
const auto* vtx : vertices -> stdcont()){
170 h_track_n ->Fill(vtx -> nTrackParticles());
175 h_nvtx -> Fill(nGoodVertices);
176 h_mu -> Fill(eventInfo -> averageInteractionsPerCrossing());
191 float f1(0),
f3(0),
f1core(0),
f3core(0),
fracs1(0),
emaxs1(0),
weta1(0),
weta2(0),
wtots1(0),
r33over37allcalo(0),
eratio(0);
237 float deta1(0), deta2(0), dphi1(0), dphi2(0), dphires2(0);
245 float sigmad0 = -99.;
246 float vard0 =
track -> definingParametersCovMatrix()(0, 0);
247 if (vard0 > 0) sigmad0 = sqrtf(vard0);
279 uint8_t blayerh(0), pixelh(0), scth(0), trth(0), trthighh(0), blayero(0), pixelo(0), scto(0), trto(0), trthigho(0);
301 double rtrt = (trth) > 0 ? ((
double) (trthighh)/(trth) ) : 0.;
306 double rtrto = (trth + trto) > 0 ? ((
double) (trthigho + trthighh)/(trth + trto) ) : 0.;
323 if (hDenom->GetNbinsX() != hNom->GetNbinsX())
return;
325 for (
int bin_i = 1; bin_i <= hDenom -> GetNbinsX(); ++bin_i){
326 if(hDenom -> GetBinContent(bin_i) == 0)
continue;
327 double binContent = hNom -> GetBinContent(bin_i) / hDenom -> GetBinContent(bin_i);
328 double binCenter = hNom -> GetBinCenter(bin_i);
330 hEff -> Fill(binCenter, binContent);