00001 00002 #ifndef __LASPROFILEJUDGE_H 00003 #define __LASPROFILEJUDGE_H 00004 00005 #include <iostream> 00006 #include <utility> 00007 00008 #include "Alignment/LaserAlignment/src/LASModuleProfile.h" 00009 00010 00015 class LASProfileJudge { 00016 00017 public: 00018 LASProfileJudge(); 00019 bool IsSignalIn( const LASModuleProfile&, int ); 00020 bool JudgeProfile( const LASModuleProfile&, int ); 00021 void EnableZeroFilter( bool ); 00022 00023 private: 00024 double GetNegativity( int ); 00025 bool IsPeaksInProfile( int ); 00026 bool IsNegativePeaksInProfile( int ); 00027 LASModuleProfile profile; 00028 std::pair<unsigned int, double> thePeak; 00029 bool isZeroFilter; 00030 00031 }; 00032 00033 #endif