Belle II Software development
DQMHistAnalysisTRGEFF.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9// Own header.
10#include <dqm/analysis/modules/DQMHistAnalysisTRGEFF.h>
11
12#include <TH1F.h>
13#include <TH2F.h>
14#include <TCanvas.h>
15#include <TPaveText.h>
16#include <TLine.h>
17#include <TClass.h>
18#include <TStyle.h>
19#include <TROOT.h>
20#include <TLatex.h>
21
22#include <fstream>
23#include <iostream>
24#include <vector>
25#include <algorithm>
26
27using namespace std;
28using namespace Belle2;
29
30//-----------------------------------------------------------------
31// Register module
32//-----------------------------------------------------------------
33
34REG_MODULE(DQMHistAnalysisTRGEFF);
35
38{
39 // set module description (e.g. insert text)
40 setDescription("Modify and analyze the data quality histograms of TRGEFF");
42 addParam("alert", m_enableAlert, "Enable color alert", true);
43}
44
46{
47 gROOT->cd();
48
49 m_cPt_eff = new TCanvas("TRGEFF/c_hPt_eff");
50 m_cPhi_eff = new TCanvas("TRGEFF/c_hPhi_eff");
51 m_c_nobha_f_phi_eff = new TCanvas("TRGEFF/c_nobha_f_phi_eff");
52 m_nobha_cPt_eff = new TCanvas("TRGEFF/c_nobha_hPt_eff");
53 m_cP3_z_eff = new TCanvas("TRGEFF/c_hP3_z_eff");
54 m_cP3_y_eff = new TCanvas("TRGEFF/c_hP3_y_eff");
55 m_nobha_cP3_z_eff = new TCanvas("TRGEFF/c_nobha_hP3_z_eff");
56 m_nobha_cP3_y_eff = new TCanvas("TRGEFF/c_nobha_hP3_y_eff");
57 m_c_nobha_phi_z_eff = new TCanvas("TRGEFF/c_nobha_phi_z_eff");
58 m_c_nobha_phi_y_eff = new TCanvas("TRGEFF/c_nobha_phi_y_eff");
59 m_c_fyo_dphi_eff = new TCanvas("TRGEFF/c_fyo_dphi_eff");
60 m_c_nobha_fyo_dphi_eff = new TCanvas("TRGEFF/c_nobha_fyo_dphi_eff");
61 m_c_stt_phi_eff = new TCanvas("TRGEFF/c_stt_phi_eff");
62 m_c_stt_P3_eff = new TCanvas("TRGEFF/c_stt_P3_eff");
63 m_c_stt_theta_eff = new TCanvas("TRGEFF/c_stt_theta_eff");
64 m_c_nobha_stt_phi_eff = new TCanvas("TRGEFF/c_nobha_stt_phi_eff");
65 m_c_nobha_stt_P3_eff = new TCanvas("TRGEFF/c_nobha_stt_P3_eff");
66 m_c_nobha_stt_theta_eff = new TCanvas("TRGEFF/c_nobha_stt_theta_eff");
67 m_c_hie_E_eff = new TCanvas("TRGEFF/c_hie_E_eff");
68 m_c_nobha_hie_E_eff = new TCanvas("TRGEFF/c_nobha_hie_E_eff");
69 m_c_ecltiming_E_eff = new TCanvas("TRGEFF/c_ecltiming_E_eff");
70 m_c_ecltiming_theta_eff = new TCanvas("TRGEFF/c_ecltiming_theta_eff");
71 m_c_ecltiming_phi_eff = new TCanvas("TRGEFF/c_ecltiming_phi_eff");
72 m_c_klmhit_phi_eff = new TCanvas("TRGEFF/c_klmhit_phi_eff");
73 m_c_klmhit_theta_eff = new TCanvas("TRGEFF/c_klmhit_theta_eff");
74 m_c_eklmhit_phi_eff = new TCanvas("TRGEFF/c_eklmhit_phi_eff");
75 m_c_eklmhit_theta_eff = new TCanvas("TRGEFF/c_eklmhit_theta_eff");
76
77
79 // the MonitoringObject
82 m_mon_trgeff->addCanvas(m_nobha_cPt_eff);
99
101 m_efficiencyList.clear();
103 // Histogram names, efficiency pointers, corresponding canvases title and X-title
104 {"TRGEFF/hPt_psnecl", &m_hPt_eff, m_cPt_eff, "f bit", "Pt (GeV)"},
105 {"TRGEFF/hPhi_psnecl", &m_hPhi_eff, m_cPhi_eff, "f bit", "#phi (degree)"},
106 {"TRGEFF/nobha_f_phi_psnecl", &m_nobha_f_phi_eff, m_c_nobha_f_phi_eff, "nobha f bit", "#phi (degree)"},
107 {"TRGEFF/nobha_hPt_psnecl", &m_nobha_hPt_eff, m_nobha_cPt_eff, "nobha f bit", "Pt (GeV)"},
108 {"TRGEFF/hP3_z_psnecl", &m_hP3_z_eff, m_cP3_z_eff, "z bit", "Pt (GeV)"},
109 {"TRGEFF/hP3_y_psnecl", &m_hP3_y_eff, m_cP3_y_eff, "y bit", "Pt (GeV)"},
110 {"TRGEFF/nobha_hP3_z_psnecl", &m_nobha_hP3_z_eff, m_nobha_cP3_z_eff, "nobha z bit", "Pt (GeV)"},
111 {"TRGEFF/nobha_hP3_y_psnecl", &m_nobha_hP3_y_eff, m_nobha_cP3_y_eff, "nobha y bit", "Pt (GeV)"},
112 {"TRGEFF/nobha_phi_z_psnecl", &m_nobha_phi_z_eff, m_c_nobha_phi_z_eff, "nobha z bit", "#phi (degree)"},
113 {"TRGEFF/nobha_phi_y_psnecl", &m_nobha_phi_y_eff, m_c_nobha_phi_y_eff, "nobha y bit", "#phi (degree)"},
114 {"TRGEFF/fyo_dphi_psnecl", &m_fyo_dphi_eff, m_c_fyo_dphi_eff, "fyo bit", "#Delta#phi (degree)"},
115 {"TRGEFF/nobha_fyo_dphi_psnecl", &m_nobha_fyo_dphi_eff, m_c_nobha_fyo_dphi_eff, "nobha fyo bit", "#Delta#phi (degree)"},
116 {"TRGEFF/stt_phi_psnecl", &m_stt_phi_eff, m_c_stt_phi_eff, "stt bit", "#phi (degree)"},
117 {"TRGEFF/stt_P3_psnecl", &m_stt_P3_eff, m_c_stt_P3_eff, "stt bit", "P (GeV)"},
118 {"TRGEFF/stt_theta_psnecl", &m_stt_theta_eff, m_c_stt_theta_eff, "stt bit", "#theta (degree)"},
119 {"TRGEFF/nobha_stt_phi_psnecl", &m_nobha_stt_phi_eff, m_c_nobha_stt_phi_eff, "nobha stt bit", "#phi (degree)"},
120 {"TRGEFF/nobha_stt_P3_psnecl", &m_nobha_stt_P3_eff, m_c_nobha_stt_P3_eff, "nobha stt bit", "P (GeV)"},
121 {"TRGEFF/nobha_stt_theta_psnecl", &m_nobha_stt_theta_eff, m_c_nobha_stt_theta_eff, "nobha stt bit", "#theta (degree)"},
122 {"TRGEFF/hie_E_psnecl", &m_hie_E_eff, m_c_hie_E_eff, "hie bit", "E (GeV)"},
123 {"TRGEFF/nobha_hie_E_psnecl", &m_nobha_hie_E_eff, m_c_nobha_hie_E_eff, "nobha hie bit", "E (GeV)"},
124 {"TRGEFF/ecltiming_E_psnecl", &m_ecltiming_E_eff, m_c_ecltiming_E_eff, "ecltiming bit", "E (GeV)"},
125 {"TRGEFF/ecltiming_theta_psnecl", &m_ecltiming_theta_eff, m_c_ecltiming_theta_eff, "ecltiming bit", "#theta (degree)"},
126 {"TRGEFF/ecltiming_phi_psnecl", &m_ecltiming_phi_eff, m_c_ecltiming_phi_eff, "ecltiming bit", "#phi (degree)"},
127 {"TRGEFF/klmhit_phi_psnecl", &m_klmhit_phi_eff, m_c_klmhit_phi_eff, "klmhit bit", "#phi (degree)"},
128 {"TRGEFF/klmhit_theta_psnecl", &m_klmhit_theta_eff, m_c_klmhit_theta_eff, "klmhit bit", "#theta (degree)"},
129 {"TRGEFF/eklmhit_phi_psnecl", &m_eklmhit_phi_eff, m_c_eklmhit_phi_eff, "eklmhit bit", "#phi (degree)"},
130 {"TRGEFF/eklmhit_theta_psnecl", &m_eklmhit_theta_eff, m_c_eklmhit_theta_eff, "eklmhit bit", "#theta (degree)"}
131
132 // Add more entries as needed
133 };
134
135 B2DEBUG(1, "DQMHistAnalysisTRGEFF: initialized.");
136}
137
138
140{
141 B2DEBUG(1, "DQMHistAnalysisTRGEFF: event start.");
142 m_IsPhysicsRun = (getRunType() == "physics");
143 m_IsCosmicRun = (getRunType() == "cosmic");
144 m_IsDebugRun = (getRunType() == "debug");
145
146 //if (m_IsPhysicsRun == true || m_IsCosmicRun == true || m_IsDebugRun == true)
147
148 B2DEBUG(1, "DQMHistAnalysisTRGEFF: fill histogram");
149
150 for (auto& entry : m_efficiencyList) {
151 const std::string& name = std::get<0>(entry); // Get the histogram name
152 TEfficiency** efficiencyPtr = std::get<1>(entry); // Get the efficiency pointer
153 TCanvas* canvas = std::get<2>(entry); // Get the canvas pointer
154 const std::string& title = std::get<3>(entry); // Get the histogram title
155 const std::string& xtitle = std::get<4>(entry); // Get the histogram X-title
156
157 B2DEBUG(1, "The current histogram name is " << name); // Debug print
158 TH1F* hist = (TH1F*)findHist(name);
159 TH1F* histFtdf = (TH1F*)findHist(name + "_ftdf");
160 if (hist == nullptr || histFtdf == nullptr) {
161 B2WARNING("Histogram for " + name + " or its Ftdf counterpart is not found.");
162 return;
163 }
164
165 // Delete old efficiency if it exists
166 if (*efficiencyPtr != nullptr) {
167 delete *efficiencyPtr;
168 *efficiencyPtr = nullptr;
169 }
170
171 // Check consistency and create a new TEfficiency
172 if (TEfficiency::CheckConsistency(*histFtdf, *hist)) {
173 *efficiencyPtr = new TEfficiency(*histFtdf, *hist);
174
175 hist->GetYaxis()->SetNdivisions(505);
176 hist->GetXaxis()->SetTitleSize(0.04);
177 hist->GetYaxis()->SetTitleSize(0.04);
178 hist->GetYaxis()->SetLabelSize(0.03);
179 hist->GetXaxis()->SetLabelSize(0.03);
180 hist->GetYaxis()->SetTitleOffset(1.);
181 hist->GetXaxis()->SetTitleOffset(1.);
182 hist->GetYaxis()->SetTitleFont(42);
183 hist->GetXaxis()->SetTitleFont(42);
184 hist->GetYaxis()->SetLabelFont(42);
185 hist->GetXaxis()->SetLabelFont(42);
186 hist->GetXaxis()->SetTitle(xtitle.c_str());
187 hist->GetYaxis()->SetTitle("#epsilon");
188 hist->GetYaxis()->SetRangeUser(0, 1);
189 // hist->GetXaxis()->CenterTitle(true);
190 // hist->GetYaxis()->CenterTitle(true);
191
192 TLatex hist_title;
193 hist_title.SetTextAlign(23);
194 hist_title.SetTextSize(0.04);
195 hist_title.SetTextFont(42);
196 double pos_titleX = (hist->GetXaxis()->GetXmin() + hist->GetXaxis()->GetXmax()) / 2; // X position of histogram title
197 double pos_titleY = 1.1; // Y position of histogram title
198
199 // Draw efficiency on canvas and update it
200 canvas->Clear();
201 canvas->cd();
202
203 hist->Draw("axis");
204 hist_title.DrawLatex(pos_titleX, pos_titleY, title.c_str());
205 (*efficiencyPtr)->Draw("same");
206
207 canvas->Modified();
208
209 } else {
210 B2WARNING("Histograms " << histFtdf->GetName() << " and " << hist->GetName() << " are not consistent for efficiency calculation.");
211 canvas->Clear();
212 }
213 }
214
215}
216
218{
219 B2DEBUG(1, "DQMHistAnalysisTRGEFF : endRun called");
220
221 // Loop through m_efficiencyList and process the efficiency histogram
222 for (auto& entry : m_efficiencyList) {
223 const std::string& name = std::get<0>(entry); // Get the histogram name
224 TEfficiency** efficiencyPtr = std::get<1>(entry); // Get the efficiency pointer
225
226 TEfficiency* effHist = *efficiencyPtr;
227
228 if (effHist) {
229 /***********************************************************
230 * rebin the histogram for MonitoringObject *
231 ***********************************************************/
232 TH1F* hist = (TH1F*)effHist->GetTotalHistogram();
233 TH1F* histFtdf = (TH1F*)effHist->GetPassedHistogram();
234
235 if (!hist) {
236 B2WARNING(std::string("DQMHistAnalysisTRGEFF: Failed to get total histogram"));
237 continue;
238 }
239
240 if (!histFtdf) {
241 B2WARNING(std::string("DQMHistAnalysisTRGEFF: Failed to get passed histogram"));
242 continue;
243 }
244
245 Double_t* newBins = nullptr;
246 int nBins = 1;
247
248 if (name.find("TRGEFF/nobha_hie_E_psnecl") != std::string::npos) {
249 newBins = new Double_t[4] {0, 0.6, 1.6, hist->GetXaxis()->GetXmax()}; // Allocate on heap
250 nBins = 3;
251 } else if (name.find("TRGEFF/nobha_stt_P3_psnecl") != std::string::npos) {
252 newBins = new Double_t[4] {0, 0.5, 1, hist->GetXaxis()->GetXmax()};
253 nBins = 3;
254 } else if (name.find("TRGEFF/nobha_fyo_dphi_psnecl") != std::string::npos) {
255 newBins = new Double_t[4] {0, 80, 100, hist->GetXaxis()->GetXmax()};
256 nBins = 3;
257 } else if (name.find("TRGEFF/klmhit_theta_psnecl") != std::string::npos) {
258 newBins = new Double_t[2] {0, hist->GetXaxis()->GetXmax()}; // Assuming barrel is one bin
259 nBins = 1;
260 } else if (name.find("TRGEFF/eklmhit_theta_psnecl") != std::string::npos) {
261 newBins = new Double_t[3] {0, 90, hist->GetXaxis()->GetXmax()}; // Assuming forward and backward are two bins
262 nBins = 2;
263 } else {
264 newBins = new Double_t[2] {0, hist->GetXaxis()->GetXmax()}; // Average of all bins
265 nBins = 1;
266 }
267
268 // Sort the bins if there are more than one
269 if (nBins > 1) {
270 std::sort(newBins, newBins + nBins + 1); // nBins + 1 because we need to sort the edges
271 }
272
273 TEfficiency* efficiencyRebinnedPtr = nullptr;
274
275 // rebin the found histograms
276 TH1F* histRebinned = (TH1F*)hist->Rebin(nBins, (name + "_rebinned").c_str(), newBins);
277 TH1F* histFtdfRebinned = (TH1F*)histFtdf->Rebin(nBins, (name + "_ftdf_rebinned").c_str(), newBins);
278
279 // delete the allocated memory
280 delete[] newBins;
281
282 // Check consistency and create a new TEfficiency for rebinned histograms
283 if (TEfficiency::CheckConsistency(*histFtdfRebinned, *histRebinned)) {
284 efficiencyRebinnedPtr = new TEfficiency(*histFtdfRebinned, *histRebinned);
285
286 // Clean the name: remove "TRGEFF/" prefix and "_psnecl" suffix for the name in m_efficiencyList
287 std::string cleanName = name;
288
289 // Find and erase "TRGEFF/" if it exists
290 size_t prefixPos = cleanName.find("TRGEFF/");
291 if (prefixPos != std::string::npos) {
292 cleanName.erase(prefixPos, std::string("TRGEFF/").length()); // Remove "TRGEFF/"
293 }
294
295 // Find and erase "_psnecl" if it exists
296 size_t suffixPos = cleanName.find("_psnecl");
297 if (suffixPos != std::string::npos) {
298 cleanName.erase(suffixPos, std::string("_psnecl").length()); // Remove "_psnecl"
299 }
300
301 int nbins = efficiencyRebinnedPtr->GetTotalHistogram()->GetNbinsX();
302 for (int i = 1; i <= nbins; i++) {
303 char varName[100];
304 sprintf(varName, "%s_%i", cleanName.c_str(), i);
305 B2DEBUG(1, "The name for MonitoringObject histogram is " << varName << " " << efficiencyRebinnedPtr->GetEfficiency(
306 i) << " " << efficiencyRebinnedPtr->GetEfficiencyErrorUp(i) << " " << efficiencyRebinnedPtr->GetEfficiencyErrorLow(i));
307 m_mon_trgeff->setVariable(varName,
308 efficiencyRebinnedPtr->GetEfficiency(i),
309 efficiencyRebinnedPtr->GetEfficiencyErrorUp(i),
310 efficiencyRebinnedPtr->GetEfficiencyErrorLow(i));
311 }
312
313 if (efficiencyRebinnedPtr != nullptr) {
314 delete efficiencyRebinnedPtr;
315 }
316
317 } else {
318 B2WARNING("Rebinned histograms " << histFtdfRebinned->GetName() << " and " << histRebinned->GetName() <<
319 " are not consistent for efficiency calculation.");
320 }
321 // Delete the rebinned histograms
322 delete histRebinned;
323 delete histFtdfRebinned;
324
325 } else {
326 B2WARNING(std::string("Efficiency histogram is null for ") + name);
327 }
328 }
329
330
331}
332
334{
335 B2DEBUG(1, "terminate called");
336}
337
static MonitoringObject * getMonitoringObject(const std::string &name)
Get MonitoringObject with given name (new object is created if non-existing)
static TH1 * findHist(const std::string &histname, bool onlyIfUpdated=false)
Get histogram from list (no other search).
static const std::string & getRunType(void)
Get the list of the reference histograms.
DQMHistAnalysisModule()
Constructor / Destructor.
TEfficiency * m_nobha_hP3_z_eff
remove the bha_veto, the efficiency of p for z bit
TEfficiency * m_hie_E_eff
the efficiency of phi for hie bit
TEfficiency * m_nobha_f_phi_eff
remove the bha_veto, the efficiency of phi for f bit
TCanvas * m_cP3_z_eff
for CDC TRG, the histograms for 3-momentum p with ecl mask bits, p of z bit with ecl mask bits.
TCanvas * m_c_nobha_phi_z_eff
remove the bha_veto, canvas for TRGEFF efficiency, z bit
TEfficiency * m_ecltiming_phi_eff
the efficiency of phi for ecltiming bit
void initialize() override final
Initialize the Module.
TEfficiency * m_eklmhit_phi_eff
the efficiency of phi for eklmhit bit
TCanvas * m_c_nobha_f_phi_eff
remove the bha_veto, canvas for TRGEFF efficiency, f bit
TCanvas * m_c_eklmhit_theta_eff
canvas for TRGEFF efficiency, eklmhit bit
bool m_IsCosmicRun
Run type flag for cosmic runs.
TCanvas * m_cP3_y_eff
for CDC TRG, the histograms for 3-momentum p with ecl mask bits, p of y bit with ecl mask bits.
TEfficiency * m_hPt_eff
the efficiency of Pt for f bit
TCanvas * m_c_klmhit_phi_eff
for KLM TRG, the histograms for the phi of the ecl mask bits, and the phi of klmhit bit with ecl mask...
TCanvas * m_nobha_cPt_eff
remove the bha_veto, Canvas for TRGEFF efficiency, Pt
bool m_IsDebugRun
Run type flag for debug runs.
bool m_IsPhysicsRun
Run type flag for physics runs.
TEfficiency * m_ecltiming_theta_eff
the efficiency of theta for ecltiming bit
bool m_enableAlert
Enable alert by base color of canvases.
TCanvas * m_c_ecltiming_theta_eff
canvas for TRGEFF efficiency, ecltiming bit
TCanvas * m_c_ecltiming_E_eff
for ECL TRG, the histograms for the sum energy E distribution in an event with cdc mask bits,...
TCanvas * m_c_stt_phi_eff
for CDC TRG, the histograms for the phi distribution with ecl mask bits, the phi of stt bit with ecl ...
TEfficiency * m_hP3_y_eff
the efficiency of p for y bit
TEfficiency * m_klmhit_phi_eff
the efficiency of phi for klmhit bit
TCanvas * m_c_eklmhit_phi_eff
for KLM TRG, the histograms for the phi of the ecl mask bits, and the phi of eklmhit bit with ecl mas...
TCanvas * m_c_fyo_dphi_eff
for CDC TRG, the histograms for the largest dphi in an event with ecl mask bits, the largest dphi in ...
TEfficiency * m_nobha_stt_theta_eff
remove the bha_veto, the efficiency of theta for stt bit
void terminate() override final
Termination action.
TEfficiency * m_nobha_hPt_eff
remove the bha_veto, the efficiency of Pt for f bit
TEfficiency * m_stt_P3_eff
the efficiency of p for stt bit
TEfficiency * m_nobha_hie_E_eff
remove the bha_veto, the efficiency of phi for hie bit
TCanvas * m_c_stt_P3_eff
for CDC TRG, the histograms for the largest momentum p distribution in an event of the ecl mask bits,...
void event() override final
Event processor.
TCanvas * m_c_nobha_stt_theta_eff
remove the bha_veto, canvas for TRGEFF efficiency, stt bit
TCanvas * m_c_stt_theta_eff
for CDC TRG, the theta of stt distribution.
TEfficiency * m_stt_phi_eff
the efficiency of phi for stt bit
TEfficiency * m_nobha_stt_phi_eff
remove the bha_veto, the efficiency of phi for stt bit
TCanvas * m_cPt_eff
for CDC TRG, the histograms for momentum pt of the ecl mask bits, the pt of f bit with ecl mask bits.
TCanvas * m_c_ecltiming_phi_eff
canvas for TRGEFF efficiency, ecltiming bit
TCanvas * m_cPhi_eff
for CDC TRG, the histograms for phi of the ecl mask bits, the phi of f bit with ecl mask bits.
TEfficiency * m_klmhit_theta_eff
the efficiency of theta for klmhit bit
TEfficiency * m_eklmhit_theta_eff
the efficiency of theta for eklmhit bit
TCanvas * m_c_nobha_phi_y_eff
remove the bha_veto, canvas for TRGEFF efficiency, y bit
void endRun() override final
End-of-run action.
TEfficiency * m_hP3_z_eff
the efficiency of p for z bit
TEfficiency * m_hPhi_eff
the efficiency of Phi
TCanvas * m_c_nobha_fyo_dphi_eff
remove the bha_veto, canvas for TRGEFF efficiency, fyo bit
TEfficiency * m_fyo_dphi_eff
the efficiency of dphi for fyo bit
TCanvas * m_c_klmhit_theta_eff
canvas for TRGEFF efficiency, klmhit bit
TCanvas * m_nobha_cP3_z_eff
remove the bha_veto, canvas for TRGEFF efficiency, z bit
TEfficiency * m_stt_theta_eff
the efficiency of theta for stt bit
TEfficiency * m_nobha_phi_y_eff
remove the bha_veto, the efficiency of phi for y bit
TCanvas * m_c_hie_E_eff
for ECL TRG, the histograms for the sum energy E distribution in an event within the thetaID range of...
TCanvas * m_c_nobha_stt_P3_eff
remove the bha_veto, canvas for TRGEFF efficiency, stt bit
TCanvas * m_nobha_cP3_y_eff
remove the bha_veto, canvas for TRGEFF efficiency, y bit
TCanvas * m_c_nobha_hie_E_eff
remove the bha_veto, canvas for TRGEFF efficiency, hie bit
Belle2::MonitoringObject * m_mon_trgeff
MonitoringObject for trg.
TEfficiency * m_nobha_fyo_dphi_eff
remove the bha_veto, the efficiency of dphi for fyo bit
TCanvas * m_c_nobha_stt_phi_eff
remove the bha_veto, canvas for TRGEFF efficiency, stt bit
TEfficiency * m_ecltiming_E_eff
the efficiency of phi for ecltiming bit
TEfficiency * m_nobha_phi_z_eff
remove the bha_veto, the efficiency of phi for z bit
TEfficiency * m_nobha_stt_P3_eff
remove the bha_veto, the efficiency of p for stt bit
std::vector< std::tuple< std::string, TEfficiency **, TCanvas *, std::string, std::string > > m_efficiencyList
Combined efficiency list,the histogram, efficiency, Canvas, title, Xtitle.
TEfficiency * m_nobha_hP3_y_eff
remove the bha_veto, the efficiency of p for y bit
void setDescription(const std::string &description)
Sets the description of the module.
Definition Module.cc:214
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
Definition Module.cc:208
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
Definition Module.h:80
void addParam(const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Definition Module.h:559
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition Module.h:649
Abstract base class for different kinds of events.
STL namespace.