Belle II Software  release-08-01-10
PXDDAQDQMModule.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/StoreObjPtr.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <pxd/dataobjects/PXDDAQStatus.h>
15 #include <vxd/geometry/GeoCache.h>
16 #include <rawdata/dataobjects/RawSVD.h>
17 #include <mdst/dataobjects/EventLevelTriggerTimeInfo.h>
18 
19 #include <TH2.h>
20 #include <TH1.h>
21 #include <string>
22 #include <vector>
23 #include <map>
24 
25 namespace Belle2 {
31  namespace PXD {
39  class PXDDAQDQMModule : public HistoModule {
40 
41  public:
42 
45 
46  private:
51 
54 
57 
60 
64  TH1D* hDAQErrorEvent{};
68  // TH1F* hDAQErrorPacket{}; /**< per packet (event builder input) errors */
69  TH2D* hDAQErrorDHC{};
70  TH2D* hDAQErrorDHE{};
71  TH2D* hDAQEndErrorDHC{};
72  TH2D* hDAQEndErrorDHE{};
73  std::map<VxdID, TH1D*> hDAQDHETriggerGate;
74  std::map<VxdID, TH1D*> hDAQDHEReduction;
75  std::map<VxdID, TH2D*> hDAQCM;
76  std::map<VxdID, TH1D*> hDAQCM2;
77  std::map<int, TH1D*> hDAQDHCReduction;
79  TH1I* hEODBAfterInjLER{};
80  TH1I* hEODBAfterInjHER{};
81  TH1I* hCM63AfterInjLER{};
82  TH1I* hCM63AfterInjHER{};
85  TH1I* hMissAfterInjLER{};
86  TH1I* hMissAfterInjHER{};
87  TH1I* hEODBTrgDiff{};
88  TH1I* hCM63TrgDiff{};
89  TH1I* hTruncTrgDiff{};
90  TH1I* hMissTrgDiff{};
91  TH1D* hDAQStat{};
94  void initialize() override final;
95 
97  void beginRun() override final;
98 
100  void event() override final;
101 
103  void defineHisto() override final;
104 
106  std::vector<std::string> err;
107 
108  };//end class declaration
109 
110 
111  } //end PXD namespace;
113 } // end namespace Belle2
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
The PXD DAQ DQM module.
TH1I * hCM63AfterInjLER
Histogram of CM63 after LER injection.
void initialize() override final
Initialize.
PXDDAQDQMModule()
Constructor defining the parameters.
std::map< VxdID, TH1D * > hDAQDHETriggerGate
DHE Trigger Gate ("start Row")
std::vector< std::string > err
vector of errors
TH1D * hDAQNotUseableModule
Count Useable/unuseable decision.
StoreObjPtr< PXDDAQStatus > m_storeDAQEvtStats
Input array for DAQ Status.
TH1I * hTruncAfterInjHER
Histogram Truncation after HER injection.
StoreArray< RawSVD > m_rawSVD
Input array for SVD/x-check HLT EODB .
TH1D * hDAQErrorEvent
Remark: Because of DHH load balancing and sub event building, the very same DHE and DHC can show up i...
TH1I * hEODBTrgDiff
Histogram of EODB after last trigger.
std::map< VxdID, TH2D * > hDAQCM
Common Mode per DHE to gate and DHP level.
TH1D * hDAQUseableModule
Count Useable/unuseable decision.
void defineHisto() override final
Define histograms.
TH1I * hMissTrgDiff
Histogram MissFrame after last trigger.
TH1I * hMissAfterInjHER
Histogram MissFrame after HER injection.
void event() override final
Event.
TH2D * hDAQErrorDHC
individual DHC errors
TH2D * hDAQEndErrorDHE
individual DHE END errors
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
TH1I * hCM63TrgDiff
Histogram of CM63 after last trigger.
TH1I * hCM63AfterInjHER
Histogram of CM63 after HER injection.
TH1I * hTruncTrgDiff
Histogram Truncation after last trigger.
std::map< VxdID, TH1D * > hDAQDHEReduction
DHE data reduction
TH1I * hEODBAfterInjHER
Histogram of EODB after HER injection.
TH2D * hDAQEndErrorDHC
individual DHC END errors
TH2D * hDAQErrorDHE
individual DHE errors
void beginRun() override final
Begin run.
std::map< VxdID, TH1D * > hDAQCM2
Common Mode per DHE to gate and DHP level.
VXD::GeoCache & m_vxdGeometry
the geometry
TH1I * hMissAfterInjLER
Histogram MissFrame after LER injection.
TH1D * hDAQDHPDataMissing
Count Missing DHP data.
std::map< int, TH1D * > hDAQDHCReduction
DHC data reduction
TH1D * hDAQStat
Histogram for Truncation etc Stats.
TH1I * hTruncAfterInjLER
Histogram Truncation after LER injection.
StoreObjPtr< EventLevelTriggerTimeInfo > m_EventLevelTriggerTimeInfo
Object for TTD mdst object.
TH1I * hEODBAfterInjLER
Histogram of EODB after LER injection.
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
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
Definition: GeoCache.h:39
Abstract base class for different kinds of events.