Belle II Software  release-08-01-10
vxdDigitMaskingModule.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 <framework/core/HistoModule.h>
12 #include "TH1F.h"
13 #include "TH2F.h"
14 
15 namespace Belle2 {
25  class vxdDigitMaskingModule : public HistoModule { // <- derived from HistoModule class
26 
27  public:
28 
31  /* Destructor */
32  virtual ~vxdDigitMaskingModule();
33 
35  void initialize() override final;
37  void beginRun() override final;
39  void event() override final;
41  void endRun() override final;
42 
47  void defineHisto() override final;
48 
49  private:
50 
54  std::string m_storePXDDigitsName;
57 
58 
64  std::string m_PXDMaskFileRunName;
66  std::string m_SVDMaskFileRunName;
67 
75  long* m_nEventsPlane{nullptr};
78 
80  float m_PXDChargeCut = 10;
82  float m_SVDuChargeCut = 10;
84  float m_SVDvChargeCut = 10;
85 
87  float m_PXDCut = 50;
89  float m_SVDuCut = 50;
91  float m_SVDvCut = 50;
92 
94  TH2F** m_PXDHitMapUV{nullptr};
96  TH2F** m_PXDMaskUV{nullptr};
97 
99  TH1F** m_SVDHitMapU{nullptr};
101  TH1F** m_SVDHitMapV{nullptr};
103  TH1F** m_SVDMaskU{nullptr};
105  TH1F** m_SVDMaskV{nullptr};
107  TH1F** m_SVDHitMapU2{nullptr};
109  TH1F** m_SVDHitMapV2{nullptr};
111  TH1F** m_SVDMaskU2{nullptr};
113  TH1F** m_SVDMaskV2{nullptr};
114  };
115 
117 }
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
void initialize() override final
Initialize.
float m_SVDvChargeCut
Cut for charge of SVD v strip - in ADU.
long m_nEventsProcess
Number of events to process.
TH1F ** m_SVDHitMapV
SVD hitmaps for v strips and timestamp by plane.
std::string m_PXDMaskFileRunName
Name of file with list of PXD masked channels.
TH1F ** m_SVDHitMapU2
SVD hitmaps for u strips and timestamp by plane.
long * m_nEventsPlane
How many events in plane.
void defineHisto() override final
Histogram definitions such as TH1(), TH2(), TNtuple(), TTree()....
float m_PXDCut
Cut for masking of PXD pixel - preset for 1 kEvent.
TH2F ** m_PXDMaskUV
mask for pixels by PXD plane
std::string m_SVDMaskFileBasicName
Name of file with list of SVD basic masked channels.
void event() override final
Event.
int m_AppendMaskFile
Set option for append of existing file or recreate new list.
std::string m_storeSVDShaperDigitsName
SVDShaperDigits StoreArray name.
std::string m_histogramDirectoryName
directory fo histograms name
std::string m_SVDMaskFileRunName
Name of file with list of SVD masked channels.
float m_SVDuChargeCut
Cut for charge of SVD u strip - in ADU.
std::string m_PXDMaskFileBasicName
Name of file with list of PXD basic masked channels.
TH1F ** m_SVDMaskV
SVD mask for v strips by plane.
long m_nRealEventsProcess
Real Number of events to process.
TH1F ** m_SVDMaskU2
SVD mask for u strips by plane.
void endRun() override final
End run.
TH2F ** m_PXDHitMapUV
Hitmaps for pixels by PXD plane.
TH1F ** m_SVDHitMapU
SVD hitmaps for u strips and timestamp by plane.
void beginRun() override final
Begin run.
TH1F ** m_SVDHitMapV2
SVD hitmaps for v strips and timestamp by plane.
float m_SVDvCut
Cut for masking of SVD v strip - preset for 1 kEvent.
float m_PXDChargeCut
Cut for charge of PXD pixel - in ADU.
TH1F ** m_SVDMaskV2
SVD mask for v strips by plane.
float m_SVDuCut
Cut for masking of SVD u strip - preset for 1 kEvent.
float m_nEventsProcessFraction
Fraction of events to process to expected No.
TH1F ** m_SVDMaskU
SVD mask for u strips by plane.
std::string m_storePXDDigitsName
PXDDigits StoreArray name.
Abstract base class for different kinds of events.