class for digital (0/1) calibration values per srtip
More...
#include <SVDCalibrationsBitmap.h>
class for digital (0/1) calibration values per srtip
Definition at line 23 of file SVDCalibrationsBitmap.h.
◆ bundleType
◆ calibrationType
◆ payloadContainerType
◆ SVDCalibrationsBitmap()
◆ ~SVDCalibrationsBitmap()
◆ get()
get the calibration value of that strip
Definition at line 39 of file SVDCalibrationsBitmap.h.
40 {
41 std::bitset<nBitsInBundle> bundle = svdBitmap.at(strip / (nBitsInBundle));
42 return bundle[strip % nBitsInBundle];
43 }
◆ init()
static void init |
( |
payloadContainerType & | svdBitmap, |
|
|
unsigned int | layer, |
|
|
unsigned int | , |
|
|
unsigned int | , |
|
|
unsigned int | side, |
|
|
bool | defaultB ) |
|
inlinestatic |
initialize the calibration bitmap
Definition at line 55 of file SVDCalibrationsBitmap.h.
58 {
59 unsigned int numberOfStrips = 0;
60
61 if (layer < 3)
62 return;
63
64 switch (side) {
65 case SVDCalibrationsBase< SVDCalibrationsBitmap >::Uindex :
66 numberOfStrips = 768;
67 break;
68
69 case SVDCalibrationsBase< SVDCalibrationsBitmap >::Vindex :
70 numberOfStrips = layer == 3 ? 768 : 512;
71 }
72
73 if (!defaultB)
74 svdBitmap.resize(numberOfStrips / nBitsInBundle, 0);
75 else
76 svdBitmap.resize(numberOfStrips / nBitsInBundle, ULONG_MAX);
77 }
◆ set()
set the calibration value of the strip
Definition at line 46 of file SVDCalibrationsBitmap.h.
48 {
49 std::bitset<nBitsInBundle> bundle = svdBitmap.at(strip / (nBitsInBundle));
50 bundle[strip % nBitsInBundle] = value;
51 svdBitmap.at(strip / (nBitsInBundle)) = bundle.to_ulong();
52 }
◆ nBitsInBundle
const int nBitsInBundle = CHAR_BIT * sizeof(bundleType) |
|
static |
The documentation for this class was generated from the following file: