|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Unit tests for the unpolarized linear Compton helper. More...
#include "Physics/LinearCompton.h"#include "Physics/Physics.h"#include "Utilities/Options.h"#include "gtest/gtest.h"#include <cmath>
Go to the source code of this file.
Functions | |
| TEST (TestLinearCompton, ThomsonLimitRecoveredAtLowEnergy) | |
| TEST (TestLinearCompton, EnergySupportMatchesComptonEndpoints) | |
| TEST (TestLinearCompton, DifferentialSpectrumIntegratesToTotalCrossSection) | |
| TEST (TestLinearCompton, NinetyDegreeLabForwardBenchmarkMatchesExactFormula) | |
| TEST (TestLinearCompton, ExplicitLabPhotonEnergyMatchesForwardHelper) | |
| TEST (TestLinearCompton, SampledEventsRespectKinematicBounds) | |
| TEST (TestLinearCompton, FixedSeedProducesDeterministicSampleSequence) | |
Unit tests for the unpolarized linear Compton helper.
The implemented helper is intentionally limited to single-electron, unpolarized Klein-Nishina physics. The tests below validate four things:
\[ \omega_\gamma' = \frac{E_e \omega_L}{\omega_L + m_e^2 / (E_e + p_e)}. \]
Definition in file TestLinearCompton.cpp.
| TEST | ( | TestLinearCompton | , |
| DifferentialSpectrumIntegratesToTotalCrossSection | |||
| ) |
Definition at line 85 of file TestLinearCompton.cpp.
References Physics::LinearCompton::scatteredPhotonEnergyMaxERFGeV(), Physics::LinearCompton::scatteredPhotonEnergyMinERFGeV(), and Physics::LinearCompton::totalCrossSection().

| TEST | ( | TestLinearCompton | , |
| EnergySupportMatchesComptonEndpoints | |||
| ) |
Definition at line 68 of file TestLinearCompton.cpp.
References Physics::LinearCompton::scatteredPhotonEnergyERFGeV(), Physics::LinearCompton::scatteredPhotonEnergyMaxERFGeV(), and Physics::LinearCompton::scatteredPhotonEnergyMinERFGeV().

| TEST | ( | TestLinearCompton | , |
| ExplicitLabPhotonEnergyMatchesForwardHelper | |||
| ) |
Definition at line 129 of file TestLinearCompton.cpp.
References Physics::LinearCompton::labForwardPhotonEnergyGeV(), Physics::LinearCompton::labPhotonEnergyGeV(), Physics::LinearCompton::photonEnergyFromWavelengthGeV(), and Physics::LinearCompton::restFrameScatteringCosineForLabForwardPhoton().

| TEST | ( | TestLinearCompton | , |
| FixedSeedProducesDeterministicSampleSequence | |||
| ) |
Definition at line 191 of file TestLinearCompton.cpp.
References Physics::LinearCompton::makeHostRandomEngine(), Physics::LinearCompton::makeSamplingKernel(), Physics::LinearCompton::photonEnergyFromWavelengthGeV(), Physics::LinearCompton::sampleEvent(), and Options::seed.

| TEST | ( | TestLinearCompton | , |
| NinetyDegreeLabForwardBenchmarkMatchesExactFormula | |||
| ) |
Definition at line 98 of file TestLinearCompton.cpp.
References Physics::LinearCompton::invariantX(), Physics::LinearCompton::labForwardPhotonEnergyGeV(), Physics::m_e, and Physics::LinearCompton::photonEnergyFromWavelengthGeV().

| TEST | ( | TestLinearCompton | , |
| SampledEventsRespectKinematicBounds | |||
| ) |
Definition at line 153 of file TestLinearCompton.cpp.
References dot(), Physics::LinearCompton::makeHostRandomEngine(), Physics::LinearCompton::makeSamplingKernel(), Physics::LinearCompton::photonEnergyFromWavelengthGeV(), Physics::LinearCompton::sampleEvent(), Physics::LinearCompton::scatteredPhotonEnergyMaxERFGeV(), Physics::LinearCompton::scatteredPhotonEnergyMinERFGeV(), Options::seed, and Physics::two_pi.

| TEST | ( | TestLinearCompton | , |
| ThomsonLimitRecoveredAtLowEnergy | |||
| ) |
Definition at line 60 of file TestLinearCompton.cpp.
References Physics::LinearCompton::thomsonCrossSection(), and Physics::LinearCompton::totalCrossSection().
