/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Tof/tofcalgsec/tofcalgsec-00-02-21/tofcalgsec/calib_endcap_veff.h

Go to the documentation of this file.
00001 #ifndef CALIB_ENDCAP_VEFF_H
00002 #define CALIB_ENDCAP_VEFF_H
00003 
00004 #include "tofcalgsec/TofCalib.h"
00005 
00006 const int nEndcapVeff = 4;
00007 
00008 class calib_endcap_veff:public TofCalib {
00009  public:
00010   calib_endcap_veff():TofCalib( nEndcapVeff ) {
00011     m_name = string("calib_endcap_veff");
00012   }
00013 
00014   void calculate_funcs( const Record* r ) {
00015     double z = r->zrhit();
00016 
00017     funcs[0] = 1.0;
00018     funcs[1] = z-44.5;
00019     funcs[2] = (z-44.5)*(z-44.5);
00020     funcs[3] = (z-44.5)*(z-44.5)*(z-44.5);
00021 
00022     return;
00023   }
00024 
00025   void calculate_y(const Record* r) {
00026     y = r->tleft() - r->texp();
00027     return;
00028   }
00029 
00030   void updateData( RecordSet*& data ) {
00031     return;
00032   }
00033 
00034 };
00035 
00036 #endif

Generated on Tue Nov 29 23:14:36 2016 for BOSS_7.0.2 by  doxygen 1.4.7