Changeset 11687 for trunk/FACT++
- Timestamp:
- 07/28/11 14:20:31 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DrsCalib.h
r11683 r11687 239 239 } 240 240 241 /* 241 242 static void Apply(float *vec, const int16_t *val, const int16_t *start, uint32_t roi) 242 243 { … … 255 256 vec[pos+i] = float(val[pos+i])/2; 256 257 } 257 } 258 }*/ 258 259 259 260 pair<vector<double>,vector<double> > GetSampleStats() const -
trunk/FACT++/src/EventBuilderWrapper.h
r11684 r11687 136 136 137 137 public: 138 DataFileCalib(uint32_t id, MessageImp &imp) : DataFileImp(id, imp) { } 138 DataFileCalib(uint32_t id, MessageImp &imp) : DataFileImp(id, imp) 139 { 140 } 139 141 140 142 static void Restart() { fStep = 0; } … … 169 171 if (fStep==0) 170 172 { 171 fGain.assign(1440*1024, 1); 173 fOffset.assign(1440*1024, 0); 174 fGain.assign (1440*1024, 2); 172 175 fTrgOff.assign(1440*1024, 0); 173 176 177 fNumOffset = 1; 174 178 fNumGain = 1; 175 179 fNumTrgOff = 1; … … 222 226 static void Apply(int16_t *val, const int16_t *start, uint32_t roi) 223 227 { 224 if (fStep==0)225 return;226 227 228 CalibData::Apply(val, start, roi, 228 229 fOffset.data(), fNumOffset, … … 233 234 static void Apply(float *vec, int16_t *val, const int16_t *start, uint32_t roi) 234 235 { 235 if (fStep==0) 236 CalibData::Apply(vec, val, start, roi); 237 else 238 CalibData::Apply(vec, val, start, roi, 239 fOffset.data(), fNumOffset, 240 fGain.data(), fNumGain, 241 fTrgOff.data(), fNumTrgOff); 236 CalibData::Apply(vec, val, start, roi, 237 fOffset.data(), fNumOffset, 238 fGain.data(), fNumGain, 239 fTrgOff.data(), fNumTrgOff); 242 240 } 243 241 }; … … 245 243 int DataFileCalib::fStep = 0; 246 244 247 vector<int32_t> DataFileCalib::fOffset ;248 vector<int32_t> DataFileCalib::fGain ;249 vector<int32_t> DataFileCalib::fTrgOff ;250 251 uint32_t DataFileCalib::fNumOffset = 0;252 uint32_t DataFileCalib::fNumGain = 0;253 uint32_t DataFileCalib::fNumTrgOff = 0;245 vector<int32_t> DataFileCalib::fOffset(1440*1024, 0); 246 vector<int32_t> DataFileCalib::fGain (1440*1024, 2); 247 vector<int32_t> DataFileCalib::fTrgOff(1440*1024, 0); 248 249 uint32_t DataFileCalib::fNumOffset = 1; 250 uint32_t DataFileCalib::fNumGain = 1; 251 uint32_t DataFileCalib::fNumTrgOff = 1; 254 252 255 253
Note:
See TracChangeset
for help on using the changeset viewer.