GET library
|
#include <GETProcess.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
GETProcess (GETObject &obj) | |
GETProcess (u_int n=0, double dt=0.01) | |
GETProcess (const GETProcess &proc) | |
virtual | ~GETProcess () |
Initialization functions | |
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) |
virtual void | Init (u_int n, double dt) |
Access to class data | |
u_int | GetDimension () const |
double | GetSamplingTime () const |
GETSample * | GetResultSamplePtr () |
const GETSample * | GetResultSamplePtr () const |
GETSample & | GetResultSample () |
const GETSample & | GetResultSample () const |
Processing | |
virtual GETSample * | ProcessSample (GETChannel &channel, u_short info)=0 |
virtual GETSample * | ProcessSample (GETSample &sample, GETSample &result, GETChannel &channel)=0 |
ROOT related functions | |
ClassDef (GETProcess, 0) | |
Protected Attributes | |
u_int | options |
Option flags. | |
GETSample | result_sample |
Internal processing result sample (processing result) | |
Private Member Functions | |
GObjectV (GETProcess) | |
This is a base class for samples processing objects: response functions, filters, noise generators...
The objects deriving from this base class are processes that acts on the data from a single channel.
Because each process defines (at least) one internal data sample with the dimension of the channels signal to process, the base constructors require the dimension and sampling period of the GET channels.
GETProcess::GETProcess | ( | GETObject & | obj | ) |
Constructor: the dimension of the first channel of the object is used for the process definition.
obj | a core object of the GET system |
References GETObject::GetSampleDim(), GETObject::GetTimeStep(), and Init().
GETProcess::GETProcess | ( | u_int | n = 0 , |
double | dt = 0.01 |
||
) |
GETProcess::GETProcess | ( | const GETProcess & | proc | ) |
Copy constructor. It sets the result sample dimension, but does not copy values.
proc | object to copy |
References GetResultSample(), and Init().
|
virtual |
Destructor.
GETProcess::ClassDef | ( | GETProcess | , |
0 | |||
) |
for use within ROOT.
|
inline |
Return the dimension of the response function sample.
References result_sample.
Referenced by GETCreateCFDFilter(), GETFilter::GETFilter(), GETAutoBaseline::SetBaselineHigh(), GETAutoBaseline::SetBaselineLow(), GETFilterCut::SetCutFrequency(), GETFilterLowN::SetOrder(), GETModifierSeq::SetProcess(), GETFilterLow2::SetQualityFactor(), GETFilterGaus::SetReference(), GETFilterAget::SetReference(), GETFilterAgetGaus::SetReference(), GETFilterSmooth::SetSigma(), GETFilterShift::SetTimeShift(), GETFilterSmooth::SetWidth(), GETSampleWindow::SetWindowHann(), GETFilterLow::UpdateFilter(), GETFilterHigh::UpdateFilter(), GETFilterGaus::UpdateFilter(), GETFilterShift::UpdateFilter(), GETFilterCut::UpdateFilter(), GETFilterSmooth::UpdateFilter(), GETFilterAget::UpdateFilter(), GETFilterAgetGaus::UpdateFilter(), GETFilterLow2::UpdateFilter(), GETFilterLowN::UpdateFilter(), and GETResponseFct::UpdateFunction().
|
inlinevirtual |
Get the status of selected options for process (true if all selected options from flags argument are ON).
flags | checked options |
References options.
|
inlinevirtual |
Get the options for the process.
References options.
|
inline |
Return the resulting noisy sample (by reference).
References result_sample.
Referenced by GETProcess(), and GETModifierSeq::SetProcess().
|
inline |
Return the resulting noisy sample (by reference).
References result_sample.
|
inline |
Return the pointer to the resulting noisy sample.
References result_sample.
|
inline |
Return the pointer to the resulting noisy sample.
References result_sample.
|
inline |
Return the sampling time interval (sampling period).
References result_sample.
Referenced by GETFilter::GETFilter(), GETFilterCut::SetCutFrequency(), GETFilterLowN::SetOrder(), GETModifierSeq::SetProcess(), GETFilterLow2::SetQualityFactor(), GETFilterGaus::SetReference(), GETFilterAget::SetReference(), GETFilterAgetGaus::SetReference(), GETFilterSmooth::SetSigma(), GETFilterShift::SetTimeShift(), GETFilterSmooth::SetWidth(), GETSampleWindow::SetWindowHann(), GETFilterHigh::UpdateFilter(), GETFilterLow::UpdateFilter(), GETFilterGaus::UpdateFilter(), GETFilterShift::UpdateFilter(), GETFilterCut::UpdateFilter(), GETFilterSmooth::UpdateFilter(), GETFilterAget::UpdateFilter(), GETFilterAgetGaus::UpdateFilter(), GETFilterLow2::UpdateFilter(), and GETFilterLowN::UpdateFilter().
|
private |
Macro from GCpp library that defines the following functions:
|
inlinevirtual |
Initialization of the process data, to adapt it to sampling parameters (for internal result sample). It defines the internal sample dimension.
n | sampling size of the function |
dt | sampling time step |
Reimplemented in GETResponseFct, GETFilterRef, GETFilterAgetGaus, GETFilterAget, GETFilterSmooth, GETFilterCut, GETFilterGaus, GETFilterShift, GETResponse, and GETFilter.
References result_sample.
Referenced by GETProcess(), GETProcessLink::InitProcess(), and GETModifierSeq::SetProcess().
|
pure virtual |
This function process the argument channel and stores the result in the internal sample. The channel sample that is processed depends on the type of processing, and of the info argument if required. The function returns the internal result sample pointer. In case of error, the result is a NULL pointer.
channel | GET system channel to be processed |
info | additional optional information (sample signal identifier) |
Implemented in GETFilter, GETProcessSerie, GETResponse, and GETSignalModifier.
Referenced by GETChannel::ApplyOutputCorrection(), and GETProcessSerie::ProcessSample().
|
pure 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 pointer. In case of error, the result is a NULL pointer.
Note that the sample to be processed and the result sample can be the same object, in which case the initial sample is replaced by the processing result.
sample | input sample to be processed |
result | sample where result should be stored |
channel | GET system channel (the samples should correspond to this channel) |
Implemented in GETFilter, GETModifierSeq, GETProcessSerie, GETPhaseCorrection, GETResponse, GETAutoBaseline, GETFilterModifier, GETNoise, GETSampleWindow, GETCalibProcess, GETBaselineCorrection, GETSignalModifier, GETAutoBaselineHigh, and GETAutoBaselineLow.
|
inlinevirtual |
Set selected options for the process.
flags | chosen options |
b | options value (on/off) |
References options.
Referenced by GETFilter::SetNormalized().
|
inlinevirtual |