Changeset 14509 for trunk/FACT++/src
- Timestamp:
- 10/22/12 22:40:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r14508 r14509 1368 1368 } 1369 1369 1370 int Handle McpStateChange()1370 int HandleFtmControlStateChange() 1371 1371 { 1372 1372 const int32_t &last = fDimFtmControl.last.second; 1373 1373 const int32_t &state = fDimFtmControl.state(); 1374 1374 1375 // If a new run has be n started ensure that the counter1375 // If a new run has been started ensure that the counter 1376 1376 // is reset. The reset in HandleFtmTriggerRates might 1377 1377 // arrive only after the run was started. 1378 if (last <MCP::State::kTriggerOn && state>=MCP::State::kTriggerOn)1378 if (last!=FTM::State::kTriggerOn && state==MCP::State::kTriggerOn) 1379 1379 fFtmControlTriggerRateTooLow = -1; 1380 1380 … … 2304 2304 "Sensor temperature exceeds outside temperature by more than 8°C"); 2305 2305 2306 newerr |= SetError(fFtmControlTriggerRateTooLow>1 && fDimMcp.state()==MCP::State::kTakingData, 2307 "Trigger rate below 1Hz during data taking"); 2308 2309 newerr |= SetError(fDimFtmControl.state()>FTM::State::kDisconnected&&(fFtmControlState&FTM::kFtmLocked)==0, 2306 newerr |= SetError(fFtmControlTriggerRateTooLow>1 && fDimFtmControl.state()==FTM::State::kTriggerOn, 2307 "Trigger rate below 1Hz while trigger switched on"); 2308 2309 newerr |= SetError((fDimFtmControl.state()==FTM::State::kTriggerOn||fDimFtmControl.state()==FTM::State::kIdle) && 2310 (fFtmControlState&FTM::kFtmLocked)==0, 2310 2311 "FTM - clock conditioner not locked!"); 2311 2312 … … 2811 2812 2812 2813 fDimFscControl.SetCallback(bind(&StateMachineSmartFACT::HandleFscControlStateChange, this, placeholders::_1)); 2814 fDimFtmControl.SetCallback(bind(&StateMachineSmartFACT::HandleFtmControlStateChange, this)); 2813 2815 fDimDriveControl.SetCallback(bind(&StateMachineSmartFACT::HandleDriveControlStateChange, this, placeholders::_1)); 2814 fDimMcp.SetCallback(bind(&StateMachineSmartFACT::HandleMcpStateChange, this));2815 2816 fDimControl.SetCallback(bind(&StateMachineSmartFACT::HandleControlStateChange, this, placeholders::_1)); 2816 2817 fDimControl.AddCallback("dotest.dim", bind(&StateMachineSmartFACT::HandleDoTest, this, placeholders::_1));
Note:
See TracChangeset
for help on using the changeset viewer.