7 #include <det/Detector.h>
8 #include <rdet/RDetector.h>
9 #include <rdet/Station.h>
10 #include <rdet/Channel.h>
11 #include <sdet/SDetector.h>
12 #include <sdet/Station.h>
13 #include <fwk/CentralConfig.h>
14 #include <utl/TimeStamp.h>
15 #include <utl/UTCDateTime.h>
16 #include <cppunit/extensions/HelperMacros.h>
17 #include <tst/Verify.h>
18 #include <utl/Point.h>
19 #include <utl/UTMPoint.h>
20 #include <utl/ReferenceEllipsoid.h>
21 #include <fwk/CoordinateSystemRegistry.h>
22 #include <fwk/LocalCoordinateSystem.h>
27 #include <TPaveText.h>
37 #define ASSERT_CLOSE(x, y, eps) CPPUNIT_ASSERT(Verify<CloseTo>(x, y, eps))
38 #define ASSERT_EQUAL(x, y) CPPUNIT_ASSERT(Verify<Equal>(x, y))
44 CPPUNIT_TEST(testStationListManager);
45 CPPUNIT_TEST(testBeaconManager);
46 CPPUNIT_TEST_SUITE_END();
61 Detector::GetInstance();
66 Detector& detector = Detector::GetInstance();
73 cout <<
"Name of rdet::Station with Id 101: " << RStation.
GetName() << endl;
79 const UTMPoint utmpos1(pos1, ReferenceEllipsoid::GetWGS84());
80 const UTMPoint utmpos2(pos2, ReferenceEllipsoid::GetWGS84());
81 const UTMPoint utmpos3(pos3, ReferenceEllipsoid::GetWGS84());
98 cout <<
"update detector" << endl;
103 cout <<
"update detector" << endl;
111 const UTMPoint utmpos4(pos1, ReferenceEllipsoid::GetWGS84());
112 const UTMPoint utmpos5(pos2, ReferenceEllipsoid::GetWGS84());
113 const UTMPoint utmpos6(pos3, ReferenceEllipsoid::GetWGS84());
133 Detector& detector = Detector::GetInstance();
138 std::cout <<
"RDetector::GetBeaconFrequencies() returns frequencies (in GHz):" << std::endl;
139 for (
const auto& f : beaconFrequencies)
140 std::cout << f << std::endl;
void Update(const utl::TimeStamp &time, const bool invData=true, const bool invComp=true, const bool forceRadio=false)
Update detector: deletes currently constructed stations and sets new time.
double GetBeaconReferencePhase(const int stationId, const double beaconFreq) const
Get beacon reference phases for one station.
Detector description interface for Station-related data.
Class to hold and convert a point in geodetic coordinates.
double GetNorthing() const
Get the northing.
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)
const std::vector< double > & GetBeaconFrequencies() const
Get vector of Beacon Frequencies for given detector-time from Manager.
A TimeStamp holds GPS second and nanosecond for some event.
Detector description interface for RDetector-related data.
double GetHeight() const
Get the height.
Top of the hierarchy of the detector description interface.
double GetEasting() const
Get the easting.
const Channel & GetChannel(const int id) const
Get specified Channel by id.
#define ASSERT_CLOSE(x, y, eps)
static CentralConfig * GetInstance()
Use this the first time you get an instance of central configuration.
const rdet::RDetector & GetRDetector() const
void testStationListManager()
double GetSamplingFrequency() const
Get sampling Frequency of ADC (unit?)
utl::Point GetPosition() const
Tank position in Site Cartesian Coordinates.
const Station & GetStation(const int stationId) const
Get station by Station Id.
TimeStamp GetTimeStamp() const
std::string GetName() const
Station name.