GET library
GETFilterLow2 Class Reference

#include <GETFilterLow2.hh>

Inheritance diagram for GETFilterLow2:
GETFilterCut GETFilter GETProcess GETFilterLowN

Public Member Functions

Constructors, affectation, destructor
 GETFilterLow2 (u_int n=0, double dt=0.01L, double fcut=0.L, double q=0.7071067811865475244008443621048490L)
 
 GETFilterLow2 (const GETFilterLow2 &proc)
 
virtual ~GETFilterLow2 ()
 
Initialization functions
virtual void SetQualityFactor (double q)
 
double GetQualityFactor () const
 
virtual void UpdateFilter ()
 
ROOT related functions
 ClassDef (GETFilterLow2, 0)
 
- Public Member Functions inherited from GETFilterCut
 GETFilterCut (GETObject &obj, double fcut=0.)
 
 GETFilterCut (u_int n=0, double dt=0.01, double fcut=0.)
 
 GETFilterCut (const GETFilterCut &proc)
 
virtual ~GETFilterCut ()
 
virtual void SetCutFrequency (double fcut)
 
double GetCutFrequency () const
 
virtual void Init (u_int n, double dt)
 
 ClassDef (GETFilterCut, 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 quality_factor
 Quality factor of the filter.
 
- Protected Attributes inherited from GETFilterCut
double cut_frequency
 Filter cut frequency.
 
- 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 (GETFilterLow2)
 

Detailed Description

This class defines a low pass filter of order 2, with a response in Fourier space with following form:

\[ F(f) = \frac{1}{1 - \left( \frac{f}{f_{0}} \right)^{2} + j \frac{1}{Q} \frac{f}{f_{0}}} \]

where $ f_{0} $ is the cut frequency and $ Q $ is the quality factor:

  • if $ Q = 0.5 $, the filter corresponds to the successive application of two first order filters;
  • if $ Q > 0.5 \sqrt{2} $ the filter has a pseudo-resonance.

Constructor & Destructor Documentation

GETFilterLow2::GETFilterLow2 ( u_int  n = 0,
double  dt = 0.01L,
double  fcut = 0.L,
double  q = 0.7071067811865475244008443621048490L 
)

Constructor.

Parameters
nsampling size of the channels
dtsampling period (us)
fcutcut frequency
qquality factor

References GETFilterCut::cut_frequency, GETFilter::Init(), quality_factor, and UpdateFilter().

GETFilterLow2::GETFilterLow2 ( const GETFilterLow2 proc)
GETFilterLow2::~GETFilterLow2 ( )
virtual

Destructor.

Member Function Documentation

GETFilterLow2::ClassDef ( GETFilterLow2  ,
 
)

for use within ROOT.

double GETFilterLow2::GetQualityFactor ( ) const
inline

Return the quality factor.

References quality_factor.

Referenced by GETFilterLow2(), and GETFilterLowN::GETFilterLowN().

GETFilterLow2::GObject ( GETFilterLow2  )
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 GETFilterLow2::SetQualityFactor ( double  q)
virtual

Set the quality factor.

Parameters
qquality factor

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

void GETFilterLow2::UpdateFilter ( )
virtual

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