Ignore:
Timestamp:
08/03/11 18:17:00 (13 years ago)
Author:
tbretz
Message:
Renamed EVENT_DATA to RAW_EVENT; added new EVENT_DATA
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventBuilderWrapper.h

    r11747 r11758  
    9393    DimDescribedService fDimRuns;
    9494    DimDescribedService fDimEvents;
     95    DimDescribedService fDimRawData;
    9596    DimDescribedService fDimEventData;
    9697    DimDescribedService fDimFwVersion;
     
    148149        fDimRuns        ("FAD_CONTROL/RUNS",               "I:5;C", ""),
    149150        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", ""),
    151153        fDimFwVersion   ("FAD_CONTROL/FIRMWARE_VERSION",   "F:42", ""),
    152154        fDimRunNumber   ("FAD_CONTROL/RUN_NUMBER",         "I:42", ""),
     
    747749        const size_t sz = sizeof(EVENT)+event->Roi*2*1440;
    748750
    749         // Copy event header
    750751        vector<char> data(sz+event->Roi*2*1440);
    751752        memcpy(data.data(), event, sizeof(EVENT));
    752753
    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
    757766
    758767        return 0;
     
    12251234        return 100;
    12261235    }
     1236
    12271237}
    12281238
Note: See TracChangeset for help on using the changeset viewer.