3 #include <boost/lexical_cast.hpp>
5 #include <det/Detector.h>
6 #include <utl/ErrorLogger.h>
7 #include <atm/Atmosphere.h>
8 #include <atm/LidarDB.h>
10 #include <utl/AugerException.h>
26 Detector::GetInstance().GetAManagerRegister().GetManager(
"ALidarSQLManager");
29 manager.
GetData(fLidarIdString,
"lidar",
"lidar_id", emptyIndexMap);
42 if (!fZoneMap.empty())
43 ERROR(
"Call to CacheZones with non-empty fZoneMap. This is a bug .. please report it");
46 Detector::GetInstance().GetAManagerRegister().GetManager(
"ALidarSQLManager");
50 vector<string> zoneIdStrings;
52 indexMap[
"lidar_id"] = fLidarIdString;
54 manager.
GetData(zoneIdStrings,
"zone",
"zone_id", indexMap);
58 boost::lexical_cast<string>(Detector::GetInstance().GetTime()));
60 for (vector<string>::iterator it = zoneIdStrings.begin();
61 it != zoneIdStrings.end(); ++it) {
64 zoneNameIndexMap[
"zone_id"] = *it;
67 manager.
GetData(zoneName,
"zone",
"name", zoneNameIndexMap);
70 manager.
GetData(zoneNorthing,
"zone",
"northing", zoneNameIndexMap);
73 manager.
GetData(zoneEasting,
"zone",
"easting", zoneNameIndexMap);
76 new LidarZone(*it, fLidarIdString, zoneName, zoneNorthing, zoneEasting);
78 fZoneMap[zoneName] = aZone;
86 it != fZoneMap.end(); ++it)
InternalZoneMap::const_iterator InternalZoneIterator
Cloud data for a Lidar zone.
Interface for detector managers.
virtual Status GetData(double &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const =0
Exception to use in case requested data not found in the database with detailed printout.
std::map< std::string, std::string > IndexMap
#define ERROR(message)
Macro for logging error messages.
Status
Specifies success or (eventually) various possible failure modes.