Belle II Software development
PXDRawDQMModule.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 <framework/core/HistoModule.h>
12#include <framework/datastore/StoreArray.h>
13#include <framework/datastore/StoreObjPtr.h>
14#include <pxd/dataobjects/PXDRawHit.h>
15#include <pxd/dataobjects/PXDRawAdc.h>
16#include <pxd/dataobjects/PXDDAQStatus.h>
17#include <rawdata/dataobjects/RawPXD.h>
18#include <string>
19#include <TH2.h>
20
21namespace Belle2 {
26
27 namespace PXD {
33
34 public:
35
38
39 // virtual ~PXDRawDQMModule();
40
41 private:
43 void initialize() override final;
44
46 void beginRun() override final;
47
49 void event() override final;
50
52 void defineHisto() override final;
53
54
55 private:
56
58
60 std::string m_storeRawHitsName;
61 std::string m_storeRawAdcsName;
62
71
73 TH1F* hrawPxdPackets = nullptr;
75 TH1F* hrawPxdPacketSize = nullptr;
77 TH1F* hrawPxdHitsCount = nullptr;
79 TH2F* hrawPxdHitMapAll = nullptr;
81 TH2F* hrawPxdAdcMapAll = nullptr;
83 std::map<VxdID, TH2F*> m_hrawPxdHitMap;
85 std::map<VxdID, TH2F*> m_hrawPxdChargeMap;
87 std::map<VxdID, TH1F*> m_hrawPxdHitsCharge;
89 std::map<VxdID, TH1F*> m_hrawPxdHitTimeWindow;
91 std::map<VxdID, TH1F*> m_hrawPxdGateTimeWindow;
92
93 };//end class declaration
94
95
96 } //end PXD namespace;
98} // end namespace Belle2
99
HistoModule()
Constructor.
Definition HistoModule.h:32
TH2F * hrawPxdAdcMapAll
Histogram Adc 2d hitmap (full frames only) (all pxd)
void initialize() override final
Initialize.
std::string m_storeRawAdcsName
RawAdcs StoreArray name.
TH1F * hrawPxdPacketSize
Histogram raw packet size.
StoreObjPtr< PXDDAQStatus > m_storeDAQEvtStats
Input array for DAQ Status.
StoreArray< RawPXD > m_storeRawPxdrarray
Storearray for raw data packets.
std::map< VxdID, TH2F * > m_hrawPxdChargeMap
Histogram 2d chargemap.
void defineHisto() override final
Define histograms.
std::string m_storeRawHitsName
PXDRawHits StoreArray name.
std::map< VxdID, TH1F * > m_hrawPxdGateTimeWindow
Histogram raw pixel trigger gate window.
std::string m_storeRawPxdrarrayName
RawPXD StoreArray name.
void event() override final
Event.
TH1F * hrawPxdHitsCount
Histogram pixelcount/?
TH2F * hrawPxdHitMapAll
Histogram 2d hitmap (all)
std::map< VxdID, TH1F * > m_hrawPxdHitTimeWindow
Histogram raw pixel hit "time" window.
PXDRawDQMModule()
Constructor defining the parameters.
StoreArray< PXDRawAdc > m_storeRawAdcs
Storearray for ADC from full frames.
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
std::map< VxdID, TH2F * > m_hrawPxdHitMap
Histogram 2d hitmap.
TH1F * hrawPxdPackets
Histogram number of raw packets.
void beginRun() override final
Begin run.
std::map< VxdID, TH1F * > m_hrawPxdHitsCharge
Histogram raw pixel charge.
StoreArray< PXDRawHit > m_storeRawHits
Storearray for raw pixels.
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
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Abstract base class for different kinds of events.