Belle II Software  release-08-01-10
PXDRawDQMChipsModule.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 <pxd/dataobjects/PXDRawHit.h>
14 
15 #include <TH1F.h>
16 
17 #include <string>
18 
19 namespace Belle2 {
25  namespace PXD {
34  enum {eNumSwitcher = 6, eNumDCD = 4, eNumSensors = 64};
35 
36  public:
37 
40 
41  // virtual ~PXDRawDQMChipsModule();
42 
44  virtual void initialize() override;
45 
47  virtual void beginRun() override;
48 
50  virtual void event() override;
51 
52  private:
53 
56  std::string m_storeRawHitsName;
60 
62  TH1F* hrawPxdHitsCount[eNumSensors][eNumSwitcher][eNumDCD] = {};
64  TH1F* hrawPxdHitsCharge[eNumSensors][eNumSwitcher][eNumDCD] = {};
65 
67  virtual void defineHisto() override;
68 
69  };//end class declaration
70 
71 
72  } //end PXD namespace;
74 } // end namespace Belle2
75 
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
virtual void initialize() override
Initialize.
virtual void event() override
Event.
TH1F * hrawPxdHitsCharge[eNumSensors][eNumSwitcher][eNumDCD]
Histogram raw pixel charge.
std::string m_storeRawHitsName
PXDRawHits StoreArray name.
TH1F * hrawPxdHitsCount[eNumSensors][eNumSwitcher][eNumDCD]
Histogram pixelcount/???
virtual void beginRun() override
Begin run.
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
PXDRawDQMChipsModule()
Constructor defining the parameters.
StoreArray< PXDRawHit > m_storeRawHits
Storearray for raw pixels
virtual void defineHisto() override
Define histograms.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.