Belle II Software development
TRGCDCT2DDQMModule.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 TRCCDCT2DDQMMODULE_h
9#define TRCCDCT2DDQMMODULE_h
10
11#include <framework/datastore/StoreArray.h>
12#include <framework/core/HistoModule.h>
13#include <trg/cdc/dataobjects/CDCTriggerTrack.h>
14#include <trg/cdc/dataobjects/CDCTriggerSegmentHit.h>
15#include <string>
16
17#include <TH1I.h>
18#include <TH1D.h>
19
20namespace Belle2 {
28
29 public:
34
35 public:
37 virtual void initialize() override;
39 virtual void beginRun() override;
41 virtual void event() override;
43 virtual void endRun() override;
45 virtual void terminate() override {}
47 virtual void defineHisto() override;
48
49 protected:
51 TH1I* h_tsfhit = nullptr;
52
54 TH1D* h_phi = nullptr;
55
57 TH1D* h_pt = nullptr;
58
60 TH1D* h_omega = nullptr;
61
63 TH1D* h_time = nullptr;
64
66 TDirectory* oldDir = nullptr;
67
69 TDirectory* dirDQM = nullptr;
70
73
75 std::string m_postScriptName;
76
78 unsigned _exp = 0;
79
81 unsigned _run = 0;
82
85
88
89 };
90
92}
93
94#endif
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
DQM module of TRGCDCT2D.
StoreArray< CDCTriggerTrack > entAry_t2d
T2D data store.
unsigned _exp
experiment number
virtual void terminate() override
terminate
TH1D * h_time
2D foundtime distribution
virtual void initialize() override
initialize
TH1D * h_pt
2D pt distribution
TDirectory * oldDir
TDirectories.
virtual void event() override
Event.
virtual void endRun() override
End Run.
TH1D * h_omega
2D omega distribution
TH1D * h_phi
2D phi distribution
virtual void beginRun() override
begin Run
TH1I * h_tsfhit
TSF hit distribution as a function of tsfid.
TDirectory * dirDQM
TDirectories.
std::string m_postScriptName
name of ps file
virtual ~TRGCDCT2DDQMModule()
Destrunctor.
StoreArray< CDCTriggerSegmentHit > entAry_tsf
TSF data store.
virtual void defineHisto() override
Define Histogram.
bool m_generatePostscript
flag to save ps file
Abstract base class for different kinds of events.