#ifndef __hexagon_tools__ #define __hexagon_tools__ #include #include using namespace std; class HexagonData { private: vector _UTC[NARRAY], _GPS[NARRAY]; vector _NHexa[NARRAY]; unsigned int _NHexagons[NARRAY]; vector _UTCBadStart[NARRAY], _UTCBadEnd[NARRAY]; vector _GPSBadStart[NARRAY], _GPSBadEnd[NARRAY]; unsigned _NBadPeriods[NARRAY]; int Index(ENUMARRAY, unsigned int); public: HexagonData(); ~HexagonData(); double NHexagons(ENUMARRAY, unsigned int); // in km^2 double Exposure(ENUMARRAY, unsigned int, unsigned int); // in km^2.yr.sr bool IsInGoodPeriod(ENUMARRAY,unsigned int); bool IsInBadPeriod(ENUMARRAY,unsigned int); }; #endif