CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
DecayChain::KinematicData Class Reference

#include <KinematicData.h>

Public Member Functions

 KinematicData ()
 
 KinematicData (const HepLorentzVector &p4)
 
void setUserTag (const int tag)
 
void setCharge (const int aCharge)
 
void setP4 (const HepLorentzVector &aMomentum)
 
int userTag () const
 
int charge () const
 
double mass () const
 
double energy () const
 
const HepLorentzVector & p4 () const
 

Detailed Description

Definition at line 10 of file KinematicData.h.

Constructor & Destructor Documentation

◆ KinematicData() [1/2]

KinematicData::KinematicData ( )

Definition at line 6 of file KinematicData.cxx.

7:m_userTag(0),
8 m_charge(0)
9#ifdef EXTEND
10,m_hasbeenbakup(false)
11#endif
12{
13}

◆ KinematicData() [2/2]

KinematicData::KinematicData ( const HepLorentzVector &  p4)

Definition at line 15 of file KinematicData.cxx.

15 :
16m_userTag(0),
17m_charge(0),
18 m_p4(p4)
19#ifdef EXTEND
20,m_hasbeenbakup(false)
21#endif
22{
23#ifdef EXTEND
24 bakup();
25#endif
26}
const HepLorentzVector & p4() const

Member Function Documentation

◆ charge()

int KinematicData::charge ( ) const

Definition at line 48 of file KinematicData.cxx.

48 {
49 return m_charge;
50}

Referenced by CDCandidate::charge().

◆ energy()

double KinematicData::energy ( ) const

Definition at line 56 of file KinematicData.cxx.

56 {
57 return m_p4.e();
58}

Referenced by CDCandidate::energy().

◆ mass()

double KinematicData::mass ( ) const

Definition at line 52 of file KinematicData.cxx.

52 {
53 return m_p4.m();
54}

Referenced by CDCandidate::mass().

◆ p4()

const HepLorentzVector & KinematicData::p4 ( ) const

Definition at line 60 of file KinematicData.cxx.

60 {
61 return m_p4;
62}

Referenced by CDCandidate::momentum(), and CDCandidate::p4().

◆ setCharge()

void KinematicData::setCharge ( const int  aCharge)

Definition at line 32 of file KinematicData.cxx.

32 {
33 m_charge = aCharge;
34}

Referenced by CDChargedVisible< H >::defaultKinematicData(), and CDDecay::defaultKinematicData().

◆ setP4()

void KinematicData::setP4 ( const HepLorentzVector &  aMomentum)

Definition at line 36 of file KinematicData.cxx.

37{
38 m_p4 = aMomentum;
39#ifdef EXTEND
40 bakup();
41#endif
42}

Referenced by CDChargedVisible< H >::defaultKinematicData(), CDDecay::defaultKinematicData(), CDPhoton::defaultKinematicData(), and CDCandidate::setP4().

◆ setUserTag()

void KinematicData::setUserTag ( const int  tag)

Definition at line 28 of file KinematicData.cxx.

28 {
29 m_userTag = tag;
30}

Referenced by CDDecay::defaultKinematicData(), and CDCandidate::setUserTag().

◆ userTag()

int KinematicData::userTag ( ) const

Definition at line 44 of file KinematicData.cxx.

44 {
45 return m_userTag;
46}

Referenced by CDCandidate::userTag().


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