fdhwlib  2.0.25
FEhitrateControl Class Reference

#include <FEhitrateControl.h>

Inheritance diagram for FEhitrateControl:
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 FEhitrateControl.h.


Constructor & Destructor Documentation

FEhitrateControl::FEhitrateControl ( Subrack s)

Member Function Documentation

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

Reimplemented from FEbaseHitrateControl.

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

Reimplemented from FEbaseHitrateControl.

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

Reimplemented from FEbaseHitrateControl.

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

Reimplemented from FEbaseHitrateControl.

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

Get the actual value of the threshold.

Implements FEbaseHitrateControl.

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

Get the hit rate of one pixel.

Implements FEbaseHitrateControl.

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

Read the hit rates of one column.

A array of 22 integers has to be provided.

Implements FEbaseHitrateControl.

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

Get the hitrate of all pixel.

Implements FEbaseHitrateControl.

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

Read the mode of the hit rate controller.

For each pixel holds: 0 disabled, 1 enabled.

Implements FEbaseHitrateControl.

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

Get the control parameters.

Implements FEbaseHitrateControl.

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

Get the last value of the threshold.

Implements FEbaseHitrateControl.

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

Read actual and previous threshold from all pixel.

Implements FEbaseHitrateControl.

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

Reimplemented from FEbaseHitrateControl.

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

Reimplemented from FEbaseHitrateControl.

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

Read the hitrate memory of one column.

A array of 22 long words has to be provided.

Implements FEbaseHitrateControl.

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

Read the hitrate memory of the whole crate.

An array of 20x22 long words has to be provided

Implements FEbaseHitrateControl.

void FEhitrateControl::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 FEhitrateControl::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 FEhitrateControl::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 FEhitrateControl::setModeOff ( int  col,
unsigned long  mask 
) [virtual]

Disable the hitrate control of the pixel in the mask.

Implements FEbaseHitrateControl.

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

Enable the hitrate control of the pixel in the mask.

Implements FEbaseHitrateControl.

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

Update the control parameters.

Implements FEbaseHitrateControl.

int FEhitrateControl::waitForHitrateErr ( ) [virtual]

Reimplemented from FEbaseHitrateControl.

int FEhitrateControl::waitForThreshErr ( ) [virtual]

Reimplemented from FEbaseHitrateControl.


Member Data Documentation

Definition at line 162 of file FEhitrateControl.h.


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