#ifndef _fdet_EventPointingManager_h_ #define _fdet_EventPointingManager_h_ /** \file \author Ralf Ulrich \version $Id: EventPointingManager.h 18230 2011-01-03 17:15:30Z dembinski $ \date Fri Nov 6 11:39:00 EST 2009 */ static const char CVSId_fdet_EventPointingManager[] = "$Id: EventPointingManager.h 18230 2011-01-03 17:15:30Z dembinski $"; #include #include namespace fdet { /** \brief reads the telescope point from the current Fd event \note This manager needs to appear before the FTelescopeListXMLManager in the FManagerConfig because the FTelescopeListXMLManager will otherwise return the default pointing id if asked for a telescope's "pointing". \author Ralf Ulrich \date Fri Nov 6 11:39:00 EST 2009 \ingroup managers */ class EventPointingManager : public det::VManager { struct Pointing { Pointing(const std::string& id) : minElevation(0), maxElevation(0), pointingId(id) {} double minElevation; double maxElevation; std::string pointingId; }; public: EventPointingManager() {} virtual ~EventPointingManager() { } virtual void Init(const std::string& configLink); VMANAGER_GETDATA_NOTFOUND(bool) VMANAGER_GETDATA_NOTFOUND(double) VMANAGER_GETDATA_NOTFOUND(int) VMANAGER_GETDATA_NOTFOUND(std::list) VMANAGER_GETDATA_NOTFOUND(std::list >) VMANAGER_GETDATA_NOTFOUND(std::vector) VMANAGER_GETDATA_NOTFOUND(std::vector) VMANAGER_GETDATA_NOTFOUND(std::vector) VMANAGER_GETDATA_NOTFOUND(std::vector) VMANAGER_GETDATA_NOTFOUND(std::list) VMANAGER_GETDATA_NOTFOUND(std::list) VMANAGER_GETDATA_NOTFOUND(utl::TabulatedFunction) VMANAGER_GETDATA_NOTFOUND(utl::TabulatedFunctionComplexLgAmpPhase) VMANAGER_GETDATA_NOTFOUND(std::map) VMANAGER_GETDATA_NOTFOUND(std::map) VMANAGER_GETDATA_CALL(GetPointing, std::string) private: std::vector fPointings; private: VManager::Status GetPointing(std::string& returnData, const std::string& componentProperty, const std::string& /*componentName*/, const IndexMap& componentIndex) const; }; } #endif // Configure (x)emacs for this file ... // Local Variables: // mode: c++ // compile-command: "make -C .. -k" // End: