17 towermap3D_ = std::make_unique<HGCalTowerMap3DImpl>();
28 auto& towerMapCollHandle = collHandle.first;
29 auto& unclTCsCollHandle = collHandle.second;
32 std::vector<edm::Ptr<l1t::HGCalTowerMap>> towerMapsPtrs;
33 for (
unsigned i = 0;
i < towerMapCollHandle->size(); ++
i) {
34 towerMapsPtrs.emplace_back(towerMapCollHandle,
i);
41 std::vector<edm::Ptr<l1t::HGCalTriggerCell>> trigCellVec;
42 for (
unsigned i = 0;
i < unclTCsCollHandle->size(); ++
i) {
44 for (
const auto& itTC : ptr->constituents()) {
45 trigCellVec.push_back(itTC.second);
51 towermap2D_->buildTowerMap2D(trigCellVec, towerMapsFromUnclTCs);
54 unsigned int towerMapsPtrsSize = towerMapsPtrs.size();
55 for (
unsigned int i = 0;
i < towerMapsFromUnclTCs.
size(); ++
i) {
56 towerMapsPtrs.emplace_back(&(towerMapsFromUnclTCs[
i]), i + towerMapsPtrsSize);
60 towermap3D_->buildTowerMap3D(towerMapsPtrs, collTowers);
63 towermap3D_->buildTowerMap3D(towerMapsPtrs, collTowers);
unsigned size(int bx) const
void setGeometry(const HGCalTriggerGeometryBase *const geom) override
std::unique_ptr< HGCalTowerMap3DImpl > towermap3D_
ParameterSet const & getParameterSet(std::string const &) const
T getParameter(std::string const &) const
virtual void setGeometry(const HGCalTriggerGeometryBase *const geom)
void run(const std::pair< edm::Handle< l1t::HGCalTowerMapBxCollection >, edm::Handle< l1t::HGCalClusterBxCollection >> &collHandle, l1t::HGCalTowerBxCollection &collTowers) override
#define DEFINE_EDM_PLUGIN(factory, type, name)
HGCalTowerProcessor(const edm::ParameterSet &conf)
std::unique_ptr< HGCalTowerMap2DImpl > towermap2D_