Belle II Software  release-05-02-19
PXDDAQDQMModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Bjoern Spruck *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/HistoModule.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <rawdata/dataobjects/RawFTSW.h>
17 #include <pxd/dataobjects/PXDDAQStatus.h>
18 #include <vxd/geometry/GeoCache.h>
19 #include <rawdata/dataobjects/RawSVD.h>
20 
21 #include <TH2.h>
22 #include <TH1.h>
23 #include <string>
24 #include <vector>
25 #include <map>
26 
27 namespace Belle2 {
33  namespace PXD {
41  class PXDDAQDQMModule : public HistoModule {
42 
43  public:
44 
47 
48  private:
53 
56 
59 
62 
66  TH1D* hDAQErrorEvent{};
67  TH1D* hDAQUseableModule{};
68  TH1D* hDAQNotUseableModule{};
70  // TH1F* hDAQErrorPacket{}; /**< per packet (event builder input) errors */
71  TH2D* hDAQErrorDHC{};
72  TH2D* hDAQErrorDHE{};
73  TH2D* hDAQEndErrorDHC{};
74  TH2D* hDAQEndErrorDHE{};
75  std::map<VxdID, TH1D*> hDAQDHETriggerGate;
76  std::map<VxdID, TH1D*> hDAQDHEReduction;
77  std::map<VxdID, TH2D*> hDAQCM;
78  std::map<VxdID, TH1D*> hDAQCM2;
79  std::map<int, TH1D*> hDAQDHCReduction;
81  TH1I* hEODBAfterInjLER{};
82  TH1I* hEODBAfterInjHER{};
83  TH1I* hCM63AfterInjLER{};
84  TH1I* hCM63AfterInjHER{};
87  TH1I* hMissAfterInjLER{};
88  TH1I* hMissAfterInjHER{};
89  TH1I* hEODBTrgDiff{};
90  TH1I* hCM63TrgDiff{};
91  TH1I* hTruncTrgDiff{};
92  TH1I* hMissTrgDiff{};
93  TH1D* hDAQStat{};
95  void initialize() override final;
96 
97  void beginRun() override final;
98 
99  void event() override final;
100 
101  void defineHisto() override final;
102 
104  std::vector<std::string> err;
105 
106  };//end class declaration
107 
108 
109  } //end PXD namespace;
111 } // end namespace Belle2
Belle2::PXD::PXDDAQDQMModule::hCM63AfterInjHER
TH1I * hCM63AfterInjHER
Histogram of CM63 after HER injection.
Definition: PXDDAQDQMModule.h:92
Belle2::PXD::PXDDAQDQMModule::initialize
void initialize() override final
Function for dynamic initialization of module.
Definition: PXDDAQDQMModule.cc:144
Belle2::PXD::PXDDAQDQMModule::hTruncTrgDiff
TH1I * hTruncTrgDiff
Histogram Truncation after last trigger.
Definition: PXDDAQDQMModule.h:99
Belle2::PXD::PXDDAQDQMModule::defineHisto
void defineHisto() override final
Function to define histograms.
Definition: PXDDAQDQMModule.cc:43
Belle2::PXD::PXDDAQDQMModule::hDAQCM2
std::map< VxdID, TH1D * > hDAQCM2
Common Mode per DHE to gate and DHP level.
Definition: PXDDAQDQMModule.h:86
Belle2::PXD::PXDDAQDQMModule::hDAQDHEReduction
std::map< VxdID, TH1D * > hDAQDHEReduction
DHE data reduction
Definition: PXDDAQDQMModule.h:84
Belle2::PXD::PXDDAQDQMModule::hDAQErrorEvent
TH1D * hDAQErrorEvent
Remark: Because of DHH load balancing and sub event building, the very same DHE and DHC can show up i...
Definition: PXDDAQDQMModule.h:74
Belle2::PXD::PXDDAQDQMModule::hTruncAfterInjHER
TH1I * hTruncAfterInjHER
Histogram Truncation after HER injection.
Definition: PXDDAQDQMModule.h:94
Belle2::PXD::PXDDAQDQMModule::hEODBAfterInjHER
TH1I * hEODBAfterInjHER
Histogram of EODB after HER injection.
Definition: PXDDAQDQMModule.h:90
Belle2::PXD::PXDDAQDQMModule::hDAQEndErrorDHC
TH2D * hDAQEndErrorDHC
individual DHC END errors
Definition: PXDDAQDQMModule.h:81
Belle2::PXD::PXDDAQDQMModule::m_storeDAQEvtStats
StoreObjPtr< PXDDAQStatus > m_storeDAQEvtStats
Input array for DAQ Status.
Definition: PXDDAQDQMModule.h:60
Belle2::PXD::PXDDAQDQMModule::hDAQDHPDataMissing
TH1D * hDAQDHPDataMissing
Count Missing DHP data.
Definition: PXDDAQDQMModule.h:77
Belle2::PXD::PXDDAQDQMModule::hCM63AfterInjLER
TH1I * hCM63AfterInjLER
Histogram of CM63 after LER injection.
Definition: PXDDAQDQMModule.h:91
Belle2::PXD::PXDDAQDQMModule::hDAQDHCReduction
std::map< int, TH1D * > hDAQDHCReduction
DHC data reduction
Definition: PXDDAQDQMModule.h:87
Belle2::PXD::PXDDAQDQMModule::hMissTrgDiff
TH1I * hMissTrgDiff
Histogram MissFrame after last trigger.
Definition: PXDDAQDQMModule.h:100
Belle2::PXD::PXDDAQDQMModule::hTruncAfterInjLER
TH1I * hTruncAfterInjLER
Histogram Truncation after LER injection.
Definition: PXDDAQDQMModule.h:93
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::PXD::PXDDAQDQMModule::hDAQUseableModule
TH1D * hDAQUseableModule
Count Useable/unuseable decision.
Definition: PXDDAQDQMModule.h:75
Belle2::PXD::PXDDAQDQMModule::event
void event() override final
Function to process event record.
Definition: PXDDAQDQMModule.cc:176
Belle2::PXD::PXDDAQDQMModule::hEODBAfterInjLER
TH1I * hEODBAfterInjLER
Histogram of EODB after LER injection.
Definition: PXDDAQDQMModule.h:89
Belle2::PXD::PXDDAQDQMModule::hDAQEndErrorDHE
TH2D * hDAQEndErrorDHE
individual DHE END errors
Definition: PXDDAQDQMModule.h:82
Belle2::PXD::PXDDAQDQMModule::m_rawTTD
StoreArray< RawFTSW > m_rawTTD
Input array for TTD/FTSW.
Definition: PXDDAQDQMModule.h:66
Belle2::PXD::PXDDAQDQMModule::hDAQDHETriggerGate
std::map< VxdID, TH1D * > hDAQDHETriggerGate
DHE Trigger Gate ("start Row")
Definition: PXDDAQDQMModule.h:83
Belle2::PXD::PXDDAQDQMModule::hCM63TrgDiff
TH1I * hCM63TrgDiff
Histogram of CM63 after last trigger.
Definition: PXDDAQDQMModule.h:98
Belle2::PXD::PXDDAQDQMModule::hMissAfterInjHER
TH1I * hMissAfterInjHER
Histogram MissFrame after HER injection.
Definition: PXDDAQDQMModule.h:96
Belle2::PXD::PXDDAQDQMModule::m_histogramDirectoryName
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
Definition: PXDDAQDQMModule.h:57
Belle2::PXD::PXDDAQDQMModule::beginRun
void beginRun() override final
Function to process begin_run record.
Definition: PXDDAQDQMModule.cc:152
Belle2::PXD::PXDDAQDQMModule::hDAQErrorDHE
TH2D * hDAQErrorDHE
individual DHE errors
Definition: PXDDAQDQMModule.h:80
Belle2::PXD::PXDDAQDQMModule::hDAQStat
TH1D * hDAQStat
Histogram for Truncation etc Stats.
Definition: PXDDAQDQMModule.h:101
Belle2::PXD::PXDDAQDQMModule::hDAQNotUseableModule
TH1D * hDAQNotUseableModule
Count Useable/unuseable decision.
Definition: PXDDAQDQMModule.h:76
Belle2::VXD::GeoCache
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
Definition: GeoCache.h:41
Belle2::PXD::PXDDAQDQMModule::m_vxdGeometry
VXD::GeoCache & m_vxdGeometry
the geometry
Definition: PXDDAQDQMModule.h:69
Belle2::PXD::PXDDAQDQMModule::hDAQCM
std::map< VxdID, TH2D * > hDAQCM
Common Mode per DHE to gate and DHP level.
Definition: PXDDAQDQMModule.h:85
Belle2::PXD::PXDDAQDQMModule::PXDDAQDQMModule
PXDDAQDQMModule()
Constructor defining the parameters.
Definition: PXDDAQDQMModule.cc:34
Belle2::PXD::PXDDAQDQMModule::hDAQErrorDHC
TH2D * hDAQErrorDHC
individual DHC errors
Definition: PXDDAQDQMModule.h:79
Belle2::PXD::PXDDAQDQMModule::m_rawSVD
StoreArray< RawSVD > m_rawSVD
Input array for SVD/x-check HLT EODB .
Definition: PXDDAQDQMModule.h:63
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::PXD::PXDDAQDQMModule::hMissAfterInjLER
TH1I * hMissAfterInjLER
Histogram MissFrame after LER injection.
Definition: PXDDAQDQMModule.h:95
Belle2::PXD::PXDDAQDQMModule::err
std::vector< std::string > err
vector of errors
Definition: PXDDAQDQMModule.h:112
Belle2::PXD::PXDDAQDQMModule::hEODBTrgDiff
TH1I * hEODBTrgDiff
Histogram of EODB after last trigger.
Definition: PXDDAQDQMModule.h:97