Changeset 12240 for trunk/FACT++
- Timestamp:
- 10/23/11 14:53:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ratescan.cc
r12239 r12240 200 200 fCounter++; 201 201 202 if (fSeconds>=fSecondsMax || fThresholdMin+fCounter*fThresholdStep>fThresholdMax)202 if (fSeconds>=fSecondsMax) 203 203 { 204 Message("Rate scan stopped due to timeout."); 205 fCounter=-1; 206 return; 207 } 208 209 if (fThresholdMin+fCounter*fThresholdStep>fThresholdMax) 210 { 211 Message("Rate scan finished."); 204 212 fCounter = -1; 205 cout << "The END" << endl; 213 206 214 //DimClient::sendCommandNB("FTM_CONTROL/STOP_RUN", NULL, 0); 207 215 return; … … 264 272 const int32_t data[2] = { -1, fThresholdMin }; 265 273 266 Message("Starting Trigger (FTM)");274 //Message("Starting Trigger (FTM)"); 267 275 //Dim::SendCommand("FTM_CONTROL/SET_PRESCALING", int32_t(20)); 268 276 Dim::SendCommand("FTM_CONTROL/SET_THRESHOLD", data); … … 272 280 fSeconds = -2; 273 281 282 ostringstream msg; 283 msg << "Rate scan from DAC=" << fThresholdMin << " to DAC="; 284 msg << fThresholdMax << " in steps of " << fThresholdStep; 285 msg << " started."; 286 Message(msg); 287 274 288 return GetCurrentState(); 275 289 } … … 278 292 { 279 293 fCounter = -1; 294 Message("Rate scan manually stopped."); 280 295 281 296 //if (fStatusFTM.second==FTM::kTakingData)
Note:
See TracChangeset
for help on using the changeset viewer.