HSConfData Class Reference

Instance to manage database configuration of the halfstaves. More...

#include <HSConfData.h>

Collaboration diagram for HSConfData:

Collaboration graph
[legend]

List of all members.

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)
UInt8GetFromFile (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

SpdHalfStaveHS [NHalfStaves]
spdLoggerlog
spdDbConnectionconn
long int DbVersNumber
long int sideDbVer
long int maskVerNumber
char side


Detailed Description

Instance to manage database configuration of the halfstaves.

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


Constructor & Destructor Documentation

HSConfData::HSConfData ( void   ) 

HSConfData::HSConfData ( SpdHalfStave HS[NHalfStaves]  ) 

HSConfData::~HSConfData ( void   ) 


Member Function Documentation

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 
)

UInt8* HSConfData::GetFromFile ( UInt8  ChNumb  ) 

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

Parameters:
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]


Member Data Documentation

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]


The documentation for this class was generated from the following files:
Generated on Tue Dec 1 12:09:51 2009 for SPD FED Server by  doxygen 1.5.4