EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
EventDis.cxx
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EventDis.cxx
1
10
#include "
eicsmear/erhic/EventDis.h
"
11
12
#include "
eicsmear/erhic/Kinematics.h
"
13
14
namespace
erhic {
15
16
EventDis::~EventDis
() { }
17
24
EventDis::EventDis
()
25
:
x
(NAN)
26
, QSquared(NAN)
27
,
y
(NAN)
28
, WSquared(NAN)
29
, nu(NAN)
30
, yJB(NAN)
31
, QSquaredJB(NAN)
32
, xJB(NAN)
33
, WSquaredJB(NAN)
34
, yDA(NAN)
35
, QSquaredDA(NAN)
36
, xDA(NAN)
37
, WSquaredDA(NAN) {
38
}
39
40
EventDis::EventDis
(
const
EventDis
& that)
41
:
VirtualEvent
(that) {
42
CopyKinematics
(that);
43
}
44
45
EventDis
&
EventDis::operator=
(
const
EventDis
& that) {
46
if
(
this
!= &that) {
// Protect against self-assignment
47
CopyKinematics
(that);
48
}
// if
49
return
*
this
;
50
}
51
52
void
EventDis::CopyKinematics
(
const
EventDis
& that) {
53
SetLeptonKinematics
(
DisKinematics
(that.
x
, that.
y
, that.
nu
,
54
that.
QSquared
, that.
WSquared
));
55
SetJacquetBlondelKinematics
(
DisKinematics
(that.
xJB
, that.
yJB
, 0.,
56
that.
QSquaredJB
, that.
WSquaredJB
));
57
SetDoubleAngleKinematics
(
DisKinematics
(that.
xDA
, that.
yDA
, 0.,
58
that.
QSquaredDA
, that.
WSquaredDA
));
59
}
60
61
void
EventDis::SetLeptonKinematics
(
const
DisKinematics
& kin) {
62
x
= kin.
mX
;
63
QSquared
= kin.
mQ2
;
64
WSquared
= kin.
mW2
;
65
nu
= kin.
mNu
;
66
y
= kin.
mY
;
67
}
68
69
void
EventDis::SetJacquetBlondelKinematics
(
const
DisKinematics
& kin) {
70
xJB
= kin.
mX
;
71
QSquaredJB
= kin.
mQ2
;
72
WSquaredJB
= kin.
mW2
;
73
yJB
= kin.
mY
;
74
}
75
76
void
EventDis::SetDoubleAngleKinematics
(
const
DisKinematics
& kin) {
77
xDA
= kin.
mX
;
78
QSquaredDA
= kin.
mQ2
;
79
WSquaredDA
= kin.
mW2
;
80
yDA
= kin.
mY
;
81
}
82
83
}
// namespace erhic
eic-smear
blob
master
src
erhic
EventDis.cxx
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:32
using
1.8.2 with
EIC GitHub integration