Changeset 10785
- Timestamp:
- 05/23/11 15:15:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftmctrl.cc
r10780 r10785 790 790 } 791 791 792 bool SetTriggerSeq(const uint 8_t d[3])792 bool SetTriggerSeq(const uint16_t d[3]) 793 793 { 794 794 const uint16_t oldset = fStaticData.fGeneralSettings; … … 1240 1240 1241 1241 if (!fFTM.SetTriggerDelay(evt.GetInt())) 1242 T::Warn("SetTriggerDealy - 1242 T::Warn("SetTriggerDealy - Value out of range."); 1243 1243 1244 1244 return T::GetCurrentState(); … … 1251 1251 1252 1252 if (!fFTM.SetTimeMarkerDelay(evt.GetInt())) 1253 T::Warn("SetTimeMarkerDelay - 1253 T::Warn("SetTimeMarkerDelay - Value out of range."); 1254 1254 1255 1255 return T::GetCurrentState(); … … 1262 1262 1263 1263 if (!fFTM.SetPrescaling(evt.GetInt()-1)) 1264 T::Warn("SetPrescaling - 1264 T::Warn("SetPrescaling - Value out of range."); 1265 1265 1266 1266 return T::GetCurrentState(); … … 1269 1269 int SetTriggerSeq(const EventImp &evt) 1270 1270 { 1271 if (!CheckEventSize(evt.GetSize(), "SetTriggerSeq", 3))1272 return T::kSM_FatalError; 1273 1274 const uint 8_t *data = reinterpret_cast<const uint8_t*>(evt.GetData());1271 if (!CheckEventSize(evt.GetSize(), "SetTriggerSeq", 6)) 1272 return T::kSM_FatalError; 1273 1274 const uint16_t *data = reinterpret_cast<const uint16_t*>(evt.GetData()); 1275 1275 1276 1276 if (!fFTM.SetTriggerSeq(data)) 1277 T::Warn("SetTriggerSeq - 1277 T::Warn("SetTriggerSeq - Value out of range."); 1278 1278 1279 1279 return T::GetCurrentState(); … … 1286 1286 1287 1287 if (!fFTM.SetDeadTime(evt.GetInt())) 1288 T::Warn("SetDeadTime - 1288 T::Warn("SetDeadTime - Value out of range."); 1289 1289 1290 1290 return T::GetCurrentState(); … … 1573 1573 "|Enable[bool]:Enable clock conditioner (yes/no)"); 1574 1574 1575 AddEvent("SET_TRIGGER_SEQUENCE", " C:3", kStateIdle)1575 AddEvent("SET_TRIGGER_SEQUENCE", "S:3", kStateIdle) 1576 1576 (boost::bind(&StateMachineFTM::SetTriggerSeq, this, _1)) 1577 1577 ("Setup the sequence of artificial triggers produced by the FTM" 1578 "|Ped[ int]:number of pedestal triggers in a row"1579 "|LP int[int]:number of triggers of the internal light pulser"1580 "|LP ext[int]:number of triggers of the external light pulser");1578 "|Ped[short]:number of pedestal triggers in a row" 1579 "|LPext[short]:number of triggers of the external light pulser" 1580 "|LPint[short]:number of triggers of the internal light pulser"); 1581 1581 1582 1582 AddEvent("SET_TRIGGER_MULTIPLICITY", "S:1", kStateIdle)
Note:
See TracChangeset
for help on using the changeset viewer.