Changeset 12240 for trunk/FACT++


Ignore:
Timestamp:
10/23/11 14:53:12 (13 years ago)
Author:
tbretz
Message:
Some imporved output.
File:
1 edited

Legend:

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

    r12239 r12240  
    200200            fCounter++;
    201201
    202             if (fSeconds>=fSecondsMax || fThresholdMin+fCounter*fThresholdStep>fThresholdMax)
     202            if (fSeconds>=fSecondsMax)
    203203            {
     204                Message("Rate scan stopped due to timeout.");
     205                fCounter=-1;
     206                return;
     207            }
     208
     209            if (fThresholdMin+fCounter*fThresholdStep>fThresholdMax)
     210            {
     211                Message("Rate scan finished.");
    204212                fCounter = -1;
    205                 cout << "The END" << endl;
     213
    206214                //DimClient::sendCommandNB("FTM_CONTROL/STOP_RUN", NULL, 0);
    207215                return;
     
    264272        const int32_t data[2] = { -1, fThresholdMin };
    265273
    266         Message("Starting Trigger (FTM)");
     274        //Message("Starting Trigger (FTM)");
    267275        //Dim::SendCommand("FTM_CONTROL/SET_PRESCALING", int32_t(20));
    268276        Dim::SendCommand("FTM_CONTROL/SET_THRESHOLD", data);
     
    272280        fSeconds = -2;
    273281
     282        ostringstream msg;
     283        msg << "Rate scan from DAC=" << fThresholdMin << " to DAC=";
     284        msg << fThresholdMax << " in steps of " << fThresholdStep;
     285        msg << " started.";
     286        Message(msg);
     287
    274288        return GetCurrentState();
    275289    }
     
    278292    {
    279293        fCounter = -1;
     294        Message("Rate scan manually stopped.");
    280295
    281296        //if (fStatusFTM.second==FTM::kTakingData)
Note: See TracChangeset for help on using the changeset viewer.