Changeset 11619 for trunk/FACT++


Ignore:
Timestamp:
07/26/11 15:32:06 (14 years ago)
Author:
tbretz
Message:
Added more log output.
File:
1 edited

Legend:

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

    r11587 r11619  
    174174    int StopRun(const EventImp &)
    175175    {
    176         if (fStatusFTM.second==FTM::kTakingData)
    177             Dim::SendCommand("FTM_CONTROL/STOP_RUN");
     176        if (fStatusFTM.second==FTM::kTakingData)
     177        {
     178            Message("Stopping FTM");
     179            Dim::SendCommand("FTM_CONTROL/STOP_RUN");
     180        }
    178181
    179182        // FIXME: Do step 2 only when FTM is stopped
     
    181184        {
    182185            //Dim::SendCommand("FAD_CONTROL/ENABLE_TRIGGER_LINE",      bool(false));
     186            Message("Stopping FAD");
    183187            Dim::SendCommand("FAD_CONTROL/ENABLE_CONTINOUS_TRIGGER", bool(false));
    184188        }
     
    190194    {
    191195        fRunType = "";
     196        Message("Resetiing configuration states of FAD and FTM");
    192197        Dim::SendCommand("FTM_CONTROL/RESET_CONFIGURE");
    193198        Dim::SendCommand("FAD_CONTROL/RESET_CONFIGURE");
     
    260265        strcpy(val->type, fRunType.c_str());
    261266
     267        Message("Configuring FAD");
    262268        Dim::SendCommand("FAD_CONTROL/CONFIGURE", buf, len);
    263269
     
    283289            if (GetCurrentState()==kStateConfiguring1)
    284290            {
    285                 if (fStatusLog.second!=30/*kSM_WaitForRun*/)
    286                     Dim::SendCommand("DATA_LOGGER/WAIT_FOR_RUN_NUMBER");
     291                if (fStatusLog.second!=30/*kSM_WaitForRun*/)
     292                {
     293                    Message("Starting datalogger");
     294                    Dim::SendCommand("DATA_LOGGER/WAIT_FOR_RUN_NUMBER");
     295                }
     296                Message("Configuring Trigger (FTM)");
    287297                Dim::SendCommand("FTM_CONTROL/CONFIGURE", fRunType);
    288298                return kStateConfiguring2;
Note: See TracChangeset for help on using the changeset viewer.