Rev 216 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 216 | Rev 218 | ||
---|---|---|---|
Line 77... | Line 77... | ||
77 | for (int i=0;i<hdr[1]/4/sizeof(unsigned short);i++){ |
77 | for (int i=0;i<hdr[1]/4/sizeof(unsigned short);i++){ |
78 | unsigned short *adc=&buf[i*4]; |
78 | unsigned short *adc=&buf[i*4]; |
79 | sum=0; |
79 | sum=0; |
80 | for (int j=0;j<4;j++){ |
80 | for (int j=0;j<4;j++){ |
81 | a[j]=adc[j]&0xFFF; |
81 | a[j]=adc[j]&0xFFF; |
82 | sum |
82 | //sum+=a[j]; |
83 | hadc[j]->Fill(a[j]); |
83 | hadc[j]->Fill(a[j]); |
84 | b[j]=a[j]-off[j]+10; |
84 | b[j]=a[j]-off[j]+10; |
85 | sum+=b[j]; |
85 | sum+=b[j]; |
86 | } |
86 | } |
87 | hadcsum->Fill(sum); |
87 | hadcsum->Fill(sum); |