#include <PddpVintageDeconvoluter.h>
Definition at line 21 of file PddpVintageDeconvoluter.h.
Definition at line 18 of file PddpVintageDeconvoluter_tool.cc.
20 const string myname =
"PddpVintageDeconvoluter::ctor: ";
22 cout << myname <<
"Parameters:" <<
endl;
26 float norm = dnorm > 0.0 ? 1.0/dnorm : 1.0;
27 cout << myname <<
"Normalization factor: " << norm <<
endl;
double GetDeconNorm() const override
static constexpr double ps
auto norm(Vector const &v)
Return norm of the specified vector.
QTextStream & endl(QTextStream &s)
PddpVintageDeconvoluter::~PddpVintageDeconvoluter |
( |
| ) |
|
|
overridedefault |
Reimplemented from AdcChannelTool.
Definition at line 33 of file PddpVintageDeconvoluter_tool.cc.
34 const string myname =
"PddpVintageDeconvoluter::view: ";
38 unsigned int nsam = samples.size();
39 if (
m_LogLevel >= 2 ) cout << myname <<
"Deconvoluting channel " << chan
40 <<
" with " << nsam <<
" samples." <<
endl;
43 unsigned int fftsize = hFFT->
FFTSize();
44 if ( nsam > fftsize ) {
45 cout << myname <<
"ERROR: Data has too many ticks for FFT: " 46 << nsam <<
" > " << fftsize <<
"." <<
endl;
50 bool pad = fftsize > nsam;
52 if (
m_LogLevel >= 3 ) cout << myname <<
" Padding sample vector to " << fftsize <<
endl;
53 samples.resize(fftsize);
54 for (
unsigned int isam=nsam; isam<fftsize; ++isam ) {
61 if (
m_LogLevel >= 3 ) cout << myname <<
" Deconvoluting." <<
endl;
63 if ( pad ) samples.resize(nsam);
66 float norm = dnorm > 0.0 ? 1.0/dnorm : 1.0;
67 if (
m_LogLevel >= 3 ) cout << myname <<
" Scale factor: " << norm <<
endl;
double GetDeconNorm() const override
DataMap & setStatus(int stat)
double GetDeconNoise(Channel channel) const override
auto norm(Vector const &v)
Return norm of the specified vector.
std::vector< AdcSignal > AdcSignalVector
QTextStream & endl(QTextStream &s)
void Deconvolute(unsigned int channel, std::vector< T > &func) const
int PddpVintageDeconvoluter::m_LogLevel |
|
private |
The documentation for this class was generated from the following files: