Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-09-28 07:02:49

0001 /**
0002  \file
0003  Implementation of class BeamParticles.
0004  
0005  \author    Thomas Burton
0006  \date      2011-06-24
0007  \copyright 2011 Brookhaven National Lab
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 }