Belle II Software  release-06-02-00
EKLMHitGlobalCoord.cc
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 /* Own header. */
10 #include <klm/dataobjects/eklm/EKLMHitGlobalCoord.h>
11 
12 using namespace Belle2;
13 
15  m_globalX(-1),
16  m_globalY(-1),
17  m_globalZ(-1)
18 {
19 }
20 
22 {
23 }
24 
25 void EKLMHitGlobalCoord::setPosition(float x, float y, float z)
26 {
27  m_globalX = x;
28  m_globalY = y;
29  m_globalZ = z;
30 }
31 
32 void EKLMHitGlobalCoord::setPosition(const TVector3& pos)
33 {
34  m_globalX = pos.X();
35  m_globalY = pos.Y();
36  m_globalZ = pos.Z();
37 }
float m_globalX
Global position X coordinate.
virtual ~EKLMHitGlobalCoord()
Destructor.
float m_globalZ
Global position Z coordinate.
float m_globalY
Global position Y coordinate.
void setPosition(float x, float y, float z)
Set hit global position.
Abstract base class for different kinds of events.