NoisyPixelDB Class Reference

Class to get the noisy pixel mask from the database. More...

#include <NoisyPixelDB.h>

List of all members.

Public Member Functions

 NoisyPixelDB ()
 constructer with the side
 ~NoisyPixelDB (void)
char getSide () const
int getVersionNumber () const
 returns the version number currently loaded in this object
int getFromDb (char side, int versionNumber=-1)
 gets the noisy pixel list from the database
std::vector< PixelCoordinategetHsNoisy (unsigned hs, unsigned pixel) const
 returns the corresponding with the noisy pixels for the corresponding hs and pixel chip
std::string inspect () const
 Debug method which prints the internal members to astring.

Private Member Functions

void getDbDataForHs (unsigned hs)
int getMaxVersion ()
 internal method to get the last version available in the database

Private Attributes

long int version
char side
std::vector< PixelCoordinatehsNoisyPixels [nHalfstaves][nChips]


Detailed Description

Class to get the noisy pixel mask from the database.

This class will download the list of noisy pixels from the database, from the new table "spd_noisypix" include it into internal storage


Constructor & Destructor Documentation

NoisyPixelDB::NoisyPixelDB (  ) 

constructer with the side

NoisyPixelDB::~NoisyPixelDB ( void   ) 


Member Function Documentation

void NoisyPixelDB::getDbDataForHs ( unsigned  hs  )  [private]

int NoisyPixelDB::getMaxVersion (  )  [private]

internal method to get the last version available in the database

if in the method getFromDB the versionNumber is not defined it will default to -1 then this function is called to get the lastest version from the database

char NoisyPixelDB::getSide (  )  const [inline]

int NoisyPixelDB::getVersionNumber (  )  const [inline]

returns the version number currently loaded in this object

if none is loaded it will return -1

int NoisyPixelDB::getFromDb ( char  side,
int  versionNumber = -1 
)

gets the noisy pixel list from the database

Parameters:
side the side of the noisy pixels we want if side=C then only get information for hs 60 and higher

std::vector< PixelCoordinate > NoisyPixelDB::getHsNoisy ( unsigned  hs,
unsigned  pixel 
) const

returns the corresponding with the noisy pixels for the corresponding hs and pixel chip

if the arguments are out of bound it will return an empty vector

std::string NoisyPixelDB::inspect (  )  const

Debug method which prints the internal members to astring.


Member Data Documentation

long int NoisyPixelDB::version [private]

char NoisyPixelDB::side [private]

std::vector<PixelCoordinate> NoisyPixelDB::hsNoisyPixels[nHalfstaves][nChips] [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