GET library
|
#include <GETResponse.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
GETResponse (GETObject &obj) | |
GETResponse (u_int n=0, double dt=0.01) | |
GETResponse (const GETResponse &proc) | |
virtual | ~GETResponse () |
Initialization functions | |
virtual void | Reset () |
virtual void | Init (u_int n, double dt) |
Access to class data | |
const GETSample * | GetResponsePtr () const |
GETSample * | GetResponsePtr () |
const GETSample & | GetResponse () const |
GETSample & | GetResponse () |
Signal processing | |
virtual GETSample * | ProcessSample (GETChannel &channel, u_short info) |
virtual GETSample * | ProcessSample (GETSample &sample, GETSample &result, GETChannel &channel) |
virtual GETSample * | ProcessSample (GETSample &sample, GETSample &result, GETChannel &channel, bool inv) |
ROOT related functions | |
ClassDef (GETResponse, 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 | response_fct |
Response 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 (GETResponse) | |
This class defines a simple response function for the GET input signal. The response is defined by the sample for convolution / deconvolution of input (test) / output signals.
GETResponse::GETResponse | ( | GETObject & | obj | ) |
Constructor: the dimension of the first channel of the object is used for the process definition. At initialization, the default response function is set to reproduce the input signal (full band filter).
obj | a core object of the GET system |
References GETObject::GetSampleDim(), GETObject::GetTimeStep(), and Init().
GETResponse::GETResponse | ( | u_int | n = 0 , |
double | dt = 0.01 |
||
) |
Constructor. At initialization, the default response function is set to reproduce the input signal (full band filter).
n | sampling size of the channels |
dt | sampling period (us) |
References Init().
GETResponse::GETResponse | ( | const GETResponse & | proc | ) |
|
virtual |
Destructor.
GETResponse::ClassDef | ( | GETResponse | , |
0 | |||
) |
for use within ROOT.
|
inline |
Return the response function sample (by reference).
References response_fct.
Referenced by GETResponse().
|
inline |
Return the response function sample (by reference).
References response_fct.
|
inline |
Return the pointer to the response function sample.
References response_fct.
|
inline |
Return the pointer to the response function sample.
References response_fct.
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
Initialization of response function sample.
n | sampling size of the function |
dt | sampling time step |
Reimplemented from GETProcess.
Reimplemented in GETResponseFct.
References response_fct, and GETProcess::result_sample.
Referenced by GETResponse(), and GETResponseFct::Init().
|
virtual |
This function process the argument channel and stores the result in the internal sample. The channel sample that is processed depends on the info argument:
For the base response function class, the processing is the convolution or the deconvolution with the response function sample data.
channel | GET system channel to be processed |
info | additional optional information (sample signal identifier) |
Implements GETProcess.
References GETChannel::OutSample(), GETProcess::result_sample, GET::signalOut, GET::signalTst, and GETChannel::TstSample().
Referenced by GETChannel::ProcessOutFromTst(), GETChannel::ProcessRecFromOut(), and ProcessSample().
|
inlinevirtual |
This function process the input sample channel and stores the result in the result sample (convolution with response function). 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 response function sample data (see function with bool argument for deconvolution).
sample | input sample to be processed |
result | sample where result should be stored |
channel | GET system channel to be processed |
Implements GETProcess.
References ProcessSample().
|
virtual |
This function process the input sample channel and stores the result in the result sample (convolution or deconvolution of the response function, according to inv argument). 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 response function class, the processing is the convolution or the deconvolution with the response function sample data.
sample | input sample to be processed |
result | sample where result should be stored |
channel | GET system channel to be processed |
inv | deconvolution instead of convolution |
References response_fct.
|
virtual |
Function resetting the response function.
References response_fct, and GETProcess::result_sample.