Belle II Software development
TRGCDCTSFDQMModule.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 TRCCDCTSFDQMMODULE_h
9#define TRCCDCTSFDQMMODULE_h
10
11#include <framework/core/HistoModule.h>
12#include <framework/datastore/StoreArray.h>
13#include <trg/cdc/dataobjects/TRGCDCTSFUnpackerStore.h>
14#include <string>
15
16#include <TH1I.h>
17
18namespace Belle2 {
26
27 public:
32
33 public:
35 virtual void initialize() override;
37 virtual void beginRun() override;
39 virtual void event() override;
41 virtual void endRun() override;
43 virtual void terminate() override {}
45 virtual void defineHisto() override;
46
47 protected:
49 TH1I* h_nhit = nullptr;
50
52 TH1I* h_nhit_tsf = nullptr;
53
55 TH1I* h_valid = nullptr;
56
58 TH1I* h_timing = nullptr;
59
61 TDirectory* oldDir = nullptr;
63 TDirectory* dirDQM = nullptr;
64
67
69 std::string m_postScriptName;
70
72 unsigned _exp = 0;
73
75 unsigned _run = 0;
76
78 int m_TSFMOD = 0;
79
82
83 };
84
86}
87
88#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 TRGCDCTSF.
TH1I * h_valid
Valid type of TSF hits in each superlayer.
StoreArray< TRGCDCTSFUnpackerStore > entAry
TSF data store.
unsigned _exp
experiment number
virtual void terminate() override
terminate
virtual void initialize() override
initialize
TDirectory * oldDir
TDirectories.
virtual void event() override
Event.
virtual ~TRGCDCTSFDQMModule()
Destrunctor.
TH1I * h_timing
Timing of TSF hits in each superlayer.
virtual void endRun() override
End Run.
TH1I * h_nhit_tsf
Total number of hits in each TSF.
int m_TSFMOD
TSF module number.
virtual void beginRun() override
begin Run
TDirectory * dirDQM
TDirectories.
std::string m_postScriptName
name of ps file
TH1I * h_nhit
Total number of TSF hits per event in each superlayer.
virtual void defineHisto() override
Define Histogram.
bool m_generatePostscript
flag to save ps file
Abstract base class for different kinds of events.