35 unsigned int trimbits;
47 std::ifstream
in(
filename.c_str(), std::ios::binary);
56 for (
int i = 0;
i < nchar;
i++) {
73 unsigned int trimbits;
87 for (
int i = 0;
i < nchar;
i++) {
117 std::vector<unsigned char> trimAndMasks(4160);
121 for (
unsigned int col = 0;
col < 52;
col++) {
122 for (
unsigned int row = 0; row < 80; row++) {
124 if (maskbits.
mask(
col, row) != 0)
126 trimAndMasks[
col * 80 + row] =
tmp;
135 std::ofstream
out(
filename.c_str(), std::ios::binary);
std::vector< unsigned int > trimbits_
void writeASCII(std::string filename) const override
virtual void setMaskAndTrimAll(const PixelHdwAddress &theROC, const std::vector< unsigned char > &allPixels, const bool buffermode=false)=0
PixelTrimCommon(std::string filename)
std::vector< PixelROCName > rocname_
virtual const PixelROCMaskBits & getMaskBits(int ROCId) const =0
const PixelHdwAddress * getHdwAddress(const PixelROCName &aROC) const
void generateConfiguration(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, const PixelMaskBase &pixelMask) const override
This is the documentation about PixelMaskBase...
void writeBinary(std::string filename) const override
This is the documentation about PixelNameTranslation...
unsigned int mask(unsigned int col, unsigned int row) const
This class stores the name and related hardware mappings for a ROC.