Changeset 12470 for trunk/FACT++


Ignore:
Timestamp:
11/09/11 16:42:52 (13 years ago)
Author:
tbretz
Message:
Adapted the length of the fDimDrsCalibration format; added a proper error message if the path for InitRunNumber doesn't exist.
File:
1 edited

Legend:

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

    r12343 r12470  
    162162    {
    163163        if (!DimWriteStatistics::DoesPathExist(path, fMsg))
     164        {
     165            fMsg.Error("Data path "+path+" does not exist!");
    164166            return -1;
     167        }
    165168
    166169        //const fs::path fullPath = fs::system_complete(fs::path(path));
     
    191194        fDimRoi         ("FAD_CONTROL/REGION_OF_INTEREST", "S:2",  ""),
    192195        fDimDac         ("FAD_CONTROL/DAC",                "S:336", ""),
    193         fDimDrsCalibration("FAD_CONTROL/DRS_CALIBRATION",  "I:3;F:1474560;F:1474560;F:1474560;F:1474560;F:1474560;F:1474560", ""),
     196        fDimDrsCalibration("FAD_CONTROL/DRS_CALIBRATION",  "I:3;I:1;F:1474560;F:1474560;F:1474560;F:1474560;F:1474560;F:1474560;F:163840;F:163840", ""),
    194197        fDimStatistics1 ("FAD_CONTROL/STATISTICS1",        "I:3;I:5;X:4;I:3;I:3;I:40;I:1;I:2;C:40;I:40;I:40;X:40", ""),
    195198        fDimStatistics2 ("FAD_CONTROL/STATISTICS2",        "I:1;I:280;X:40;I:40;I:4;I:4;I:2;I:2;I:3;C:40",  ""),
     
    850853        oldt = newt;
    851854
    852         vector<char> data(sizeof(EVENT)+event->Roi*sizeof(float)*1440);
     855        vector<char> data(sizeof(EVENT)+event->Roi*sizeof(float)*(1440+160));
    853856        memcpy(data.data(), event, sizeof(EVENT));
    854857
     
    882885            if (ptr->fStartDelimiter==0)
    883886                continue;
     887
     888            // ptr->fTriggerType = htons(ptr->fTriggerType)
    884889
    885890            if (!ptr->HasTriggerLPext() && !ptr->HasTriggerLPint())
Note: See TracChangeset for help on using the changeset viewer.