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_);
 
   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);
 
  131        l_file+=
"DOM_"+std::to_string((
long long unsigned int)
id)+
"_CH"+std::to_string((
long long unsigned int)ch)+
"_"+std::to_string((
long long unsigned int)seconds)+
".bin";
 
  133    DEBUG_MSG(
"Test file opened at "<<seconds,2);
 
 
#define DEBUG_MSG(str, lev)
 
boost::shared_ptr< KM3::TOALIB::CTOAFinder::probeSignalT > pProbe
 
boost::function< void(ToA_Packet packet)> callback_send_toa
 
std::pair< std::size_t, std::size_t > threshold_entry
 
void Add_probe(pProbe probe, std::size_t id, std::size_t threshold)
 
callback_send_toa send_toa_
 
void Append(real_type sample)
 
void Analysis(ToA_Packet packet, real_type *buffer, uint32_t length)
 
boost::asio::io_service::strand strand_
 
void Open_test_file(uint32_t id, uint8_t ch)
 
virtual ~KM3NeT_Audio_Channel()
 
std::map< std::size_t, std::size_t > thresholds_
 
std::vector< std::size_t > probes_id_
 
std::string debug_files_path_
 
KM3::TOALIB::CTOAFinder finder_
 
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)
 
real_type * Get_window(ToA_Packet *packet)
 
bool Append(real_type sample)
 
Acoustic_Time_of_Arrival Time