Changeset 13746 for trunk/FACT++


Ignore:
Timestamp:
05/16/12 09:06:27 (13 years ago)
Author:
tbretz
Message:
Added some more informal output, added teh fStatc again - I don't understand why I removed that.
File:
1 edited

Legend:

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

    r13718 r13746  
    5959    DimStampedInfo fFTM;
    6060    DimStampedInfo fRates;
    61 //    DimStampedInfo fStatic;
     61    DimStampedInfo fStatic;
    6262    DimStampedInfo fRateScan;
    6363
     
    371371
    372372        static vector<uint8_t> counter(160);
    373 /*
    374373        if (curr==&fStatic)
    375374        {
     
    385384            return;
    386385        }
    387 */
     386
    388387        if (curr==&fRates)
    389388        {
     
    413412    {
    414413        if (!fTriggerOn)
     414        {
     415            Info("Trigger not switched on... CALIBRATE command ignored.");
    415416            return kStateGlobalThresholdSet;
     417        }
    416418
    417419        const int32_t val[2] = { -1, fThresholdReference };
     
    424426        fEnabled      = true;
    425427        fCounter      = 0;
     428
     429        ostringstream out;
     430        out << "Rate calibration started at a threshold of " << fThresholdReference << " with a target rate of " << fTargetRate << " Hz";
     431        Info(out);
    426432
    427433        return kStateSettingGlobalThreshold;
     
    491497            Out() << "V" << fStatusDim.second/100 << 'r' << fStatusDim.second%100 << endl;
    492498
    493         PrintState(fStatusFTM,  "FTM_CONTROL");
     499        PrintState(fStatusRS,  "RATE_SCAN");
     500        PrintState(fStatusFTM, "FTM_CONTROL");
    494501
    495502        return GetCurrentState();
     
    550557        fFTM("FTM_CONTROL/STATE",       (void*)NULL, 0, this),
    551558        fRates("FTM_CONTROL/TRIGGER_RATES", (void*)NULL, 0, this),
     559        fStatic("FTM_CONTROL/STATIC_DATA", (void*)NULL, 0, this),
    552560        fRateScan("RATE_SCAN/STATE", (void*)NULL, 0, this)/*,
    553         fStatic("FTM_CONTROL/STATIC_DATA", (void*)NULL, 0, this)/*,
    554561        fDimData("RATE_SCAN/DATA", "I:1;F:1;F:1;F:1;F:40;F:160", ""),
    555562        fDimProc("RATE_SCAN/PROCESS_DATA", "I:1;I:1;I:1",
Note: See TracChangeset for help on using the changeset viewer.