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::HGCalTowerProcessor ( const edm::ParameterSet conf)
inline

Definition at line 14 of file HGCalTowerProcessor.cc.

14  : HGCalTowerProcessorBase(conf) {
15  towermap3D_ = std::make_unique<HGCalTowerMap3DImpl>();
16  }

References towermap3D_.

Member Function Documentation

◆ run()

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.

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  }

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

Member Data Documentation

◆ towermap3D_

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

Definition at line 38 of file HGCalTowerProcessor.cc.

Referenced by HGCalTowerProcessor(), and run().

◆ triggerGeometry_

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

Definition at line 35 of file HGCalTowerProcessor.cc.

Referenced by run().

mps_fire.i
i
Definition: mps_fire.py:355
HGCalTowerProcessor::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HGCalTowerProcessor.cc:35
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
HGCalTowerProcessorBase
HGCalProcessorBaseT< edm::Handle< l1t::HGCalTowerMapBxCollection >, l1t::HGCalTowerBxCollection > HGCalTowerProcessorBase
Definition: HGCalProcessorBase.h:27
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
HGCalTowerProcessor::towermap3D_
std::unique_ptr< HGCalTowerMap3DImpl > towermap3D_
Definition: HGCalTowerProcessor.cc:38
get
#define get
edm::Ptr
Definition: AssociationVector.h:31
BXVector::size
unsigned size(int bx) const