18 std::unordered_map<uint32_t, std::vector<edm::Ptr<l1t::HGCalTriggerCell>>> tcs_per_fpga;
20 for (
unsigned i = 0;
i < collHandle->
size(); ++
i) {
24 tcs_per_fpga[fpga].push_back(tc_ptr);
27 std::vector<edm::Ptr<l1t::HGCalTriggerCell>> truncated_tcs;
28 for (
auto& fpga_tcs : tcs_per_fpga) {
29 truncation_->run(fpga_tcs.first, fpga_tcs.second, truncated_tcs);
HGCalBackendLayer1Processor(const edm::ParameterSet &conf)
virtual unsigned getStage1FpgaFromModule(const unsigned module_id) const =0
ParameterSet const & getParameterSet(std::string const &) const
void run(const edm::Handle< l1t::HGCalTriggerCellBxCollection > &collHandle, l1t::HGCalClusterBxCollection &collCluster2D) override
unsigned size(int bx) const
const HGCalTriggerGeometryBase * geometry() const
virtual unsigned getModuleFromTriggerCell(const unsigned trigger_cell_det_id) const =0
std::unique_ptr< HGCalClusteringDummyImpl > clusteringDummy_
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::unique_ptr< HGCalStage1TruncationImpl > truncation_