Changeset 14501 for trunk/FACT++/src


Ignore:
Timestamp:
10/22/12 20:10:08 (12 years ago)
Author:
tbretz
Message:
Added warning in case of a not locked clock conditioner.
File:
1 edited

Legend:

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

    r14498 r14501  
    487487    deque<float> fFtmControlTriggerRateHist;
    488488     int32_t     fFtmControlTriggerRateTooLow;
     489    uint32_t     fFtmControlState;
    489490
    490491    float fFtmPatchThresholdMed;
     
    13751376        }
    13761377
     1378        fFtmControlState = d.GetQoS();
     1379
    13771380        const float *crate = d.Ptr<float>(20); // Camera rate
    13781381
     
    14431446        if (!CheckDataSize(d, "FtmControl:StaticData", sizeof(FTM::DimStaticData)))
    14441447            return GetCurrentState();
     1448
     1449        fFtmControlState = d.GetQoS();
    14451450
    14461451        const FTM::DimStaticData &dat = d.Ref<FTM::DimStaticData>();
     
    22862291        newerr |= SetError(fFtmControlTriggerRateTooLow>2 && fDimMcp.state()==MCP::State::kTakingData,
    22872292                           "Trigger rate below 1Hz during data taking");
     2293
     2294        newerr |= SetError((fFtmControlState&FTM::kFtmLocked)==0,
     2295                           "FTM - clock conditioner not locked!");
    22882296
    22892297        newerr |= SetError(fDimTimeCheck.state()==1,
     
    27482756        fFadControlNumEvents(0),
    27492757        fFadControlDrsRuns(3),
     2758        fFtmControlState(FTM::kFtmLocked),
    27502759        fRateScanDataId(0),
    27512760        fRateScanBoard(0),
Note: See TracChangeset for help on using the changeset viewer.