26 void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &)
override {}
34 void MakeHitNumberRatios(
unsigned int id, DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter);
37 DQMStore::IBooker &ibooker,
38 DQMStore::IGetter &igetter,
39 bool &rpPlotInitialized);
69 const string hit_ratio_name =
"hit ratio in hot spot";
72 if (hit_ratio ==
nullptr) {
73 ibooker.setCurrentFolder(
path);
76 hit_ratio = ibooker.book1D(hit_ratio_name,
title +
";plane;N_hits(320<strip<440) / N_hits(all)", 10, -0.5, 9.5);
82 TAxis *y_axis = activity->
getTH2F()->GetYaxis();
83 for (
int bix = 1; bix <= activity->
getNbinsX(); ++bix) {
84 double S_full = 0., S_sel = 0.;
85 for (
int biy = 1; biy <= activity->
getNbinsY(); ++biy) {
87 double s = y_axis->GetBinCenter(biy);
91 if (
s > 320. &&
s < 440.)
95 double r = (S_full > 0.) ? S_sel / S_full : 0.;
104 DQMStore::IBooker &ibooker,
105 DQMStore::IGetter &igetter,
106 bool &rpPlotInitialized) {
116 if (!efficiency_num || !efficiency_den)
120 const string efficiency_name =
"efficiency";
126 TAxis *axis = efficiency_den->
getTH1()->GetXaxis();
127 ibooker.setCurrentFolder(
path);
129 efficiency_name,
title +
";track position (mm)", axis->GetNbins(), axis->GetXmin(), axis->GetXmax());
137 const string rp_efficiency_name =
"plane efficiency";
140 if (rp_efficiency ==
nullptr) {
143 TAxis *axis = efficiency_den->
getTH1()->GetXaxis();
144 ibooker.setCurrentFolder(
path);
145 rp_efficiency = ibooker.book2D(rp_efficiency_name,
146 title +
";plane;track position (mm)",
153 rpPlotInitialized =
true;
155 if (!rpPlotInitialized)
156 rp_efficiency->
getTH2F()->Reset();
157 rpPlotInitialized =
true;
161 for (
signed int bi = 1; bi <=
efficiency->getNbinsX(); bi++) {
166 double p =
num / den;
167 double p_unc =
sqrt(
p * (1. -
p) / den);
171 int pl_bi = detId.
plane() + 1;
182 DQMStore::IGetter &igetter,
186 for (
unsigned int arm = 0; arm < 2; arm++) {
188 for (
unsigned int st = 0; st < 3; st += 2) {
190 for (
unsigned int rp = 0; rp < 6; ++rp) {
203 MakeHitNumberRatios(
rpId, ibooker, igetter);
205 bool rpPlotInitialized =
false;
208 for (
unsigned int pl = 0; pl < 10; ++pl) {
211 MakePlaneEfficiencyHistograms(plId, ibooker, igetter, rpPlotInitialized);