GET library
|
#include <GETAutoBaseline.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
GETAutoBaseline (GETObject &obj, u_short itmin1=0, u_short itmax1=0, u_short itmin2=0, u_short itmax2=0) | |
GETAutoBaseline (u_int n=0, double dt=0.01, u_short itmin1=0, u_short itmax1=0, u_short itmin2=0, u_short itmax2=0) | |
GETAutoBaseline (const GETAutoBaseline &proc) | |
virtual | ~GETAutoBaseline () |
Process parameters | |
virtual void | SetFirstRange (u_short itmin, u_short itmax) |
virtual void | SetSecondRange (u_short itmin, u_short itmax) |
Signal processing | |
virtual GETSample * | ProcessSample (GETSample &sample, GETSample &result, GETChannel &channel) |
ROOT related functions | |
ClassDef (GETAutoBaseline, 0) | |
![]() | |
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) | |
![]() | |
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 | |
u_short | bucket_max1 |
Uppet time bucket for first range baseline estimate estimate (excluded) | |
u_short | bucket_max2 |
Uppet time bucket for second range baseline estimate estimate (excluded) | |
u_short | bucket_min1 |
Lower time bucket for first range baseline estimate (included) | |
u_short | bucket_min2 |
Lower time bucket for second range baseline estimate (included) | |
double | ctr1 |
Center of the first range. | |
double | ctr2 |
Center of the second range. | |
![]() | |
u_int | options |
Option flags. | |
GETSample | result_sample |
Internal processing result sample (processing result) | |
Private Member Functions | |
GObject (GETAutoBaseline) | |
This class defines an automatic base-line correction process.
The automatic baseline computes an average at the beginning of the sample and another average at the end of the sample, and use them to perform a linear subtraction to the signal.
GETAutoBaseline::GETAutoBaseline | ( | GETObject & | obj, |
u_short | itmin1 = 0 , |
||
u_short | itmax1 = 0 , |
||
u_short | itmin2 = 0 , |
||
u_short | itmax2 = 0 |
||
) |
Constructor. The dimension of the first channel of the object is used for the process definition. The baseline sample is initialized to 0.
obj | a core object of the GET system |
itmin1 | lower time bucket for first range baseline estimate (included) |
itmax1 | uppet time bucket for first range baseline estimate estimate (excluded) |
itmin2 | lower time bucket for second range baseline estimate (included) |
itmax2 | uppet time bucket for second range baseline estimate estimate (excluded) |
References bucket_max1, bucket_max2, bucket_min1, bucket_min2, SetFirstRange(), and SetSecondRange().
GETAutoBaseline::GETAutoBaseline | ( | u_int | n = 0 , |
double | dt = 0.01 , |
||
u_short | itmin1 = 0 , |
||
u_short | itmax1 = 0 , |
||
u_short | itmin2 = 0 , |
||
u_short | itmax2 = 0 |
||
) |
Constructor. The baseline sample is initialized to 0.
n | sampling size of the channels |
dt | sampling period (us) |
itmin1 | lower time bucket for first range baseline estimate (included) |
itmax1 | uppet time bucket for first range baseline estimate estimate (excluded) |
itmin2 | lower time bucket for second range baseline estimate (included) |
itmax2 | uppet time bucket for second range baseline estimate estimate (excluded) |
References bucket_max1, bucket_max2, bucket_min1, bucket_min2, SetFirstRange(), and SetSecondRange().
GETAutoBaseline::GETAutoBaseline | ( | const GETAutoBaseline & | proc | ) |
Copy constructor.
proc | object to copy |
References bucket_max1, bucket_max2, bucket_min1, bucket_min2, ctr1, and ctr2.
|
virtual |
Destructor.
GETAutoBaseline::ClassDef | ( | GETAutoBaseline | , |
0 | |||
) |
for use within ROOT.
|
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.
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 bucket_max1, bucket_max2, bucket_min1, bucket_min2, ctr1, and ctr2.
|
virtual |
Define the range for the first part of the sample to determine the baseline correction.
itmin | lower time bucket for average estimate (included) |
itmax | upper time bucket for average estimate (excluded) |
References bucket_max1, bucket_min1, ctr1, and GETProcess::GetDimension().
Referenced by GETAutoBaseline().
|
virtual |
Define the range for the second part of the sample to determine the baseline correction.
itmin | lower time bucket for average estimate (included) |
itmax | upper time bucket for average estimate (excluded) |
References bucket_max2, bucket_min2, ctr2, and GETProcess::GetDimension().
Referenced by GETAutoBaseline().