Changeset 14507 for trunk/FACT++


Ignore:
Timestamp:
10/22/12 22:09:51 (12 years ago)
Author:
tbretz
Message:
Tried to improve the obsolete wraning about 0-rates.
File:
1 edited

Legend:

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

    r14502 r14507  
    13781378        fFtmControlState = d.GetQoS();
    13791379
    1380         const float *crate = d.Ptr<float>(20); // Camera rate
     1380        const FTM::DimTriggerRates &dim = d.Ref<FTM::DimTriggerRates>();
    13811381
    13821382        // New run started
    1383         if (*crate<0)
     1383        if (dim.fTriggerRate<0 || dim.fElapsedTime<=0)
    13841384        {
    13851385            fFtmControlTriggerRateTooLow = -1;
     
    13911391        // by the MCP. Hence, we get a warning. So we have to require
    13921392        // two consecutive low rates.
    1393         if (*crate<1)
     1393        if (dim.fTriggerRate<1)
    13941394            fFtmControlTriggerRateTooLow++;
    13951395        else
    13961396            fFtmControlTriggerRateTooLow=0;
    13971397
    1398         const float *brates = crate + 1; // Board rate
    1399         const float *prates = brates+40; // Patch rate
     1398        const float *brates = dim.fBoardRate; // Board rate
     1399        const float *prates = dim.fPatchRate; // Patch rate
    14001400
    14011401        // Store a history of the last 60 entries
    1402         fFtmControlTriggerRateHist.push_back(*crate);
     1402        fFtmControlTriggerRateHist.push_back(dim.fTriggerRate);
    14031403        if (fFtmControlTriggerRateHist.size()>300)
    14041404            fFtmControlTriggerRateHist.pop_front();
     
    14161416        out << setprecision(3);
    14171417        out << d.GetJavaDate() << '\n';
    1418         out << HTML::kWhite << '\t' << *crate << '\n';
     1418        out << HTML::kWhite << '\t' << dim.fTriggerRate << '\n';
    14191419
    14201420        ofstream(fPath+"/trigger.data") << out.str();
Note: See TracChangeset for help on using the changeset viewer.