7 #include <evt/GaisserHillas4Parameter.h>
10 #include <utl/AugerUnits.h>
11 #include <utl/ErrorLogger.h>
13 #include <tst/Verify.h>
14 #include <cppunit/extensions/HelperMacros.h>
29 const double xMax = 700;
30 const double xMaxError = 30;
31 const double nMax = 1e6;
32 const double nMaxError = 1e5;
33 const double x0 = -150;
34 const double x0Error = 2;
35 const double lambda = 60;
36 const double lambdaError = 6;
40 ghClassic.
SetXMax(xMax, xMaxError);
41 ghClassic.
SetNMax(nMax, nMaxError);
57 CPPUNIT_ASSERT(Verify<Equal>(ghWidth.
GetXMax(), xMax));
58 CPPUNIT_ASSERT(Verify<Equal>(ghWidth.
GetNMax(), nMax));
68 const double xMax = 700;
69 const double xMaxError = 30;
70 const double nMax = 1e8;
71 const double nMaxError = 1e7;
72 const double fwhm = 550;
73 const double fwhmError = 50;
74 const double asym = 0.45;
75 const double asymError = 0.01;
79 ghWidth.
SetXMax(xMax,xMaxError);
80 ghWidth.
SetNMax(nMax,nMaxError);
95 CPPUNIT_ASSERT(Verify<Equal>(ghClassic.
GetXMax(), xMax));
96 CPPUNIT_ASSERT(Verify<Equal>(ghClassic.
GetNMax(), nMax));
double GetShapeParameter(const gh::EShapeParameter par) const
access to all variants of shape parameters (see GaisserHillasTypes.h)
void SetXMax(const double xMax, const double error)
void SetShapeParameter(const gh::EShapeParameter par, const double value, const double error)
Setters.
double GetXMaxError() const
void CheckClassicToWidthConversion()
void SetNMax(const double nMax, const double error, const bool isEnergyDeposit=false)
double GetShapeParameterError(const gh::EShapeParameter par) const
Gaisser Hillas with 4 parameters.
void CheckWrongSetterClassic()
void CheckWidthToClassicConversion()
void CheckWrongSetterWidth()