11 if (selectionType ==
"thresholdSelect") {
14 }
else if (selectionType ==
"bestChoiceSelect") {
17 }
else if (selectionType ==
"superTriggerCellSelect") {
22 <<
"Unknown type of concentrator selection '" << selectionType <<
"'";
33 std::unordered_map<uint32_t, std::vector<l1t::HGCalTriggerCell>> tc_modules;
34 for (
const auto& trigCell : collInput) {
36 tc_modules[module].push_back(trigCell);
41 for (
const auto& module_trigcell : tc_modules) {
42 std::vector<l1t::HGCalTriggerCell> trigCellVecOutput;
57 for (
const auto& trigCell : trigCellVecOutput) {
58 triggerCellCollOutput.
push_back(0, trigCell);
T getParameter(std::string const &) const
const HGCalTriggerGeometryBase * geometry_
HGCalConcentratorProcessorSelection(const edm::ParameterSet &conf)
void run(const edm::Handle< l1t::HGCalTriggerCellBxCollection > &triggerCellCollInput, l1t::HGCalTriggerCellBxCollection &triggerCellCollOutput, const edm::EventSetup &es) override
std::unique_ptr< HGCalConcentratorSelectionImpl > concentratorProcImpl_
SelectionType selectionType_
std::unique_ptr< HGCalConcentratorSuperTriggerCellImpl > concentratorSTCImpl_
virtual unsigned getModuleFromTriggerCell(const unsigned trigger_cell_det_id) const =0
#define DEFINE_EDM_PLUGIN(factory, type, name)
void push_back(int bx, T object)