Changeset 12268


Ignore:
Timestamp:
10/25/11 19:49:40 (13 years ago)
Author:
tbretz
Message:
Fixed the output in the txt-file.
File:
1 edited

Legend:

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

    r12243 r12268  
    260260        fThresholdStep = evt.Get<uint32_t>(8);
    261261
     262        const Time now;
     263
    262264
    263265        ofstream fout("ratescan.txt", ios::app);
    264         fout << "# ----- " << Time() << " -----\n";
     266        fout << "# ----- " << now << " -----\n";
    265267        fout << "# Command: " << fCommand << '\n';
    266268        fout << "# Reference: ";
    267269        switch (fReference)
    268270        {
    269         case kCamera: fout << "Camera";
    270         case kBoard:  fout << "Board #" << fReferenceIdx;
    271         case kPatch:  fout << "Patch #" << fReferenceIdx;
     271        case kCamera: fout << "Camera"; break;
     272        case kBoard:  fout << "Board #" << fReferenceIdx; break;
     273        case kPatch:  fout << "Patch #" << fReferenceIdx; break;
    272274        }
    273275        fout << '\n';
     
    287289
    288290        ostringstream msg;
    289         msg << "Rate scan from DAC=" << fThresholdMin << " to DAC=";
     291        msg << "Rate scan " << now << " from " << fThresholdMin << " to ";
    290292        msg << fThresholdMax << " in steps of " << fThresholdStep;
    291293        msg << " started.";
Note: See TracChangeset for help on using the changeset viewer.