#include <HSConfDefault.h>
Public Member Functions | |
HSConfDefault (void) | |
~HSConfDefault (void) | |
const char * | GetFileName (void) |
getter for the file name | |
void | SetFileName (const char *filename) |
UInt32 | GetFileSize (void) |
void | SetFileSize (UInt32 size) |
int | LoadDefaultsFromFile (const char *filename) |
DigitalPilot * | GetDPIDefault (void) |
UInt8 * | GetPixelDACVectDefault (void) |
UInt8 | GetPixelDACDefault (unsigned chip, unsigned dacNumber) |
UInt8 * | GetAPIdacVectDefault (void) |
UInt32 * | GetDPIConfVectDefault (void) |
UInt32 * | GetDPIInternalVectDefault (void) |
UInt32 | GetGOLConfVectDefault (void) |
UInt32 | LoadClassDefaultsDb (const PixelConfDb &dbData) |
UInt32 | SetClassDefaultsDb (PixelConfDb &dbData) |
void | SetPixDACVectDefault (UInt8 *Input) |
void | SetAPIdacVectDefault (UInt8 *Input) |
void | SetDPIConfVectDefault (UInt32 *Input) |
void | SetGOLConfVectDefault (UInt32 Input) |
UInt16 | SetNoisyPixelVectDefault (UInt8 *Input) |
wil set the internal noisy pixel vector using as input an array liek reading from a configuration file | |
void | SetNoisyPixelVectDefault (unsigned chip, std::vector< PixelCoordinate > noisy) |
will set the internal noisy pixels with a proper vector | |
void | SetNoisyPixelVectDefault (UInt32 Input[numberOfChips][256]) |
wil set the internal noisy pixel vector using as input the matrix like the one received by pvss | |
void | GetNoisyPixelVectDefault (unsigned chip, UInt32 output[numberOfRows]) |
function to get the noisy pixels with the firmat of the jtag command for one pixel chip, | |
void | GetNoisyPixelVectDefault (UInt32 output[numberOfChips *numberOfRows]) |
function to get the noisy pixels with the firmat of the jtag command for all 10 chips in one HS | |
unsigned | GetNoisyPixelNumberDefault (int chip) |
will return the number of noisy pixels in one chip | |
unsigned | GetNoisyPixelNumberDefault (void) |
will return the total number of noisy pixels for all 10 chios | |
std::vector< PixelCoordinate > & | GetNoisyPixVectDefault (int chip) |
Private Member Functions | |
void | LoadToMemory (UInt8 *FileContent) |
Private Attributes | |
std::string | FileName |
Keeps the configuration file name. | |
UInt32 | FileSize |
UInt8 | PixDACVect [440] |
Pixel DAC Values 0..43 chip 0, 44..87 chip 1, ... | |
UInt8 | APIdacVect [6] |
API DAC Values 0 = REF HI, REF MID, GTL REF, TEST HI, TEST LOW. | |
DigitalPilot | DPI |
DPI configuration values. | |
UInt32 | GOLConfVect |
GOL configuration values. | |
std::vector< PixelCoordinate > | noisyPixelsDefault [numberOfChips] |
noisy pixel default values |
Mainly a container class
HSConfDefault::HSConfDefault | ( | void | ) |
HSConfDefault::~HSConfDefault | ( | void | ) |
void HSConfDefault::LoadToMemory | ( | UInt8 * | FileContent | ) | [private] |
const char* HSConfDefault::GetFileName | ( | void | ) | [inline] |
getter for the file name
void HSConfDefault::SetFileName | ( | const char * | filename | ) |
UInt32 HSConfDefault::GetFileSize | ( | void | ) | [inline] |
void HSConfDefault::SetFileSize | ( | UInt32 | size | ) | [inline] |
int HSConfDefault::LoadDefaultsFromFile | ( | const char * | filename | ) |
DigitalPilot* HSConfDefault::GetDPIDefault | ( | void | ) | [inline] |
UInt8* HSConfDefault::GetPixelDACVectDefault | ( | void | ) | [inline] |
UInt8 HSConfDefault::GetPixelDACDefault | ( | unsigned | chip, | |
unsigned | dacNumber | |||
) | [inline] |
UInt8* HSConfDefault::GetAPIdacVectDefault | ( | void | ) | [inline] |
UInt32* HSConfDefault::GetDPIConfVectDefault | ( | void | ) | [inline] |
UInt32* HSConfDefault::GetDPIInternalVectDefault | ( | void | ) | [inline] |
UInt32 HSConfDefault::GetGOLConfVectDefault | ( | void | ) | [inline] |
UInt32 HSConfDefault::LoadClassDefaultsDb | ( | const PixelConfDb & | dbData | ) |
UInt32 HSConfDefault::SetClassDefaultsDb | ( | PixelConfDb & | dbData | ) |
void HSConfDefault::SetPixDACVectDefault | ( | UInt8 * | Input | ) |
void HSConfDefault::SetAPIdacVectDefault | ( | UInt8 * | Input | ) |
void HSConfDefault::SetDPIConfVectDefault | ( | UInt32 * | Input | ) | [inline] |
void HSConfDefault::SetGOLConfVectDefault | ( | UInt32 | Input | ) | [inline] |
wil set the internal noisy pixel vector using as input an array liek reading from a configuration file
void HSConfDefault::SetNoisyPixelVectDefault | ( | unsigned | chip, | |
std::vector< PixelCoordinate > | noisy | |||
) | [inline] |
will set the internal noisy pixels with a proper vector
void HSConfDefault::SetNoisyPixelVectDefault | ( | UInt32 | Input[numberOfChips][256] | ) |
wil set the internal noisy pixel vector using as input the matrix like the one received by pvss
void HSConfDefault::GetNoisyPixelVectDefault | ( | unsigned | chip, | |
UInt32 | output[numberOfRows] | |||
) |
function to get the noisy pixels with the firmat of the jtag command for one pixel chip,
the matrix will be returned in the argument 'output'
chip | pixel chip number to get the noisy pixel/mask matrix | |
output | an array which wil be filled inside this function with the output data |
void HSConfDefault::GetNoisyPixelVectDefault | ( | UInt32 | output[numberOfChips *numberOfRows] | ) |
function to get the noisy pixels with the firmat of the jtag command for all 10 chips in one HS
the matrix will be returned in the argument 'output'
output | this array will be filled inside with the data for all pixels |
unsigned HSConfDefault::GetNoisyPixelNumberDefault | ( | int | chip | ) | [inline] |
will return the number of noisy pixels in one chip
unsigned HSConfDefault::GetNoisyPixelNumberDefault | ( | void | ) |
will return the total number of noisy pixels for all 10 chios
std::vector<PixelCoordinate>& HSConfDefault::GetNoisyPixVectDefault | ( | int | chip | ) | [inline] |
std::string HSConfDefault::FileName [private] |
Keeps the configuration file name.
UInt32 HSConfDefault::FileSize [private] |
UInt8 HSConfDefault::PixDACVect[440] [private] |
Pixel DAC Values 0..43 chip 0, 44..87 chip 1, ...
UInt8 HSConfDefault::APIdacVect[6] [private] |
API DAC Values 0 = REF HI, REF MID, GTL REF, TEST HI, TEST LOW.
DigitalPilot HSConfDefault::DPI [private] |
UInt32 HSConfDefault::GOLConfVect [private] |
GOL configuration values.
std::vector<PixelCoordinate> HSConfDefault::noisyPixelsDefault[numberOfChips] [private] |
noisy pixel default values