3#include "gtest/gtest.h"
9 TEST(MuonDecayTest, MaxElectronEnergyIsHalfMuonMass) {
13 TEST(MuonDecayTest, MinElectronXIsPositiveAndSmall) {
16 EXPECT_LT(xMin, 0.02);
19 TEST(MuonDecayTest, MichelSpectrumIsNonNegativeInRange) {
21 constexpr int nSamples = 1000;
22 for (
int i = 0; i <= nSamples; ++i) {
23 const double x = xMin + (1.0 - xMin) *
static_cast<double>(i) / nSamples;
28 TEST(MuonDecayTest, MichelSpectrumPeaksAtXEqualsOne) {
33 TEST(MuonDecayTest, MichelSpectrumBelowUpperBound) {
36 constexpr int nSamples = 10000;
37 for (
int i = 0; i <= nSamples; ++i) {
38 const double x = xMin + (1.0 - xMin) *
static_cast<double>(i) / nSamples;
43 TEST(MuonDecayTest, MichelSpectrumEndpoints) {
50 TEST(MuonDecayTest, MichelUpperBoundIs2) {
TEST(IndexMapTest, RebuildsReferencePathModelFromOrderedRanges)
KOKKOS_INLINE_FUNCTION constexpr double michelUpperBound()
Upper bound of the Michel spectrum, attained at : .
KOKKOS_INLINE_FUNCTION constexpr double minElectronX()
Minimum reduced energy .
KOKKOS_INLINE_FUNCTION double michelSpectrum(double x)
KOKKOS_INLINE_FUNCTION constexpr double maxElectronEnergy()
Maximum electron energy in the muon rest frame [GeV]: .
constexpr double m_mu
The muon rest mass in GeV.