12 #include <cppunit/extensions/HelperMacros.h>
14 #include <utl/ErrorLogger.h>
15 #include <utl/MathConstants.h>
16 #include <utl/PhysicalConstants.h>
17 #include <utl/PhysicalFunctions.h>
18 #include <utl/AugerUnits.h>
19 #include <tst/Verify.h>
20 #include <utl/AugerException.h>
34 CPPUNIT_TEST(testGaisserHillas);
35 CPPUNIT_TEST(testEnergy);
36 CPPUNIT_TEST(testBeta);
37 CPPUNIT_TEST(testRefractionIndex);
38 CPPUNIT_TEST(testCherenkovThreshold);
39 CPPUNIT_TEST(testShowerAge);
40 CPPUNIT_TEST(testEnergyDeposit);
41 CPPUNIT_TEST_SUITE_END();
47 double x0 = 12.89*(
g/
cm/
cm);
48 double nMax = 6.245e+9;
49 double xMax = 700.0*(
g/
cm/
cm);
52 CPPUNIT_ASSERT(Verify<CloseTo>(
GaisserHillas(xMax, x0, xMax, nMax, l),
59 double energy = 2.121*
MeV;
61 double beta =
Beta(energy);
62 CPPUNIT_ASSERT(Verify<CloseTo>(
Energy(beta), energy));
68 double energy = 12.123*
MeV;
69 double beta =
Beta(energy);
70 CPPUNIT_ASSERT(Verify<CloseTo>(
Beta(energy), beta));
76 double depth = 756.778*(
g/
cm/
cm);
92 CPPUNIT_ASSERT(Verify<CloseTo>(
ShowerAge(300.3,300.3), age));
double Energy(const double beta)
Calculate the electron energy for a relativistic beta.
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)
double CherenkovThreshold(const double nRef)
Calculate the electron Cherenkov threshold energy for refraction index.
double Beta(const double energy)
Calculate the electron energy versus the relativistic beta.
double GaisserHillas(const double x, const double x0, const double xMax, const double nMax, const double lambda)
Calculate the Gaisser-Hillas function.
double LorentzLorentz(const double verticalDepth)
Calculate the refraction index for a given depth.
void testCherenkovThreshold()
constexpr double kLambdaGH
double ShowerAge(const double slantDepth, const double showerMax)
General definition of shower age.
double EnergyDeposit(const double age, const double enCut)
Parametrization for the average energy deposit per particle.
void testRefractionIndex()