-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from vetlewi/master
New features
- Loading branch information
Showing
8 changed files
with
168 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef LNSCATTERING_H | ||
#define LNSCATTERING_H | ||
|
||
#include "Scattering.h" | ||
|
||
class LNScattering : public Scattering | ||
{ | ||
public: | ||
//! Constructor. | ||
LNScattering(Particle *pA, /*!< Incident particle. */ | ||
Particle *pX, /*!< Target particle. */ | ||
Particle *pY, /*!< Light product. */ | ||
Particle *pB /*!< Heavy product. */); | ||
|
||
//! Destructor. | ||
~LNScattering(); | ||
|
||
//! Calculate energy of light product. | ||
double EvaluateY(const double &E, /*!< Incident energy. */ | ||
const double &theta, /*!< Scattering angle of light product. */ | ||
const double &Ex /*!< Excitation energy of the heavy product. */) const; | ||
}; | ||
|
||
#endif // LNSCATTERING_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "LNScattering.h" | ||
|
||
#include "Particle.h" | ||
|
||
#include <cmath> | ||
|
||
LNScattering::LNScattering(Particle *pA, Particle *pX, Particle *pY, Particle *pB) | ||
: Scattering(pA, pX, pY, pB){ } | ||
|
||
LNScattering::~LNScattering(){ } | ||
|
||
double LNScattering::EvaluateY(const double &E, const double &theta, const double &Ex) const | ||
{ | ||
double Ma = A->GetM_MeV(), MA = X->GetM_MeV(), Mb = Y->GetM_MeV(), MB = B->GetM_MeV(); | ||
double Q = Ma + MA - Mb - MB - Ex; | ||
double ET = E + Q; | ||
|
||
//double RaB = Ma*MB*E/(ET*(Ma + MA)*(Mb + MB)); | ||
//double RAb = MA*Mb*(1 + Ma*Q/(MA*ET))/((Ma + MA)*(Mb + MB)); | ||
double Rab = Ma*Mb*E/(ET*(Ma + MA)*(Mb + MB)); | ||
double RAB = MA*MB*(1 + Ma*Q/(MA*ET))/((Ma + MA)*(Mb + MB)); | ||
|
||
if (RAB > Rab) | ||
return Rab*pow(cos(theta) + sqrt(RAB/Rab - sin(theta)*sin(theta)), 2)*ET; | ||
else | ||
return Rab*pow(cos(theta) - sqrt(RAB/Rab - sin(theta)*sin(theta)), 2)*ET; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters