Changeset 19716 for trunk/FACT++/src
- Timestamp:
- 10/04/19 20:47:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/scheduler.cc
r19658 r19716 426 426 int16_t key { -1 }; 427 427 bool isToO { false }; 428 bool satellite; { false }; 428 429 }; 429 430 … … 458 459 " fSourceName,\n" 459 460 " ADIST(fDeclination, fRightAscension*15, "+to_string(dec)+", "+to_string(ra)+") AS Dist,\n" 460 " fIsToO\n" 461 " fIsToO,\n" 462 " fFollowSatellite\n" 461 463 "FROM Source\n" 462 464 "WHERE fSourceTypeKEY=1\n" … … 482 484 source.key = res1[0]["fSourceKey"]; 483 485 source.isToO = res1[0]["fIsToO"]; 486 source.satellite= res1[0]["fFollowSatellite"]; 484 487 485 488 Warn("Sources closer than "+Tools::Form("%.2f", check_dist)+"\u00b0 detected."); … … 672 675 // For non prioritized sources we require a threshold <3 673 676 // and for prioritized sources a threshold <10 674 const set<uint16_t> prioritized_sources = { 1, 2, 7 };675 676 const bool prio = prioritized_sources.find(source.key)!=prioritized_sources.end();677 677 678 678 // Special check for the threshold. Threshold condition atm only 679 679 // applies for pointings and is different for prioritized sources 680 if ((check.threshold>3 && ! prio) || !check.valid_threshold)680 if ((check.threshold>3 && !source.satellite) || !check.valid_threshold) 681 681 { 682 682 Warn(Tools::Form("Relative threshold [%6.2f] too high... skipping.", check.threshold));
Note:
See TracChangeset
for help on using the changeset viewer.