Belle II Software light-2406-ragdoll
AWESOMESimHit.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/* Basf2 headers. */
12#include <framework/datastore/RelationsObject.h>
13#include <framework/geometry/B2Vector3.h>
14
19namespace Belle2 {
34
35 public:
36
41 m_energyDep{0},
42 m_position{0., 0., 0.},
43 m_time{0}
44 {}
45
52 AWESOMESimHit(float energyDep, B2Vector3<float> position, float time) :
53 m_energyDep{energyDep},
54 m_position{position},
55 m_time{time}
56 {}
57
62 float getEnergyDep() const
63 {
64 return m_energyDep;
65 }
66
71 void setEnergyDep(float energyDep)
72 {
73 m_energyDep = energyDep;
74 }
75
81 {
82 return m_position;
83 }
84
90 {
91 m_position = position;
92 }
93
98 float getTime() const
99 {
100 return m_time;
101 }
102
107 void setTime(float time)
108 {
109 m_time = time;
110 }
111
112 private:
113
116
119
121 float m_time;
122
125
126 };
127
129}
A Geant4 simulated hit for the AWESOME detector.
Definition: AWESOMESimHit.h:33
float m_time
Time in ns.
void setEnergyDep(float energyDep)
Set the deposited energy.
Definition: AWESOMESimHit.h:71
float m_energyDep
Deposited energy in MeV.
float getTime() const
Get the time.
Definition: AWESOMESimHit.h:98
float getEnergyDep() const
Get the deposited energy.
Definition: AWESOMESimHit.h:62
void setTime(float time)
Set the time.
AWESOMESimHit(float energyDep, B2Vector3< float > position, float time)
Standard constructor.
Definition: AWESOMESimHit.h:52
AWESOMESimHit()
Default constructor.
Definition: AWESOMESimHit.h:40
B2Vector3< float > getPosition() const
Get the vector for position.
Definition: AWESOMESimHit.h:80
void setPosition(B2Vector3< float > position)
Set the vector for position.
Definition: AWESOMESimHit.h:89
B2Vector3< float > m_position
Vector for position in cm.
A fast and root compatible alternative to TVector3.
Definition: B2Vector3.h:42
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24