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::HGCalTriggerSumsBxCollection > &collHandle, l1t::HGCalTowerMapBxCollection &collTowerMap) 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)=0
 
virtual void setGeometry (const HGCalTriggerGeometryBase *const geom)
 
virtual ~HGCalProcessorBaseT ()
 

Private Attributes

std::unique_ptr< HGCalTowerMap2DImpltowermap2D_
 

Additional Inherited Members

- Protected Member Functions inherited from HGCalProcessorBaseT< InputCollection, OutputCollection >
const HGCalTriggerGeometryBasegeometry () const
 

Detailed Description

Definition at line 11 of file HGCalTowerMapProcessor.cc.

Constructor & Destructor Documentation

◆ HGCalTowerMapProcessor()

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

Definition at line 13 of file HGCalTowerMapProcessor.cc.

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

14  towermap2D_ = std::make_unique<HGCalTowerMap2DImpl>(conf.getParameterSet("towermap_parameters"));
15  }
std::unique_ptr< HGCalTowerMap2DImpl > towermap2D_
ParameterSet const & getParameterSet(std::string const &) const
HGCalProcessorBaseT< edm::Handle< l1t::HGCalTriggerSumsBxCollection >, l1t::HGCalTowerMapBxCollection > HGCalTowerMapProcessorBase

Member Function Documentation

◆ run()

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

Definition at line 17 of file HGCalTowerMapProcessor.cc.

References HGCalProcessorBaseT< InputCollection, OutputCollection >::geometry(), mps_fire::i, BXVector< T >::size(), and towermap2D_.

18  {
19  towermap2D_->setGeometry(geometry());
20 
21  /* create a persistent vector of pointers to the trigger-sums */
22  std::vector<edm::Ptr<l1t::HGCalTriggerSums>> triggerSumsPtrs;
23  for (unsigned i = 0; i < collHandle->size(); ++i) {
24  edm::Ptr<l1t::HGCalTriggerSums> ptr(collHandle, i);
25  triggerSumsPtrs.push_back(ptr);
26  }
27 
28  /* call to towerMap2D clustering */
29  towermap2D_->buildTowerMap2D(triggerSumsPtrs, collTowerMap);
30  }
std::unique_ptr< HGCalTowerMap2DImpl > towermap2D_
unsigned size(int bx) const
const HGCalTriggerGeometryBase * geometry() const

Member Data Documentation

◆ towermap2D_

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

Definition at line 34 of file HGCalTowerMapProcessor.cc.

Referenced by HGCalTowerMapProcessor(), and run().