// $Id$ // // File: DBCALEcalib.h // Created: Mon Jun 6 08:01:33 EDT 2011 // Creator: davidl (on Linux ifarm1101 2.6.18-128.7.1.el5 x86_64) // #ifndef _DBCALEcalib_ #define _DBCALEcalib_ #include #include #include #include class DBCALEcalib{ public: DBCALEcalib(jana::JCalibration *jcalib, std::string namepath="BCAL/Ecalib"); virtual ~DBCALEcalib(); class EcalibPoint_t{ public: float z; float E_raw; float E; }; double GetCorrectedEnergy(double E_raw, double z_recon); protected: private: float E_min, E_max, z_min, z_max; int N_E, N_z; float dE, dz; std::vector > Etable; jana::JCalibration *jcalib; }; #endif // _DBCALEcalib_