#include <NoisyPixelDB.h>
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< PixelCoordinate > | getHsNoisy (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< PixelCoordinate > | hsNoisyPixels [nHalfstaves][nChips] |
This class will download the list of noisy pixels from the database, from the new table "spd_noisypix" include it into internal storage
NoisyPixelDB::NoisyPixelDB | ( | ) |
constructer with the side
NoisyPixelDB::~NoisyPixelDB | ( | void | ) |
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
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.
long int NoisyPixelDB::version [private] |
char NoisyPixelDB::side [private] |
std::vector<PixelCoordinate> NoisyPixelDB::hsNoisyPixels[nHalfstaves][nChips] [private] |