Belle II Software prerelease-10-00-00a
TRGECLDQMModule.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 TRCECLDQMMODULE_h
9#define TRCECLDQMMODULE_h
10
11#include <framework/core/HistoModule.h>
12#include "trg/ecl/dataobjects/TRGECLUnpackerStore.h"
13#include "trg/ecl/dataobjects/TRGECLUnpackerEvtStore.h"
14#include "trg/ecl/dataobjects/TRGECLUnpackerSumStore.h"
15#include "trg/ecl/dataobjects/TRGECLCluster.h"
16#include <framework/datastore/StoreArray.h>
17#include <framework/database/DBObjPtr.h>
18#include <framework/dbobjects/HardwareClockSettings.h>
19#include <mdst/dataobjects/EventLevelTriggerTimeInfo.h>
20
21class TH1;
22class TH2;
23
24namespace Belle2 {
29
31
35
36 public:
40 virtual ~TRGECLDQMModule();
41
42 public:
44 virtual void initialize() override;
46 virtual void beginRun() override;
48 virtual void event() override;
50 virtual void endRun() override;
52 virtual void terminate() override;
54 virtual void defineHisto() override;
55
56 private:
59
61 TH1* h_TCId = nullptr;
63 TH1* h_TCthetaId = nullptr;
65 TH1* h_TCphiId_BWD = nullptr;
67 TH1* h_TCphiId_BR = nullptr;
69 TH1* h_TCphiId_FWD = nullptr;
71 TH1* h_TCEnergy = nullptr;
73 TH1* h_TotalEnergy = nullptr;
75 TH1* h_Narrow_TCEnergy = nullptr;
77 TH1* h_Narrow_TotalEnergy = nullptr;
79 TH1* h_n_TChit_event = nullptr;
81 TH1* h_n_TChit_clean = nullptr;
83 TH1* h_n_TChit_injHER = nullptr;
85 TH1* h_n_TChit_injLER = nullptr;
87 TH2* h_nTChit_injtime = nullptr;
89 TH1* h_Cluster = nullptr;
91 TH1* h_TCTiming = nullptr;
93 TH1* h_TRGTiming = nullptr;
95 TH1* h_Cal_TCTiming = nullptr;
97 TH1* h_Cal_TRGTiming = nullptr;
99 TH1* h_ECL_TriggerBit = nullptr;
101 TH1* h_Cluster_Energy_Sum = nullptr;
102
113
115 TH1* h_n_TChit_part_event_clkgrp[3] = {nullptr};
117 TH1* h_n_TChit_part_clean_clkgrp[3] = {nullptr};
119 TH1* h_n_TChit_part_injHER_clkgrp[3] = {nullptr};
121 TH1* h_n_TChit_part_injLER_clkgrp[3] = {nullptr};
123 TH2* h_nTChit_part_injtime_clkgrp[3] = {nullptr};
124
126 std::vector<int> m_TCId;
128 std::vector<int> m_TCHitWin;
130 std::vector<double> m_TCEnergy;
132 std::vector<double> m_TCTiming;
134 std::vector<double> m_RevoFAM;
136 std::vector<double> m_FineTiming;
138 std::vector<double> m_RevoTrg;
139
140
151
154 };
155
157}
158
159#endif
Class for accessing objects in the database.
Definition DBObjPtr.h:21
HistoModule()
Constructor.
Definition HistoModule.h:32
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
Type-safe access to single objects in the data store.
Definition StoreObjPtr.h:96
TH1 * h_n_TChit_part_injHER_clkgrp[3]
N of TC Hit / events in the injection BG clean region vs. time since injection per two ETM clocks for...
TH1 * h_n_TChit_clean
N of TC Hit / event vs. time since injection.
std::vector< double > m_RevoTrg
GDL Revolution Clk.
TH1 * h_n_TChit_injLER_clkgrp
N of TC Hit / events in the HER injection BG region vs. time since injection per two ETM clocks.
TH1 * h_TCId
TCId histogram.
TH1 * h_TCphiId_BWD
TCphiId histogram.
TH1 * h_Narrow_TotalEnergy
Total Energy on narrow range.
TH1 * h_TotalEnergy
Total Energy.
std::vector< double > m_TCTiming
Hit TC Timing.
TH1 * h_n_TChit_clean_clkgrp
N of TC Hit / event vs. time since injection per two ETM clocks.
StoreArray< TRGECLUnpackerEvtStore > m_trgeclEvtArray
Trg ECL Unpakcer Event output.
TH1 * h_Cluster
N of Cluster / event.
virtual void initialize() override
initialize
TH1 * h_n_TChit_part_event_clkgrp[3]
N of TC Hit / event per two ETM clocks.
virtual void event() override
Event.
TH1 * h_Cal_TRGTiming
Event Timing / event.
StoreArray< TRGECLUnpackerSumStore > m_trgeclSumArray
Trg Ecl Unpacker Summary output.
TH1 * h_n_TChit_injHER
N of TC Hit / events in the injection BG clean region vs. time since injection.
TH1 * h_Narrow_TCEnergy
TC Energy histogram on narrow range.
TH2 * h_nTChit_injtime_clkgrp
N of TC Hit / events in the LER injection BG region vs. time since injection per two ETM clocks.
virtual void endRun() override
End Run.
DBObjPtr< HardwareClockSettings > m_hwclkdb
DB pointerto access the hardware clock information.
TH1 * h_Cluster_Energy_Sum
Energy sum of 2 Top energetic clusters when 3D bhabnha bit on.
virtual void terminate() override
terminate
TH1 * h_n_TChit_event_clkgrp
N of TC Hit / event per two ETM clocks.
virtual ~TRGECLDQMModule()
Destrunctor.
std::vector< double > m_TCEnergy
Hit TC Energy.
TH1 * h_n_TChit_injHER_clkgrp
N of TC Hit / events in the injection BG clean region vs. time since injection per two ETM clocks.
TH1 * h_TCphiId_FWD
TCphiId histogram.
TH1 * h_TRGTiming
Event Timing / event.
TH2 * h_nTChit_injtime
N of TC Hit / events in the LER injection BG region vs. time since injection.
TH1 * h_ECL_TriggerBit
ECL Trigger Bit.
StoreArray< TRGECLUnpackerStore > m_trgeclHitArray
Trg ECL Unpakcer TC output.
TH1 * h_TCthetaId
TCthetaId histogram.
virtual void beginRun() override
begin Run
TH1 * h_n_TChit_part_clean_clkgrp[3]
N of TC Hit / event vs. time since injection per two ETM clocks for each part (FWD,...
TH2 * h_nTChit_part_injtime_clkgrp[3]
N of TC Hit / events in the LER injection BG region vs. time since injection per two ETM clocks for e...
TH1 * h_TCphiId_BR
TCphiId histogram.
std::vector< int > m_TCId
Hit TCId.
std::vector< double > m_FineTiming
Event Timing.
TH1 * h_Cal_TCTiming
TC Timing / event.
TH1 * h_TCEnergy
TC Energy.
std::vector< double > m_RevoFAM
FAM Revolution Clk.
int m_grpclknum
The number of clocks to group the number of TCs of ECLTRG.
TH1 * h_TCTiming
TC Timing / event.
TH1 * h_n_TChit_event
N of TC Hit / event.
std::vector< int > m_TCHitWin
Hit TCHitWin.
TH1 * h_n_TChit_part_injLER_clkgrp[3]
N of TC Hit / events in the HER injection BG region vs. time since injection per two ETM clocks for e...
StoreArray< TRGECLCluster > m_trgeclCluster
Trg ECL Cluster output.
TH1 * h_n_TChit_injLER
N of TC Hit / events in the HER injection BG region vs. time since injection.
StoreObjPtr< EventLevelTriggerTimeInfo > m_trgTime
Array to access the FTSW information.
virtual void defineHisto() override
Define Histogram.
Abstract base class for different kinds of events.