00001 #ifndef __CINT__ 00002 #ifndef VEcalCalibBlock_H 00003 #define VEcalCalibBlock_H 00004 00005 #include <map> 00006 #include <string> 00007 #include <vector> 00008 00018 class VEcalCalibBlock 00019 { 00020 public : 00021 00023 VEcalCalibBlock (int numberOfElements) : 00024 m_numberOfElements (numberOfElements) {} ; 00026 virtual ~VEcalCalibBlock () {} ; 00027 00029 virtual void Fill (std::map<int,double>::const_iterator, 00030 std::map<int,double>::const_iterator, 00031 double pTk, 00032 double pSubtract, 00033 double sigma = 1.) = 0 ; 00034 00036 virtual void reset () = 0 ; 00038 float at (const unsigned int index) { return m_coefficients[index] ; } 00040 virtual void solve (int usingBlockSolver, double min, double max) = 0 ; 00041 00042 protected : 00043 00045 unsigned int m_numberOfElements ; 00047 std::map<unsigned int, float> m_coefficients ; 00048 } ; 00049 00050 00051 #endif 00052 #endif 00053