GET library
GETFilterSmooth Class Reference

#include <GETFilterSmooth.hh>

Inheritance diagram for GETFilterSmooth:
GETFilter GETProcess

Public Member Functions

Constructors, affectation, destructor
 GETFilterSmooth (GETObject &obj, double wid=0.1)
 
 GETFilterSmooth (u_int n=0, double dt=0.01, double wid=0.1)
 
 GETFilterSmooth (const GETFilterSmooth &proc)
 
virtual ~GETFilterSmooth ()
 
Initialization functions
virtual void SetWidth (double wid)
 
double GetWidth () const
 
virtual void SetSigma (double sig)
 
double GetSigma () const
 
virtual void Init (u_int n, double dt)
 
virtual void UpdateFilter ()
 
ROOT related functions
 ClassDef (GETFilterSmooth, 0)
 
- Public Member Functions inherited from GETFilter
 GETFilter (GETObject &obj)
 
 GETFilter (u_int n=0, double dt=0.01)
 
 GETFilter (const GETFilter &proc)
 
 GETFilter (GETFilter &f1, GETFilter &f2)
 
virtual ~GETFilter ()
 
virtual void Reset ()
 
virtual void SetNormalized (bool b=true)
 
virtual void Normalize (double norm=1.)
 
virtual void Scale (double fact=1.)
 
const GETSampleGetFilterPtr () const
 
GETSampleGetFilterPtr ()
 
const GETSampleGetFilter () const
 
GETSampleGetFilter ()
 
virtual GETSampleProcessSample (GETChannel &channel, u_short info=GET::signalOut)
 
virtual GETSampleProcessSample (GETSample &sample, GETSample &result, GETChannel &channel)
 
 ClassDef (GETFilter, 0)
 
- Public Member Functions inherited from GETProcess
 GETProcess (GETObject &obj)
 
 GETProcess (u_int n=0, double dt=0.01)
 
 GETProcess (const GETProcess &proc)
 
virtual ~GETProcess ()
 
virtual void SetOptions (u_int opts)
 
virtual void SetOption (u_int flags, bool b=true)
 
virtual u_int GetOptions ()
 
virtual bool GetOption (u_int flags)
 
u_int GetDimension () const
 
double GetSamplingTime () const
 
GETSampleGetResultSamplePtr ()
 
const GETSampleGetResultSamplePtr () const
 
GETSampleGetResultSample ()
 
const GETSampleGetResultSample () const
 
 ClassDef (GETProcess, 0)
 

Protected Attributes

double fwhm
 Gauss function FWHM.
 
- Protected Attributes inherited from GETFilter
GETSample filter_fct
 Filter function for an AGET channel.
 
- Protected Attributes inherited from GETProcess
u_int options
 Option flags.
 
GETSample result_sample
 Internal processing result sample (processing result)
 

Private Member Functions

 GObject (GETFilterSmooth)
 

Detailed Description

This class defines a smoothing filter by convolution with a Gauss function.

Constructor & Destructor Documentation

GETFilterSmooth::GETFilterSmooth ( GETObject obj,
double  wid = 0.1 
)

Constructor. The dimension of the first channel of the object is used for the process definition.

Parameters
obja core object of the GET system
widGauss function width (FWHM)

References fwhm, GETObject::GetSampleDim(), GETObject::GetTimeStep(), and UpdateFilter().

GETFilterSmooth::GETFilterSmooth ( u_int  n = 0,
double  dt = 0.01,
double  wid = 0.1 
)

Constructor.

Parameters
nsampling size of the channels
dtsampling period (us)
widGauss function width (FWHM)

References fwhm, and UpdateFilter().

GETFilterSmooth::GETFilterSmooth ( const GETFilterSmooth proc)

Copy constructor.

Parameters
procobject to copy

References fwhm, GETFilter::GetFilter(), and UpdateFilter().

GETFilterSmooth::~GETFilterSmooth ( )
virtual

Destructor.

Member Function Documentation

GETFilterSmooth::ClassDef ( GETFilterSmooth  ,
 
)

for use within ROOT.

double GETFilterSmooth::GetSigma ( ) const
inline

Return the filter Gauss function sigma.

References fwhm.

double GETFilterSmooth::GetWidth ( ) const
inline

Return the filter Gauss function width (FWHM).

References fwhm.

GETFilterSmooth::GObject ( GETFilterSmooth  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
void GETFilterSmooth::Init ( u_int  n,
double  dt 
)
virtual

Initialization of response function sample. If the analytical function is defined, the response function sample is computed.

Parameters
nsampling size of the function
dtsampling time step

Reimplemented from GETFilter.

References GETFilter::Init(), and UpdateFilter().

void GETFilterSmooth::SetSigma ( double  sig)
virtual

Set the filter smoothing Gauss function sigma.

Parameters
sigGauss sigma

References fwhm, GETProcess::GetDimension(), GETProcess::GetSamplingTime(), and UpdateFilter().

void GETFilterSmooth::SetWidth ( double  wid)
virtual

Set the filter smoothing Gauss function width (FWHM).

Parameters
widGauss width (FWHM)

References fwhm, GETProcess::GetDimension(), GETProcess::GetSamplingTime(), and UpdateFilter().

void GETFilterSmooth::UpdateFilter ( )
virtual

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