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
BeamParticles.cxx
Go to the documentation of this file.
1 
11 
12 #include <cmath>
13 
15  Reset();
16 }
17 
18 BeamParticles::BeamParticles(const TLorentzVector& hadronBeam,
19  const TLorentzVector& leptonBeam,
20  const TLorentzVector& scatteredHadron,
21  const TLorentzVector& scatteredLepton,
22  const TLorentzVector& exchangedBoson)
23 : mBeamHadron(hadronBeam)
24 , mBeamLepton(leptonBeam)
25 , mScatteredHadron(scatteredHadron)
26 , mScatteredLepton(scatteredLepton)
27 , mBoson(exchangedBoson) {
28 }
29 
31 }
32 
34  mBeamHadron.SetXYZT(NAN, NAN, NAN, NAN);
35  mBeamLepton.SetXYZT(NAN, NAN, NAN, NAN);
36  mScatteredHadron.SetXYZT(NAN, NAN, NAN, NAN);
37  mScatteredLepton.SetXYZT(NAN, NAN, NAN, NAN);
38  mBoson.SetXYZT(NAN, NAN, NAN, NAN);
39 }
BeamParticles::BeamParticles
BeamParticles()
Default constructor.
Definition: BeamParticles.cxx:14
BeamParticles::mBeamLepton
TLorentzVector mBeamLepton
Incident lepton beam.
Definition: BeamParticles.h:69
BeamParticles::Reset
void Reset()
Sets all the 4-vectors' components to not-a-number.
Definition: BeamParticles.cxx:33
BeamParticles::mScatteredHadron
TLorentzVector mScatteredHadron
Scattered hadron beam.
Definition: BeamParticles.h:70
BeamParticles::mScatteredLepton
TLorentzVector mScatteredLepton
Scattered lepton beam.
Definition: BeamParticles.h:71
BeamParticles.h
BeamParticles::mBeamHadron
TLorentzVector mBeamHadron
Incident hadron beam.
Definition: BeamParticles.h:68
BeamParticles::~BeamParticles
virtual ~BeamParticles()
Destructor.
Definition: BeamParticles.cxx:30
BeamParticles::mBoson
TLorentzVector mBoson
Exchanged boson.
Definition: BeamParticles.h:72