CMS 3D CMS Logo

HGCalTowerProcessor.cc
Go to the documentation of this file.
2 
7 
12 
13 
15 {
16  public:
17 
20  towermap3D_( )
21  {
22  }
23 
25  l1t::HGCalTowerBxCollection& collTowers,
26  const edm::EventSetup& es) override
27  {
28  es.get<CaloGeometryRecord>().get("", triggerGeometry_);
29 
30  /* create a persistent vector of pointers to the towerMaps */
31  std::vector<edm::Ptr<l1t::HGCalTowerMap>> towerMapsPtrs;
32  for( unsigned i = 0; i < collHandle->size(); ++i ) {
33  edm::Ptr<l1t::HGCalTowerMap> ptr(collHandle,i);
34  towerMapsPtrs.push_back(ptr);
35  }
36 
37  /* call to towerMap3D clustering */
38  towermap3D_.buildTowerMap3D( towerMapsPtrs, collTowers);
39  }
40 
41 
42  private:
43 
45 
46  /* algorithms instances */
48 };
49 
52  "HGCalTowerProcessor");
unsigned size(int bx) const
void run(const edm::Handle< l1t::HGCalTowerMapBxCollection > &collHandle, l1t::HGCalTowerBxCollection &collTowers, const edm::EventSetup &es) override
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
HGCalTowerMap3DImpl towermap3D_
void buildTowerMap3D(const std::vector< edm::Ptr< l1t::HGCalTowerMap >> &towerMaps2D, l1t::HGCalTowerBxCollection &towerMap)
T get() const
Definition: EventSetup.h:68
#define DEFINE_EDM_PLUGIN(factory, type, name)
HGCalTowerProcessor(const edm::ParameterSet &conf)