#ifndef _fdet_FFixCalibManager_h_ #define _fdet_FFixCalibManager_h_ #include #include #include namespace utl { class Reader; class Branch; class TabulatedFunction; } namespace fdet { /** \class FFixCalibManager \brief Manager for FD calibration with fixed constants This manager reads static information stored in an XML datacard. \author R. Ulrich \date 25 Mar 2008 \author S. Mueller \date 1 Oct 2010 \version $Id: FFixCalibManager.h 20202 2012-01-18 15:02:07Z porcelli $ \ingroup managers */ class FFixCalibManager : public det::VManager { public: void Init(const std::string& configLink); #define FCALIBFIXMANAGER_GETDATA(_T_...) \ Status GetData(_T_& returnData, \ const std::string& componentProperty, \ const std::string& componentName, \ const IndexMap& componentIndex) const; FCALIBFIXMANAGER_GETDATA(int) FCALIBFIXMANAGER_GETDATA(double) FCALIBFIXMANAGER_GETDATA(std::map) FCALIBFIXMANAGER_GETDATA(std::vector) #undef FCALIBFIXMANAGER_GETDATA VMANAGER_GETDATA_DENIED(std::string) VMANAGER_GETDATA_DENIED(std::vector) VMANAGER_GETDATA_DENIED(std::vector) VMANAGER_GETDATA_DENIED(std::list) VMANAGER_GETDATA_DENIED(std::list) VMANAGER_GETDATA_DENIED(std::list) VMANAGER_GETDATA_DENIED(utl::TabulatedFunction) VMANAGER_GETDATA_DENIED(utl::TabulatedFunctionComplexLgAmpPhase) VMANAGER_GETDATA_DENIED(std::list >) VMANAGER_GETDATA_NOTFOUND(std::map) VMANAGER_GETDATA_DENIED(std::vector) private: void Initialize(); bool GetCalibConstForTelescope(const unsigned int eyeId, const unsigned int telId, double& value) const; private: double fCalibConst; bool fHasDefaultCalibConst; std::map > fPerTelescopeCalibConst; }; } #endif // _fdet_FFixCalibManager_h_ // Configure (x)emacs for this file ... // Local Variables: // mode: c++ // compile-command: "make -C .. FFixCalibManager.o -k" // End: