20 if (filename[filename.size() - 1] ==
't') {
21 std::ifstream
in(filename.c_str());
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);
144 std::ofstream
out(filename.c_str());
const PixelHdwAddress * getHdwAddress(const PixelROCName &aROC) const
std::vector< unsigned int > trimbits_
virtual void setMaskAndTrimAll(const PixelHdwAddress &theROC, const std::vector< unsigned char > &allPixels, const bool buffermode=false)=0
void writeBinary(std::string filename) const override
PixelTrimCommon(std::string filename)
std::vector< PixelROCName > rocname_
virtual const PixelROCMaskBits & getMaskBits(int ROCId) const =0
void generateConfiguration(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, const PixelMaskBase &pixelMask) const override
void writeASCII(std::string filename) const override
This is the documentation about PixelMaskBase...
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.