Changeset 16966
- Timestamp:
- 07/19/13 12:50:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/PixelMap.h
r15268 r16966 202 202 float Vnom; /// Channel bias voltage nominal 203 203 float Voff; /// Channel bias voltage offset 204 float Vslope; /// Channel bias voltage slope 204 205 205 206 BiasMapEntry() : hv_board(-1) { } … … 248 249 str >> entry.Vnom; 249 250 str >> entry.Voff; 251 str >> entry.Vslope; 250 252 251 253 #ifdef __EXCEPTIONS … … 343 345 { 344 346 const int ch = it->hv_board*32 + it->hv_channel; 345 volt[ch] = -it->Voff;347 volt[ch] = it->Voff; 346 348 } 347 349 348 350 return volt; 349 351 } 352 353 std::vector<float> Vslope() const 354 { 355 std::vector<float> slope(416); 356 357 for (std::vector<BiasMapEntry>::const_iterator it=begin(); it!=end(); it++) 358 { 359 const int ch = it->hv_board*32 + it->hv_channel; 360 slope[ch] = it->Vslope; 361 } 362 363 return slope; 364 } 350 365 }; 351 366
Note:
See TracChangeset
for help on using the changeset viewer.