SpdDetectorConf Class Reference

class to mange the detector configuration More...

#include <SpdDetectorConf.h>

Collaboration diagram for SpdDetectorConf:

Collaboration graph
[legend]

List of all members.

Public Member Functions

long int getLastVersion ()
 gets the last version
long int update ()
 updates data with db
int getDataFromDB ()
 gets data with db
PixelConfDbgetChannel (int channel)
 to get channel configuration
PixelConfDboperator[] (unsigned int channel)
void setVersionNumber (long int version)
long int getVersionNumber ()
 SpdDetectorConf (void)
 ~SpdDetectorConf (void)

Private Member Functions

std::vector< std::string > getSectorVerFields ()
std::vector< std::string > getDetectorVerFields ()
int setSectorVersion (int sector, long int version)
 sets the sector version
long int updateSector (int sector)
 updates one sector
int getChannelNumber (int sector, int hs)
 gets channels number from sector and hs number

Private Attributes

PixelConfDb hsChannels [NChannels]
 configuration for 60 HS's
SpdVerTable sectorTables [NSectors]
SpdVerTable detectorTable


Detailed Description

class to mange the detector configuration

Constructor & Destructor Documentation

SpdDetectorConf::SpdDetectorConf ( void   ) 

SpdDetectorConf::~SpdDetectorConf ( void   ) 


Member Function Documentation

std::vector< std::string > SpdDetectorConf::getSectorVerFields (  )  [private]

std::vector< std::string > SpdDetectorConf::getDetectorVerFields (  )  [private]

int SpdDetectorConf::setSectorVersion ( int  sector,
long int  version 
) [private]

sets the sector version

long int SpdDetectorConf::updateSector ( int  sector  )  [private]

updates one sector

int SpdDetectorConf::getChannelNumber ( int  sector,
int  hs 
) [inline, private]

gets channels number from sector and hs number

long int SpdDetectorConf::getLastVersion (  ) 

gets the last version

long int SpdDetectorConf::update (  ) 

updates data with db

SpdDetectorConf::getDataFromDB (  ) 

gets data with db

PixelConfDb& SpdDetectorConf::getChannel ( int  channel  )  [inline]

to get channel configuration

PixelConfDb& SpdDetectorConf::operator[] ( unsigned int  channel  )  [inline]

void SpdDetectorConf::setVersionNumber ( long int  version  ) 

long int SpdDetectorConf::getVersionNumber (  )  [inline]


Member Data Documentation

PixelConfDb SpdDetectorConf::hsChannels[NChannels] [private]

configuration for 60 HS's

SpdVerTable SpdDetectorConf::sectorTables[NSectors] [private]

obects to manage the versioning 10 sector versions plus its own detector version

SpdVerTable SpdDetectorConf::detectorTable [private]


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