fdhwlib  2.0.25
hw4::Subrack Class Reference

#include <subrack.h>

Inheritance diagram for hw4::Subrack:
SubrackBase SubrackBase SubrackBase

List of all members.

Public Member Functions

Public Attributes

Private Attributes


Detailed Description

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 433 of file subrack.h.


Constructor & Destructor Documentation

hw4::Subrack::Subrack ( const char *  inifile = "FE.ini",
int  mode = 0 
)

Constructor.

Parameters:
inifileFile name of the ini file to read the required parameters for the Pbus connection
modeMode of the creation: 0 normal, 1 without initialization of the Pbus connection.
hw4::Subrack::~Subrack ( )
hw4::Subrack::Subrack ( const char *  inifile = "FE.ini",
int  mode = 0 
)

Constructor.

Parameters:
inifileFile name of the ini file to read the required parameters for the Pbus connection
modeMode of the creation: 0 normal, 1 without initialization of the Pbus connection.
hw4::Subrack::~Subrack ( )
hw4::Subrack::Subrack ( const char *  inifile = "FE.ini",
int  mode = 0 
)

Constructor.

Parameters:
inifileFile name of the ini file to read the required parameters for the Pbus connection
modeMode of the creation: 0 normal, 1 without initialization of the Pbus connection.
hw4::Subrack::~Subrack ( )

Member Function Documentation

int hw4::Subrack::closeHandler ( )

Kill the interupt handler.

int hw4::Subrack::closeHandler ( )

Kill the interupt handler.

int hw4::Subrack::closeIRHandler ( )

Close connection to IRQ dispatcher.

int hw4::Subrack::closeIRHandler ( )

Close connection to IRQ dispatcher.

void hw4::Subrack::configure ( )

Re-configure Flt and Slt FPGA The system should return the same after power-on.

void hw4::Subrack::configure ( )

Re-configure Flt and Slt FPGA The system should return the same after power-on.

void hw4::Subrack::dumpRegisters ( FILE *  fout = stdout,
int  cols = 8 
)

Dump all register information.

The set of all registers defined the function + state of the electronic.

Parameters:
foutoutput stream
colsnumber of colums that should be displayed in a line
void hw4::Subrack::dumpRegisters ( FILE *  fout = stdout,
int  cols = 8 
)

Dump all register information.

The set of all registers defined the function + state of the electronic.

Parameters:
foutoutput stream
colsnumber of colums that should be displayed in a line
void hw4::Subrack::dumpRegisters ( FILE *  fout = stdout,
int  cols = 8 
)

Dump all register information.

The set of all registers defined the function + state of the electronic.

Parameters:
foutoutput stream
colsnumber of colums that should be displayed in a line
int hw4::Subrack::handleErrors ( )

Handle all error interrupts.

The errors are analysed and written to the error log. The error handler is started in separate process.

int hw4::Subrack::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::Subrack::init ( FILE *  fout,
char *  inifile 
)

Init of the electronics.

e.g. read project Id

void hw4::Subrack::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]
...
Parameters:
foutOutput stream
inifileName of the inifile
void hw4::Subrack::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]
...
Parameters:
foutOutput stream
inifileName of the inifile
int hw4::Subrack::initIRHandler ( const char *  inifile = "")

Establish a connection to the IRQ dispatcher.

int hw4::Subrack::initIRHandler ( const char *  inifile = "")

Establish a connection to the IRQ dispatcher.

void hw4::Subrack::reset ( )

Reset subrack, clear all register.

void hw4::Subrack::reset ( )

Reset subrack, clear all register.

int hw4::Subrack::testFltConfig ( FILE *  fout,
int  level = 1,
bool  header = false 
)

Test the Flt configuration.

This test will

  • interrupt data taking
    • not delete any contents in a page
  • take a few miliseconds
Returns:
0 Ok, 1 Not all Flt boards are available, 2 Not all Flt boards are running
int hw4::Subrack::testFltConfig ( FILE *  fout,
int  level = 1,
bool  header = false 
)

Test the Flt configuration.

This test will

  • interrupt data taking
  • not delete any contents in a page
  • take a few miliseconds
Returns:
0 Ok, 1 Not all Flt boards are available, 2 Not all Flt boards are running
int hw4::Subrack::testFltHitrateController ( FILE *  fout,
int  level = 1,
bool  useStat = false,
bool  header = false 
)

Test the hitrate controller.

int hw4::Subrack::testFltHitrateController ( FILE *  fout,
int  level = 1,
bool  useStat = false,
bool  header = false 
)

Test the hitrate controller.

int hw4::Subrack::testFltStatistic ( FILE *  fout,
int  level = 1,
bool  header = false 
)

Test the Flt statistic to measure mean ADC value and background light level.

int hw4::Subrack::testFltStatistic ( FILE *  fout,
int  level = 1,
bool  header = false 
)

Test the Flt statistic to measure mean ADC value and background light level.

int hw4::Subrack::testSltConfiguration ( FILE *  fout,
int  level = 1,
bool  header = true 
)

Test the Slt configuration.

int hw4::Subrack::testSltConfiguration ( FILE *  fout,
int  level = 1,
bool  header = true 
)

Test the Slt configuration.

int hw4::Subrack::waitForInterrupt ( unsigned long *  irVector)

Wait for the next interrupt.

int hw4::Subrack::waitForInterrupt ( unsigned long *  irVector)

Wait for the next interrupt.


Member Data Documentation

float Subrack::meanADCVar [private]

Parameter for testing: Mean variance of the ADC values.

Definition at line 569 of file subrackkatrin.h.

pid_t Subrack::pHandler [private]

Definition at line 563 of file subrackkatrin.h.

SimpleSocket * Subrack::s [private]

Definition at line 560 of file subrackkatrin.h.

Definition at line 466 of file subrack.h.

Definition at line 512 of file subrackkatrin.h.

Definition at line 464 of file subrack.h.

Definition at line 510 of file subrackkatrin.h.


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