//////////////////////////////////////////////////////////////////// /// \class RAT::ReconCalibrator /// /// \brief Calibrations for reconstruction /// /// \author Logan Lebanowski /// /// REVISION HISTORY:\n /// 2018 Jul 25 : Logan L.: New File /// /// \details This class contains functions used to apply /// calibrations to reconstructed energies /// //////////////////////////////////////////////////////////////////// #ifndef __RAT_util_ReconCalibrator__ #define __RAT_util_ReconCalibrator__ #include using std::vector; namespace RAT { namespace DU { class ReconCalibrator { public: static inline ReconCalibrator* Get() { static ReconCalibrator calib; calib.Init(); return &calib; } ReconCalibrator(); void BeginOfRun() {Init();} void Init(); // Calibrate Energy double CalibrateEnergyRSP( bool isData, double energy, double rho, double z ) const; private: bool fInitDone; vector fCoefficientsData; vector fCoefficientsSim; }; } } #endif