46 BEdsm2::setWord(
int ch,
unsigned short val){
47 assert(ch>=0 && ch<nc);
55 BEdsm2::getInpHT2bit(
int i3p)
const {
57 assert(ch>=0 && ch<nc);
58 unsigned short val=
data[ch] >> 12;
66 BEdsm2::getInpHT2bit_2(
int i3p)
const {
68 assert(ch>=0 && ch<nc);
69 unsigned short val=
data[ch] >> 14;
78 BEdsm2::getInpJP2bit(
int i3p)
const {
80 assert(ch>=0 && ch<nc);
81 unsigned short val=
data[ch] >> 10;
89 BEdsm2::getInpHTTP1bit(
int i3p)
const {
91 assert(ch>=0 && ch<nc);
93 unsigned short val=
data[ch] >> 7;
101 BEdsm2::getInpTP1bit(
int i3p)
const {
103 assert(ch>=0 && ch<nc);
105 unsigned short val=
data[ch] >> 9;
114 BEdsm2::getJPthr(
int jp)
const {
115 assert(jp>=0 && jp<6);
119 assert(ch>=0 && ch<nc);
120 unsigned short val=
data[ch]>>8;
130 BEdsm2::getInpEsum5bit(
int i3p)
const {
133 assert(ch>=0 && ch<nc);
134 unsigned short val=
data[ch] & 0xff;
135 if(mYear>=2006) val=val & 0x1f;
143 BEdsm2::print(
int k)
const {
144 printf(
"BEdsm2:: INPUTS, year=%d \n",mYear);
148 for(i=nc-1;i>=0;i--) printf(
" %4d ",i);
150 for(i=nc-1;i>=0;i--) printf(
" x%4.4x ",
data[i] );
152 printf(
"\ninpTP 1bit = ");
153 for(i=nc-1;i>=0;i--) printf(
" %4d ", getInpTP1bit(i) );
154 printf(
"\nHTTPthr = ");
155 for(i=nc-1;i>=0;i--) printf(
" %4d ", getInpHTTP1bit(i) );
159 printf(
"\nJP_Falk =");
160 for(i=njp-1;i>=0;i--) printf(
" %4d ",i);
161 printf(
"\nJP_Steve=");
162 for(i=njp-1;i>=0; i--) printf(
" %4d ",(i+2)%6+1);
167 for(i=njp-1;i>=0;i--) printf(
" %4d ", getJPthr(i));
171 const char *txt=
"5bit";
172 if(mYear<2006)txt=
"8bit";
175 printf(
"3x.9 JP_Falk(%d+%d+%d) energy/dec: %s=%d HT2bit=%d (only for EEMC)\n",3*i,3*i+1,3*i+2,txt,getInpEsum5bit(i), getInpHT2bit(i));