Belle II Software  release-05-01-25
EKLMHitMomentum.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Kirill Chilikin *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 /* Own header. */
12 #include <klm/dataobjects/eklm/EKLMHitMomentum.h>
13 
14 using namespace Belle2;
15 
17  m_e(-1),
18  m_pX(-1),
19  m_pY(-1),
20  m_pZ(-1)
21 {
22 }
23 
25 {
26 }
27 
28 void EKLMHitMomentum::setMomentum(const TLorentzVector& p)
29 {
30  m_e = p.E();
31  m_pX = p.Px();
32  m_pY = p.Py();
33  m_pZ = p.Pz();
34 }
Belle2::EKLMHitMomentum::m_pX
float m_pX
Momentum X component.
Definition: EKLMHitMomentum.h:68
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::EKLMHitMomentum::m_e
float m_e
Energy.
Definition: EKLMHitMomentum.h:65
Belle2::EKLMHitMomentum::m_pZ
float m_pZ
Momentum Z component.
Definition: EKLMHitMomentum.h:74
Belle2::EKLMHitMomentum::m_pY
float m_pY
Momentum Y component.
Definition: EKLMHitMomentum.h:71
Belle2::EKLMHitMomentum::setMomentum
void setMomentum(const TLorentzVector &p)
Set momentum.
Definition: EKLMHitMomentum.cc:28
Belle2::EKLMHitMomentum::EKLMHitMomentum
EKLMHitMomentum()
Constructor.
Definition: EKLMHitMomentum.cc:16
Belle2::EKLMHitMomentum::~EKLMHitMomentum
virtual ~EKLMHitMomentum()
Destructor.
Definition: EKLMHitMomentum.cc:24