Changeset 11839


Ignore:
Timestamp:
08/07/11 18:44:42 (13 years ago)
Author:
tbretz
Message:
Changed START_RUN service to provide the current run-number (whethe ropen or not) and the next run-number.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fadctrl.cc

    r11824 r11839  
    10851085        }
    10861086
    1087         const uint32_t runno = StartNewRun(evt.Get<uint64_t>(), evt.Get<uint64_t>(8), fTargetConfig->second);
     1087        const uint32_t runno = StartNewRun(evt.Get<uint64_t>(), evt.Get<uint64_t>(8), *fTargetConfig);
    10881088
    10891089        ostringstream str;
     
    11351135    int ResetConfig()
    11361136    {
     1137        const int64_t runs[2] = { -1, GetRunNumber() };
     1138        fDimStartRun.Update(runs);
     1139
    11371140        return FAD::kConnected;
     1141    }
     1142
     1143    void CloseRun(uint32_t runid)
     1144    {
     1145        if (runid==GetRunNumber()-1)
     1146            ResetConfig();
    11381147    }
    11391148
     
    15371546        stat[40] = thread;
    15381547
    1539         fDimConnection.setData(stat.data(), 41);
    1540         fDimConnection.updateService();
     1548        fDimConnection.Update(stat);
    15411549    }
    15421550
     
    15541562        // previous state but this might introduce some overhead of
    15551563        // deletion and creation of threads and more.
    1556 
    1557         const int64_t runs[2] = { -1, GetRunNumber() };
    1558         fDimStartRun.Update(runs);
     1564        ResetConfig();
    15591565
    15601566        // State names
Note: See TracChangeset for help on using the changeset viewer.