00001 #ifndef CALIB_ENDCAP_SIGMA_H 00002 #define CALIB_ENDCAP_SIGMA_H 00003 00004 #include "tofcalgsec/TofCalibFit.h" 00005 00006 const int nEndcapSigma = 3; // number of calib_endcap_sigma.txt 00007 const int nParEcSigma = 4; // 4: offset, offset error, sigma, sigma error 00008 const int nGraphEcSigma = 2; 00009 00010 class calib_endcap_sigma:public TofCalibFit { 00011 public: 00012 calib_endcap_sigma( const unsigned int nrbin ); 00013 ~calib_endcap_sigma(); 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( unsigned int icounter ); 00021 void fitGraph( unsigned int icounter ); 00022 00023 private: 00024 std::vector<double> rpos; 00025 std::vector<double> rposerr; 00026 double rstep; 00027 00028 std::vector<HepVector> m_fitresult; 00029 }; 00030 00031 #endif 00032