22 if (filename[filename.size()-1]==
't'){
24 std::ifstream
in(filename.c_str());
40 unsigned int trimbits;
55 std::ifstream
in(filename.c_str(),std::ios::binary);
64 for(
int i=0;
i< nchar;
i++){
83 unsigned int trimbits;
94 if (
in.eof())
continue;
97 for(
int i=0;
i< nchar;
i++){
137 std::vector<unsigned char> trimAndMasks(4160);
141 for (
unsigned int col=0;col<52;col++){
142 for (
unsigned int row=0;row<80;row++){
144 if (maskbits.
mask(col,row)!=0) tmp|=0x80;
145 trimAndMasks[col*80+row]=
tmp;
157 std::ofstream
out(filename.c_str(),std::ios::binary);
170 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
PixelTrimCommon(std::string filename)
std::vector< PixelROCName > rocname_
void writeASCII(std::string filename) const
virtual const PixelROCMaskBits & getMaskBits(int ROCId) const =0
This is the documentation about PixelMaskBase...
void generateConfiguration(PixelFECConfigInterface *pixelFEC, PixelNameTranslation *trans, const PixelMaskBase &pixelMask) const
This is the documentation about PixelNameTranslation...
std::vector< std::vector< double > > tmp
unsigned int mask(unsigned int col, unsigned int row) const
This class stores the name and related hardware mappings for a ROC.