Belle II Software  release-05-02-19
ECLHitDebugModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Poyuan Chen *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 //STL
13 #include <string>
14 
15 //Framework
16 #include <framework/core/Module.h>
17 #include <framework/datastore/StoreArray.h>
18 
19 namespace Belle2 {
24  class ECLDebugHit;
25  class ECLSimHit;
26 
31  class ECLHitDebugModule : public Module {
32 
33  public:
36 
38  virtual ~ECLHitDebugModule();
39 
41  virtual void initialize() override;
42 
44  virtual void beginRun() override;
45 
50  virtual void event() override;
51 
53  virtual void endRun() override;
54 
56  virtual void terminate() override;
57 
58  protected:
60  std::string m_inColName;
62  std::string m_eclHitOutColName;
63 
65  int m_hitNum{ -1};
66 
67  private:
69  double m_timeCPU{ -1.0};
71  int m_nRun{ -1};
73  int m_nEvent{ -1};
74 
75  //DataStore variables
79  };
81 } // end of Belle2 namespace
Belle2::ECLHitDebugModule::m_hitNum
int m_hitNum
The current number of created hits in an event.
Definition: ECLHitDebugModule.h:73
Belle2::ECLHitDebugModule::terminate
virtual void terminate() override
Stopping of CPU clock.
Definition: ECLHitDebugModule.cc:127
Belle2::ECLHitDebugModule::m_eclSimArray
StoreArray< ECLSimHit > m_eclSimArray
StoreArray ECLSimHit.
Definition: ECLHitDebugModule.h:85
Belle2::ECLHitDebugModule::endRun
virtual void endRun() override
Nothing so far.
Definition: ECLHitDebugModule.cc:122
Belle2::ECLHitDebugModule::beginRun
virtual void beginRun() override
Nothing so far.
Definition: ECLHitDebugModule.cc:60
Belle2::ECLHitDebugModule::m_eclHitOutColName
std::string m_eclHitOutColName
Output array name.
Definition: ECLHitDebugModule.h:70
Belle2::ECLHitDebugModule::~ECLHitDebugModule
virtual ~ECLHitDebugModule()
Destructor.
Definition: ECLHitDebugModule.cc:45
Belle2::ECLHitDebugModule::event
virtual void event() override
Actual digitization of all hits in the ECL.
Definition: ECLHitDebugModule.cc:64
Belle2::ECLHitDebugModule::m_eclDebugHits
StoreArray< ECLDebugHit > m_eclDebugHits
ECLDebugHit datastore object.
Definition: ECLHitDebugModule.h:84
Belle2::ECLHitDebugModule::m_nRun
int m_nRun
Run number
Definition: ECLHitDebugModule.h:79
Belle2::ECLHitDebugModule::initialize
virtual void initialize() override
Initialize variables, print info, and start CPU clock.
Definition: ECLHitDebugModule.cc:49
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ECLHitDebugModule::m_nEvent
int m_nEvent
Event number.
Definition: ECLHitDebugModule.h:81
Belle2::ECLHitDebugModule::m_inColName
std::string m_inColName
Input array name.
Definition: ECLHitDebugModule.h:68
Belle2::ECLHitDebugModule::m_timeCPU
double m_timeCPU
CPU time
Definition: ECLHitDebugModule.h:77
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::ECLHitDebugModule::ECLHitDebugModule
ECLHitDebugModule()
Constructor.
Definition: ECLHitDebugModule.cc:37