641 |
int i,j; |
int i,j; |
642 |
int nsub,itype,isize,ielem; |
int nsub,itype,isize,ielem; |
643 |
char *chtag_out; |
char *chtag_out; |
644 |
float *x; |
// float *x; |
645 |
float rmin[1000], rmax[1000]; |
float rmin[1000], rmax[1000]; |
646 |
|
|
647 |
if (id > 0) sprintf(idname,"h%d",id); |
if (id > 0) sprintf(idname,"h%d",id); |
662 |
Int_t *boolflag = new Int_t[nvar]; |
Int_t *boolflag = new Int_t[nvar]; |
663 |
Int_t *lenbool = new Int_t[nvar]; |
Int_t *lenbool = new Int_t[nvar]; |
664 |
UChar_t *boolarr = new UChar_t[10000]; |
UChar_t *boolarr = new UChar_t[10000]; |
665 |
x = new float[nvar]; |
// x = new float[nvar]; |
666 |
char *bigbuf = new char[2500000]; |
char *bigbuf = new char[2500000]; |
667 |
|
|
668 |
chtag_out[nvar*kNchar]=0; |
chtag_out[nvar*kNchar]=0; |
728 |
|
|
729 |
|
|
730 |
// add support for 1-byte (Char_t) and 2-byte (Short_t) integers |
// add support for 1-byte (Char_t) and 2-byte (Short_t) integers |
731 |
Int_t nBytesUsed = 4; // default for integers |
// Int_t nBytesUsed = 4; // default for integers |
732 |
|
|
733 |
if( itype == 2 ) |
if( itype == 2 ) |
734 |
{ |
{ |
743 |
if( nbits > 8 ) |
if( nbits > 8 ) |
744 |
{ |
{ |
745 |
strcat(fullname,"/S"); |
strcat(fullname,"/S"); |
746 |
nBytesUsed = 2; |
// nBytesUsed = 2; |
747 |
} |
} |
748 |
else |
else |
749 |
{ |
{ |
750 |
strcat(fullname,"/B"); |
strcat(fullname,"/B"); |
751 |
nBytesUsed = 1; |
// nBytesUsed = 1; |
752 |
} |
} |
753 |
} |
} |
754 |
} |
} |
772 |
if( nbits > 8 ) |
if( nbits > 8 ) |
773 |
{ |
{ |
774 |
strcat(fullname,"/s"); |
strcat(fullname,"/s"); |
775 |
nBytesUsed = 2; |
// nBytesUsed = 2; |
776 |
} |
} |
777 |
else |
else |
778 |
{ |
{ |
779 |
strcat(fullname,"/b"); |
strcat(fullname,"/b"); |
780 |
nBytesUsed = 1; |
// nBytesUsed = 1; |
781 |
} |
} |
782 |
} |
} |
783 |
} |
} |