10 #include <tst/Verify.h>
12 #include <fwk/MagneticFieldModel.h>
13 #include <utl/AugerException.h>
14 #include <utl/AugerUnits.h>
15 #include <utl/CoordinateSystemPtr.h>
16 #include <utl/Point.h>
17 #include <utl/UTMPoint.h>
18 #include <utl/UTCDateTime.h>
19 #include <fwk/CentralConfig.h>
21 #include <det/Detector.h>
24 #include <cppunit/extensions/HelperMacros.h>
35 CPPUNIT_TEST(testIGRFValues);
38 CPPUNIT_TEST_SUITE_END();
53 det::Detector::GetInstance();
86 const double Lat = -(35. + 28./60. + 32./3600.) *
degree;
87 const double Long = -(69. + 35./60. + 12./3600.) *
degree;
88 const double Height = 1500. *
meter;
102 CPPUNIT_ASSERT(Verify<CloseTo>(theMagneticFieldVector.
GetX(localCS),829.2*
nano*
tesla,0.005));
103 CPPUNIT_ASSERT(Verify<CloseTo>(theMagneticFieldVector.
GetY(localCS),19488.8*
nano*
tesla,0.005));
104 CPPUNIT_ASSERT(Verify<CloseTo>(theMagneticFieldVector.
GetZ(localCS),14324.0*
nano*
tesla,0.005));
Point LatitudeLongitudeHeightToPoint(double const latitude, double const longitude, double const height) const
Convert Lat/Long/Height to Point.
static const ReferenceEllipsoid & Get(const EllipsoidID theID)
Get known ellipsoid by registered ID.
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)
A TimeStamp holds GPS second and nanosecond for some event.
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
double GetX(const CoordinateSystemPtr &coordinateSystem) const
static MagneticFieldModel & instance()
static utl::Vector GetMagneticFieldVector(const utl::Point &position, const utl::TimeStamp &time)
returns the magnetic field at a specific place at a specific time
double GetY(const CoordinateSystemPtr &coordinateSystem) const
static CentralConfig * GetInstance()
Use this the first time you get an instance of central configuration.
double GetZ(const CoordinateSystemPtr &coordinateSystem) const
static Policy::type Create(const utl::Point &theOrigin)
Create the standard local coordinate system for a Point.
TimeStamp GetTimeStamp() const