fdhwlib
2.0.25
|
#include <fe4hitratecontrol.h>
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:
Definition at line 74 of file fe4hitratecontrol.h.
FE4hitrateControl::FE4hitrateControl | ( | hw4::SubrackAuger * | s | ) |
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] |
hw4::SubrackAuger* FE4hitrateControl::s [private] |
Definition at line 169 of file fe4hitratecontrol.h.