#include <HSConfData.h>
Public Member Functions | |
HSConfData () | |
HSConfData (SpdHalfStave *HS[NHalfStaves]) | |
~HSConfData (void) | |
void | SetHSFilePointer (SpdHalfStave *halfstaves[], char detSide) |
Uint32 | SaveEnChannelsInDB () |
method to save the enabled channels configuration in the database | |
long int | getSideDBVersionNumber () |
gets the current side version number of this onjec | |
long int | getGlobalDBVersionNumber () |
gets the current global version of the configuration | |
UInt32 | GetFromDB (long int spdver=-1) |
this one disapeared because the default of -1 will make the same | |
UInt32 | SaveInDB (bool useDefaults=false) |
long int | SaveInDB (std::vector< unsigned int > channelList, bool useDefaults=false) |
UInt8 * | GetFromFile (UInt8 ChNumb) |
int | dumpActualConfToFile () |
int | dumpDefaultConfToFile () |
long int | linkDbVersions (long int hsConfA, long int hsConfC, long int routerConfA, long int routerConfC, long int typeOfRun) |
long int | linkDbVersions (long int otherSideConf, long int routerConfA=0, long int routerConfC=0, long int typeOfRun=0) |
links the current side version with the other versions | |
int | maskDetectorFromDB (int version=-1) |
masks the noisy pixels with the data straight from the DB | |
long int | getMaskDbVersion () |
Private Attributes | |
SpdHalfStave * | HS [NHalfStaves] |
spdLogger * | log |
spdDbConnection * | conn |
long int | DbVersNumber |
long int | sideDbVer |
long int | maskVerNumber |
char | side |
this class somehow shares functionalitie with the SPDConfig class it was created long time ago when Ivan was in the development, I think that this class should slowly disapear and move the functionality to the SPD config class
HSConfData::HSConfData | ( | void | ) |
HSConfData::HSConfData | ( | SpdHalfStave * | HS[NHalfStaves] | ) |
HSConfData::~HSConfData | ( | void | ) |
void HSConfData::SetHSFilePointer | ( | SpdHalfStave * | halfstaves[], | |
char | detSide | |||
) | [inline] |
Uint32 HSConfData::SaveEnChannelsInDB | ( | ) |
method to save the enabled channels configuration in the database
long int HSConfData::getSideDBVersionNumber | ( | ) | [inline] |
gets the current side version number of this onjec
long int HSConfData::getGlobalDBVersionNumber | ( | ) | [inline] |
gets the current global version of the configuration
UInt32 HSConfData::GetFromDB | ( | long int | spdver = -1 |
) |
this one disapeared because the default of -1 will make the same
UInt32 HSConfData::SaveInDB | ( | bool | useDefaults = false |
) |
for the moment the useDefaults is for debugging only, its possible to read from file and save in db this way
long int HSConfData::SaveInDB | ( | std::vector< unsigned int > | channelList, | |
bool | useDefaults = false | |||
) |
int HSConfData::dumpActualConfToFile | ( | ) |
int HSConfData::dumpDefaultConfToFile | ( | ) |
long int HSConfData::linkDbVersions | ( | long int | hsConfA, | |
long int | hsConfC, | |||
long int | routerConfA, | |||
long int | routerConfC, | |||
long int | typeOfRun | |||
) |
long int HSConfData::linkDbVersions | ( | long int | otherSideConf, | |
long int | routerConfA = 0 , |
|||
long int | routerConfC = 0 , |
|||
long int | typeOfRun = 0 | |||
) |
links the current side version with the other versions
otherSideConf | the version of the other side | |
routerConfA | router configuration for side A | |
routerConfC | router configuration for side C | |
typeOfRun | run type |
int HSConfData::maskDetectorFromDB | ( | int | version = -1 |
) |
masks the noisy pixels with the data straight from the DB
long int HSConfData::getMaskDbVersion | ( | ) | [inline] |
SpdHalfStave* HSConfData::HS[NHalfStaves] [private] |
spdLogger* HSConfData::log [private] |
spdDbConnection* HSConfData::conn [private] |
long int HSConfData::DbVersNumber [private] |
long int HSConfData::sideDbVer [private] |
long int HSConfData::maskVerNumber [private] |
char HSConfData::side [private] |