Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
sigproc
test
test_chirping.cxx
Go to the documentation of this file.
1
#include "
WireCellSigProc/Diagnostics.h
"
2
#include "
WireCellUtil/Waveform.h
"
3
#include "
WireCellUtil/Testing.h
"
4
5
#include <iostream>
6
#include <string>
7
8
9
// provides vectors "horig" and "hfilt"
10
// generate like:
11
// $ dump-root-hist-to-waveform sigproc/test/example-chirp.root horig hfilt > sigproc/test/example-chirp.h
12
#include <vector>
13
#include "
example-chirping.h
"
14
15
using namespace
std
;
16
17
using namespace
WireCell
;
18
using namespace
WireCell::SigProc
;
19
20
int
main
(
int
argc
,
char
*
argv
[])
21
{
22
int
beg=-1,
end
=-1;
23
Diagnostics::Chirp
chirp;
24
bool
found
= chirp(
horig
, beg,
end
);
25
Assert
(found);
26
27
// the function should find something starting at the beginning.
28
Assert
(beg == 0);
29
Assert
(
end
== 3720);
30
return
0;
31
}
32
// Local Variables:
33
// mode: c++
34
// c-basic-offset: 4
35
// End:
horig
std::vector< float > horig
Definition:
example-chirp.h:1
std
STL namespace.
main
int main(int argc, char *argv[])
Definition:
test_chirping.cxx:20
WireCell::SigProc::Diagnostics::Chirp
Definition:
Diagnostics.h:11
freeze_graph.argv
argv
Definition:
freeze_graph.py:218
WireCell::SigProc
Definition:
ChannelSelector.h:18
Assert
#define Assert
Definition:
Testing.h:7
util::end
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
Definition:
StdUtils.h:72
example-chirping.h
Diagnostics.h
Testing.h
Waveform.h
WireCell
Definition:
Main.h:22
ValidateOpDetReco.found
bool found
Definition:
ValidateOpDetReco.py:354
test_gen_rays_pdsp.argc
argc
Definition:
test_gen_rays_pdsp.py:6
Generated by
1.8.11