Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
sigproc
src
PeakFinding.h
Go to the documentation of this file.
1
#ifndef WIRECELLSIGPROC_PEAKFINDING
2
#define WIRECELLSIGPROC_PEAKFINDING
3
4
#include "
WireCellUtil/Waveform.h
"
5
#include "
WireCellUtil/Logging.h
"
6
7
namespace
WireCell
{
8
namespace
SigProc{
9
10
class
PeakFinding
{
11
public
:
12
PeakFinding
(
int
fMaxPeaks
= 200,
13
double
sigma
= 1,
double
threshold
= 0.05,
14
bool
backgroundRemove
=
false
,
int
deconIterations
=3 ,
15
bool
markov
=
true
,
int
averWindow
= 3);
16
~PeakFinding
();
17
18
int
find_peak
(
Waveform::realseq_t
& signal);
19
20
void
Clear
();
21
22
int
GetNPeaks
(){
return
npeaks
;};
23
double
*
GetPositionX
(){
return
fPositionX
;};
24
double
*
GetPositionY
(){
return
fPositionY
;};
25
26
27
private
:
28
int
fMaxPeaks
;
29
double
sigma
;
30
double
threshold
;
31
bool
backgroundRemove
;
32
int
deconIterations
;
33
bool
markov
;
34
int
averWindow
;
35
36
// data ...
37
double
*
source
;
38
int
ssize
;
39
40
double
*
destVector
;
41
double
*
fPositionX
;
42
double
*
fPositionY
;
43
44
int
npeaks
;
45
46
// actual search function ...
47
int
SearchHighRes
();
48
49
Log::logptr_t
log
;
50
};
51
}
52
}
53
#endif
54
55
// Local Variables:
56
// mode: c++
57
// c-basic-offset: 2
58
// End:
WireCell::SigProc::PeakFinding::fMaxPeaks
int fMaxPeaks
Definition:
PeakFinding.h:24
WireCell::SigProc::PeakFinding::fPositionY
double * fPositionY
Definition:
PeakFinding.h:42
WireCell::SigProc::PeakFinding::backgroundRemove
bool backgroundRemove
Definition:
PeakFinding.h:31
WireCell::Waveform::realseq_t
Sequence< real_t > realseq_t
Definition:
Waveform.h:31
Logging.h
WireCell::SigProc::PeakFinding
Definition:
PeakFinding.h:10
WireCell::SigProc::PeakFinding::GetPositionY
double * GetPositionY()
Definition:
PeakFinding.h:24
WireCell::SigProc::PeakFinding::PeakFinding
PeakFinding(int fMaxPeaks=200, double sigma=1, double threshold=0.05, bool backgroundRemove=false, int deconIterations=3, bool markov=true, int averWindow=3)
Definition:
PeakFinding.cxx:9
WireCell::SigProc::PeakFinding::averWindow
int averWindow
Definition:
PeakFinding.h:34
WireCell::SigProc::PeakFinding::source
double * source
Definition:
PeakFinding.h:37
WireCell::SigProc::PeakFinding::Clear
void Clear()
Definition:
PeakFinding.cxx:28
WireCell::SigProc::PeakFinding::markov
bool markov
Definition:
PeakFinding.h:33
WireCell::SigProc::PeakFinding::fPositionX
double * fPositionX
Definition:
PeakFinding.h:41
WireCell::SigProc::PeakFinding::~PeakFinding
~PeakFinding()
Definition:
PeakFinding.cxx:24
WireCell::SigProc::PeakFinding::log
Log::logptr_t log
Definition:
PeakFinding.h:49
Waveform.h
WireCell::SigProc::PeakFinding::deconIterations
int deconIterations
Definition:
PeakFinding.h:32
WireCell::Log::logptr_t
std::shared_ptr< spdlog::logger > logptr_t
Definition:
Logging.h:24
WireCell
Definition:
Main.h:22
WireCell::SigProc::PeakFinding::find_peak
int find_peak(Waveform::realseq_t &signal)
Definition:
PeakFinding.cxx:38
WireCell::SigProc::PeakFinding::ssize
int ssize
Definition:
PeakFinding.h:38
WireCell::SigProc::PeakFinding::npeaks
int npeaks
Definition:
PeakFinding.h:44
WireCell::SigProc::PeakFinding::GetPositionX
double * GetPositionX()
Definition:
PeakFinding.h:23
WireCell::SigProc::PeakFinding::GetNPeaks
int GetNPeaks()
Definition:
PeakFinding.h:22
WireCell::SigProc::PeakFinding::sigma
double sigma
Definition:
PeakFinding.h:29
WireCell::SigProc::PeakFinding::threshold
double threshold
Definition:
PeakFinding.h:30
WireCell::SigProc::PeakFinding::destVector
double * destVector
Definition:
PeakFinding.h:40
WireCell::SigProc::PeakFinding::SearchHighRes
int SearchHighRes()
Definition:
PeakFinding.cxx:67
Generated by
1.8.11