Changeset 11745
- Timestamp:
- 08/02/11 20:23:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DrsCalib.h
r11717 r11745 169 169 static void Apply(int16_t *val, const int16_t *start, uint32_t roi, 170 170 const int32_t *offset, const uint32_t scaleabs, 171 const int32_t *gain, const uint32_t scalegain, 172 const int32_t *trgoff, const uint32_t scalerel) 173 { 171 const int64_t *gain, const uint32_t scalegain, 172 const int64_t *trgoff, const uint32_t scalerel) 173 { 174 return ;// "FIXME: scalegain exceeds valid range..." 174 175 for (size_t ch=0; ch<1440; ch++) 175 176 { … … 194 195 ; 195 196 197 // The gain value is multiplied by fNumOffset and fNumGain 196 198 const int64_t div = int64_t(gain[abs])*scaleabs*scalerel; 197 198 199 val[rel] = (v*scalegain)/div; 199 }200 } 200 201 } 201 202 } … … 203 204 static void Apply(float *vec, const int16_t *val, const int16_t *start, uint32_t roi, 204 205 const int32_t *offset, const uint32_t scaleabs, 205 const int 32_t *gain, const uint32_t scalegain,206 const int 32_t *trgoff, const uint32_t scalerel)206 const int64_t *gain, const uint64_t scalegain, 207 const int64_t *trgoff, const uint32_t scalerel) 207 208 { 208 209 for (size_t ch=0; ch<1440; ch++) … … 233 234 const int64_t div = int64_t(gain[abs])*scaleabs*scalerel; 234 235 235 vec[rel] = double(v *scalegain)/div;236 vec[rel] = double(v)*scalegain/div; 236 237 } 237 238 }
Note:
See TracChangeset
for help on using the changeset viewer.