GET library
|
#include <GETSampleWindow.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
GETSampleWindow (GETObject &obj) | |
GETSampleWindow (u_int n=0, double dt=0.01) | |
GETSampleWindow (GETSample &w) | |
GETSampleWindow (const GETSampleWindow &proc) | |
virtual | ~GETSampleWindow () |
Signal windowing function | |
const GETSample & | GetWindow () const |
GETSample & | GetWindow () |
void | ClearWindow () |
int | SetWindow (const GETSample &w) |
int | SetWindowHann () |
int | ApplyWindow (GETSample &sample, GETSample &result) |
Signal processing | |
virtual GETSample * | ProcessSample (GETSample &sample, GETSample &result, GETChannel &channel) |
ROOT related functions | |
ClassDef (GETSampleWindow, 0) | |
Public Member Functions inherited from GETSignalModifier | |
GETSignalModifier (GETObject &obj) | |
GETSignalModifier (u_int n=0, double dt=0.01) | |
GETSignalModifier (const GETSignalModifier &proc) | |
virtual | ~GETSignalModifier () |
virtual GETSample * | ProcessSample (GETChannel &channel, u_short info) |
ClassDef (GETSignalModifier, 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) |
virtual void | Init (u_int n, double dt) |
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 | window |
Sample for windowing the signal. | |
Protected Attributes inherited from GETProcess | |
u_int | options |
Option flags. | |
GETSample | result_sample |
Internal processing result sample (processing result) | |
Private Member Functions | |
GObject (GETSampleWindow) | |
This class defines a windowing process for samples.
GETSampleWindow::GETSampleWindow | ( | 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 ClearWindow(), GETObject::GetSampleDim(), GETObject::GetTimeStep(), and window.
GETSampleWindow::GETSampleWindow | ( | u_int | n = 0 , |
double | dt = 0.01 |
||
) |
Constructor.
n | sampling size of the channels |
dt | sampling period (us) |
References ClearWindow(), and window.
GETSampleWindow::GETSampleWindow | ( | GETSample & | w | ) |
GETSampleWindow::GETSampleWindow | ( | const GETSampleWindow & | proc | ) |
Copy constructor.
proc | object to copy |
|
virtual |
Destructor.
Apply the windowing to a sample.
sample | input sample on which to apply the window |
result | result sample |
References window.
Referenced by ProcessSample().
GETSampleWindow::ClassDef | ( | GETSampleWindow | , |
0 | |||
) |
for use within ROOT.
void GETSampleWindow::ClearWindow | ( | ) |
Remove the windowing of the signal modifier.
References window.
Referenced by GETSampleWindow(), SetWindow(), and SetWindowHann().
|
inline |
Return the pointer to the windowing sample.
References window.
|
inline |
Return the pointer to the windowing sample.
References window.
|
private |
Macro from GCpp library that defines the following functions:
|
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 function returns the (argument) result sample sample pointer. In case of error, the result is a NULL pointer.
sample | input sample to be processed |
result | sample where result should be stored |
channel | GET system channel (no use in this class) |
Implements GETSignalModifier.
References ApplyWindow().
int GETSampleWindow::SetWindow | ( | const GETSample & | w | ) |
Set a windowing for the modifier process. The windowing is applied after the specific signal modification defined in derived classes. The window must have the same sampling than the modifier samples.
w | window sample |
References ClearWindow(), GETProcess::result_sample, and window.
Referenced by GETSampleWindow().
int GETSampleWindow::SetWindowHann | ( | ) |
Set a Hann window.
References ClearWindow(), GETProcess::GetDimension(), GETProcess::GetSamplingTime(), GETProcess::result_sample, and window.