A panel of reviewers, usually all from DoD entities and/or national laboratories, rates all grants and ranks them with respect to fixed criteria
The BAA specifies the criteria of review
The PM funds some, but not all, of the selectables as his/her funding allows and based on program needs