CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HGCalTowerProcessor Class Reference
Inheritance diagram for HGCalTowerProcessor:
HGCalProcessorBaseT< InputCollection, OutputCollection >

Public Member Functions

 HGCalTowerProcessor (const edm::ParameterSet &conf)
 
void run (const edm::Handle< l1t::HGCalTowerMapBxCollection > &collHandle, l1t::HGCalTowerBxCollection &collTowers, const edm::EventSetup &es) override
 
- Public Member Functions inherited from HGCalProcessorBaseT< InputCollection, OutputCollection >
 HGCalProcessorBaseT (const edm::ParameterSet &conf)
 
const std::string & name () const
 
virtual void run (const InputCollection &inputColl, OutputCollection &outColl, const edm::EventSetup &es)=0
 
void setGeometry (const HGCalTriggerGeometryBase *const geom)
 
virtual ~HGCalProcessorBaseT ()
 

Private Attributes

std::unique_ptr< HGCalTowerMap3DImpltowermap3D_
 
edm::ESHandle< HGCalTriggerGeometryBasetriggerGeometry_
 

Additional Inherited Members

- Protected Attributes inherited from HGCalProcessorBaseT< InputCollection, OutputCollection >
const HGCalTriggerGeometryBasegeometry_
 

Detailed Description

Definition at line 12 of file HGCalTowerProcessor.cc.

Constructor & Destructor Documentation

HGCalTowerProcessor::HGCalTowerProcessor ( const edm::ParameterSet conf)
inline

Definition at line 14 of file HGCalTowerProcessor.cc.

References towermap3D_.

14  : HGCalTowerProcessorBase(conf) {
15  towermap3D_ = std::make_unique<HGCalTowerMap3DImpl>();
16  }
std::unique_ptr< HGCalTowerMap3DImpl > towermap3D_
HGCalProcessorBaseT< edm::Handle< l1t::HGCalTowerMapBxCollection >, l1t::HGCalTowerBxCollection > HGCalTowerProcessorBase

Member Function Documentation

void HGCalTowerProcessor::run ( const edm::Handle< l1t::HGCalTowerMapBxCollection > &  collHandle,
l1t::HGCalTowerBxCollection collTowers,
const edm::EventSetup es 
)
inlineoverride

Definition at line 18 of file HGCalTowerProcessor.cc.

References edm::EventSetup::get(), mps_fire::i, BXVector< T >::size(), towermap3D_, and triggerGeometry_.

20  {
22 
23  /* create a persistent vector of pointers to the towerMaps */
24  std::vector<edm::Ptr<l1t::HGCalTowerMap>> towerMapsPtrs;
25  for (unsigned i = 0; i < collHandle->size(); ++i) {
26  edm::Ptr<l1t::HGCalTowerMap> ptr(collHandle, i);
27  towerMapsPtrs.push_back(ptr);
28  }
29 
30  /* call to towerMap3D clustering */
31  towermap3D_->buildTowerMap3D(towerMapsPtrs, collTowers);
32  }
unsigned size(int bx) const
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
std::unique_ptr< HGCalTowerMap3DImpl > towermap3D_
T get() const
Definition: EventSetup.h:71

Member Data Documentation

std::unique_ptr<HGCalTowerMap3DImpl> HGCalTowerProcessor::towermap3D_
private

Definition at line 38 of file HGCalTowerProcessor.cc.

Referenced by HGCalTowerProcessor(), and run().

edm::ESHandle<HGCalTriggerGeometryBase> HGCalTowerProcessor::triggerGeometry_
private

Definition at line 35 of file HGCalTowerProcessor.cc.

Referenced by run().