Changeset 11824 for trunk/FACT++/src


Ignore:
Timestamp:
08/06/11 18:34:39 (14 years ago)
Author:
tbretz
Message:
Display some statistics in the FAD tab with th ehelp of current-run/next-run from the fadctrl -- in the way the users gets the most important infomration of what is going on.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r11819 r11824  
    416416    void LoadDrsCalibration(const char *fname)
    417417    {
    418         DataCalib::ReadFits(fname, fMsg);
     418        if (!DataCalib::ReadFits(fname, fMsg))
     419            return;
     420        fMsg.Info("Successfully loaded DRS calibration from "+string(fname));
     421        DataCalib::Update(fDimDrsCalibration);
    419422    }
    420423
     
    813816    }
    814817
     818    uint32_t GetRunNumber() const
     819    {
     820        return fRunNumber;
     821    }
     822
    815823    void gotNewRun(int runnr, PEVNT_HEADER */*headers*/)
    816824    {
  • trunk/FACT++/src/fadctrl.cc

    r11817 r11824  
    11231123        // (Note that we might need another step which only checks if the continous trigger
    11241124        //  is wwitched off, too)
    1125         fDimStartRun.Update(int64_t(runno));
     1125        const int64_t runs[2] = { runno, runno+1 };
     1126        fDimStartRun.Update(runs);
    11261127
    11271128        T::Info(" ==> TODO: Insert/update run configuration in database!");
     
    15441545        T(out, "FAD_CONTROL"), EventBuilderWrapper(*static_cast<MessageImp*>(this)), ba::io_service::work(static_cast<ba::io_service&>(*this)),
    15451546        fStatus1(40), fStatus2(40), fStatusC(40), fStatusT(false),
    1546         fDimStartRun("FAD_CONTROL/START_RUN", "X:1", ""),
     1547        fDimStartRun("FAD_CONTROL/START_RUN", "X:2", ""),
    15471548        fDimConnection("FAD_CONTROL/CONNECTIONS", "C:40;C:1", "")
    15481549    {
     
    15541555        // deletion and creation of threads and more.
    15551556
    1556         fDimStartRun.Update(int64_t(-1));
     1557        const int64_t runs[2] = { -1, GetRunNumber() };
     1558        fDimStartRun.Update(runs);
    15571559
    15581560        // State names
Note: See TracChangeset for help on using the changeset viewer.