GET library
GETSignalModifier Class Referenceabstract

#include <GETSignalModifier.hh>

Inheritance diagram for GETSignalModifier:
GETProcess GETAutoBaseline GETBaselineCorrection GETCalibProcess GETFilterModifier GETModifierSeq GETNoise GETSampleWindow GETAutoBaselineHigh GETAutoBaselineLow GETPhaseCorrection

Public Member Functions

Constructors, affectation, destructor
 GETSignalModifier (GETObject &obj)
 
 GETSignalModifier (u_int n=0, double dt=0.01)
 
 GETSignalModifier (const GETSignalModifier &proc)
 
virtual ~GETSignalModifier ()
 
Signal processing
virtual GETSampleProcessSample (GETChannel &channel, u_short info)
 
virtual GETSampleProcessSample (GETSample &sample, GETSample &result, GETChannel &channel)=0
 
ROOT related functions
 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
 
GETSampleGetResultSamplePtr ()
 
const GETSampleGetResultSamplePtr () const
 
GETSampleGetResultSample ()
 
const GETSampleGetResultSample () const
 
 ClassDef (GETProcess, 0)
 

Private Member Functions

 GObjectV (GETSignalModifier)
 

Additional Inherited Members

- Protected Attributes inherited from GETProcess
u_int options
 Option flags.
 
GETSample result_sample
 Internal processing result sample (processing result)
 

Detailed Description

GETSignalModifier is the base class for modification of signal samples (noise, baseline corrections,...).

Constructor & Destructor Documentation

GETSignalModifier::GETSignalModifier ( GETObject obj)

Constructor: the dimension of the first channel of the object is used for the process definition.

Parameters
obja core object of the GET system
GETSignalModifier::GETSignalModifier ( u_int  n = 0,
double  dt = 0.01 
)

Constructor.

Parameters
nsampling size of the channels
dtsampling period (us)
GETSignalModifier::GETSignalModifier ( const GETSignalModifier proc)

Copy constructor.

Parameters
procobject to copy
GETSignalModifier::~GETSignalModifier ( )
virtual

Destructor.

Member Function Documentation

GETSignalModifier::ClassDef ( GETSignalModifier  ,
 
)

for use within ROOT.

GETSignalModifier::GObjectV ( GETSignalModifier  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
GETSample * GETSignalModifier::ProcessSample ( GETChannel channel,
u_short  info 
)
virtual

This function processes the argument channel and stores the result in the internal sample.

The channel sample that is processed depends on the info argument:

  • if info == GET::signalTst, the channel input test sample is processed
  • if info == GET::signalOut, the channel output sample is processed The function returns the internal result sample pointer. In case of error, the result is a NULL pointer.
Note
The channel samples are not modified, the result is stored in the process internal sample.
Parameters
channelGET system channel to be processed
infoadditional optional information (sample signal identifier)

Implements GETProcess.

References GETChannel::OutSample(), GETProcess::result_sample, GET::signalTst, and GETChannel::TstSample().

Referenced by GETChannel::ApplyOutputNoise(), GETChannel::ProcessOutFromTst(), and GETModifierSeq::ProcessSample().

virtual GETSample* GETSignalModifier::ProcessSample ( GETSample sample,
GETSample result,
GETChannel channel 
)
pure virtual

This is the effective function that processes the input sample and stores the result in the result sample. This function must be defined in the derived classes.

Parameters
sampleinput sample to be processed
resultsample where result should be stored
channelGET system channel (the samples should correspond to this channel)

Implements GETProcess.

Implemented in GETModifierSeq, GETPhaseCorrection, GETAutoBaseline, GETFilterModifier, GETNoise, GETSampleWindow, GETCalibProcess, GETBaselineCorrection, GETAutoBaselineHigh, and GETAutoBaselineLow.


The documentation for this class was generated from the following files: