Belle II Software development
DQMHistAnalysisSVDEfficiency.h
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// File : DQMHistAnalysisSVDEfficiency.h
10// Description : module for DQM histogram analysis of SVD sensors efficiencies
11//-
12
13#pragma once
14
15#include <dqm/analysis/modules/DQMHistAnalysisSVD.h>
16#include <svd/dataobjects/SVDSummaryPlots.h>
17
18#include <TFile.h>
19#include <TPaveText.h>
20#include <TCanvas.h>
21#include <TText.h>
22#include <TLine.h>
23#include <TArrow.h>
24
25namespace Belle2 {
33
34 // Public functions
35 public:
36
41
46
50 void initialize() override final;
51
55 void beginRun() override final;
56
60 void event() override final;
61
65 void endRun() override final;
66
70 void terminate() override final;
71
72 private:
73
74 //parameters
75 double m_effError;
76 double m_effWarning;
81 TCanvas* m_cEfficiencyU = nullptr;
82 TCanvas* m_cEfficiencyV = nullptr;
84 TCanvas* m_cEfficiencyErrU = nullptr;
85 TCanvas* m_cEfficiencyErrV = nullptr;
88 TCanvas* m_cEfficiencyU3Samples = nullptr;
89 TCanvas* m_cEfficiencyV3Samples = nullptr;
91 TCanvas* m_cEfficiencyErrU3Samples = nullptr;
92 TCanvas* m_cEfficiencyErrV3Samples = nullptr;
95 TCanvas* m_cEfficiencyRPhiViewU = nullptr;
96 TCanvas* m_cEfficiencyRPhiViewV = nullptr;
97 TCanvas* m_cEfficiencyErrRPhiViewU = nullptr;
98 TCanvas* m_cEfficiencyErrRPhiViewV = nullptr;
105 Int_t findBinY(Int_t layer, Int_t sensor);
110 void setEffStatus(float den, float eff, bool isU = false);
113 std::vector<VxdID> m_SVDModules;
114
115 std::string m_pvPrefix;
116 };
118} // end namespace Belle2
119
Class definition for the output module of Sequential ROOT I/O.
TCanvas * m_cEfficiencyErrRPhiViewU
efficiency U error plot canvas
TCanvas * m_cEfficiencyErrRPhiViewV3Samples
efficiency V error plot canvas for 3 samples
SVDSummaryPlots * m_hEfficiency3Samples
efficiency histo for 3 samples
TCanvas * m_cEfficiencyErrV3Samples
efficiency V error plot canvas for 3 samples
svdStatus m_effUstatus
number representing the status of the efficiency U side
TCanvas * m_cEfficiencyErrRPhiViewV
efficiency V error plot canvas
double m_statThreshold
minimal number of tracks per sensor to set green or red frame
TCanvas * m_cEfficiencyErrU
efficiency U error plot canvas
Int_t findBinY(Int_t layer, Int_t sensor)
find Y bin corresponding to sensor, efficiency plot
TCanvas * m_cEfficiencyRPhiViewV3Samples
efficiency V plot canvas for 3 samples
std::vector< VxdID > m_SVDModules
IDs of all SVD Modules to iterate over.
svdStatus m_effVstatus
number representing the status of the efficiency V side
SVDSummaryPlots * m_hEfficiencyErr3Samples
efficiency error histo for 3 samples
std::string m_pvPrefix
string prefix for EPICS PVs
double m_effWarning
warning level of the efficiency
double m_effError
error level of the efficiency
void terminate() override final
This method is called at the end of the event processing.
void event() override final
This method is called for each event.
bool m_3Samples
if true enable 3 samples histograms analysis
TCanvas * m_cEfficiencyU3Samples
efficiency U plot canvas for 3 samples
void endRun() override final
This method is called if the current run ends.
TCanvas * m_cEfficiencyErrU3Samples
efficiency U error plot canvas for 3 samples
void setEffStatus(float den, float eff, bool isU=false)
set efficiency status
void beginRun() override final
Called when entering a new run.
TCanvas * m_cEfficiencyRPhiViewU
efficiency U plot canvas
TCanvas * m_cEfficiencyV3Samples
efficiency V plot canvas for 3 samples
TCanvas * m_cEfficiencyErrV
efficiency V error plot canvas
TCanvas * m_cEfficiencyRPhiViewV
efficiency V plot canvas
TCanvas * m_cEfficiencyErrRPhiViewU3Samples
efficiency U error plot canvas for 3 samples
SVDSummaryPlots * m_hEfficiencyErr
efficiency error histo
TCanvas * m_cEfficiencyRPhiViewU3Samples
efficiency U plot canvas for 3 samples
Class definition for common method.
class to summarize SVD quantities per sensor and side
Abstract base class for different kinds of events.