Belle II Software  release-08-01-10
CDCDQMModule.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/core/Module.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <framework/database/DBArray.h>
15 #include <framework/database/DBObjPtr.h>
16 
17 #include <cdc/dataobjects/CDCHit.h>
18 #include <cdc/dataobjects/CDCRawHit.h>
19 
20 #include <mdst/dataobjects/TRGSummary.h>
21 #include <mdst/dataobjects/SoftwareTriggerResult.h>
22 #include <mdst/dataobjects/Track.h>
23 #include <mdst/dataobjects/TrackFitResult.h>
24 #include <mdst/dataobjects/HitPatternVXD.h>
25 #include <mdst/dataobjects/HitPatternCDC.h>
26 
27 #include <tracking/dataobjects/RecoTrack.h>
28 #include <rawdata/dataobjects/RawCDC.h>
29 
30 #include <TH1F.h>
31 #include <TH2F.h>
32 
33 namespace Belle2 {
45  class CDCDQMModule : public HistoModule {
46 
47  public:
48 
52  CDCDQMModule();
53 
57  virtual ~CDCDQMModule();
58 
63  void initialize() override;
64 
69  void defineHisto() override;
70 
75  void beginRun() override;
76 
80  void event() override;
81 
86  void endRun() override;
87 
92  void terminate() override;
93 
94 
95  protected:
96 
103  std::string m_recoTrackArrayName = "" ;
106  int m_minHits;
107  Long64_t m_nEvents = 0;
108  TH1F* m_hNEvents = nullptr;
109  TH1F* m_hOcc = nullptr;
110  TH2F* m_hADC = nullptr;
111  TH2F* m_hTDC = nullptr;
112  TH2F* m_hHit = nullptr;
113  TH2F* m_hBit = nullptr;
114  TH1F* m_hPhi = nullptr;
115  TH2F* m_hPhiIndex = nullptr;
116  TH2F* m_hPhiEff = nullptr;
117  TH2F* m_hPhiHit = nullptr;
119  };
120 
122 } // Belle2 namespace
Make summary of data quality from reconstruction.
Definition: CDCDQMModule.h:45
std::string m_recoTrackArrayName
Belle2::RecoTrack StoreArray name.
Definition: CDCDQMModule.h:103
StoreArray< RawCDC > m_rawCDCs
Input array for CDC Raw.
Definition: CDCDQMModule.h:99
TH2F * m_hBit
Histogram of online databit removed.
Definition: CDCDQMModule.h:113
void initialize() override
Initialize the Module.
Definition: CDCDQMModule.cc:75
int m_minHits
Minimum hits for processing.
Definition: CDCDQMModule.h:106
void event() override
Event processor.
CDCDQMModule()
Constructor.
Definition: CDCDQMModule.cc:35
StoreArray< CDCRawHit > m_cdcRawHits
CDC raw hits.
Definition: CDCDQMModule.h:98
void endRun() override
End-of-run action.
TH2F * m_hPhiIndex
Histogram of cdc phi of different IP + skims tracks.
Definition: CDCDQMModule.h:115
StoreObjPtr< TRGSummary > m_trgSummary
Trigger summary.
Definition: CDCDQMModule.h:100
void terminate() override
Termination action.
TH1F * m_hNEvents
Histogram of num.
Definition: CDCDQMModule.h:108
TH2F * m_hTDC
Histogram of TDC with track associated hits for all boards (0-299)
Definition: CDCDQMModule.h:111
TH2F * m_hPhiHit
Histogram of track associated hits in phi vs layer
Definition: CDCDQMModule.h:117
void beginRun() override
Called when entering a new run.
Definition: CDCDQMModule.cc:88
TH2F * m_hPhiEff
Histogram of cdc phi of tracking eff.
Definition: CDCDQMModule.h:116
TH1F * m_hPhi
Histogram of cdc phi of IP tracks.
Definition: CDCDQMModule.h:114
StoreArray< CDCHit > m_cdcHits
CDC hits.
Definition: CDCDQMModule.h:97
virtual ~CDCDQMModule()
Destructor.
Definition: CDCDQMModule.cc:43
TH2F * m_hADC
Histogram of ADC with track associated hits for all boards (0-299)
Definition: CDCDQMModule.h:110
TH1F * m_hOcc
Histogram of occupancy.
Definition: CDCDQMModule.h:109
StoreArray< RecoTrack > m_RecoTracks
RecoTracks.
Definition: CDCDQMModule.h:102
StoreArray< Track > m_Tracks
Tracks.
Definition: CDCDQMModule.h:101
StoreObjPtr< SoftwareTriggerResult > m_TrgResult
Store array for Trigger selection.
Definition: CDCDQMModule.h:104
TH2F * m_hHit
Histogram of Hits for all layers (0-55)
Definition: CDCDQMModule.h:112
void defineHisto() override
Histogram definitions.
Definition: CDCDQMModule.cc:47
Long64_t m_nEvents
Number of events processed.
Definition: CDCDQMModule.h:107
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
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.