BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
KinematicData.cxx
Go to the documentation of this file.
1#include <cmath>
3
5
7:m_userTag(0),
8 m_charge(0)
9#ifdef EXTEND
10,m_hasbeenbakup(false)
11#endif
12{
13}
14
15KinematicData::KinematicData(const HepLorentzVector& p4) :
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}
27
28void KinematicData::setUserTag( const int tag ) {
29 m_userTag = tag;
30}
31
32void KinematicData::setCharge( const int aCharge ) {
33 m_charge = aCharge;
34}
35
36void KinematicData::setP4( const HepLorentzVector& aMomentum )
37{
38 m_p4 = aMomentum;
39#ifdef EXTEND
40 bakup();
41#endif
42}
43
45 return m_userTag;
46}
47
49 return m_charge;
50}
51
52double KinematicData::mass() const {
53 return m_p4.m();
54}
55
56double KinematicData::energy() const {
57 return m_p4.e();
58}
59
60const HepLorentzVector& KinematicData::p4() const {
61 return m_p4;
62}
void setCharge(const int aCharge)
void setP4(const HepLorentzVector &aMomentum)
void setUserTag(const int tag)
const HepLorentzVector & p4() const
double double double * p4
Definition: qcdloop1.h:77