#include <KM3NeT_Audio_Channel.h>
Definition at line 28 of file KM3NeT_Audio_Channel.h.
 
◆ KM3NeT_Audio_Channel()
      
        
          | KM3NeT_Audio_Channel::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  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 17 of file KM3NeT_Audio_Channel.cc.
#define DEBUG_MSG(str, lev)
 
callback_send_toa send_toa_
 
boost::asio::io_service::strand strand_
 
std::string debug_files_path_
 
 
 
 
◆ ~KM3NeT_Audio_Channel()
  
  
      
        
          | KM3NeT_Audio_Channel::~KM3NeT_Audio_Channel  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ Add_probe()
      
        
          | void KM3NeT_Audio_Channel::Add_probe  | 
          ( | 
          pProbe  | 
          probe,  | 
        
        
           | 
           | 
          std::size_t  | 
          id,  | 
        
        
           | 
           | 
          std::size_t  | 
          threshold  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 42 of file KM3NeT_Audio_Channel.cc.
std::pair< std::size_t, std::size_t > threshold_entry
 
std::map< std::size_t, std::size_t > thresholds_
 
std::vector< std::size_t > probes_id_
 
KM3::TOALIB::CTOAFinder finder_
 
 
 
 
◆ Append()
      
        
          | void KM3NeT_Audio_Channel::Append  | 
          ( | 
          real_type  | 
          sample | ) | 
           | 
        
      
 
Definition at line 49 of file KM3NeT_Audio_Channel.cc.
void Analysis(ToA_Packet packet, real_type *buffer, uint32_t length)
 
real_type * Get_window(ToA_Packet *packet)
 
bool Append(real_type sample)
 
Acoustic_Time_of_Arrival Time
 
 
 
 
◆ Check_time()
  
  
      
        
          | void KM3NeT_Audio_Channel::Check_time  | 
          ( | 
          Audio_Header  | 
          header | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ Set_test()
  
  
      
        
          | void KM3NeT_Audio_Channel::Set_test  | 
          ( | 
          uint32_t  | 
          id | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ Analysis()
  
  
      
        
          | void KM3NeT_Audio_Channel::Analysis  | 
          ( | 
          ToA_Packet  | 
          packet,  | 
         
        
           | 
           | 
          real_type *  | 
          buffer,  | 
         
        
           | 
           | 
          uint32_t  | 
          length  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
Definition at line 60 of file KM3NeT_Audio_Channel.cc.
   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();
 
void Open_test_file(uint32_t id, uint8_t ch)
 
 
 
 
◆ Open_test_file()
  
  
      
        
          | void KM3NeT_Audio_Channel::Open_test_file  | 
          ( | 
          uint32_t  | 
          id,  | 
         
        
           | 
           | 
          uint8_t  | 
          ch  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
Definition at line 127 of file KM3NeT_Audio_Channel.cc.
  130         std::time_t seconds = std::time(0);
 
  133     DEBUG_MSG(
"Test file opened at "<<seconds,2);
 
std::string to_string(const T &value)
Convert value to string.
 
 
 
 
◆ DEBUG_LEVEL
  
  
      
        
          | const int KM3NeT_Audio_Channel::DEBUG_LEVEL =2 | 
         
       
   | 
  
static   | 
  
 
 
◆ strand_
  
  
      
        
          | boost::asio::io_service::strand KM3NeT_Audio_Channel::strand_ | 
         
       
   | 
  
private   | 
  
 
 
◆ thresholds_
  
  
      
        
          | std::map<std::size_t,std::size_t> KM3NeT_Audio_Channel::thresholds_ | 
         
       
   | 
  
private   | 
  
 
 
◆ probes_id_
  
  
      
        
          | std::vector<std::size_t> KM3NeT_Audio_Channel::probes_id_ | 
         
       
   | 
  
private   | 
  
 
 
◆ send_toa_
◆ id_
  
  
      
        
          | uint32_t KM3NeT_Audio_Channel::id_ | 
         
       
   | 
  
private   | 
  
 
 
◆ finder_
  
  
      
        
          | KM3::TOALIB::CTOAFinder KM3NeT_Audio_Channel::finder_ | 
         
       
   | 
  
private   | 
  
 
 
◆ data_
◆ debug_files_path_
  
  
      
        
          | std::string KM3NeT_Audio_Channel::debug_files_path_ | 
         
       
   | 
  
private   | 
  
 
 
◆ test_
  
  
      
        
          | uint32_t KM3NeT_Audio_Channel::test_ | 
         
       
   | 
  
private   | 
  
 
 
◆ overlap_
  
  
      
        
          | uint32_t KM3NeT_Audio_Channel::overlap_ | 
         
       
   | 
  
private   | 
  
 
 
◆ test_file_
  
  
      
        
          | std::FILE* KM3NeT_Audio_Channel::test_file_ | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: