CMS 3D CMS Logo

HGCalTowerMapProcessor.cc
Go to the documentation of this file.
2 
6 
11 
13 public:
15  towermap2D_ = std::make_unique<HGCalTowerMap2DImpl>(conf.getParameterSet("towermap_parameters"));
16  }
17 
19  l1t::HGCalTowerMapBxCollection& collTowerMap,
20  const edm::EventSetup& es) override {
22  towermap2D_->eventSetup(es);
23 
24  /* create a persistent vector of pointers to the trigger-cells */
25  std::vector<edm::Ptr<l1t::HGCalTriggerCell>> triggerCellsPtrs;
26  for (unsigned i = 0; i < collHandle->size(); ++i) {
27  edm::Ptr<l1t::HGCalTriggerCell> ptr(collHandle, i);
28  triggerCellsPtrs.push_back(ptr);
29  }
30 
31  /* call to towerMap2D clustering */
32  towermap2D_->buildTowerMap2D(triggerCellsPtrs, collTowerMap);
33  }
34 
35 private:
37 
38  /* algorithms instances */
39  std::unique_ptr<HGCalTowerMap2DImpl> towermap2D_;
40 };
41 
std::unique_ptr< HGCalTowerMap2DImpl > towermap2D_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
unsigned size(int bx) const
HGCalTowerMapProcessor(const edm::ParameterSet &conf)
void run(const edm::Handle< l1t::HGCalTriggerCellBxCollection > &collHandle, l1t::HGCalTowerMapBxCollection &collTowerMap, const edm::EventSetup &es) override
ParameterSet const & getParameterSet(std::string const &) const
T get() const
Definition: EventSetup.h:71
#define DEFINE_EDM_PLUGIN(factory, type, name)