Belle II Software  release-05-02-19
CDCDQMModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Makoto Uchida *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef CDCDQMMODULE_H
12 #define CDCDQMMODULE_H
13 
14 #include <framework/core/HistoModule.h>
15 
16 #include <framework/core/Module.h>
17 #include <framework/datastore/StoreArray.h>
18 #include <framework/database/DBArray.h>
19 #include <framework/database/DBObjPtr.h>
20 #include <cdc/dataobjects/CDCHit.h>
21 #include <cdc/dataobjects/CDCRawHit.h>
22 #include <mdst/dataobjects/TRGSummary.h>
23 
24 #include <TH1F.h>
25 #include <TH2F.h>
26 
27 namespace Belle2 {
39  class CDCDQMModule : public HistoModule {
40 
41  public:
42 
46  CDCDQMModule();
47 
51  virtual ~CDCDQMModule();
52 
57  void initialize() override;
58 
63  void defineHisto() override;
64 
69  void beginRun() override;
70 
74  void event() override;
75 
80  void endRun() override;
81 
86  void terminate() override;
87 
88 
89  protected:
90  Long64_t m_nEvents = 0;
91  TH1F* m_hNEvents = nullptr;
92  TH2F* m_hADC = nullptr;
93  TH2F* m_hADCTOTCut = nullptr;
94  TH2F* m_hTDC = nullptr;
95  TH2F* m_hHit = nullptr;
96  TH1F* m_hOcc = nullptr;
97  int m_minHits;
98  };
99 
101 } // Belle2 namespace
102 
103 #endif
Belle2::CDCDQMModule::terminate
void terminate() override
Termination action.
Definition: CDCDQMModule.cc:139
Belle2::CDCDQMModule::m_hADC
TH2F * m_hADC
Histogram of ADC for all boards (0-299)
Definition: CDCDQMModule.h:100
Belle2::CDCDQMModule::m_hOcc
TH1F * m_hOcc
Histogram of occupancy.
Definition: CDCDQMModule.h:104
Belle2::CDCDQMModule::event
void event() override
Event processor.
Definition: CDCDQMModule.cc:95
Belle2::CDCDQMModule::beginRun
void beginRun() override
Called when entering a new run.
Definition: CDCDQMModule.cc:84
Belle2::CDCDQMModule::~CDCDQMModule
virtual ~CDCDQMModule()
Destructor.
Definition: CDCDQMModule.cc:51
Belle2::CDCDQMModule::endRun
void endRun() override
End-of-run action.
Definition: CDCDQMModule.cc:134
Belle2::CDCDQMModule::m_nEvents
Long64_t m_nEvents
Number of events processed.
Definition: CDCDQMModule.h:98
Belle2::CDCDQMModule::m_minHits
int m_minHits
Minimum hits for processing.
Definition: CDCDQMModule.h:105
Belle2::CDCDQMModule::defineHisto
void defineHisto() override
Histogram definitions.
Definition: CDCDQMModule.cc:55
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CDCDQMModule::m_hNEvents
TH1F * m_hNEvents
Histogram of num.
Definition: CDCDQMModule.h:99
Belle2::CDCDQMModule::m_hHit
TH2F * m_hHit
Histogram of hits for all layers (0-55)
Definition: CDCDQMModule.h:103
Belle2::CDCDQMModule::m_hTDC
TH2F * m_hTDC
Histogram of TDC for all boards (0-299)
Definition: CDCDQMModule.h:102
Belle2::CDCDQMModule::initialize
void initialize() override
Initialize the Module.
Definition: CDCDQMModule.cc:73
Belle2::CDCDQMModule::CDCDQMModule
CDCDQMModule()
Constructor.
Definition: CDCDQMModule.cc:43
Belle2::CDCDQMModule::m_hADCTOTCut
TH2F * m_hADCTOTCut
Histogram of ADC with tot cut for all boards (0-299)
Definition: CDCDQMModule.h:101