|
|
Go to the documentation of this file.
24 for (
unsigned int i = 0;
i <
bits.size();
i++)
25 bits_[
i] = static_cast<unsigned char>(cpt[
i]);
47 for (
int i = 0;
i < 52;
i++) {
58 unsigned char byte = 0;
60 for (
int j = 0;
j < 80;
j++) {
61 unsigned char tmp = toupper(
data[
j]) - 48;
67 if ((
j + 1) % 2 == 0) {
69 bits_[
i * 40 + (
j + 1) / 2 - 1] =
byte;
84 for (
int i = 0;
i < 52;
i++) {
90 unsigned char byte = 0;
91 for (
int j = 0;
j < 80;
j++) {
92 unsigned char tmp = toupper(
data[
j]) - 48;
96 if ((
j + 1) % 2 == 0) {
98 bits_[
i * 40 + (
j + 1) / 2 - 1] =
byte;
123 for (
unsigned int i = 0;
i < 2080;
i++) {
136 for (
unsigned int col = 0;
col < 52;
col++) {
141 for (
int row = 0; row < 80; row++) {
158 unsigned int mask = 0xf0;
168 s <<
"Dumping ROC masks" << std::endl;
170 for (
int i = 0;
i < 52;
i++) {
171 s <<
"Col" <<
i <<
": ";
172 for (
int j = 0;
j < 40;
j++) {
173 unsigned char bitmask = 15 * 16;
174 for (
int k = 0;
k < 2;
k++) {
175 unsigned int tmp = mask.
bits_[
i * 40 +
j] & bitmask;
190 std::string mthn =
"[PixelROCTrimBits::writeXML()]\t\t\t\t";
195 *
out <<
" <DATA>" << std::endl;
197 *
out <<
" <TRIM_BITS>" << encoded <<
"</TRIM_BITS>" << std::endl;
198 *
out <<
" </DATA>" << std::endl;
199 *
out <<
" " << std::endl;
std::string rocname() const
int read(PixelROCName rocid, std::string in)
void writeBinary(std::ofstream &out) const
int readBinary(PixelROCName rocid, std::ifstream &in)
void writeXML(std::ofstream *out) const
void writeASCII(std::ofstream &out) const
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
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
unsigned int trim(unsigned int col, unsigned int row) const
unsigned char bits_[2080]
#define base64_decode(in, inlen, out, outlen)
void setTrim(unsigned int col, unsigned int row, unsigned int trim)
std::string base64_encode(unsigned char const *, unsigned int len)
char data[epos_bytes_allocation]
static void trim(std::string &s)
void setROCTrimBits(PixelROCName rocid, std::string bits)