GET library
GETPhaseCorrection Class Reference

#include <GETPhaseCorrection.hh>

Inheritance diagram for GETPhaseCorrection:
GETBaselineCorrection GETSignalModifier GETProcess

Public Member Functions

Constructors, affectation, destructor
 GETPhaseCorrection (GETObject &obj)
 
 GETPhaseCorrection (u_int n=0, double dt=0.01)
 
 GETPhaseCorrection (const GETSample &ped, const GETSample &phase)
 
 GETPhaseCorrection (const GETPhaseCorrection &proc)
 
virtual ~GETPhaseCorrection ()
 
Process parameters
const GETSampleGetPhaseSample () const
 
GETSampleGetPhaseSample ()
 
virtual void SetPhaseSample (const GETSample &phase)
 
Signal processing
virtual GETSampleProcessSample (GETSample &sample, GETSample &result, GETChannel &channel)
 
ROOT related functions
 ClassDef (GETPhaseCorrection, 0)
 
- Public Member Functions inherited from GETBaselineCorrection
 GETBaselineCorrection (GETObject &obj)
 
 GETBaselineCorrection (u_int n=0, double dt=0.01)
 
 GETBaselineCorrection (const GETSample &ped)
 
 GETBaselineCorrection (const GETBaselineCorrection &proc)
 
virtual ~GETBaselineCorrection ()
 
const GETSampleGetBaseline () const
 
GETSampleGetBaseline ()
 
virtual void SetBaseline (const GETSample &ped)
 
 ClassDef (GETBaselineCorrection, 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 GETSampleProcessSample (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
 
GETSampleGetResultSamplePtr ()
 
const GETSampleGetResultSamplePtr () const
 
GETSampleGetResultSample ()
 
const GETSampleGetResultSample () const
 
 ClassDef (GETProcess, 0)
 

Protected Attributes

GETSample phase_sample
 Phase sample data.
 
- Protected Attributes inherited from GETBaselineCorrection
GETSample baseline
 Baseline sample data.
 
- Protected Attributes inherited from GETProcess
u_int options
 Option flags.
 
GETSample result_sample
 Internal processing result sample (processing result)
 

Private Member Functions

 GObject (GETPhaseCorrection)
 

Detailed Description

This class defines a signal correction process, that inherits from the baseline correction and include a phase effect correction depending on the last cell read of the AGet chip.

The baseline correction dimension is the readout dimension of the GET system. The phase correction is in all cases a 512 data sample, since in the case of a smaller readout dimension (256 or 128), the 512 cells of the memory are used anyway.

The case of the 2-proton mode has to be processed in a different way (not yet implemented).

Constructor & Destructor Documentation

GETPhaseCorrection::GETPhaseCorrection ( GETObject obj)

Constructor. The dimension of the first channel of the object is used for the process definition. The baseline and phase samples are initialized to 0. Note that the phase correction is always computed on 512 data, even if the readout depth is 256 or 128.

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

Constructor. The baseline and phase samples are initialized to 0. Note that the phase correction is always computed on 512 data, even if the readout depth is 256 or 128.

Parameters
nsampling size of the channels
dtsampling period (us)
GETPhaseCorrection::GETPhaseCorrection ( const GETSample ped,
const GETSample phase 
)

Constructor. The sample parameters (size and period) from the pedestal and the phase samples must be the same.

Parameters
pedpedestal (baseline) sample
phasephase correction sample

References SetPhaseSample().

GETPhaseCorrection::GETPhaseCorrection ( const GETPhaseCorrection proc)

Copy constructor.

Parameters
procobject to copy

References GetPhaseSample(), and phase_sample.

GETPhaseCorrection::~GETPhaseCorrection ( )
virtual

Destructor.

Member Function Documentation

GETPhaseCorrection::ClassDef ( GETPhaseCorrection  ,
 
)

for use within ROOT.

const GETSample & GETPhaseCorrection::GetPhaseSample ( ) const
inline

Return the phase correction sample.

References phase_sample.

Referenced by GETPhaseCorrection().

GETSample & GETPhaseCorrection::GetPhaseSample ( )
inline

Return the phase correction sample.

References phase_sample.

GETPhaseCorrection::GObject ( GETPhaseCorrection  )
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 * GETPhaseCorrection::ProcessSample ( GETSample sample,
GETSample result,
GETChannel channel 
)
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.

Note
  • 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.
  • The initial and result samples may be the same object, in which case the sample is replaced by the result.
Parameters
sampleinput sample to be processed
resultsample where result should be stored
channelGET system channel (no use in this class)

Reimplemented from GETBaselineCorrection.

References GETBaselineCorrection::baseline, GETChannel::GetLastCell(), and phase_sample.

void GETPhaseCorrection::SetPhaseSample ( const GETSample phase)
virtual

Set the phase correction sample.

Parameters
phasephase correction sample

References GETBaselineCorrection::baseline, and phase_sample.

Referenced by GETPhaseCorrection().


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