fdhwlib  2.0.25

#include <Flt.h>

Inheritance diagram for Flt:
SubrackBoard SubrackBoardBase

List of all members.

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 theRegister is introduced. The array contains a list of all available registers.

Changes:

  • The Flt version 2.1 comes with the two new registers ApprSumX_2 and ChannOnOff.
  • The header file FltDef.h contains now the define variable FLT_VER that contains the actual version number. Every Flt class has to include this file.
  • The address model changes with Flt version 2.00
  • The thresholds are with Flt version 2.00 in one register
  • Statistic registers added in Flt version 2.00
Todo:

Test and improve the check of the versions!!!

The macros to select all FLT channel and/or boards have to be redefined!

Replace numerical values in the code by local preprocessor variables!

Check shift operations on integer type variables!

Rename FltMean!!!

Definition at line 85 of file Flt.h.


Constructor & Destructor Documentation

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

Member Function Documentation

bool Flt::checkPresence ( ) [virtual]

Return the state of this slot.

Check the presence of this slot. The result will be stored in the variable present

Reimplemented from SubrackBoardBase.

int 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 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 Flt::getMeanAdcValue ( int  ch,
double *  value 
)

Calculate mean value of a channel.

int 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 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 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
Todo:

Measure test time, time with system turned off

Improve writing test pattern

Generate random test pattern

int 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
Todo:

Measure test time, time with higher system load

Choose random pix and page for testing

Measure also the transfer rate for writing


Member Data Documentation

Definition at line 264 of file Flt.h.

Definition at line 186 of file Flt.h.

Definition at line 226 of file Flt.h.

Definition at line 208 of file Flt.h.

Definition at line 223 of file Flt.h.

Definition at line 220 of file Flt.h.

Definition at line 214 of file Flt.h.

Definition at line 211 of file Flt.h.

Definition at line 272 of file Flt.h.

Definition at line 183 of file Flt.h.

Definition at line 180 of file Flt.h.

Definition at line 232 of file Flt.h.

Definition at line 191 of file Flt.h.

Definition at line 196 of file Flt.h.

Disable / enable hitrate measurement for each pixel in the column.

Definition at line 203 of file Flt.h.

Definition at line 267 of file Flt.h.

Definition at line 217 of file Flt.h.

Definition at line 237 of file Flt.h.

Definition at line 239 of file Flt.h.

Definition at line 241 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 253 of file Flt.h.

Definition at line 229 of file Flt.h.

Pointer to the defined register vectors.

Definition at line 177 of file Flt.h.

Pointer to the defined registers.

Definition at line 173 of file Flt.h.

Definition at line 169 of file Flt.h.

Definition at line 235 of file Flt.h.

Describes the trigger mode of the Flt.

See also:
FltTriggerMode

Definition at line 258 of file Flt.h.


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