Belle II Software  release-08-01-10
TRGCDCT3DDQMModule.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 #ifndef TRCCDCT3DDQMMODULE_h
9 #define TRCCDCT3DDQMMODULE_h
10 
11 #include <framework/core/HistoModule.h>
12 #include <framework/datastore/StoreArray.h>
13 #include <trg/cdc/dataobjects/CDCTriggerTrack.h>
14 #include <trg/cdc/dataobjects/CDCTriggerSegmentHit.h>
15 #include <string>
16 
17 #include <TH1I.h>
18 
19 namespace Belle2 {
27 
28  public:
32  virtual ~TRGCDCT3DDQMModule() {}
33 
34  public:
36  virtual void initialize() override;
38  virtual void beginRun() override;
40  virtual void event() override;
42  virtual void endRun() override;
44  virtual void terminate() override {}
46  virtual void defineHisto() override;
47 
48  protected:
50  TH1D* h_dz = nullptr;
52  TH1D* h_phi = nullptr;
54  TH1D* h_tanlambda = nullptr;
56  TH1D* h_pt = nullptr;
58  TH1D* h_phi_2D = nullptr;
60  TH1D* h_pt_2D = nullptr;
62  TH1D* h_ID_TSF1 = nullptr;
64  TH1D* h_ID_TSF3 = nullptr;
66  TH1D* h_ID_TSF5 = nullptr;
68  TH1D* h_ID_TSF7 = nullptr;
70  TH1D* h_rt_TSF1 = nullptr;
72  TH1D* h_rt_TSF3 = nullptr;
74  TH1D* h_rt_TSF5 = nullptr;
76  TH1D* h_rt_TSF7 = nullptr;
78  TH1D* h_validity_TSF1 = nullptr;
80  TH1D* h_validity_TSF3 = nullptr;
82  TH1D* h_validity_TSF5 = nullptr;
84  TH1D* h_validity_TSF7 = nullptr;
85 
86 
88  TDirectory* oldDir = nullptr;
90  TDirectory* dirDQM = nullptr;
91 
94 
96  std::string m_postScriptName;
97 
99  unsigned _exp = 0;
100 
102  unsigned _run = 0;
103 
105  int m_T3DMOD = 0;
106 
109 
112 
115  };
116 
118 }
119 
120 #endif
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
DQM module for TRGCDCT3D.
TH1D * h_rt_TSF3
TSF3 priority time of T3D in each module.
virtual ~TRGCDCT3DDQMModule()
Destrunctor.
TH1D * h_validity_TSF5
TSF5 validity of T3D in each module.
int m_T3DMOD
T3D module number.
unsigned _exp
experiment number
virtual void terminate() override
terminate
virtual void initialize() override
initialize
TH1D * h_rt_TSF7
TSF7 priority time of T3D in each module.
TH1D * h_pt
pt of T3D in each module
TDirectory * oldDir
TDirectories for DQM histograms.
virtual void event() override
Event.
TH1D * h_ID_TSF5
TSF5 ID of T3D in each module.
TH1D * h_rt_TSF1
TSF1 priority time of T3D in each module.
TH1D * h_pt_2D
pt (from 2D) of T3D in each module
virtual void endRun() override
End Run.
StoreArray< CDCTriggerTrack > entAry_2D
2D data store
TH1D * h_phi
phi of T3D in each module
TH1D * h_validity_TSF7
TSF7 validity of T3D in each module.
virtual void beginRun() override
begin Run
StoreArray< CDCTriggerSegmentHit > entAry_TSF
Stereo TSF data store.
TH1D * h_validity_TSF3
TSF3 validity of T3D in each module.
TH1D * h_rt_TSF5
TSF5 priority time of T3D in each module.
TH1D * h_ID_TSF1
TSF1 ID of T3D in each module.
StoreArray< CDCTriggerTrack > entAry
3D data store
TDirectory * dirDQM
TDirectories for DQM histograms.
TH1D * h_dz
dz of T3D in each module
TH1D * h_validity_TSF1
TSF1 validity of T3D in each module.
std::string m_postScriptName
name of ps file
TH1D * h_tanlambda
tanlambda of T3D in each module
TH1D * h_ID_TSF7
TSF7 ID of T3D in each module.
virtual void defineHisto() override
Define Histogram.
bool m_generatePostscript
flag to save ps file
TH1D * h_phi_2D
phi (from 2D) of T3D in each module
TH1D * h_ID_TSF3
TSF3 ID of T3D in each module.
Abstract base class for different kinds of events.