test_noisy.cxx
Go to the documentation of this file.
4 #include "WireCellUtil/Testing.h"
5 
6 #include <iostream>
7 #include <string>
8 
9 
10 // provides vectors "horig" and "hfilt"
11 // generate like:
12 // $ dump-root-hist-to-waveform sigproc/test/example-chirp.root horig hfilt > sigproc/test/example-chirp.h
13 #include <vector>
14 #include "example-noisy.h"
15 
16 using namespace std;
17 
18 using namespace WireCell;
19 using namespace WireCell::SigProc;
20 
21 int main(int argc, char* argv[])
22 {
24  bool is_noisy = Microboone::NoisyFilterAlg(horig,0.7,10.0);
25  Assert(is_noisy);
26 }
bool SignalFilter(WireCell::Waveform::realseq_t &sig)
Definition: Microboone.cxx:648
std::vector< float > horig
Definition: example-chirp.h:1
STL namespace.
#define Assert
Definition: Testing.h:7
int main(int argc, char *argv[])
Definition: test_noisy.cxx:21
bool NoisyFilterAlg(WireCell::Waveform::realseq_t &spec, float min_rms, float max_rms)
Definition: Microboone.cxx:542
Definition: Main.h:22