Project
Loading...
Searching...
No Matches
testMaterialPhysics.cxx File Reference
#include <boost/test/unit_test.hpp>
#include <cmath>
#include <cstdint>
#include <bit>
#include <limits>
#include <vector>
#include "CommonConstants/MathConstants.h"
#include "ITSMFTTracking/MaterialPhysics.h"
#include "ReconstructionDataFormats/PID.h"
#include "ReconstructionDataFormats/TrackParametrization.h"
#include "ReconstructionDataFormats/TrackUtils.h"

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   ITSMFTMaterialPhysics
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

 BOOST_AUTO_TEST_CASE (EveryValidMassivePidIdChargedSucceeds)
 
 BOOST_AUTO_TEST_CASE (InvalidPidIdsRejectedBeforeMassLookup)
 
 BOOST_AUTO_TEST_CASE (PidAndChargeAreIndependent)
 
 BOOST_AUTO_TEST_CASE (ChargedMasslessRejected)
 
 BOOST_AUTO_TEST_CASE (AbsChargeVariantsScaleHighlandQuadratically)
 
 BOOST_AUTO_TEST_CASE (DirectionInvalidCastRejected)
 
 BOOST_AUTO_TEST_CASE (MaterialFieldsMustBeNonNegative)
 
 BOOST_AUTO_TEST_CASE (MomentumMustBePositive)
 
 BOOST_AUTO_TEST_CASE (ZeroMaterialIsAPassThrough)
 
 BOOST_AUTO_TEST_CASE (McsOnlyMaterialMatchesAnalyticHighland)
 
 BOOST_AUTO_TEST_CASE (EnergyLossOnlyMaterialProducesNoScattering)
 
 BOOST_AUTO_TEST_CASE (CombinedMaterialMatchesOracle)
 
 BOOST_AUTO_TEST_CASE (LossAndGainHaveOppositeSignedEnergyChange)
 
 BOOST_AUTO_TEST_CASE (MaterialAcrossSubstepRangeMatchesOracle)
 
 BOOST_AUTO_TEST_CASE (ClampedSubstepsStillProcessCompleteArealDensity)
 
 BOOST_AUTO_TEST_CASE (BetheBlochIsRecomputedPerSubstep)
 
 BOOST_AUTO_TEST_CASE (StoppingIsDetected)
 
 BOOST_AUTO_TEST_CASE (FinalMomentumBoundary)
 
 BOOST_AUTO_TEST_CASE (ExcessiveScatteringIsRejected)
 
 BOOST_AUTO_TEST_CASE (HugeFiniteArealDensityDeterministicallyStops)
 
 BOOST_AUTO_TEST_CASE (DirectBetheBlochReferenceValue)
 
 BOOST_AUTO_TEST_CASE (ChargeSquaredScalesSingleSubstepEnergyLoss)
 
 BOOST_AUTO_TEST_CASE (RepeatedCallsHaveIdenticalPhysicsOutputs)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 14 of file testMaterialPhysics.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 13 of file testMaterialPhysics.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   ITSMFTMaterialPhysics

Definition at line 12 of file testMaterialPhysics.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/23]

BOOST_AUTO_TEST_CASE ( AbsChargeVariantsScaleHighlandQuadratically  )

Definition at line 200 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/23]

BOOST_AUTO_TEST_CASE ( BetheBlochIsRecomputedPerSubstep  )

Definition at line 425 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/23]

BOOST_AUTO_TEST_CASE ( ChargedMasslessRejected  )

Definition at line 184 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/23]

BOOST_AUTO_TEST_CASE ( ChargeSquaredScalesSingleSubstepEnergyLoss  )

Definition at line 555 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [5/23]

BOOST_AUTO_TEST_CASE ( ClampedSubstepsStillProcessCompleteArealDensity  )

Definition at line 404 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [6/23]

BOOST_AUTO_TEST_CASE ( CombinedMaterialMatchesOracle  )

Definition at line 324 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [7/23]

BOOST_AUTO_TEST_CASE ( DirectBetheBlochReferenceValue  )

Definition at line 534 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [8/23]

BOOST_AUTO_TEST_CASE ( DirectionInvalidCastRejected  )

Definition at line 221 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [9/23]

BOOST_AUTO_TEST_CASE ( EnergyLossOnlyMaterialProducesNoScattering  )

Definition at line 308 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [10/23]

BOOST_AUTO_TEST_CASE ( EveryValidMassivePidIdChargedSucceeds  )

Definition at line 129 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [11/23]

BOOST_AUTO_TEST_CASE ( ExcessiveScatteringIsRejected  )

Definition at line 490 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [12/23]

BOOST_AUTO_TEST_CASE ( FinalMomentumBoundary  )

Definition at line 468 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [13/23]

BOOST_AUTO_TEST_CASE ( HugeFiniteArealDensityDeterministicallyStops  )

Definition at line 504 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [14/23]

BOOST_AUTO_TEST_CASE ( InvalidPidIdsRejectedBeforeMassLookup  )

Definition at line 146 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [15/23]

BOOST_AUTO_TEST_CASE ( LossAndGainHaveOppositeSignedEnergyChange  )

Definition at line 346 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [16/23]

BOOST_AUTO_TEST_CASE ( MaterialAcrossSubstepRangeMatchesOracle  )

Definition at line 370 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [17/23]

BOOST_AUTO_TEST_CASE ( MaterialFieldsMustBeNonNegative  )

Definition at line 238 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [18/23]

BOOST_AUTO_TEST_CASE ( McsOnlyMaterialMatchesAnalyticHighland  )

Definition at line 286 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [19/23]

BOOST_AUTO_TEST_CASE ( MomentumMustBePositive  )

Definition at line 255 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [20/23]

BOOST_AUTO_TEST_CASE ( PidAndChargeAreIndependent  )

Definition at line 163 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [21/23]

BOOST_AUTO_TEST_CASE ( RepeatedCallsHaveIdenticalPhysicsOutputs  )

Definition at line 604 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [22/23]

BOOST_AUTO_TEST_CASE ( StoppingIsDetected  )

Definition at line 454 of file testMaterialPhysics.cxx.

◆ BOOST_AUTO_TEST_CASE() [23/23]

BOOST_AUTO_TEST_CASE ( ZeroMaterialIsAPassThrough  )

Definition at line 271 of file testMaterialPhysics.cxx.