00001 #ifndef CALIB_BARREL_Q0_H 00002 #define CALIB_BARREL_Q0_H 00003 00004 #include "tofcalgsec/TofCalibFit.h" 00005 00006 const int nBarrelQ0 = 3; // number of calib_barrel_q0.txt 00007 const int nParQ0 = 4; // 4: mean, mean error, sigma, sigma error 00008 const int nGraphTotalQ0 = 2; 00009 00010 class calib_barrel_q0:public TofCalibFit { 00011 public: 00012 calib_barrel_q0(); 00013 ~calib_barrel_q0(); 00014 00015 void calculate( RecordSet*& data, unsigned int icounter ); 00016 00017 private: 00018 void fillRecord( const Record* r, unsigned int icounter ); 00019 void fitHistogram( unsigned int icounter ); 00020 void fillGraph(); 00021 void fitGraph(); 00022 00023 private: 00024 std::vector<double> itofid; 00025 std::vector<double> itofiderr; 00026 double itofidstep; 00027 00028 std::vector<HepVector> m_fitresult; 00029 }; 00030 00031 #endif 00032