File indexing completed on 2024-09-28 07:02:49
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #include "eicsmear/erhic/BeamParticles.h"
0011
0012 #include <cmath>
0013
0014 BeamParticles::BeamParticles() {
0015 Reset();
0016 }
0017
0018 BeamParticles::BeamParticles(const TLorentzVector& hadronBeam,
0019 const TLorentzVector& leptonBeam,
0020 const TLorentzVector& scatteredHadron,
0021 const TLorentzVector& scatteredLepton,
0022 const TLorentzVector& exchangedBoson)
0023 : mBeamHadron(hadronBeam)
0024 , mBeamLepton(leptonBeam)
0025 , mScatteredHadron(scatteredHadron)
0026 , mScatteredLepton(scatteredLepton)
0027 , mBoson(exchangedBoson) {
0028 }
0029
0030 BeamParticles::~BeamParticles() {
0031 }
0032
0033 void BeamParticles::Reset() {
0034 mBeamHadron.SetXYZT(NAN, NAN, NAN, NAN);
0035 mBeamLepton.SetXYZT(NAN, NAN, NAN, NAN);
0036 mScatteredHadron.SetXYZT(NAN, NAN, NAN, NAN);
0037 mScatteredLepton.SetXYZT(NAN, NAN, NAN, NAN);
0038 mBoson.SetXYZT(NAN, NAN, NAN, NAN);
0039 }