Belle II Software  release-06-02-00
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 
13 #include <framework/core/Module.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <framework/database/DBArray.h>
16 #include <framework/database/DBObjPtr.h>
17 #include <cdc/dataobjects/CDCHit.h>
18 #include <cdc/dataobjects/CDCRawHit.h>
19 #include <mdst/dataobjects/TRGSummary.h>
20 
21 
22 #include <mdst/dataobjects/Track.h>
23 #include <mdst/dataobjects/TrackFitResult.h>
24 #include <tracking/dataobjects/RecoTrack.h>
25 
26 #include <TH1F.h>
27 #include <TH2F.h>
28 
29 namespace Belle2 {
41  class CDCDQMModule : public HistoModule {
42 
43  public:
44 
48  CDCDQMModule();
49 
53  virtual ~CDCDQMModule();
54 
59  void initialize() override;
60 
65  void defineHisto() override;
66 
71  void beginRun() override;
72 
76  void event() override;
77 
82  void endRun() override;
83 
88  void terminate() override;
89 
90 
91  protected:
97  std::string m_recoTrackArrayName = "" ;
99  Long64_t m_nEvents = 0;
100  TH1F* m_hNEvents = nullptr;
101  TH2F* m_hADC = nullptr;
102  TH2F* m_hTDC = nullptr;
103  TH2F* m_hHit = nullptr;
104  TH1F* m_hOcc = nullptr;
105  int m_minHits;
106  };
107 
109 } // Belle2 namespace
Make summary of data quality from reconstruction.
Definition: CDCDQMModule.h:41
std::string m_recoTrackArrayName
Belle2::RecoTrack StoreArray name.
Definition: CDCDQMModule.h:97
void initialize() override
Initialize the Module.
Definition: CDCDQMModule.cc:65
int m_minHits
Minimum hits for processing.
Definition: CDCDQMModule.h:105
void event() override
Event processor.
Definition: CDCDQMModule.cc:92
CDCDQMModule()
Constructor.
Definition: CDCDQMModule.cc:37
StoreArray< CDCRawHit > m_cdcRawHits
CDC raw hits.
Definition: CDCDQMModule.h:93
void endRun() override
End-of-run action.
StoreObjPtr< TRGSummary > m_trgSummary
Trigger summary.
Definition: CDCDQMModule.h:94
void terminate() override
Termination action.
TH1F * m_hNEvents
Histogram of num.
Definition: CDCDQMModule.h:100
TH2F * m_hTDC
Histogram of TDC with track associated hits for all boards (0-299)
Definition: CDCDQMModule.h:102
void beginRun() override
Called when entering a new run.
Definition: CDCDQMModule.cc:78
StoreArray< CDCHit > m_cdcHits
CDC hits.
Definition: CDCDQMModule.h:92
virtual ~CDCDQMModule()
Destructor.
Definition: CDCDQMModule.cc:45
TH2F * m_hADC
Histogram of ADC with track associated hits for all boards (0-299)
Definition: CDCDQMModule.h:101
TH1F * m_hOcc
Histogram of occupancy.
Definition: CDCDQMModule.h:104
StoreArray< RecoTrack > m_RecoTracks
RecoTracks.
Definition: CDCDQMModule.h:96
StoreArray< Track > m_Tracks
Tracks.
Definition: CDCDQMModule.h:95
TH2F * m_hHit
Histogram of hits for all layers (0-55)
Definition: CDCDQMModule.h:103
void defineHisto() override
Histogram definitions.
Definition: CDCDQMModule.cc:49
Long64_t m_nEvents
Number of events processed.
Definition: CDCDQMModule.h:99
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:95
Abstract base class for different kinds of events.