Belle II Software  release-08-01-10
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 
21 namespace Belle2 {
27  namespace PXD {
35  class PXDRawDQMModule : public HistoModule {
36 
37  public:
38 
41 
42  // virtual ~PXDRawDQMModule();
43 
44  private:
46  void initialize() override final;
47 
49  void beginRun() override final;
50 
52  void event() override final;
53 
55  void defineHisto() override final;
56 
57 
58  private:
59 
63  std::string m_storeRawHitsName;
64  std::string m_storeRawAdcsName;
74 
76  TH1F* hrawPxdPackets = nullptr;
78  TH1F* hrawPxdPacketSize = nullptr;
80  TH1F* hrawPxdHitsCount = nullptr;
82  TH2F* hrawPxdHitMapAll = nullptr;
84  TH2F* hrawPxdAdcMapAll = nullptr;
86  TH2F* hrawPxdHitMap[64] = {};
88  TH2F* hrawPxdChargeMap[64] = {};
90  TH1F* hrawPxdHitsCharge[64] = {};
92  TH1F* hrawPxdHitTimeWindow[64] = {};
94  TH1F* hrawPxdGateTimeWindow[64] = {};
95 
96  };//end class declaration
97 
98 
99  } //end PXD namespace;
101 } // end namespace Belle2
102 
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
The raw PXD DQM module.
TH2F * hrawPxdAdcMapAll
Histogram Adc 2d hitmap (full frames only) (all pxd)
void initialize() override final
Initialize.
std::string m_storeRawAdcsName
RawAdcs StoreArray name.
TH1F * hrawPxdGateTimeWindow[64]
Histogram raw pixel trigger gate window.
TH1F * hrawPxdPacketSize
Histogram raw packet size.
StoreObjPtr< PXDDAQStatus > m_storeDAQEvtStats
Input array for DAQ Status.
StoreArray< RawPXD > m_storeRawPxdrarray
Storearray for raw data packets
TH1F * hrawPxdHitsCharge[64]
Histogram raw pixel charge.
void defineHisto() override final
Define histograms.
std::string m_storeRawHitsName
PXDRawHits StoreArray name.
std::string m_storeRawPxdrarrayName
RawPXD StoreArray name.
void event() override final
Event.
TH1F * hrawPxdHitsCount
Histogram pixelcount/???
TH2F * hrawPxdHitMapAll
Histogram 2d hitmap (all)
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.
TH1F * hrawPxdPackets
Histogram number of raw packets.
TH2F * hrawPxdHitMap[64]
Histogram 2d hitmap.
void beginRun() override final
Begin run.
TH1F * hrawPxdHitTimeWindow[64]
Histogram raw pixel hit "time" window.
StoreArray< PXDRawHit > m_storeRawHits
Storearray for raw pixels
TH2F * hrawPxdChargeMap[64]
Histogram 2d chargemap.
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
Abstract base class for different kinds of events.