CMS 3D CMS Logo

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

Public Member Functions

 HGCalTowerMapProcessor (const edm::ParameterSet &conf)
 
void run (const edm::Handle< l1t::HGCalTriggerCellBxCollection > &collHandle, l1t::HGCalTowerMapBxCollection &collTowerMap, 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< HGCalTowerMap2DImpltowermap2D_
 
edm::ESHandle< HGCalTriggerGeometryBasetriggerGeometry_
 

Additional Inherited Members

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

Detailed Description

Definition at line 12 of file HGCalTowerMapProcessor.cc.

Constructor & Destructor Documentation

◆ HGCalTowerMapProcessor()

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

Definition at line 14 of file HGCalTowerMapProcessor.cc.

15  towermap2D_ = std::make_unique<HGCalTowerMap2DImpl>(conf.getParameterSet("towermap_parameters"));
16  }

References edm::ParameterSet::getParameterSet(), and towermap2D_.

Member Function Documentation

◆ run()

void HGCalTowerMapProcessor::run ( const edm::Handle< l1t::HGCalTriggerCellBxCollection > &  collHandle,
l1t::HGCalTowerMapBxCollection collTowerMap,
const edm::EventSetup es 
)
inlineoverride

Definition at line 18 of file HGCalTowerMapProcessor.cc.

20  {
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  }

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

Member Data Documentation

◆ towermap2D_

std::unique_ptr<HGCalTowerMap2DImpl> HGCalTowerMapProcessor::towermap2D_
private

Definition at line 39 of file HGCalTowerMapProcessor.cc.

Referenced by HGCalTowerMapProcessor(), and run().

◆ triggerGeometry_

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

Definition at line 36 of file HGCalTowerMapProcessor.cc.

Referenced by run().

mps_fire.i
i
Definition: mps_fire.py:355
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
HGCalTowerMapProcessor::towermap2D_
std::unique_ptr< HGCalTowerMap2DImpl > towermap2D_
Definition: HGCalTowerMapProcessor.cc:39
HGCalTowerMapProcessor::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HGCalTowerMapProcessor.cc:36
get
#define get
edm::Ptr
Definition: AssociationVector.h:31
HGCalTowerMapProcessorBase
HGCalProcessorBaseT< edm::Handle< l1t::HGCalTriggerCellBxCollection >, l1t::HGCalTowerMapBxCollection > HGCalTowerMapProcessorBase
Definition: HGCalProcessorBase.h:25
BXVector::size
unsigned size(int bx) const
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2121