24 void configure(
const std::pair<const HGCalTriggerGeometryBase* const, const edm::ParameterSet&>&
parameters)
override;
31 std::vector<l1thgcfirmware::HGCalTowerMap>& towerMaps_SA)
const;
43 std::vector<l1thgcfirmware::HGCalTowerMap>& towerMaps_SA)
const {
44 for (
const auto&
map : inputTowerMaps) {
45 std::vector<l1thgcfirmware::HGCalTowerCoord> tower_ids;
46 for (
const auto&
tower :
map->towers()) {
47 tower_ids.emplace_back(
tower.first,
tower.second.eta(),
tower.second.phi());
52 for (
const auto&
tower :
map->towers()) {
55 towerMaps_SA.emplace_back(towerMapSA);
61 for (
const auto& towerSA : towers_SA) {
63 0,
l1t::HGCalTower(towerSA.etEm(), towerSA.etHad(), towerSA.eta(), towerSA.phi(), towerSA.id()));
69 std::vector<l1thgcfirmware::HGCalTowerMap> inputs_SA;
72 std::vector<l1thgcfirmware::HGCalTower> outputs_SA;
79 const std::pair<const HGCalTriggerGeometryBase* const, const edm::ParameterSet&>&
parameters) {}
std::unique_ptr< l1thgcfirmware::TowerMapsAlgoConfig > theConfiguration_
void convertCMSSWInputs(const std::vector< edm::Ptr< l1t::HGCalTowerMap >> &inputTowerMaps, std::vector< l1thgcfirmware::HGCalTowerMap > &towerMaps_SA) const
void convertAlgorithmOutputs(const std::vector< l1thgcfirmware::HGCalTower > &towerMaps_SA, l1t::HGCalTowerBxCollection &outputTowerMaps) const
bool addEt(short bin_id, float etEm, float etHad)
void process(const std::vector< edm::Ptr< l1t::HGCalTowerMap >> &inputs, l1t::HGCalTowerBxCollection &outputs) const override
void runAlgorithm(const std::vector< l1thgcfirmware::HGCalTowerMap > &inputTowerMaps_SA, std::vector< l1thgcfirmware::HGCalTower > &outputTowers_SA) const
HGCalTowerMapsWrapper(const edm::ParameterSet &conf)
void configure(const std::pair< const HGCalTriggerGeometryBase *const, const edm::ParameterSet &> ¶meters) override
~HGCalTowerMapsWrapper() override=default
#define DEFINE_EDM_PLUGIN(factory, type, name)
void push_back(int bx, T object)
HGCalTowerMapImplSA theAlgo_