Belle II Software  release-06-01-15
EKLMHitMomentum.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/EKLMHitMomentum.h>
11 
12 using namespace Belle2;
13 
15  m_e(-1),
16  m_pX(-1),
17  m_pY(-1),
18  m_pZ(-1)
19 {
20 }
21 
23 {
24 }
25 
26 void EKLMHitMomentum::setMomentum(const TLorentzVector& p)
27 {
28  m_e = p.E();
29  m_pX = p.Px();
30  m_pY = p.Py();
31  m_pZ = p.Pz();
32 }
float m_pZ
Momentum Z component.
float m_pX
Momentum X component.
EKLMHitMomentum()
Constructor.
virtual ~EKLMHitMomentum()
Destructor.
float m_pY
Momentum Y component.
void setMomentum(const TLorentzVector &p)
Set momentum.
Abstract base class for different kinds of events.