Belle II Software  release-08-01-10
DQMHistAnalysisPXDCM.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 : DQMHistAnalysisPXDCM.h
10 // Description : DQM Analysis for PXD Common Modes
11 //-
12 
13 #pragma once
14 
15 #include <dqm/core/DQMHistAnalysis.h>
16 
17 #include <vxd/dataobjects/VxdID.h>
18 
19 #include <TH2.h>
20 #include <TLine.h>
21 
22 namespace Belle2 {
30 
31  // Public functions
32  public:
33 
38 
43 
47  void initialize(void) override final;
48 
52  void beginRun(void) override final;
53 
57  void event(void) override final;
58 
62  void terminate(void) override final;
63 
64  private:
65 
66  // Data members
70  int m_minEntries = 10000;
71 
73  double m_warnMeanAdhoc{};
75  double m_errorMeanAdhoc{};
83  std::vector<int> m_excluded;
84 
86  std::vector <std::string> m_parModuleList;
88  std::vector <std::vector<int>> m_parGateList;
89 
91  std::map <VxdID, std::vector<int>> m_maskedGates;
92 
94  std::vector<VxdID> m_PXDModules;
95 
97  TH2D* m_hCommonModeDelta = nullptr;
99  TCanvas* m_cCommonModeDelta = nullptr;
101  TLine* m_line1 = nullptr;
103  TLine* m_lineA = nullptr;
104 
107  };
109 } // end namespace Belle2
110 
The base class for the histogram analysis module.
DQM Histogram Analysis for PXD Common Modes.
void terminate(void) override final
This method is called at the end of the event processing.
int m_minEntries
Update entry intervall.
double m_warnMeanAdhoc
warn level for mean adhoc plot
TCanvas * m_cCommonModeDelta
Final Canvas.
double m_errorMeanAdhoc
error level for mean adhoc plot
void initialize(void) override final
Initializer.
TLine * m_lineA
Line in the Canvas to guide the eye.
MonitoringObject * m_monObj
Monitoring Object.
TH2D * m_hCommonModeDelta
histogram covering all modules
std::vector< VxdID > m_PXDModules
IDs of all PXD Modules to iterate over.
std::string m_histogramDirectoryName
name of histogram directory
int m_upperLineAdhoc
threshold level/line for outside fraction
std::map< VxdID, std::vector< int > > m_maskedGates
Module wise gate masking in CM plot and alarm.
double m_errorOutsideAdhoc
error level for outside fraction
TLine * m_line1
Line in the Canvas to guide the eye.
std::vector< std::vector< int > > m_parGateList
Gate list for masking.
std::vector< int > m_excluded
Indizes of excluded PXD Modules.
void beginRun(void) override final
Called when entering a new run.
void event(void) override final
This method is called for each event.
std::vector< std::string > m_parModuleList
Module list for masking.
double m_warnOutsideAdhoc
warn level for outside fraction
MonitoringObject is a basic object to hold data for the run-dependency monitoring Run summary TCanvas...
Abstract base class for different kinds of events.