Belle II Software development
ECLHitDebugModule.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#pragma once
9
10/* Basf2 headers. */
11#include <framework/core/Module.h>
12#include <framework/datastore/StoreArray.h>
13
14/* C++ headers. */
15#include <string>
16
17namespace Belle2 {
22 class ECLDebugHit;
23 class ECLSimHit;
24
26 class ECLHitDebugModule : public Module {
27
28 public:
31
33 virtual ~ECLHitDebugModule();
34
36 virtual void initialize() override;
37
39 virtual void beginRun() override;
40
45 virtual void event() override;
46
48 virtual void endRun() override;
49
51 virtual void terminate() override;
52
53 protected:
55 std::string m_inColName;
57 std::string m_eclHitOutColName;
58
60 int m_hitNum{ -1};
61
62 private:
64 double m_timeCPU{ -1.0};
66 int m_nRun{ -1};
68 int m_nEvent{ -1};
69
70 //DataStore variables
74 };
76} // end of Belle2 namespace
Class to represent the hit of one cell.
StoreArray< ECLDebugHit > m_eclDebugHits
ECLDebugHit datastore object.
virtual void initialize() override
Initialize variables, print info, and start CPU clock.
StoreArray< ECLSimHit > m_eclSimArray
StoreArray ECLSimHit.
int m_hitNum
The current number of created hits in an event.
virtual void event() override
Actual digitization of all hits in the ECL.
virtual void endRun() override
Nothing so far.
virtual void terminate() override
Stopping of CPU clock.
virtual void beginRun() override
Nothing so far.
virtual ~ECLHitDebugModule()
Destructor.
std::string m_inColName
Input array name.
std::string m_eclHitOutColName
Output array name.
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.