#include <IWaveformRecog.h>
Definition at line 9 of file IWaveformRecog.h.
virtual wavrec_tool::IWaveformRecog::~IWaveformRecog |
( |
| ) |
|
|
virtualdefaultnoexcept |
std::string wavrec_tool::IWaveformRecog::findFile |
( |
const char * |
fileName | ) |
const |
|
inlineprotected |
Definition at line 71 of file IWaveformRecog.h.
75 if (!sp.find_file(
fileName, fname_out)) {
80 <<
"Could not find the model file " <<
fileName;
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition at line 167 of file IWaveformRecog.h.
179 unsigned int j1, j2,
k;
184 for (
unsigned int j = j1; j < j2; j++) {
193 for (
unsigned int j = j1; j < j2; j++) {
Definition at line 87 of file IWaveformRecog.h.
95 if (!fMeanFilename.empty() && !fScaleFilename.empty()) {
97 std::ifstream meanfile(
findFile(fMeanFilename.c_str()).c_str());
98 if (meanfile.is_open()) {
99 while (meanfile >> val)
104 <<
"vector of mean values does not match waveform size, exiting" <<
std::endl;
109 <<
"failed opening StdScaler mean file, exiting" <<
std::endl;
111 std::ifstream scalefile(
findFile(fScaleFilename.c_str()).c_str());
112 if (scalefile.is_open()) {
113 while (scalefile >> val)
118 <<
"vector of scale values does not match waveform size, exiting" <<
std::endl;
123 <<
"failed opening StdScaler scale file, exiting" <<
std::endl;
141 fNumStrides = std::ceil(dmn /
float(fStrideLength));
145 std::cout <<
" !!!!! WaveformRoiFinder: WindowSize = " << fWindowSize
146 <<
", StrideLength = " << fStrideLength
147 <<
", dmn/StrideLength = " << dmn / fStrideLength <<
std::endl;
148 std::cout <<
" dmn = " << dmn <<
", NumStrides = " <<
fNumStrides 149 <<
", overshoot = " << overshoot <<
", LastWindowSize = " <<
fLastWindowSize 150 <<
", numwindows = " << numwindows <<
std::endl;
T get(std::string const &key) const
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)
float wavrec_tool::IWaveformRecog::fCnnMean |
|
private |
float wavrec_tool::IWaveformRecog::fCnnPredCut |
|
private |
float wavrec_tool::IWaveformRecog::fCnnScale |
|
private |
unsigned int wavrec_tool::IWaveformRecog::fLastWindowSize |
|
private |
unsigned int wavrec_tool::IWaveformRecog::fNumStrides |
|
private |
unsigned int wavrec_tool::IWaveformRecog::fStrideLength |
|
private |
unsigned int wavrec_tool::IWaveformRecog::fWaveformSize |
|
private |
unsigned int wavrec_tool::IWaveformRecog::fWindowSize |
|
private |
std::vector<float> wavrec_tool::IWaveformRecog::meanvec |
|
private |
std::vector<float> wavrec_tool::IWaveformRecog::scalevec |
|
private |
The documentation for this class was generated from the following file: