GET library
|
#include <GETFilter.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
GETFilter (GETObject &obj) | |
GETFilter (u_int n=0, double dt=0.01) | |
GETFilter (const GETFilter &proc) | |
GETFilter (GETFilter &f1, GETFilter &f2) | |
virtual | ~GETFilter () |
Initialization functions | |
virtual void | Reset () |
virtual void | Init (u_int n, double dt) |
virtual void | SetNormalized (bool b=true) |
virtual void | Normalize (double norm=1.) |
virtual void | Scale (double fact=1.) |
Access to class data | |
const GETSample * | GetFilterPtr () const |
GETSample * | GetFilterPtr () |
const GETSample & | GetFilter () const |
GETSample & | GetFilter () |
Signal processing | |
virtual GETSample * | ProcessSample (GETChannel &channel, u_short info=GET::signalOut) |
virtual GETSample * | ProcessSample (GETSample &sample, GETSample &result, GETChannel &channel) |
ROOT related functions | |
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 |
GETSample * | GetResultSamplePtr () |
const GETSample * | GetResultSamplePtr () const |
GETSample & | GetResultSample () |
const GETSample & | GetResultSample () const |
ClassDef (GETProcess, 0) | |
Protected Attributes | |
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 (GETFilter) | |
This class defines the filter function for the GET signal processing.
GETFilter::GETFilter | ( | GETObject & | obj | ) |
Constructor: the dimension of the first channel of the object is used for the process definition. At initialization, the default filter is set to the full band filter.
obj | a core object of the GET system |
References GETObject::GetSampleDim(), GETObject::GetTimeStep(), and Init().
GETFilter::GETFilter | ( | u_int | n = 0 , |
double | dt = 0.01 |
||
) |
Constructor. At initialization, the default filter is set to the full band filter.
n | sampling size of the channels |
dt | sampling period (us) |
References Init().
GETFilter::GETFilter | ( | const GETFilter & | proc | ) |
Constructor from composition of 2 filters.
f1 | first filter |
f2 | second filter |
References filter_fct, GETProcess::GetDimension(), GetFilter(), GETProcess::GetSamplingTime(), and Init().
|
virtual |
Destructor.
GETFilter::ClassDef | ( | GETFilter | , |
0 | |||
) |
for use within ROOT.
|
inline |
Return the filter function sample (by reference).
References filter_fct.
Referenced by GETCreateCFDDelayedSample(), GETFilter(), GETFilterCut::GETFilterCut(), GETFilterHigh::GETFilterHigh(), GETFilterLow::GETFilterLow(), GETFilterLow2::GETFilterLow2(), GETFilterLowN::GETFilterLowN(), GETFilterShift::GETFilterShift(), GETFilterSmooth::GETFilterSmooth(), GETFilterGaus::SetReference(), GETFilterAget::SetReference(), GETFilterAgetGaus::SetReference(), and GETFilterLowN::UpdateFilter().
|
inline |
Return the filter function sample (by reference).
References filter_fct.
|
inline |
Return the pointer to the filter function sample.
References filter_fct.
Referenced by GETFilterHigh::UpdateFilter(), GETFilterLow::UpdateFilter(), GETFilterCut::UpdateFilter(), GETFilterShift::UpdateFilter(), GETFilterGaus::UpdateFilter(), GETFilterAget::UpdateFilter(), GETFilterAgetGaus::UpdateFilter(), GETFilterLow2::UpdateFilter(), and GETFilterLowN::UpdateFilter().
|
inline |
Return the pointer to the filter function sample.
References filter_fct.
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
Initialization of filter function sample.
n | sampling size of the function |
dt | sampling time step |
Reimplemented from GETProcess.
Reimplemented in GETFilterRef, GETFilterAgetGaus, GETFilterAget, GETFilterSmooth, GETFilterCut, GETFilterGaus, and GETFilterShift.
References filter_fct, and GETProcess::result_sample.
Referenced by GETFilter(), GETFilterHigh::GETFilterHigh(), GETFilterLow::GETFilterLow(), GETFilterLow2::GETFilterLow2(), GETFilterLowN::GETFilterLowN(), GETFilterCut::Init(), GETFilterGaus::Init(), GETFilterShift::Init(), GETFilterAget::Init(), GETFilterSmooth::Init(), GETFilterAgetGaus::Init(), and GETFilterRef::Init().
|
virtual |
Normalize the filter so that it conserves the signal integral when it is applied (if normalization factor is 1). In Fourier space, this corresponds to the FFT value at null frequency.
norm | normalization value |
References filter_fct.
Referenced by GETFilterSmooth::UpdateFilter().
|
virtual |
This function process the argument channel output sample and stores the result in the internal sample. The info argument is ignored since filters apply only on output sample for signal reconstruction. The function returns the internal result sample pointer. In case of error, the result is a NULL pointer.
For the base filter class, the processing is the convolution with the filter sample data.
channel | GET system channel to be processed |
info | additional optional information (sample signal identifier) |
Implements GETProcess.
References GETChannel::OutSample(), and GETProcess::result_sample.
Referenced by GETChannel::ProcessRecFromOut().
|
virtual |
This function process the input sample channel and stores the result in the result sample. The channel argument is provided if processing (from derived classes) may be affected by GET core objects properties. The function returns the (argument) result sample sample pointer. In case of error, the result is a NULL pointer.
For the base filter class, the processing is the convolution with the filter sample data (the channel argument is useless here).
sample | input sample to be processed |
result | sample where result should be stored |
channel | GET system channel (the samples should correspond to this channel) |
Implements GETProcess.
References filter_fct.
|
virtual |
Function resetting the filter function.
References filter_fct, and GETProcess::result_sample.
|
inlinevirtual |
Scale the filter (amplitude).
fact | scaling factor |
References filter_fct.
Referenced by GETCreateCFDFilter().
|
inlinevirtual |
Set the option whether the filter should be normalized when it is computed, after parameters changes. Note that external changes to the filter sample may not conserve the normalization.
b | option ON /OFF |
References GET::filterNormalize, and GETProcess::SetOption().