1 #ifndef JAN_BARREL_EVENT_HH
2 #define JAN_BARREL_EVENT_HH
13 printf(
"JanBarrelEve:clear()\n");
15 memset(bprsCap,-1,
sizeof(bprsCap));
16 memset(rawAdcTile,0,
sizeof(rawAdcTile));
17 memset(adcTile,0,
sizeof(adcTile));
18 memset(statTile,-1,
sizeof(statTile));
19 memset(tileIn,0,
sizeof(tileIn));
27 int bprsCap[mxBprsCrate];
28 float rawAdcTile[mxBTile][mxBtow];
29 float adcTile[mxBTile][mxBtow];
30 int statTile[mxBTile][mxBtow];
32 void print(
int flag=0) {
33 printf(
"\njanBarelEve ID=%d printFlag=0x%0x",
id,flag);
34 printf(
" BPRSin=%d caps:%d:%d:%d:%d:",tileIn[kBPrs], bprsCap[0],bprsCap[1],bprsCap[2],bprsCap[3]);
37 for(
int i=0;i<120;i++) {
39 if(i%10==0) printf(
"\n softID=%4d adc format BTOW:BPRS= ",
id);
40 printf(
"%.1f : %.1f, ", rawAdcTile[kBTow][
id-1], rawAdcTile[kBPrs][
id-1]);
46 for(
int i=0;i<120;i++) {
48 if(i%5==0) printf(
"\n BPRS id=%4d {adcRaw,adc,stat}*N=",
id);
49 printf(
"%.1f, %.1f, %d; ", rawAdcTile[kBPrs][
id-1],adcTile[kBPrs][
id-1],statTile[kBPrs][
id-1]);
64 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
68 BsmdCluster1D(
char x=
'?') {clear();plane=x;}
69 void clear() {memset(
this,0,
sizeof(BsmdCluster1D )); plane=
'?';xCell=yCell=-1;}
81 if(ene<=0) { printf(
"bsmd%c Cl empty\n",plane);
return;}
82 printf(
"bsmd%c CL str0=%d mean0=%.1f meanId=%d rms=%.2f ene/keV=%.2f inTw %d.or.%d dist=%.1f cell(%d,%d)\n",plane,strip0,mean0,meanId,rms,ene*1e6,inTowerId[0],inTowerId[1],towerDist, xCell,yCell);