Belle II Software development
DQMHistAnalysisPXDER.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#pragma once
10
11#include <dqm/core/DQMHistAnalysis.h>
12#include <TFile.h>
13
14namespace Belle2 {
22
23 public:
24
29
34
38 void initialize() override final;
39
43 void beginRun() override final;
44
48 void event() override final;
49
53 void terminate(void) override final;
54
55 private:
56
58 //TDirectory* m_oldDir;
59
61// TH1I* m_fHitMapCountsFlag;
63// TH1I* m_fHitMapClCountsFlag;
65 TH1I* m_fFiredFlag = nullptr;
67 TH1I* m_fClustersFlag = nullptr;
69 TH1I* m_fStartRowFlag = nullptr;
71 TH1I* m_fChargStartRowFlag = nullptr;
73 TH1I* m_fStartRowCountFlag = nullptr;
75 TH1I* m_fClusterChargeFlag = nullptr;
77 TH1I* m_fPixelSignalFlag = nullptr;
79 TH1I* m_fClusterSizeUFlag = nullptr;
81 TH1I* m_fClusterSizeVFlag = nullptr;
83 TH1I* m_fClusterSizeUVFlag = nullptr;
84
85 // Name the histograms, we have to find them anyway every event
87// std::string m_hitMapCounts;
89// std::string m_hitMapClCounts;
90
92 std::vector <std::string> m_fired;
94 std::vector <std::string> m_clusters;
96 std::vector <std::string> m_startRow;
98 std::vector <std::string> m_chargStartRow;
100 std::vector <std::string> m_startRowCount;
102 std::vector <std::string> m_clusterCharge;
104 std::vector <std::string> m_pixelSignal;
106 std::vector <std::string> m_clusterSizeU;
108 std::vector <std::string> m_clusterSizeV;
110 std::vector <std::string> m_clusterSizeUV;
111
112
114 std::vector <std::string> m_ref_fired;
116 std::vector <std::string> m_ref_clusters;
118 std::vector <std::string> m_ref_startRow;
120 std::vector <std::string> m_ref_chargStartRow;
122 std::vector <std::string> m_ref_startRowCount;
124 std::vector <std::string> m_ref_clusterCharge;
126 std::vector <std::string> m_ref_pixelSignal;
128 std::vector <std::string> m_ref_clusterSizeU;
130 std::vector <std::string> m_ref_clusterSizeV;
132 std::vector <std::string> m_ref_clusterSizeUV;
133
135 //int m_nPixels;
156
163 void getIDsFromIndex(const int Index, int& Layer, int& Ladder, int& Sensor) const;
189 int SetFlag(int Type, int bin, const double* pars, double ratio, const std::string& name_hist, const std::string& name_refhist,
190 TH1I* flaghist);
216// int SetFlag(int Type, int bin, double* pars, double ratio, TH1I* hist, TH1I* refhist, TH1I* flaghist);
217
221 std::string m_refFileName;
223 TFile* m_refFile = nullptr;
224
225 };
226
228}
229
The base class for the histogram analysis module.
int c_nPXDLayers
Number of PXD layers on Belle II.
void terminate(void) override final
Terminator.
std::string m_refFileName
Reference Histogram Root file name.
void initialize() override final
Initializer.
std::vector< std::string > m_chargStartRow
Cluster seed charge by distance from the start row.
std::vector< std::string > m_startRow
Start row distribution.
std::vector< std::string > m_ref_clusterCharge
Charge of clusters.
TH1I * m_fClusterSizeUFlag
Flags of u cluster size.
int c_firstVXDLayer
First VXD layer on Belle II.
std::vector< std::string > m_ref_clusterSizeV
v cluster size
int c_lastVXDLayer
Last VXD layer on Belle II.
std::vector< std::string > m_clusterSizeU
u cluster size
TH1I * m_fPixelSignalFlag
Flags of Charge of pixels.
std::vector< std::string > m_ref_startRow
Start row distribution.
int c_lastPXDLayer
Last PXD layer on Belle II.
std::vector< std::string > m_ref_clusterSizeU
u cluster size
std::vector< std::string > m_clusters
Clusters per event.
std::vector< std::string > m_ref_startRowCount
counter for Cluster seed charge by distance from the start row
TH1I * m_fStartRowFlag
Flags of Start row distribution.
TH1I * m_fClusterSizeUVFlag
Flags of Cluster size.
std::vector< std::string > m_clusterSizeUV
Cluster size.
int c_firstPXDLayer
First PXD layer on Belle II.
TH1I * m_fStartRowCountFlag
Flags of counter for Cluster seed charge by distance from the start row.
TH1I * m_fChargStartRowFlag
Flags of Cluster seed charge by distance from the start row.
void event() override final
This method is called for each event.
TH1I * m_fClusterSizeVFlag
Flags of v cluster size.
TH1I * m_fClustersFlag
Flags of Clusters per event.
std::vector< std::string > m_startRowCount
counter for Cluster seed charge by distance from the start row
std::string m_histogramDirectoryName
Function return flag histogram filled based on condition from TH1I source.
std::vector< std::string > m_clusterSizeV
v cluster size
std::vector< std::string > m_pixelSignal
Charge of pixels.
std::vector< std::string > m_ref_clusterSizeUV
Cluster size.
std::vector< std::string > m_ref_clusters
Clusters per event.
void beginRun() override final
Called when entering a new run.
TH1I * m_fClusterChargeFlag
Flags of Charge of clusters.
int SetFlag(int Type, int bin, const double *pars, double ratio, const std::string &name_hist, const std::string &name_refhist, TH1I *flaghist)
Function return flag histogram filled based on condition from TH1F source.
std::vector< std::string > m_fired
Hitmaps of Digits.
TH1I * m_fFiredFlag
Basic Directory in output file.
std::vector< std::string > m_ref_chargStartRow
Cluster seed charge by distance from the start row.
std::vector< std::string > m_ref_pixelSignal
Charge of pixels.
int c_nPXDSensors
Number of PXD sensors on Belle II.
std::vector< std::string > m_clusterCharge
Charge of clusters.
void getIDsFromIndex(const int Index, int &Layer, int &Ladder, int &Sensor) const
Function return index of sensor in plots.
int c_nVXDLayers
Number of pixels on PXD v direction.
std::vector< std::string > m_ref_fired
Fired pixels per event.
int c_firstSVDLayer
First SVD layer on Belle II.
int c_nSVDLayers
Number of SVD layers on Belle II.
int c_lastSVDLayer
Last SVD layer on Belle II.
TFile * m_refFile
The pointer to the reference file.
Abstract base class for different kinds of events.