7 #include <det/Detector.h>
8 #include <sdet/SDetector.h>
9 #include <fwk/CentralConfig.h>
10 #include <utl/TimeStamp.h>
11 #include <utl/UTCDateTime.h>
12 #include <utl/TabulatedFunction.h>
13 #include <utl/Reader.h>
14 #include <utl/CoordinateSystem.h>
15 #include <utl/Point.h>
16 #include <utl/AugerException.h>
17 #include <utl/ErrorLogger.h>
18 #include <fwk/CoordinateSystemRegistry.h>
20 #include <evt/Event.h>
21 #include <sevt/SEvent.h>
22 #include <sevt/Station.h>
24 #include <cppunit/extensions/HelperMacros.h>
36 CPPUNIT_TEST(testBug594);
37 CPPUNIT_TEST_SUITE_END();
48 CentralConfig::GetInstance(BOOTSTRAPFILE,
false,
false);
51 Detector::GetInstance();
61 cout <<
"in testBug594" << endl;
63 Detector& det = Detector::GetInstance();
69 cerr <<
"Station: " << sId << endl;
74 for (
int i = 1; i < 10; ++i) {
75 cerr <<
"Crown " << i <<
':';
77 for (Station::StationIdCollection::const_iterator sIt = crown.begin();
78 sIt != crown.end(); ++sIt) {
80 const bool inserted = stations.insert(*sIt).second;
82 cerr <<
"Station " << *sIt <<
" from crown " << i <<
" "
83 "has been already encountered in lower crowns!" << endl;
84 CPPUNIT_ASSERT(inserted);
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.
const StationIdCollection & GetCrown(const int level) const
Returns a list of station id's in the crown. If the argument is 0, it returns the station id...
Detector description interface for Station-related data.
int crown(double x1, double x2, double y1, double y2)
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)
Top of the hierarchy of the detector description interface.
const sdet::SDetector & GetSDetector() const
Detector description interface for SDetector-related data.
const Station & GetStation(const int stationId) const
Get station by Station Id.