25 std::string mthn =
"[PixelROCMaskBits::setROCMaskBits()]\t\t\t " ;
30 bits.copy( cpt , 520);
31 for(
unsigned int i = 0 ;
i < bits.size();
i++)
41 std::cout << __LINE__ <<
"]\t" << mthn <<
"Error casting variable." << std::endl;
49 for(
int i=0;
i<(int)
sizeof(
bits_);
i++)
63 for (
int i=0;
i<52;
i++){
77 for(
int j=0;
j<80;
j++){
79 if (data[
j]==
'1') byte+=128;
105 for (
int i=0;
i<52;
i++)
112 unsigned char byte=0;
113 for(
int j=0;
j<80;
j++)
115 if (data[
j]==
'1') byte+=128;
137 in.read((
char*)
bits_,520);
149 for(
unsigned int i=0;
i<520;
i++){
162 if (
col<10) out <<
"0";
164 for (
int row=0;row<80;row++){
165 out <<
mask(col,row);
175 unsigned int tmp=
bits_[col*10+row/8];
191 unsigned int bit=1<<(row%8);
192 if (mask)
bits_[col*10+row/8]=
bits_[col*10+row/8]|bit;
193 if (!mask)
bits_[col*10+row/8]=
bits_[col*10+row/8]&(0xff^bit);
200 s <<
"Dumping ROC masks" <<std::endl;
202 for(
int i=0;
i<52;
i++){
204 for(
int j=0;
j<10;
j++){
205 unsigned char bitmask=1;
206 for(
int k=0;
k<8;
k++){
207 if(mask.
bits_[i*10+
j]&bitmask) {
227 std::string mthn =
"[PixelROCMaskBits::writeXML()]\t\t\t\t" ;
231 *out <<
" <DATA>" << std::endl ;
232 *out <<
" <ROC_NAME>" <<
rocid_.
rocname() <<
"</ROC_NAME>" << std::endl ;
233 *out <<
" <KILL_MASK>" << encoded <<
"</KILL_MASK>" << std::endl ;
234 *out <<
" </DATA>" << std::endl ;
235 *out <<
" " << std::endl ;
void setROCMaskBits(PixelROCName &rocid, std::string bits)
int read(const PixelROCName &rocid, std::string in)
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
std::string rocname() const
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
std::string base64_encode(unsigned char const *, unsigned int len)
void writeASCII(std::ofstream &out) const
void setMask(unsigned int col, unsigned int row, unsigned int mask)
std::vector< std::vector< double > > tmp
char data[epos_bytes_allocation]
unsigned int mask(unsigned int col, unsigned int row) const
void writeXML(std::ofstream *out) const
void writeBinary(std::ofstream &out) const
int readBinary(const PixelROCName &rocid, std::ifstream &in)