1 #include <det/Detector.h>
2 #include <sdet/SDetector.h>
3 #include <fwk/CentralConfig.h>
4 #include <utl/TimeStamp.h>
5 #include <utl/UTCDateTime.h>
6 #include <utl/TabulatedFunction.h>
7 #include <utl/Reader.h>
8 #include <utl/CoordinateSystem.h>
10 #include <utl/AugerException.h>
11 #include <utl/ErrorLogger.h>
13 #include <fwk/CoordinateSystemRegistry.h>
14 #include <fwk/RunController.h>
16 #include <evt/Event.h>
17 #include <evt/ShowerSimData.h>
18 #include <evt/DefaultShowerGeometryProducer.h>
20 #include <sevt/SEvent.h>
21 #include <sevt/Station.h>
23 #include <tst/Verify.h>
25 #include <cppunit/extensions/HelperMacros.h>
52 CPPUNIT_TEST(testBasicAzimuth);
53 CPPUNIT_TEST_SUITE_END();
62 CentralConfig::GetInstance(BOOTSTRAPFILE);
65 Detector::GetInstance().Update(
UTCDateTime(2005,1,1).GetTimeStamp());
73 Detector& theDetector = Detector::GetInstance();
80 Event& evt = RunController::GetInstance().GetCurrentEvent();
87 const double x = 8*
km;
88 const double y = -12*
km;
108 const double distance1 = (pos1 - core).GetMag();
109 CPPUNIT_ASSERT(Verify<CloseTo>(distance1, 1000*
m, 1*
m));
117 const double distance2 = (pos2 - core).GetMag();
118 CPPUNIT_ASSERT(Verify<CloseTo>(distance2, 1000*
m, 1*
m));
Detector description interface for Station-related data.
bool HasSimShower() const
void SetGroundParticleCoordinateSystemAzimuth(const double azimuth)
Set the azimuth angle of the shower. Angle in x-y plane wrt. to the x axis (0 is from east)...
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)
utl::Point GetPosition() const
Tank position.
Interface class to access Shower Simulated parameters.
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
Top of the hierarchy of the detector description interface.
const sdet::SDetector & GetSDetector() const
ShowerSimData & GetSimShower()
void SetGroundParticleCoordinateSystemZenith(const double zenith)
Set the zenith angle of the shower. Room angle between z-axis and direction from where the shower is ...
utl::CoordinateSystemPtr GetReferenceCoordinateSystem() const
Get the reference coordinate system used for analysis (usually PampaAmarilla for Auger) ...
void MakeGeometry(const utl::Point &pointOnShowerAxis)
initialize the shower geometry. Pos is a point on the shower axis, but not necessarily the core ...
void MakeSimShower(const evt::VShowerGeometryProducer &p)
const Station & GetStation(const int stationId) const
Get station by Station Id.