#include <VintageDeconvoluter.h>
Definition at line 21 of file VintageDeconvoluter.h.
Definition at line 18 of file VintageDeconvoluter_tool.cc.
20 const string myname =
"VintageDeconvoluter::ctor: ";
22 cout << myname <<
"Parameters:" <<
endl;
26 float norm = dnorm > 0.0 ? 1.0/dnorm : 1.0;
27 cout << myname <<
"Normalization factor: " << norm <<
endl;
static constexpr double ps
auto norm(Vector const &v)
Return norm of the specified vector.
double GetDeconNorm() const override
QTextStream & endl(QTextStream &s)
VintageDeconvoluter::~VintageDeconvoluter |
( |
| ) |
|
|
overridedefault |
Reimplemented from AdcChannelTool.
Definition at line 33 of file VintageDeconvoluter_tool.cc.
34 const string myname =
"VintageDeconvoluter::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;
64 if ( pad ) samples.resize(nsam);
67 float norm = dnorm > 0.0 ? 1.0/dnorm : 1.0;
68 if (
m_LogLevel >= 3 ) cout << myname <<
" Scale factor: " << norm <<
endl;
void Deconvolute(detinfo::DetectorClocksData const &clockData, Channel channel, std::vector< T > &func) const
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
double GetDeconNorm() const override
QTextStream & endl(QTextStream &s)
int VintageDeconvoluter::m_LogLevel |
|
private |
The documentation for this class was generated from the following files: