00001 00007 #ifndef SPEFINDER_h 00008 #define SPEFINDER_h 00009 00010 #include "ChannelModule.hh" 00011 00016 class SpeFinder : public ChannelModule 00017 { 00018 public: 00019 SpeFinder(); 00020 ~SpeFinder(); 00021 00022 int Initialize(); 00023 int Finalize(); 00024 int Process(ChannelData* chdata); 00025 00026 static const std::string GetDefaultName(){ return "SpeFinder";} 00027 00028 //parameters 00029 double search_start_time; 00030 double search_end_time; 00031 double rough_threshold; 00032 double threshold_fraction; 00033 double return_fraction; 00034 double fine_threshold; 00035 double pre_window; 00036 double post_window; 00037 double pulse_window; 00038 int max_photons; 00039 bool debug; 00040 }; 00041 #endif