CMS 3D CMS Logo

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