Changeset 14507 for trunk/FACT++/src
- Timestamp:
- 10/22/12 22:09:51 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r14502 r14507 1378 1378 fFtmControlState = d.GetQoS(); 1379 1379 1380 const float *crate = d.Ptr<float>(20); // Camera rate1380 const FTM::DimTriggerRates &dim = d.Ref<FTM::DimTriggerRates>(); 1381 1381 1382 1382 // New run started 1383 if ( *crate<0)1383 if (dim.fTriggerRate<0 || dim.fElapsedTime<=0) 1384 1384 { 1385 1385 fFtmControlTriggerRateTooLow = -1; … … 1391 1391 // by the MCP. Hence, we get a warning. So we have to require 1392 1392 // two consecutive low rates. 1393 if ( *crate<1)1393 if (dim.fTriggerRate<1) 1394 1394 fFtmControlTriggerRateTooLow++; 1395 1395 else 1396 1396 fFtmControlTriggerRateTooLow=0; 1397 1397 1398 const float *brates = crate + 1; // Board rate1399 const float *prates = brates+40; // Patch rate1398 const float *brates = dim.fBoardRate; // Board rate 1399 const float *prates = dim.fPatchRate; // Patch rate 1400 1400 1401 1401 // Store a history of the last 60 entries 1402 fFtmControlTriggerRateHist.push_back( *crate);1402 fFtmControlTriggerRateHist.push_back(dim.fTriggerRate); 1403 1403 if (fFtmControlTriggerRateHist.size()>300) 1404 1404 fFtmControlTriggerRateHist.pop_front(); … … 1416 1416 out << setprecision(3); 1417 1417 out << d.GetJavaDate() << '\n'; 1418 out << HTML::kWhite << '\t' << *crate << '\n';1418 out << HTML::kWhite << '\t' << dim.fTriggerRate << '\n'; 1419 1419 1420 1420 ofstream(fPath+"/trigger.data") << out.str();
Note:
See TracChangeset
for help on using the changeset viewer.