BOSS
7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
KinematicData.cxx
Go to the documentation of this file.
1
#include <cmath>
2
#include "
BesDChain/util/KinematicData.h
"
3
4
using
DecayChain::KinematicData
;
5
6
KinematicData::KinematicData
()
7
:m_userTag(0),
8
m_charge(0)
9
#ifdef EXTEND
10
,m_hasbeenbakup(
false
)
11
#endif
12
{
13
}
14
15
KinematicData::KinematicData
(
const
HepLorentzVector&
p4
) :
16
m_userTag(0),
17
m_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
28
void
KinematicData::setUserTag
(
const
int
tag ) {
29
m_userTag = tag;
30
}
31
32
void
KinematicData::setCharge
(
const
int
aCharge ) {
33
m_charge = aCharge;
34
}
35
36
void
KinematicData::setP4
(
const
HepLorentzVector& aMomentum )
37
{
38
m_p4 = aMomentum;
39
#ifdef EXTEND
40
bakup();
41
#endif
42
}
43
44
int
KinematicData::userTag
()
const
{
45
return
m_userTag;
46
}
47
48
int
KinematicData::charge
()
const
{
49
return
m_charge;
50
}
51
52
double
KinematicData::mass
()
const
{
53
return
m_p4.m();
54
}
55
56
double
KinematicData::energy
()
const
{
57
return
m_p4.e();
58
}
59
60
const
HepLorentzVector&
KinematicData::p4
()
const
{
61
return
m_p4;
62
}
false
#define false
Definition
BesCxxPolicy/BesCxxPolicy-00-02-00/CxxFeatures/config.h:22
KinematicData.h
DecayChain::KinematicData
Definition
KinematicData.h:11
DecayChain::KinematicData::setCharge
void setCharge(const int aCharge)
Definition
KinematicData.cxx:32
DecayChain::KinematicData::userTag
int userTag() const
Definition
KinematicData.cxx:44
DecayChain::KinematicData::mass
double mass() const
Definition
KinematicData.cxx:52
DecayChain::KinematicData::KinematicData
KinematicData()
Definition
KinematicData.cxx:6
DecayChain::KinematicData::setP4
void setP4(const HepLorentzVector &aMomentum)
Definition
KinematicData.cxx:36
DecayChain::KinematicData::setUserTag
void setUserTag(const int tag)
Definition
KinematicData.cxx:28
DecayChain::KinematicData::charge
int charge() const
Definition
KinematicData.cxx:48
DecayChain::KinematicData::energy
double energy() const
Definition
KinematicData.cxx:56
DecayChain::KinematicData::p4
const HepLorentzVector & p4() const
Definition
KinematicData.cxx:60
p4
double double double * p4
Definition
qcdloop1.h:77
7.1.1
Event
BesDChain
BesDChain-00-00-14
src
util
KinematicData.cxx
Generated by
1.12.0