fdhwlib  2.0.25
FEbaseHitrateControl Class Reference

#include <febasehitratecontrol.h>

Inheritance diagram for FEbaseHitrateControl:
FE4hitrateControl FEhitrateControl

List of all members.

Public Member Functions


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 67 of file febasehitratecontrol.h.


Constructor & Destructor Documentation

FEbaseHitrateControl::FEbaseHitrateControl ( ) [inline]

Definition at line 69 of file febasehitratecontrol.h.

{ }
virtual FEbaseHitrateControl::~FEbaseHitrateControl ( ) [virtual]

Member Function Documentation

virtual void FEbaseHitrateControl::disableHitrateErr ( int  ) [inline, virtual]

Reimplemented in FE4hitrateControl, and FEhitrateControl.

Definition at line 154 of file febasehitratecontrol.h.

{ }
virtual void FEbaseHitrateControl::disableThreshErr ( int  ) [inline, virtual]

Reimplemented in FE4hitrateControl, and FEhitrateControl.

Definition at line 146 of file febasehitratecontrol.h.

{ }
virtual void FEbaseHitrateControl::enableHitrateErr ( int  ) [inline, virtual]

Reimplemented in FE4hitrateControl, and FEhitrateControl.

Definition at line 152 of file febasehitratecontrol.h.

{ }
virtual void FEbaseHitrateControl::enableThreshErr ( int  ) [inline, virtual]

Reimplemented in FE4hitrateControl, and FEhitrateControl.

Definition at line 144 of file febasehitratecontrol.h.

{ }
virtual int FEbaseHitrateControl::getActThresh ( int  col,
int  row 
) [pure virtual]

Get the actual value of the threshold.

Implemented in FE4hitrateControl, and FEhitrateControl.

virtual int FEbaseHitrateControl::getHitrate ( int  col,
int  row 
) [pure virtual]

Get the hit rate of one pixel.

Implemented in FEhitrateControl, and FE4hitrateControl.

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

Read the hit rates of one column.

A array of 22 integers has to be provided.

Implemented in FE4hitrateControl, and FEhitrateControl.

virtual void FEbaseHitrateControl::getHitrate ( int *  data) [pure virtual]

Get the hitrate of all pixels.

Implemented in FE4hitrateControl, and FEhitrateControl.

virtual unsigned long FEbaseHitrateControl::getMode ( int  col) [pure virtual]

Read the mode of the hit rate controller.

For each pixel holds: 0 disabled, 1 enabled.

Implemented in FE4hitrateControl, and FEhitrateControl.

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

Get the control parameters.

Implemented in FE4hitrateControl, and FEhitrateControl.

virtual int FEbaseHitrateControl::getPrevThresh ( int  col,
int  row 
) [pure virtual]

Get the last value of the threshold.

Implemented in FE4hitrateControl, and FEhitrateControl.

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

Read actual and previous threshold from all pixels.

Implemented in FEhitrateControl, and FE4hitrateControl.

virtual bool FEbaseHitrateControl::isEnabledHitrateErr ( int  ) [inline, virtual]

Reimplemented in FE4hitrateControl, and FEhitrateControl.

Definition at line 156 of file febasehitratecontrol.h.

{ return false; }
virtual bool FEbaseHitrateControl::isEnabledThreshErr ( int  ) [inline, virtual]

Reimplemented in FE4hitrateControl, and FEhitrateControl.

Definition at line 148 of file febasehitratecontrol.h.

{ return false; }
virtual void FEbaseHitrateControl::readHitrate ( int  col,
unsigned long *  data 
) [pure virtual]

Read the hitrate memory of one column.

A array of 22 long words has to be provided.

Implemented in FE4hitrateControl, and FEhitrateControl.

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

Read the hitrate memory of the whole crate.

An array of 20x22 long words has to be provided.

Implemented in FE4hitrateControl, and FEhitrateControl.

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

Read the thresholds of the whole crate.

An array of 20x22 long words has to be provided

Implemented in FEhitrateControl, and FE4hitrateControl.

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

Set the actual value of the threshold.

This function can be used to implement a different control algorithm for the hitrate. In this case the internal control has to be turned of using setMode.

Implemented in FEhitrateControl, and FE4hitrateControl.

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

Set the mode of the hit rate controller.

For each pixel holds: 0 disabled, 1 enabled.

Implemented in FE4hitrateControl, and FEhitrateControl.

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

Disable the hitrate control of the pixel in the mask.

Implemented in FE4hitrateControl, and FEhitrateControl.

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

Enable the hitrate control of the pixel in the mask.

Implemented in FE4hitrateControl, and FEhitrateControl.

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

Update the control parameters.

Implemented in FE4hitrateControl, and FEhitrateControl.

virtual int FEbaseHitrateControl::waitForHitrateErr ( ) [inline, virtual]

Reimplemented in FE4hitrateControl, and FEhitrateControl.

Definition at line 150 of file febasehitratecontrol.h.

{ return 0; }
virtual int FEbaseHitrateControl::waitForThreshErr ( ) [inline, virtual]

Reimplemented in FE4hitrateControl, and FEhitrateControl.

Definition at line 142 of file febasehitratecontrol.h.

{ return 0; }

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