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

Definition at line 14 of file HGCalTowerMapProcessor.cc.

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

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

Member Function Documentation

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.

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

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  }
std::unique_ptr< HGCalTowerMap2DImpl > towermap2D_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
unsigned size(int bx) const
T get() const
Definition: EventSetup.h:71

Member Data Documentation

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

Definition at line 39 of file HGCalTowerMapProcessor.cc.

Referenced by HGCalTowerMapProcessor(), and run().

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

Definition at line 36 of file HGCalTowerMapProcessor.cc.

Referenced by run().