Static Public Member Functions | List of all members
beamlinereco::SGSmoothing Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-01/BeamlineReco/CFDHitFinderAlg.h"

Static Public Member Functions

static void Smooth (size_t nsamples, double *in, double *out, const int w, const int deg)
 
static void Derivative (size_t nsamples, double *in, double *out, const int w, const int deg, const double h=1.0)
 
static void Smooth (size_t nsamples, double *in, double *out, const int w, const int deg)
 
static void Derivative (size_t nsamples, double *in, double *out, const int w, const int deg, const double h=1.0)
 

Detailed Description

Definition at line 64 of file CFDHitFinderAlg.h.

Member Function Documentation

static void beamlinereco::SGSmoothing::Derivative ( size_t  nsamples,
double *  in,
double *  out,
const int  w,
const int  deg,
const double  h = 1.0 
)
static
void beamlinereco::SGSmoothing::Derivative ( size_t  nsamples,
double *  in,
double *  out,
const int  w,
const int  deg,
const double  h = 1.0 
)
static

Definition at line 1168 of file CFDHitFinderAlg.h.

References compare_h5_caf::idx, and beamlinereco::sg_derivative().

Referenced by lsqr_fprime().

1168  {
1169  std::vector<double> in_vec;
1170  for (size_t idx = 0; idx < nsamples; idx++) {
1171  in_vec.push_back(*(in + idx));
1172  }
1173 
1174  std::vector<double> out_vec = sg_derivative(in_vec, w, deg, h);
1175 
1176  for (size_t idx = 0; idx < nsamples; idx++) {
1177  *(out + idx) = out_vec.at(idx);
1178  }
1179 }
static constexpr Double_t deg
Definition: Munits.h:165
std::vector< double > sg_derivative(const std::vector< double > &v, const int w, const int deg, const double h=1.0)
ifstream in
Definition: comparison.C:7
Float_t w
Definition: plot.C:20
static void beamlinereco::SGSmoothing::Smooth ( size_t  nsamples,
double *  in,
double *  out,
const int  w,
const int  deg 
)
static
void beamlinereco::SGSmoothing::Smooth ( size_t  nsamples,
double *  in,
double *  out,
const int  w,
const int  deg 
)
static

Definition at line 1155 of file CFDHitFinderAlg.h.

References compare_h5_caf::idx, and beamlinereco::sg_smooth().

Referenced by lsqr_fprime(), beamlinereco::LEHitFinder< T >::SetWaveform(), and beamlinereco::CFDHitFinder< T >::SetWaveform().

1155  {
1156  std::vector<double> in_vec;
1157  for (size_t idx = 0; idx < nsamples; idx++) {
1158  in_vec.push_back(*(in + idx));
1159  }
1160 
1161  std::vector<double> out_vec = sg_smooth(in_vec, w, deg);
1162 
1163  for (size_t idx = 0; idx < nsamples; idx++) {
1164  *(out + idx) = out_vec.at(idx);
1165  }
1166 }
static constexpr Double_t deg
Definition: Munits.h:165
std::vector< double > sg_smooth(const std::vector< double > &v, const int w, const int deg)
ifstream in
Definition: comparison.C:7
Float_t w
Definition: plot.C:20

The documentation for this class was generated from the following files: