fdhwlib
2.0.25
|
#include <subrackauger.h>
Collection for all components of the FD electronic in the hardware level.
The class defines the access to the SLT and the 20 FLT boards. There is also a management of empty and ocupied slots.
Definition at line 434 of file subrackauger.h.
hw4::SubrackAuger::SubrackAuger | ( | const char * | inifile = "FE.ini" , |
int | mode = 0 |
||
) |
hw4::SubrackAuger::~SubrackAuger | ( | ) |
int hw4::SubrackAuger::closeHandler | ( | ) |
Kill the interupt handler.
int hw4::SubrackAuger::closeIRHandler | ( | ) |
Close connection to IRQ dispatcher.
void hw4::SubrackAuger::configure | ( | ) |
int hw4::SubrackAuger::handleErrors | ( | ) |
Handle all error interrupts.
The errors are analysed and written to the error log. The error handler is started in separate process.
void hw4::SubrackAuger::init | ( | FILE * | fout, |
char * | inifile | ||
) |
Init of the electronics.
The parameters of the registers can be used to specify the required value in the inifile.
Example:
[SltInit] Control = 00002c79 IRMask = 000001ff TestpulsAmpl = 000005dc SetSecCounter = 2daff6d5 T1 = 00000578 IRInput = 000000a3 SensorMask = 00000000 ... [FltInit] ...
fout | Output stream |
inifile | Name of the inifile |
int hw4::SubrackAuger::initIRHandler | ( | const char * | inifile = "" | ) |
Establish a connection to the IRQ dispatcher.
void hw4::SubrackAuger::reset | ( | ) |
Reset subrack, clear all register.
int hw4::SubrackAuger::testFltConfig | ( | FILE * | fout, |
int | level = 1 , |
||
bool | header = false |
||
) |
int hw4::SubrackAuger::testFltHitrateController | ( | FILE * | fout, |
int | level = 1 , |
||
bool | useStat = false , |
||
bool | header = false |
||
) |
Test the hitrate controller.
int hw4::SubrackAuger::testFltStatistic | ( | FILE * | fout, |
int | level = 1 , |
||
bool | header = false |
||
) |
Test the Flt statistic to measure mean ADC value and background light level.
int hw4::SubrackAuger::testSltConfiguration | ( | FILE * | fout, |
int | level = 1 , |
||
bool | header = true |
||
) |
Test the Slt configuration.
int hw4::SubrackAuger::waitForInterrupt | ( | unsigned long * | irVector | ) |
Wait for the next interrupt.
float hw4::SubrackAuger::meanADCVar [private] |
Parameter for testing: Mean variance of the ADC values.
Definition at line 552 of file subrackauger.h.
pid_t hw4::SubrackAuger::pHandler [private] |
Definition at line 548 of file subrackauger.h.
SimpleSocket* hw4::SubrackAuger::s [private] |
Definition at line 545 of file subrackauger.h.
Definition at line 501 of file subrackauger.h.
Definition at line 499 of file subrackauger.h.