Belle II Software  release-06-00-14
EKLMHitMomentum.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 <TLorentzVector.h>
13 
14 namespace Belle2 {
24 
25  public:
26 
31 
35  virtual ~EKLMHitMomentum();
36 
41  void setMomentum(const TLorentzVector& p);
42 
47  TLorentzVector getMomentum() const
48  {
49  return TLorentzVector(m_pX, m_pY, m_pZ, m_e);
50  }
51 
52  protected:
53 
55  float m_e;
56 
58  float m_pX;
59 
61  float m_pY;
62 
64  float m_pZ;
65 
66  private:
67 
70 
71  };
72 
74 }
ClassDef(Belle2::EKLMHitMomentum, 1)
Class version.
float m_pZ
Momentum Z component.
float m_pX
Momentum X component.
EKLMHitMomentum()
Constructor.
virtual ~EKLMHitMomentum()
Destructor.
float m_pY
Momentum Y component.
TLorentzVector getMomentum() const
Get momentum.
void setMomentum(const TLorentzVector &p)
Set momentum.
Abstract base class for different kinds of events.