7 #ifdef DEBUG_KM3NET_AUDIO_CHANNEL 
   10 #include <boost/date_time/posix_time/posix_time.hpp> 
   12 #define DEBUG_MSG(str,lev) do { if (((uint8_t)lev)>=KM3NeT_Audio_Channel::DEBUG_LEVEL) { DBG_MSG << boost::posix_time::microsec_clock::local_time() << " DEBUG_KM3NET_AUDIO_CHANNEL(" << (void*)this << "): "<< str << '\n'; } }while( false ) 
   14 #define DEBUG_MSG(str,lev) do { } while ( false ) 
   20                                                                                         std::string& debug_path,\
 
   23                                                                                         ):      strand_(io_service),\
 
   78                         std::fwrite( (
char*) &length, 
sizeof(uint32_t), 1, 
test_file_);
 
   79                         std::fwrite( ((
char*)buffer)+
sizeof(real_type)*
overlap_,
sizeof(real_type), length-overlap_, 
test_file_);
 
   83         finder_.copyFromBuffer(buffer,length);
 
  106         for (uint8_t i=0; i<toaList.size(); i++)
 
  116                         l_toa.
Time.
ToA+=sampling * toaList[i].getTime();
 
  130         std::time_t seconds = std::time(0);
 
  133     DEBUG_MSG(
"Test file opened at "<<seconds,2);
 
bool Append(real_type sample)
 
#define DEBUG_MSG(str, lev)
 
std::string debug_files_path_
 
void Analysis(ToA_Packet packet, real_type *buffer, uint32_t length)
 
KM3::TOALIB::CTOAFinder finder_
 
callback_send_toa send_toa_
 
Acoustic_Time_of_Arrival Time
 
void Append(real_type sample)
 
std::vector< std::size_t > probes_id_
 
real_type * Get_window(ToA_Packet *packet)
 
void Add_probe(pProbe probe, std::size_t id, std::size_t threshold)
 
virtual ~KM3NeT_Audio_Channel()
 
std::string to_string(const T &value)
Convert value to string. 
 
std::map< std::size_t, std::size_t > thresholds_
 
KM3NeT_Audio_Channel(boost::asio::io_service &io_service, callback_send_toa callback, uint32_t id, std::string &debug_path, uint32_t window=STD_WINDOW, uint32_t overlap=STD_OVERLAP)
 
void Open_test_file(uint32_t id, uint8_t ch)
 
boost::shared_ptr< KM3::TOALIB::CTOAFinder::probeSignalT > pProbe
 
std::pair< std::size_t, std::size_t > threshold_entry
 
boost::function< void(ToA_Packet packet)> callback_send_toa
 
boost::asio::io_service::strand strand_