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