Changeset 12313
- Timestamp:
- 10/28/11 19:56:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftmctrl.cc
r12287 r12313 1252 1252 1253 1253 const FTM::DimTriggerRates rates(fHeader, fDynamicData, fStaticData, 1254 rate, tdiff*1e- 7, odiff*1e-7);1254 rate, tdiff*1e-6, odiff*1e-6); 1255 1255 1256 1256 fDimTriggerRates.Update(rates); … … 2397 2397 const vector<uint16_t> pix2 = conf.Vec<uint16_t>("trigger.disable-pixel."+*it); 2398 2398 2399 vector<uint16_t> pat, pix; 2399 const vector<uint16_t> ftu1 = conf.Vec<uint16_t>("disable-ftu.default"); 2400 const vector<uint16_t> ftu2 = conf.Vec<uint16_t>("disable-ftu."+*it); 2401 2402 vector<uint16_t> ftu, pat, pix; 2403 ftu.insert(ftu.end(), ftu1.begin(), ftu1.end()); 2404 ftu.insert(ftu.end(), ftu2.begin(), ftu2.end()); 2400 2405 pat.insert(pat.end(), pat1.begin(), pat1.end()); 2401 2406 pat.insert(pat.end(), pat2.begin(), pat2.end()); … … 2403 2408 pix.insert(pix.end(), pix2.begin(), pix2.end()); 2404 2409 2410 for (vector<uint16_t>::const_iterator ip=ftu.begin(); ip!=ftu.end(); ip++) 2411 { 2412 if (*ip>FTM::StaticData::kMaxPatchIdx) 2413 { 2414 ostringstream str; 2415 str << "disable-ftu.*=" << *ip << " exceeds allowed maximum of " << FTM::StaticData::kMaxPatchIdx << "!"; 2416 T::Error(str); 2417 return 2; 2418 } 2419 data.DisableFTU(*ip); 2420 } 2405 2421 for (vector<uint16_t>::const_iterator ip=pat.begin(); ip!=pat.end(); ip++) 2406 2422 { … … 2412 2428 return 2; 2413 2429 } 2414 data. DisableFTU(*ip);2430 data.EnablePatch(*ip, false); 2415 2431 } 2416 2432 for (vector<uint16_t>::const_iterator ip=pix.begin(); ip!=pix.end(); ip++) … … 2526 2542 ("trigger.threshold.logic.*", var<uint16_t>(), "") 2527 2543 ("ftu-report-interval.*", var<uint16_t>(), "") 2544 ("disable-ftu.*", var<uint16_t>(), "") 2528 2545 ("light-pulser.external.enable-group1.*", var<bool>(), "Enable LED group 1 of external light pulser") 2529 2546 ("light-pulser.external.enable-group2.*", var<bool>(), "Enable LED group 2 of external light pulser")
Note:
See TracChangeset
for help on using the changeset viewer.