#ifndef _sdet_T2StatFileManager_h_ #define _sdet_T2StatFileManager_h_ /* \file ... \author Jose Luis Navarro Quirante \version $Id$ \date Wed Apr 20 09:51:30 CET 2010 */ #include #include #include class TChain; class TDirectory; namespace sdet { class T2StatFileManager : public det::VManager { public: T2StatFileManager() : fDataTree(0), fDir(0) { } virtual ~T2StatFileManager() { } VMANAGER_GETDATA_CALL(GetOkFlag, int) VMANAGER_GETDATA_NOTFOUND(double) //VMANAGER_GETDATA_NOTFOUND(unsigned long long int) VMANAGER_GETDATA_NOTFOUND(std::string) VMANAGER_GETDATA_NOTFOUND(std::list) VMANAGER_GETDATA_NOTFOUND(std::list) 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(utl::TabulatedFunction) VMANAGER_GETDATA_NOTFOUND(utl::TabulatedFunctionComplexLgAmpPhase) VMANAGER_GETDATA_NOTFOUND(std::map) VMANAGER_GETDATA_NOTFOUND(std::map) void Init(const std::string& configLink); private: Status GetOkFlag(int& returnData, const std::string& componentProperty, const std::string& componentName, const IndexMap& componentIndex) const; int GetStationStatus(const IndexMap& componentIndex) const; bool ReadData() const; VMANAGER_GETDATA_HANDLE_DENIED int fVerbosity; int fCommsCrisis; std::vector fAllT2Files; TChain* fDataTree; unsigned int fstartGPS; unsigned int fendGPS; TDirectory* fDir; // data cache std::vector fStationList; }; } #endif