Belle II Software development
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
14#include <Math/Vector3D.h>
15
20namespace Belle2 {
25
35
36 public:
37
42 m_energyDep{0},
43 m_position{0., 0., 0.},
44 m_time{0}
45 {}
46
53 AWESOMESimHit(float energyDep, ROOT::Math::XYZVector position, float time) :
54 m_energyDep{energyDep},
55 m_position{position},
56 m_time{time}
57 {}
58
63 float getEnergyDep() const
64 {
65 return m_energyDep;
66 }
67
72 void setEnergyDep(float energyDep)
73 {
74 m_energyDep = energyDep;
75 }
76
81 ROOT::Math::XYZVector getPosition() const
82 {
83 return m_position;
84 }
85
90 void setPosition(ROOT::Math::XYZVector position)
91 {
92 m_position = position;
93 }
94
99 float getTime() const
100 {
101 return m_time;
102 }
103
108 void setTime(float time)
109 {
110 m_time = time;
111 }
112
113 private:
114
117
119 ROOT::Math::XYZVector m_position;
120
122 float m_time;
123
126
127 };
128
130}
float m_time
Time in ns.
ROOT::Math::XYZVector m_position
Vector for position in cm.
void setEnergyDep(float energyDep)
Set the deposited energy.
float m_energyDep
Deposited energy in MeV.
float getTime() const
Get the time.
AWESOMESimHit(float energyDep, ROOT::Math::XYZVector position, float time)
Standard constructor.
float getEnergyDep() const
Get the deposited energy.
void setPosition(ROOT::Math::XYZVector position)
Set the vector for position.
void setTime(float time)
Set the time.
AWESOMESimHit()
Default constructor.
ROOT::Math::XYZVector getPosition() const
Get the vector for position.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Abstract base class for different kinds of events.