GET library
GETRCoBo Class Reference

#include <GETRCoBo.hh>

Inheritance diagram for GETRCoBo:
GETSystem GETObject

Public Member Functions

Constructors, affectation, destructor
 GETRCoBo (u_int dim=0, double dt=0.01L)
 
virtual ~GETRCoBo ()
 
Initialization functions
virtual int Init (u_int n_asad, u_int n, double dt)
 
Experimental data readout
virtual int ReadEvent (bool process=true)
 
virtual int ExtractCoBoFrame ()
 
ROOT related functions
 ClassDef (GETRCoBo, 0)
 
- Public Member Functions inherited from GETSystem
 GETSystem (u_int n_cobo=1, u_int dim=0, double dt=0.01L)
 
virtual ~GETSystem ()
 
virtual int ResetConfig ()
 
virtual int InitConfig ()
 
const GETCfgSetupGetConfig () const
 
GETCfgSetupGetConfig ()
 
virtual int ReadXMLConfig (const string &fname)
 
virtual void Reset ()
 
virtual void ClearEvent ()
 
bool ChannelHasData (u_int ic) const
 
virtual string GetObjectId () const
 
virtual u_int GetChildrenNumber () const
 
virtual const GETObjectGetChild (u_int i) const
 
virtual GETObjectGetChild (u_int i)
 
const GETCoBooperator[] (u_int n) const
 
GETCoBooperator[] (u_int n)
 
virtual u_int GetCoBoNumber () const
 
virtual u_int GetAsAdNumber () const
 
virtual int GetChannelIndex (const GETChannel *ch)
 
const GETLookupTableLookupTable () const
 
GETLookupTableLookupTable ()
 
virtual u_int GetChannelCount () const
 
virtual int GetChannelIndex (int ix, int iy) const
 
virtual GETChannelGetChannel (int ix, int iy) const
 
virtual GETChannelGetChannel (u_int n)
 
virtual GETHitMaskSetHitMask (GETHitMask *mask)
 
GETHitMaskGetHitMask () const
 
virtual int SetAnalyser (GETSystemAnalyser *a)
 
GETSystemAnalyserGetAnalyser () const
 
virtual int SetCalibProcess (const string &calib_file)
 
virtual int SetBaselineCorrection (const string &bl_file)
 
virtual int SetOutputSmoothing (double width)
 
virtual int SetAutoBaseline (u_short num_lo, u_short num_hi, u_short off_lo=0, u_short off_hi=0)
 
virtual int SetAutoBaselineLow (u_short num_lo, u_short off_lo=0)
 
virtual int SetAutoBaselineHigh (u_short num_hi, u_short off_hi=0)
 
u_int GetEventCount () const
 
string GetRunFileName () const
 
virtual int OpenRunFile (const string &fname)
 
virtual int OpenRunSerie (const string &pattern, const string &serie)
 
virtual int CloseRunFile ()
 
bool IsRunFileOpen () const
 
GETRunFileGetRunFile ()
 
virtual int AnalyseRawEvent ()
 
virtual int AnalyseCorEvent ()
 
virtual int ExtractXMLFileHeaderFrame ()
 
virtual int ExtractCoboTopoFrame ()
 
virtual int ExtractCoboFrame ()
 
virtual int ExtractEbyedatFrame ()
 
virtual int ExtractMergeFrame ()
 
virtual int ProcessFrameData (MFMCommonFrame *frame)
 
virtual int ProcessMergeFrameData (MFMMergeFrame *frame)
 
virtual int ProcessCoBoFrameData (MFMCoboFrame *frame)
 
virtual int ProcessEbyedatFrameData (MFMEbyedatFrame *frame)
 
virtual GETChannelGetMaximumChannel (u_short info=GET::signalOut, bool integ=false)
 
virtual int OutputCorrectFPN (u_int opt_fpn=GET::CoBoCorrectFPN4)
 
virtual int ZeroSuppression (double thr=0.)
 
virtual int AnyFrameUser (MFMCommonFrame &frame)
 
virtual int MergeFrameUser (MFMMergeFrame &frame)
 
virtual int CoBoFrameUser (MFMCoboFrame &frame)
 
virtual int EbyedatFrameUser (MFMEbyedatFrame &frame)
 
 ClassDef (GETSystem, 0)
 
virtual void SetZeroSuppressMode (double thr=0.)
 
virtual void SetSaturationValue (int val)
 
virtual int GetSaturationValue () const
 
virtual int GetSaturationCount () const
 
virtual bool IsChannelSaturated (u_int ich)
 
virtual bool IsChannelSaturated (const GETChannel &ch)
 
- Public Member Functions inherited from GETObject
 GETObject ()
 
virtual ~GETObject ()
 
int GetId () const
 
virtual string GetFullId () const
 
virtual u_int GetSignalChannelCount () const
 
virtual u_int GetTotalChannelCount () const
 
virtual GETChannelGetSignalChannel (u_int n)
 
virtual GETChannelGetTotalChannel (u_int n)
 
const GETObjectGetParent () const
 
GETObjectGetParent ()
 
virtual void SetTimeStep (double dt)
 
u_int GetSampleDim ()
 
double GetTimeStep ()
 
virtual u_int GetReadoutMultiplicity (bool fpn=true) const
 
virtual double GetSignalSum (u_short info=GET::signalOut)
 
virtual void InitLocalData (u_int n, double dt)
 
virtual void ValidDataSet ()
 
virtual void ValidSimulSet ()
 
virtual void SetResponse (GETResponse *ptr, bool recur=true, bool fpn=false)
 
virtual void SetResponse (GETResponse &obj, bool recur=true, bool fpn=false)
 
virtual void SetFilter (GETFilter *ptr, bool recur=true, bool fpn=false)
 
virtual void SetFilter (GETFilter &obj, bool recur=true, bool fpn=false)
 
virtual void SetNoiseIn (GETSignalModifier *ptr, bool recur=true, bool fpn=false)
 
virtual void SetNoiseIn (GETSignalModifier &obj, bool recur=true, bool fpn=false)
 
virtual void SetNoiseOut (GETSignalModifier *ptr, bool recur=true, bool fpn=false)
 
virtual void SetNoiseOut (GETSignalModifier &obj, bool recur=true, bool fpn=false)
 
virtual void SetOutputCorrection (GETProcess *ptr, bool recur=true, bool fpn=false)
 
virtual void SetOutputCorrection (GETProcess &obj, bool recur=true, bool fpn=false)
 
virtual void RemoveOutputCorrection ()
 
virtual void SetOutputCorrectionList (bool warn=true)
 
virtual void AddOutputCorrection (GETProcess *ptr, bool recur=true, bool fpn=false)
 
virtual void AddOutputCorrection (GETProcess &obj, bool recur=true, bool fpn=false)
 
GETResponseGetResponse (bool force=true)
 
GETFilterGetFilter (bool force=true)
 
GETSignalModifierGetNoiseIn (bool force=true)
 
GETSignalModifierGetNoiseOut (bool force=true)
 
GETProcessGetOutputCorrection (bool force=true)
 
virtual int ProcessData (bool in_noise=true)
 
virtual int ProcessOutFromTst (bool in_noise=true, bool out_noise=true)
 
virtual int ProcessRecFromOut (bool out_corr=true)
 
virtual int ProcessOutputCorrection ()
 
 ClassDef (GETObject, 0)
 

Private Member Functions

 GObject (GETRCoBo)
 

Additional Inherited Members

- Static Public Member Functions inherited from GETSystem
static void SetOptions (u_int opts)
 
static void SetOption (u_int flags, bool b=true)
 
static u_int GetOptions ()
 
static bool GetOption (u_int flags)
 
- Protected Attributes inherited from GETSystem
GETSystemAnalyseranalyser
 Pointer to a data analyser.
 
u_int channel_count
 Total number of channels.
 
bool * channel_hit
 Whether the channel contains data.
 
GETChannel ** channel_summary
 Summary of channels pointers.
 
GETCoBocobo
 Array of CoBo modules.
 
u_int cobo_number
 Number of CoBo modules controlled.
 
GETCfgSetupconfig
 Configuration data.
 
u_int event_count
 Number of events read (in file)
 
GETHitMaskhit_mask
 Pointer to the hit mask.
 
GETLookupTable lookup_table
 Lookup table.
 
char * mfm_buffer
 MFM frames data buffer.
 
char ** mfm_buffer_adr
 Pointer of allocated buffer.
 
int mfm_buffer_size
 Size of allocated buffer.
 
MFMCommonFrame * mfm_frame
 Common frame for MFM in/out.
 
MFMCoboFrame * mfm_frame_cobo
 Specific CoBo frame for MFM in/out.
 
u_int mfm_frame_count
 Frame number in current file.
 
GETRunFilerun_file
 Pointer to the input run data.
 
u_int saturation_count
 Number of saturated channels (computed at raw event analysis)
 
u_int saturation_mult
 Number of saturated data to consider a channel as saturated.
 
u_int saturation_value
 Coder value for channel saturation (set to 0 not to perform the analysis)
 
double zero_threshold
 Threshold for raw data zero suppression.
 
- Protected Attributes inherited from GETObject
GETProcessLink filter
 Signal processing filter.
 
int id
 Object identifier number (set by the parent, in filiation)
 
GETProcessLink noise_in
 Simulation input noise generator.
 
GETProcessLink noise_out
 Simulation output noise generator.
 
GETProcessLink output_corr
 Output signal correction before reconstruction of input.
 
GETObjectparent
 Parent AGet chip.
 
GETProcessLink response
 Signal response function.
 
- Static Protected Attributes inherited from GETSystem
static u_int options = 0
 Options for GET system.
 

Detailed Description

This class defines a the test system with the reduced CoBo module, that can process 1 AsAd board.

Examples:
RCoBo_ChannelMeanRMS.C, ReadConfig.cxx, ReadEvent_RCoBo.cxx, and ReadRCoBo.C.

Constructor & Destructor Documentation

GETRCoBo::GETRCoBo ( u_int  n = 0,
double  dt = 0.01L 
)

Constructor.

Parameters
ndimension of data samples
dtsampling period (us)

References Init().

GETRCoBo::~GETRCoBo ( )
virtual

Destructor.

Member Function Documentation

GETRCoBo::ClassDef ( GETRCoBo  ,
 
)

for use within ROOT.

int GETRCoBo::ExtractCoBoFrame ( )
virtual

Function getting the raw information from the currently stored (reduced-)CoBo frame. The function returns 0 if no error occurs.

References AGET_SIZE, ASAD_SIZE, GETSystem::cobo, GET_FRAME_ERROR, GETObject::GetFullId(), GETSystem::mfm_frame, and GETChannel::OutSample().

Referenced by ReadEvent().

GETRCoBo::GObject ( GETRCoBo  )
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.
int GETRCoBo::Init ( u_int  n_cobo,
u_int  n,
double  dt 
)
virtual

Initialize the reduced CoBo system with 1 CoBo module reading 1 AsAd.

Parameters
n_cobonumber of CoBo modules (ignored: forced to 1)
ndimension of data samples
dtsampling period (us)

Reimplemented from GETSystem.

References GETSystem::cobo, GETCoBo::Init(), and GETSystem::Init().

Referenced by GETRCoBo().

int GETRCoBo::ReadEvent ( bool  process = true)
virtual

Read next event in current file. The function returns -1 if end of file is reached (no event read) or a positive value is case of error.

After an event has been read, the channels are set to experimental mode, and all channels output are set to valid (and other signals must be recomputed).

Parameters
processwhether the reconstructed sample should be processed

Reimplemented from GETSystem.

Examples:
ReadEvent_RCoBo.cxx.

References AGET_CHANNELS, AGET_SIZE, ASAD_SIZE, GETSystem::ClearEvent(), GETAGet::CloserFPNIndex(), GETSystem::event_count, ExtractCoBoFrame(), GET_EOF, GET_FILE_ERROR, GET_FRAME_ERROR, GETRunFile::GetFileLun(), GETObject::GetFullId(), GETObject::GetId(), GETSystem::GetOption(), GETSystem::GetOptions(), GETObject::GetSignalChannel(), GETSystem::IsRunFileOpen(), GETSystem::mfm_buffer_adr, GETSystem::mfm_buffer_size, GETSystem::mfm_frame, GETSystem::mfm_frame_cobo, GETChannel::OutSample(), GETObject::ProcessRecFromOut(), GET::RCoBoCorrectFPN2, GET::RCoBoCorrectFPN4, GET::RCoBoCorrectLC2, GET::RCoBoData0Correction, GET::RCoBoDataNCorrection, GETSystem::run_file, and GETObject::ValidDataSet().


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