00001 00007 #ifndef TIMEOFFLIGHT_h 00008 #define TIMEOFFLIGHT_h 00009 00010 #include "ChannelModule.hh" 00015 class TimeOfFlight : public ChannelModule{ 00016 public: 00017 TimeOfFlight(); 00018 ~TimeOfFlight(); 00019 int Initialize(); 00020 int Finalize(); 00021 int Process(ChannelData* chdata); 00022 00023 static const std::string GetDefaultName(){ return "TimeOfFlight"; } 00024 private: 00025 double search_begin_time; 00026 double search_end_time; 00027 double ref_threshold; 00028 double threshold; 00029 int ref_ch; 00030 double constant_fraction; 00031 }; 00032 00033 #endif