#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.
24 finder_(window),\
25 data_(window,overlap)
26{
34}
#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.
43{
47}
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.
50{
52 {
57 }
58}
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.
61{
64 {
66
68 {
72 }
73
75 {
78 std::fwrite( (
char*) &length,
sizeof(uint32_t), 1,
test_file_);
80 }
81 }
83 finder_.copyFromBuffer(buffer,length);
85 free(buffer);
86
89
104
106 for (uint8_t i=0; i<toaList.size(); i++)
107 {
109 l_toa=packet;
111
113 {
116 l_toa.
Time.
ToA+=sampling * toaList[i].getTime();
117
121
123 }
124 }
125}
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.
128{
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);
134}
◆ 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: