Changeset 11324


Ignore:
Timestamp:
07/10/11 17:05:36 (13 years ago)
Author:
tbretz
Message:
Updated logging when openeing and closing a file; fixed format of STATISTICS1; added fDimWriteStats
File:
1 edited

Legend:

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

    r11295 r11324  
    686686#endif
    687687
     688#include "DimWriteStatistics.h"
     689
    688690class EventBuilderWrapper
    689691{
     
    736738    uint32_t fNumEvts[4];
    737739
     740    DimWriteStatistics  fDimWriteStats;
    738741    DimDescribedService fDimRuns;
    739742    DimDescribedService fDimEvents;
     
    785788    EventBuilderWrapper(MessageImp &imp) : fMsg(imp),
    786789        fFileFormat(kNone), fMaxRun(0), fLastOpened(0), fLastClosed(0),
     790        fDimWriteStats  ("FAD_CONTROL", imp),
    787791        fDimRuns        ("FAD_CONTROL/RUNS",             "I:5;C", ""),
    788792        fDimEvents      ("FAD_CONTROL/EVENTS",           "I:4", ""),
     
    794798        fDimTemperature ("FAD_CONTROL/TEMPERATURE",      "F:82", ""),
    795799        fDimRefClock    ("FAD_CONTROL/REFERENCE_CLOCK",  "I:42", ""),
    796         fDimStatistics1 ("FAD_CONTROL/STATISTICS1",      "I:3;I:5;I:1;X:3;C:676", ""),
     800        fDimStatistics1 ("FAD_CONTROL/STATISTICS1",      "I:3;I:2;X:4;I:3;I:1;I:2;C:40;I:40;I:40;X:40", ""),
    797801        fDimStatistics2 ("FAD_CONTROL/STATISTICS2",      "I:1;I:280;X:40;I:40;I:4;I:4;I:2;I:2;I:3;C:40",  ""),
    798802        fDebugStream(false), fDebugRead(false)
    799    {
     803    {
    800804        if (This)
    801805            throw logic_error("EventBuilderWrapper cannot be instantiated twice.");
     
    10571061        fFiles.push_back(file);
    10581062
     1063        ostringstream str;
     1064        str << "Opened: " << file->GetFileName() << " (" << file->GetRunId() << ")";
     1065        fMsg.Info(str);
     1066
     1067        fDimWriteStats.FileOpened(file->GetFileName());
     1068
    10591069        fLastOpened = runid;
    10601070        UpdateRuns(file->GetFileName());
     
    11181128        }
    11191129
    1120         ostringstream str;
    1121         str << "Closing file for run " << file->GetRunId() << " (" << file << ")" << endl;
    1122         fMsg.Info(str);
    1123 
    11241130        fFiles.erase(it);
    11251131
     
    11341140            // Error message
    11351141        }
     1142
     1143        ostringstream str;
     1144        str << "Closed: " << file->GetFileName() << " (" << file->GetRunId() << ")";
     1145        fMsg.Info(str);
    11361146
    11371147        delete file;
Note: See TracChangeset for help on using the changeset viewer.