Belle II Software  release-08-01-10
cdcDQM7.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 <cdc/dataobjects/CDCHit.h>
12 #include <cdc/dataobjects/CDCRawHit.h>
13 
14 #include <framework/core/HistoModule.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <framework/datastore/StoreObjPtr.h>
17 #include <rawdata/dataobjects/RawFTSW.h>
18 
19 #include <vector>
20 #include "TH1F.h"
21 #include "TH1D.h"
22 #include "TH2D.h"
23 
24 namespace Belle2 {
33  class cdcDQM7Module : public HistoModule {
34 
35  public:
36 
38  cdcDQM7Module();
39 
41  virtual ~cdcDQM7Module();
42 
44  void initialize() override;
46  void beginRun() override;
48  void event() override;
50  void endRun() override;
52  void terminate() override;
53 
55  void defineHisto() override;
56 
57  private:
58 
61 
64 
65  TH1D* h_nhits_L[56] = {nullptr};
67  TH1D* h_tdc_sL[9] = {nullptr};
68  TH1D* h_adc_sL[9] = {nullptr};
70  TH1D* h_fast_tdc = nullptr;
71  TH1D* h_board_out_tdc = nullptr;
73  TH2D* bmap_2 = nullptr;
74  // add
75  TH1D* h_occ = nullptr;
76  TH1D* h_occ_L[56] = {nullptr};
78  TH1D* h_hit_cell = nullptr;
80  TH1D* h_EoccAfterInjLER = nullptr;
81  TH1D* h_EoccAfterInjHER = nullptr;
82  TH1D* h_occAfterInjLER = nullptr;
83  TH1D* h_occAfterInjHER = nullptr;
87  };
89 }
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
The module for Data Quality Monitor.
Definition: cdcDQM7.h:33
TH1D * h_board_out_tdc
board w/ out of range TDC
Definition: cdcDQM7.h:71
TH1D * h_fast_tdc
fastest TDC in each event
Definition: cdcDQM7.h:70
TH1D * h_tdc_sL[9]
tdc each super layer
Definition: cdcDQM7.h:67
TH1D * h_occAfterInjLER
occupancy after LER injection.
Definition: cdcDQM7.h:82
void initialize() override
Module functions.
Definition: cdcDQM7.cc:168
void event() override
action per each event
Definition: cdcDQM7.cc:203
StoreArray< CDCRawHit > m_CDCRawHits
CDC raw hits.
Definition: cdcDQM7.h:60
void endRun() override
action at run end
Definition: cdcDQM7.cc:383
StoreArray< RawFTSW > m_rawFTSW
Input array for DAQ Status.
Definition: cdcDQM7.h:85
virtual ~cdcDQM7Module()
Destructor.
Definition: cdcDQM7.cc:39
void terminate() override
termination action
Definition: cdcDQM7.cc:389
TH2D * bmap_2
board status map 2D
Definition: cdcDQM7.h:73
TH1D * h_EoccAfterInjLER
nhits after LER injection.
Definition: cdcDQM7.h:80
TH1D * h_EoccAfterInjHER
nhits after HER injection.
Definition: cdcDQM7.h:81
TH1D * h_nhits_L[56]
histogram hit in each layer
Definition: cdcDQM7.h:65
void beginRun() override
action at runbegin
Definition: cdcDQM7.cc:177
TH1D * h_occAfterInjHER
occupancy after HER injection.
Definition: cdcDQM7.h:83
TH1D * h_adc_sL[9]
adc each super layer
Definition: cdcDQM7.h:68
TH1D * h_occ_L[56]
occupancy-layer-dep.
Definition: cdcDQM7.h:76
cdcDQM7Module()
Constructor.
Definition: cdcDQM7.cc:32
TH1D * h_hit_cell
hits-of-cell
Definition: cdcDQM7.h:78
TH1D * h_occ
occupancy
Definition: cdcDQM7.h:75
void defineHisto() override
function to define histograms
Definition: cdcDQM7.cc:67
StoreArray< CDCHit > m_CDCHits
CDC hits.
Definition: cdcDQM7.h:63
Abstract base class for different kinds of events.