116 if (!efficiency_num || !efficiency_den)
120 const string efficiency_name =
"efficiency";
126 TAxis *axis = efficiency_den->
getTH1()->GetXaxis();
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();
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;
Detector ID class for TOTEM Si strip detectors.
virtual void setCurrentFolder(std::string const &fullpath)
virtual TH2F * getTH2F() const
void rpName(std::string &name, NameFlag flag=nFull) const
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
virtual MonitorElement * get(std::string const &fullpath) const
Base class for CTPPS detector IDs.
virtual TH1 * getTH1() const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
virtual double getBinContent(int binx) const
get content of bin (1-D)