27 for(
const auto&
map : towerMapsPtrs){
29 else towerMap += (*map);
35 vector<l1t::HGCalTower> towersTmp;
37 for(
int iEta=-nEtaBins; iEta<=
nEtaBins; iEta++){
39 for(
int iPhi=0; iPhi<
nPhiBins; iPhi++){
41 if(tower.
pt()>0) towersTmp.push_back(tower);
45 towers.
resize(0, towersTmp.size());
47 for(
auto tower : towersTmp){
48 towers.
set( 0, i, tower);
double pt() const final
transverse momentum
const l1t::HGCalTower & tower(int iEta, int iPhi) const
void buildTowerMap3D(const std::vector< edm::Ptr< l1t::HGCalTowerMap >> &towerMaps2D, l1t::HGCalTowerBxCollection &towerMap)
void set(int bx, unsigned i, const T &object)
void resize(int bx, unsigned size)