Belle II Software  release-06-01-15
EKLMHitGlobalCoord.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 /* ROOT headers. */
12 #include <TVector3.h>
13 
14 namespace Belle2 {
24 
25  public:
26 
31 
35  virtual ~EKLMHitGlobalCoord();
36 
43  void setPosition(float x, float y, float z);
44 
49  void setPosition(const TVector3& pos);
50 
55  float getPositionX() const
56  {
57  return m_globalX;
58  }
59 
64  float getPositionY() const
65  {
66  return m_globalY;
67  }
68 
73  float getPositionZ() const
74  {
75  return m_globalZ;
76  }
77 
82  TVector3 getPosition() const
83  {
84  return TVector3(m_globalX, m_globalY, m_globalZ);
85  }
86 
87  protected:
88 
90  float m_globalX;
91 
93  float m_globalY;
94 
96  float m_globalZ;
97 
98  private:
99 
102 
103  };
104 
106 }
float m_globalX
Global position X coordinate.
float getPositionZ() const
Get hit global position z coordinate.
virtual ~EKLMHitGlobalCoord()
Destructor.
float m_globalZ
Global position Z coordinate.
float getPositionX() const
Get hit global position x coordinate.
TVector3 getPosition() const
Get hit global position.
float getPositionY() const
Get hit global position y coordinate.
ClassDef(Belle2::EKLMHitGlobalCoord, 1)
Class version.
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.