- Timestamp:
- 08/09/11 16:58:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DataCalib.cc
r11833 r11864 175 175 for (int i=0; i<1024*1440; i++) 176 176 { 177 178 177 fOffset[i] = fNumOffset *256*fStats[i+1024*1440*0+3]/125; 179 178 fGain[i] = fNumOffset*fNumGain *256*fStats[i+1024*1440*2+3]/125; … … 186 185 //for (int i=0; i<1024*1440; i++) 187 186 // fGain[i] *= 65536; 188 fNumGain *= 1953125; 189 for (int i=0; i<1024*1440; i++) 190 fGain[i] *= 1024; 187 if (fStep==0) 188 { 189 for (int i=0; i<1024*1440; i++) 190 fGain[i] = fNumOffset*4096; 191 } 192 else 193 { 194 fNumGain *= 1953125; 195 for (int i=0; i<1024*1440; i++) 196 fGain[i] *= 1024; 197 } 191 198 192 199 return true; … … 270 277 fNumOffset = fNumEntries; 271 278 279 for (int i=0; i<1024*1440; i++) 280 fGain[i] = 4096*fNumOffset; 281 272 282 // Scale ADC data from 12bit to 2000mV 273 283 GetSampleStats(fStats.data()+3, 2000./4096);
Note:
See TracChangeset
for help on using the changeset viewer.