Belle II Software  release-05-01-25
CDCDedxDQM.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2012 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jitendra Kumar, Jake Bennett
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <reconstruction/dataobjects/CDCDedxTrack.h>
14 #include <mdst/dataobjects/SoftwareTriggerResult.h>
15 
16 #include <framework/core/HistoModule.h>
17 #include <framework/datastore/StoreArray.h>
18 #include <framework/datastore/StoreObjPtr.h>
19 #include <framework/dataobjects/EventMetaData.h>
20 
21 #include "TH1D.h"
22 #include "TH2D.h"
23 
24 
25 namespace Belle2 {
37  class CDCDedxDQMModule : public HistoModule {
38 
39  public:
40 
43 
45  virtual ~CDCDedxDQMModule();
46 
48  virtual void defineHisto() override;
49 
51  virtual void initialize() override;
52 
54  virtual void beginRun() override;
55 
58  virtual void event() override;
59 
61  virtual void endRun() override;
62 
64  virtual void terminate() override;
65 
66 
67 
68  private:
69 
73  Int_t fCurrentEventNum;
75  TH1D* temp1D{nullptr};
76  TH2D* temp2D{nullptr};
77  };
78 
80 } // Belle2 namespace
Belle2::CDCDedxDQMModule::fCurrentEventNum
Int_t fCurrentEventNum
variable to get run number
Definition: CDCDedxDQM.h:81
Belle2::CDCDedxDQMModule::endRun
virtual void endRun() override
This method is called at the end of each run.
Definition: CDCDedxDQM.cc:125
Belle2::CDCDedxDQMModule::CDCDedxDQMModule
CDCDedxDQMModule()
Default constructor.
Definition: CDCDedxDQM.cc:21
Belle2::CDCDedxDQMModule::initialize
virtual void initialize() override
Initialize the module.
Definition: CDCDedxDQM.cc:55
Belle2::CDCDedxDQMModule::temp2D
TH2D * temp2D
Dedx vs P histogram per run.
Definition: CDCDedxDQM.h:84
Belle2::CDCDedxDQMModule::terminate
virtual void terminate() override
End of the event processing.
Definition: CDCDedxDQM.cc:132
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::CDCDedxDQMModule::event
virtual void event() override
This method is called for each event.
Definition: CDCDedxDQM.cc:85
Belle2::CDCDedxDQMModule::m_cdcDedxTracks
StoreArray< CDCDedxTrack > m_cdcDedxTracks
Store array for CDCDedxTrack.
Definition: CDCDedxDQM.h:79
Belle2::CDCDedxDQMModule::~CDCDedxDQMModule
virtual ~CDCDedxDQMModule()
Destructor.
Definition: CDCDedxDQM.cc:28
Belle2::CDCDedxDQMModule::beginRun
virtual void beginRun() override
This method is called for each run.
Definition: CDCDedxDQM.cc:71
Belle2::CDCDedxDQMModule::defineHisto
virtual void defineHisto() override
Defination of histograms.
Definition: CDCDedxDQM.cc:32
Belle2::CDCDedxDQMModule::temp1D
TH1D * temp1D
Dedx histogram per run.
Definition: CDCDedxDQM.h:83
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::CDCDedxDQMModule::m_TrgResult
StoreObjPtr< SoftwareTriggerResult > m_TrgResult
Store array for Trigger selection.
Definition: CDCDedxDQM.h:78