fdhwlib  2.0.25
FE4hitrateControl Class Reference

#include <fe4hitratecontrol.h>

Inheritance diagram for FE4hitrateControl:
FEbaseHitrateControl

List of all members.

Public Member Functions

Private Attributes


Detailed Description

The class provides methods to supervise the hit rate control.

The task of the hit rate controller is to find the appropriate threshold for the desired hitrate in every every pixel.

There are two states for the automatic control: enabled and disabled. The state can be chosen separately for every pixel. If the control is disabled, the trigger rate has to be maintained by one of the higher level applications.

Controller parameters are

The control parameters count for all pixel in a column. The controller provide the actual and the last value of the threshold for every pixel. Rows are numbered from 1 to 22 and columns are numbered from 1 to 20.

Changes:

  • 29.8.01 ak: New signature getHitrate(int *data) to load all hitrates at once.
  • The controller parameters changed.
  • readHitrate. Data type of the second argument has been changed to unsigned long (265.7.00, ak).
  • Methose setModeOn and setModeOff added (26.7.00, ak).
  • Internal changes for Flt FPGA design version 2.00

Definition at line 74 of file fe4hitratecontrol.h.


Constructor & Destructor Documentation

FE4hitrateControl::FE4hitrateControl ( hw4::SubrackAuger s)

Member Function Documentation

void FE4hitrateControl::disableHitrateErr ( int  col) [virtual]

Reimplemented from FEbaseHitrateControl.

void FE4hitrateControl::disableThreshErr ( int  col) [virtual]

Reimplemented from FEbaseHitrateControl.

void FE4hitrateControl::enableHitrateErr ( int  col) [virtual]

Reimplemented from FEbaseHitrateControl.

void FE4hitrateControl::enableThreshErr ( int  col) [virtual]

Reimplemented from FEbaseHitrateControl.

int FE4hitrateControl::getActThresh ( int  col,
int  row 
) [virtual]

Get the actual value of the threshold.

Implements FEbaseHitrateControl.

int FE4hitrateControl::getHitrate ( int  col,
int  row 
) [virtual]

Get the hit rate of one pixel.

Implements FEbaseHitrateControl.

void FE4hitrateControl::getHitrate ( int  col,
int *  data 
) [virtual]

Read the hit rates of one column.

A array of 24 (v3 was 22!!) integers has to be provided.

Implements FEbaseHitrateControl.

void FE4hitrateControl::getHitrate ( int *  data) [virtual]

Get the hitrate of all pixel.

Implements FEbaseHitrateControl.

unsigned long FE4hitrateControl::getMode ( int  col) [virtual]

Read the mode of the hit rate controller.

For each pixel holds: 0 disabled, 1 enabled.

Implements FEbaseHitrateControl.

void FE4hitrateControl::getParameters ( int  col,
FEhitrateParameter parm 
) [virtual]

Get the control parameters.

Implements FEbaseHitrateControl.

int FE4hitrateControl::getPrevThresh ( int  col,
int  row 
) [virtual]

Get the last value of the threshold.

Implements FEbaseHitrateControl.

void FE4hitrateControl::getThresh ( int *  act,
int *  prev = 0 
) [virtual]

Read actual and previous threshold from all pixel.

Implements FEbaseHitrateControl.

bool FE4hitrateControl::isEnabledHitrateErr ( int  col) [virtual]

Reimplemented from FEbaseHitrateControl.

bool FE4hitrateControl::isEnabledThreshErr ( int  col) [virtual]

Reimplemented from FEbaseHitrateControl.

void FE4hitrateControl::readHitrate ( int  col,
unsigned long *  data 
) [virtual]

Read the hitrate memory of one column.

A array of 24 (v3 was 22!) long words has to be provided.

Implements FEbaseHitrateControl.

void FE4hitrateControl::readHitrate ( unsigned long *  data) [virtual]

Read the hitrate memory of the whole crate.

An array of 20x24 (v3 was 22!) long words has to be provided.

Implements FEbaseHitrateControl.

void FE4hitrateControl::readThresh ( unsigned long *  data) [virtual]

Read the thresholds of the whole crate.

An array of 20x22 long words has to be provided

Implements FEbaseHitrateControl.

void FE4hitrateControl::setActThresh ( int  col,
int  row,
int  treshold 
) [virtual]

Set the actual value of the threshold.

This function can be used to implement

an different control algorithm for the hitrate. In this case the internal control has to be turned of using setMode.

Implements FEbaseHitrateControl.

void FE4hitrateControl::setMode ( int  col,
unsigned long  mode 
) [virtual]

Set the mode of the hit rate controller.

For each pixel holds: 0 disabled, 1 enabled.

Implements FEbaseHitrateControl.

void FE4hitrateControl::setModeOff ( int  col,
unsigned long  mask 
) [virtual]

Disable the hitrate control of the pixel in the mask.

Implements FEbaseHitrateControl.

void FE4hitrateControl::setModeOn ( int  col,
unsigned long  mask 
) [virtual]

Enable the hitrate control of the pixel in the mask.

Implements FEbaseHitrateControl.

void FE4hitrateControl::setParameters ( int  col,
FEhitrateParameter parm 
) [virtual]

Update the control parameters.

Implements FEbaseHitrateControl.

int FE4hitrateControl::waitForHitrateErr ( ) [virtual]

Reimplemented from FEbaseHitrateControl.

int FE4hitrateControl::waitForThreshErr ( ) [virtual]

Interupt handling is not yet implemented.

-tb- 2009-04-020

Reimplemented from FEbaseHitrateControl.


Member Data Documentation

Definition at line 169 of file fe4hitratecontrol.h.


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