00001 #ifndef CALIB_BARREL_VEFF_H 00002 #define CALIB_BARREL_VEFF_H 00003 00004 #include "tofcalgsec/TofCalib.h" 00005 00006 const int nBarrelVeff = 2; 00007 00008 class calib_barrel_veff:public TofCalib { 00009 public: 00010 calib_barrel_veff():TofCalib( nBarrelVeff ) { 00011 m_name = string("calib_barrel_veff"); 00012 } 00013 00014 void calculate_funcs( const Record* r ) { 00015 double z = r->zrhit(); 00016 00017 funcs[0] = 2.0*z; 00018 funcs[1] = 1.0; 00019 00020 return; 00021 } 00022 00023 void calculate_y(const Record* r) { 00024 y = r->tright() - r->tleft(); 00025 return; 00026 } 00027 00028 void updateData( RecordSet*& data ) { 00029 return; 00030 } 00031 00032 }; 00033 00034 #endif