27 bits.copy( cpt , 2080);
28 for(
unsigned int i = 0 ;
i < bits.size();
i++)
29 bits_[
i] = static_cast<unsigned char>(cpt[
i]);
54 for (
int i=0;
i<52;
i++){
68 for(
int j=0;j<80;j++){
70 unsigned char tmp=toupper(data[j])-48;
77 bits_[
i*40+(j+1)/2-1]=byte;
98 for (
int i=0;
i<52;
i++)
105 unsigned char byte=0;
106 for(
int j=0;j<80;j++)
108 unsigned char tmp=toupper(data[j])-48;
114 bits_[
i*40+(j+1)/2-1]=byte;
132 in.read((
char*)
bits_,2080);
147 for(
unsigned int i=0;
i<2080;
i++){
165 if (
col<10) out <<
"0";
167 for (
int row=0;row<80;row++){
168 out << std::hex<<std::uppercase<<
trim(col,row)<<
std::dec;
177 unsigned int tmp=
bits_[col*40+row/2];
178 if (row%2==0) tmp/=16;
187 unsigned int mask=0xf0;
192 unsigned int tmp=
bits_[col*40+row/2];
202 s <<
"Dumping ROC masks" <<std::endl;
204 for(
int i=0;
i<52;
i++){
206 for(
int j=0;j<40;j++){
207 unsigned char bitmask=15*16;
208 for(
int k=0;
k<2;
k++){
209 unsigned int tmp=mask.
bits_[i*40+j]&bitmask;
226 std::string mthn =
"[PixelROCTrimBits::writeXML()]\t\t\t\t" ;
231 *out <<
" <DATA>" << std::endl ;
232 *out <<
" <ROC_NAME>" <<
rocid_.
rocname() <<
"</ROC_NAME>" << std::endl ;
233 *out <<
" <TRIM_BITS>" << encoded <<
"</TRIM_BITS>" << std::endl ;
234 *out <<
" </DATA>" << std::endl ;
235 *out <<
" " << std::endl ;
int read(PixelROCName rocid, std::string in)
void setROCTrimBits(PixelROCName rocid, std::string bits)
#define base64_decode(in, inlen, out, outlen)
void writeBinary(std::ofstream &out) const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
int readBinary(PixelROCName rocid, std::ifstream &in)
unsigned int trim(unsigned int col, unsigned int row) const
std::string rocname() const
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
std::string base64_encode(unsigned char const *, unsigned int len)
void writeXML(std::ofstream *out) const
std::vector< std::vector< double > > tmp
void setTrim(unsigned int col, unsigned int row, unsigned int trim)
char data[epos_bytes_allocation]
unsigned char bits_[2080]
void writeASCII(std::ofstream &out) const