Changeset 13554 for trunk/FACT++


Ignore:
Timestamp:
05/03/12 22:51:48 (13 years ago)
Author:
tbretz
Message:
Added an error output if we still miss a connection to a subsystem and somebody tries to start a run.
File:
1 edited

Legend:

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

    r13190 r13554  
    121121            return;
    122122        }
    123 
    124123    }
    125124
     
    234233    int StartRun(const EventImp &evt)
    235234    {
     235        if (fStatusFTM.second==-2)
     236        {
     237            Error("No connection to ftmcontrol (see PRINT).");
     238            return GetCurrentState();
     239        }
     240        if (fStatusFAD.second==-2)
     241        {
     242            Warn("No connection to fadcontrol (see PRINT).");
     243            return GetCurrentState();
     244        }
     245        if (fStatusLog.second==-2)
     246        {
     247            Warn("No connection to datalogger (see PRINT).");
     248            return GetCurrentState();
     249        }
     250        if (fStatusRC.second==-2)
     251        {
     252            Warn("No connection to ratecontrol (see PRINT).");
     253            return GetCurrentState();
     254        }
     255
    236256        fMaxTime   = evt.Get<int64_t>();
    237257        fNumEvents = evt.Get<int64_t>(8);
Note: See TracChangeset for help on using the changeset viewer.