eic-smear  1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
EventDis.cxx
Go to the documentation of this file.
1 
11 
13 
14 namespace erhic {
15 
17 
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 
41 : VirtualEvent(that) {
42  CopyKinematics(that);
43 }
44 
46  if (this != &that) { // Protect against self-assignment
47  CopyKinematics(that);
48  } // if
49  return *this;
50 }
51 
53  SetLeptonKinematics(DisKinematics(that.x, that.y, that.nu,
54  that.QSquared, that.WSquared));
56  that.QSquaredJB, that.WSquaredJB));
58  that.QSquaredDA, that.WSquaredDA));
59 }
60 
62  x = kin.mX;
63  QSquared = kin.mQ2;
64  WSquared = kin.mW2;
65  nu = kin.mNu;
66  y = kin.mY;
67 }
68 
70  xJB = kin.mX;
71  QSquaredJB = kin.mQ2;
72  WSquaredJB = kin.mW2;
73  yJB = kin.mY;
74 }
75 
77  xDA = kin.mX;
78  QSquaredDA = kin.mQ2;
79  WSquaredDA = kin.mW2;
80  yDA = kin.mY;
81 }
82 
83 } // namespace erhic
Double32_t yDA
y calculated via the double-angle method
Definition: EventDis.h:190
Double32_t xJB
x calculated via the Jacquet-Blondel method
Definition: EventDis.h:188
virtual void SetLeptonKinematics(const DisKinematics &)
Definition: EventDis.cxx:61
virtual void CopyKinematics(const EventDis &)
Definition: EventDis.cxx:52
Double32_t QSquared
Q2 calculated from scattered electron.
Definition: EventDis.h:182
virtual void SetJacquetBlondelKinematics(const DisKinematics &)
Definition: EventDis.cxx:69
Double32_t nu
Energy transfer from the electron.
Definition: EventDis.h:185
Double32_t y
Inelasticity.
Definition: EventDis.h:183
Double32_t WSquaredJB
W2 calculated via the Jacquet-Blondel method.
Definition: EventDis.h:189
virtual void SetDoubleAngleKinematics(const DisKinematics &)
Definition: EventDis.cxx:76
Abstract base class for a physics event.
Definition: VirtualEvent.h:25
Double32_t WSquaredDA
W2 calculated via the double-angle method.
Definition: EventDis.h:193
Double32_t yJB
y calculated via the Jacquet-Blondel method
Definition: EventDis.h:186
Double32_t WSquared
Invariant mass of the hadronic system.
Definition: EventDis.h:184
virtual ~EventDis()
Definition: EventDis.cxx:16
Double32_t QSquaredJB
Q2 calculated via the Jacquet-Blondel method.
Definition: EventDis.h:187
Double32_t x
Bjorken scaling variable.
Definition: EventDis.h:181
Double32_t xDA
x calculated via the double-angle method
Definition: EventDis.h:192
Double32_t QSquaredDA
Q2 calculated via the double-angle method.
Definition: EventDis.h:191
EventDis & operator=(const EventDis &)
Definition: EventDis.cxx:45