fdhwlib  2.0.25
hw4::Flt Class Reference

#include <flt.h>

Inheritance diagram for hw4::Flt:
hw4::SubrackBoard SubrackBoardBase

List of all members.

Public Types

Public Member Functions

Public Attributes


Detailed Description

The class Flt provides the definition for the registers of the first level trigger board (FLT).

The names of the registers are choosen as found in the hardware description.

For a systematic access to all registers without knowledge of the specific register structure the array regList is introduced. The array contains a list of all available registers.

Definition at line 80 of file flt.h.


Member Enumeration Documentation

Enumerator:
kFLT_PAGES 
kFLT_PAGE_SIZE 

Definition at line 89 of file flt.h.

                     {   //I use this temporarily instead of the defines in fltdef.h -tb-
      kFLT_PAGES = 64,
      kFLT_PAGE_SIZE = 2000 // for unsigned shorts (for v3 this was 1000)
  };

Constructor & Destructor Documentation

hw4::Flt::Flt ( int  ID)
virtual hw4::Flt::~Flt ( ) [virtual]

Member Function Documentation

bool hw4::Flt::checkPresence ( ) [virtual]

Check the presence of this slot.

The result will be stored in the variable present

Reimplemented from SubrackBoardBase.

int hw4::Flt::compareData ( FILE *  fout,
unsigned short *  data,
unsigned short *  patter,
int  shift,
int  n,
int  output = 1 
)

Returns the number correct compared elements beginning with the first one of data.

The compared pattern can be shifted relative to the data. The swich output = 0 will disable debug information about the compared data in case of an error.

int hw4::Flt::getHardwareModelVersion ( )

Give the version of the used harware model.

The version of the model and the implemented register model of the connected electronic have to fit together.

Returns:
The version number is given multiplied times 100.
int hw4::Flt::getMeanAdcValue ( int  ch,
double *  value 
)

Calculate mean value of a channel.

int hw4::Flt::getVersion ( int  unit = 0) [virtual]

Get the version of the board.

The format is major version * 100 + minor version number. E.g. 1.2 will result in the return value 120

Reimplemented from SubrackBoardBase.

int hw4::Flt::setThresholdToAdc ( int  ch,
unsigned long  delta 
)

Set threshold according to the mean adc value.

Parameters:
chNumber of the channel
deltaOffset for the threshold relative to the adc value
int hw4::Flt::testMemory ( FILE *  fout,
int  ch = -1 
)

Perform a test of the Flt Memory.

The results can be writen to a file or output stream.

This test will

  • interrupt the data taking (switching to test mode)
  • delete the content of all pages
  • take a few seconds (long test)
  • will not change configuration
  • will cause an uncorrectable error
int hw4::Flt::testTransferRate ( FILE *  fout,
int  ch = -1,
int  page = -1 
)

Test the access speed of to the memory.

This test will

  • cause a higher readout load during the test
  • not interrupt the data taking
  • not delete any contents in a page
  • takes a few seconds (long test)
  • not change configuration
  • will cause an uncorrectable error

Member Data Documentation

Definition at line 186 of file flt.h.

Definition at line 221 of file flt.h.

Definition at line 174 of file flt.h.

Definition at line 176 of file flt.h.

Definition at line 166 of file flt.h.

Definition at line 164 of file flt.h.

Definition at line 194 of file flt.h.

Definition at line 196 of file flt.h.

Definition at line 188 of file flt.h.

Definition at line 180 of file flt.h.

Definition at line 190 of file flt.h.

Definition at line 178 of file flt.h.

Definition at line 170 of file flt.h.

Definition at line 172 of file flt.h.

Definition at line 192 of file flt.h.

Definition at line 200 of file flt.h.

Definition at line 202 of file flt.h.

Definition at line 184 of file flt.h.

Definition at line 223 of file flt.h.

The member ramDataBurst is a clone of ramData which provides the readBlockAutoInc function to read in SLT burst mode.

ramDataBurst probably could replace ramData in the future (after testing the compatibility) - 2010-05-21.

Definition at line 232 of file flt.h.

Definition at line 204 of file flt.h.

To get both statistical values from the same time, it is necessary to store the sum of the square values in the buffer if the sum is requested.

On every peripheral FPGA there is one of these buffers. After retriving the sum, it is possible to get the appropriate sum of squares from the buffer using the same channel number.

Definition at line 217 of file flt.h.

Definition at line 206 of file flt.h.

Definition at line 162 of file flt.h.

Definition at line 198 of file flt.h.

Definition at line 182 of file flt.h.

Definition at line 160 of file flt.h.

Definition at line 219 of file flt.h.

Definition at line 168 of file flt.h.


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