Belle II Software  release-06-01-15
EKLMHitMomentum Class Reference

Hit momentum. More...

#include <EKLMHitMomentum.h>

Inheritance diagram for EKLMHitMomentum:

Public Member Functions

 EKLMHitMomentum ()
 Constructor.
 
virtual ~EKLMHitMomentum ()
 Destructor.
 
void setMomentum (const TLorentzVector &p)
 Set momentum. More...
 
TLorentzVector getMomentum () const
 Get momentum. More...
 

Protected Attributes

float m_e
 Energy.
 
float m_pX
 Momentum X component.
 
float m_pY
 Momentum Y component.
 
float m_pZ
 Momentum Z component. More...
 

Private Member Functions

 ClassDef (Belle2::EKLMHitMomentum, 1)
 Class version.
 

Detailed Description

Hit momentum.

Definition at line 23 of file EKLMHitMomentum.h.

Member Function Documentation

◆ getMomentum()

TLorentzVector getMomentum ( ) const
inline

Get momentum.

Returns
Momentum.

Definition at line 47 of file EKLMHitMomentum.h.

48  {
49  return TLorentzVector(m_pX, m_pY, m_pZ, m_e);
50  }
float m_pZ
Momentum Z component.
float m_pX
Momentum X component.
float m_pY
Momentum Y component.

◆ setMomentum()

void setMomentum ( const TLorentzVector &  p)

Set momentum.

Parameters
[in]pmomentum

Definition at line 26 of file EKLMHitMomentum.cc.

27 {
28  m_e = p.E();
29  m_pX = p.Px();
30  m_pY = p.Py();
31  m_pZ = p.Pz();
32 }

Member Data Documentation

◆ m_pZ

float m_pZ
protected

Momentum Z component.

Definition at line 64 of file EKLMHitMomentum.h.


The documentation for this class was generated from the following files: