test_partial.cxx
Go to the documentation of this file.
3 #include "WireCellUtil/Testing.h"
4 
5 #include <iostream>
6 #include <string>
7 
8 
9 // provides vectors "horig" and "hfilt"
10 #include <vector>
11 #include "example-partial-rc.h"
12 
13 using namespace std;
14 
15 using namespace WireCell;
16 using namespace WireCell::SigProc;
17 
18 int main(int argc, char* argv[])
19 {
20  auto spectrum = Waveform::dft(horig);
21  Diagnostics::Partial m_check_partial;
22  bool is_partial = m_check_partial(spectrum);
23  Assert(is_partial);
24 
25  return 0;
26 }
std::vector< float > horig
Definition: example-chirp.h:1
STL namespace.
#define Assert
Definition: Testing.h:7
Definition: Main.h:22
array_xxc dft(const array_xxf &arr)
Definition: Array.cxx:15
int main(int argc, char *argv[])