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() override;
34
36 virtual void initialize() override;
37
42 virtual void event() override;
43
45 virtual void endRun() override;
46
47 protected:
49 std::string m_inColName;
51 std::string m_eclHitOutColName;
52
54 int m_hitNum{ -1};
55
56 private:
58 double m_timeCPU{ -1.0};
60 int m_nRun{ -1};
62 int m_nEvent{ -1};
63
64 //DataStore variables
67
68 };
69
70} // end of Belle2 namespace
Class to store the average of ECLSimHit on crystals for debug only input for digitization module (ECL...
Definition ECLDebugHit.h:25
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 ~ECLHitDebugModule() override
Destructor.
std::string m_inColName
Input array name.
std::string m_eclHitOutColName
Output array name.
ClassECLSimHit - Geant4 simulated hit for the ECL.
Definition ECLSimHit.h:29
Module()
Constructor.
Definition Module.cc:30
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
Abstract base class for different kinds of events.