9 : nData_(conf.getParameter<
std::
vector<unsigned>>(
"NData")) {
17 const std::vector<l1t::HGCalTriggerCell>& trigCellVecInput,
18 std::vector<l1t::HGCalTriggerCell>& trigCellVecOutput,
19 std::vector<l1t::HGCalTriggerCell>& trigCellVecNotSelected) {
20 trigCellVecOutput = trigCellVecInput;
21 trigCellVecNotSelected.resize(0);
24 trigCellVecOutput.begin(),
25 trigCellVecOutput.end(),
28 uint32_t nLinksIndex = 0;
30 throw cms::Exception(
"BadConfig") <<
"BestChoice: Nlinks=" << nLinks
31 <<
" larger then the max supported number of links " <<
kLinkMask_;
35 unsigned nData =
nData_.at(nLinksIndex);
38 <<
" NWafers=" << nWafers <<
" and NLinks=" << nLinks;
41 if (trigCellVecOutput.size() > nData) {
43 std::move(trigCellVecOutput.begin() + nData, trigCellVecOutput.end(), std::back_inserter(trigCellVecNotSelected));
45 trigCellVecOutput.resize(nData);
static constexpr unsigned kNDataSize_
std::vector< unsigned > nData_
static constexpr uint32_t kLinkMask_
void select(unsigned nLinks, unsigned nWafers, const std::vector< l1t::HGCalTriggerCell > &trigCellVecInput, std::vector< l1t::HGCalTriggerCell > &trigCellVecOutput, std::vector< l1t::HGCalTriggerCell > &trigCellVecNotSelected)
static constexpr uint32_t kWaferMask_
HGCalConcentratorBestChoiceImpl(const edm::ParameterSet &conf)
static constexpr uint32_t kWaferOffset_