Changeset 11758 for trunk/FACT++/src/EventBuilderWrapper.h
- Timestamp:
- 08/03/11 18:17:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r11747 r11758 93 93 DimDescribedService fDimRuns; 94 94 DimDescribedService fDimEvents; 95 DimDescribedService fDimRawData; 95 96 DimDescribedService fDimEventData; 96 97 DimDescribedService fDimFwVersion; … … 148 149 fDimRuns ("FAD_CONTROL/RUNS", "I:5;C", ""), 149 150 fDimEvents ("FAD_CONTROL/EVENTS", "I:4", ""), 150 fDimEventData ("FAD_CONTROL/EVENT_DATA", "S:1;I:1;S:1;I:1;I:2;I:40;S:1440;S:160;F", ""), 151 fDimRawData ("FAD_CONTROL/RAW_DATA", "S:1;I:1;S:1;I:1;I:2;I:40;S:1440;S:160;F", ""), 152 fDimEventData ("FAD_CONTROL/EVENT_DATA", "F:1440;F:1440;F:1440;F:1440", ""), 151 153 fDimFwVersion ("FAD_CONTROL/FIRMWARE_VERSION", "F:42", ""), 152 154 fDimRunNumber ("FAD_CONTROL/RUN_NUMBER", "I:42", ""), … … 747 749 const size_t sz = sizeof(EVENT)+event->Roi*2*1440; 748 750 749 // Copy event header750 751 vector<char> data(sz+event->Roi*2*1440); 751 752 memcpy(data.data(), event, sizeof(EVENT)); 752 753 753 DataCalib::Apply(reinterpret_cast<float*>(data.data()+sizeof(EVENT)), 754 event->Adc_Data, event->StartPix, event->Roi); 755 756 fDimEventData.Update(data); 754 float *vec = reinterpret_cast<float*>(data.data()+sizeof(EVENT)); 755 756 DataCalib::Apply(vec, event->Adc_Data, event->StartPix, event->Roi); 757 fDimRawData.Update(data); 758 759 vector<float> data2(1440*4); // Mean, RMS, Max, Pos 760 CalibData::GetPixelStats(data2.data(), vec, event->Roi); 761 762 fDimEventData.Update(data2); 763 764 765 757 766 758 767 return 0; … … 1225 1234 return 100; 1226 1235 } 1236 1227 1237 } 1228 1238
Note:
See TracChangeset
for help on using the changeset viewer.