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, const edm::EventSetup &es) override
 
- Public Member Functions inherited from HGCalProcessorBaseT< InputCollection, OutputCollection >
virtual void eventSetup (const edm::EventSetup &es)
 
 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 11 of file HGCalTowerMapProcessor.cc.

Constructor & Destructor Documentation

◆ HGCalTowerMapProcessor()

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

Definition at line 13 of file HGCalTowerMapProcessor.cc.

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

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

Member Function Documentation

◆ run()

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

Definition at line 17 of file HGCalTowerMapProcessor.cc.

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

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 38 of file HGCalTowerMapProcessor.cc.

Referenced by HGCalTowerMapProcessor(), and run().

◆ triggerGeometry_

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

Definition at line 35 of file HGCalTowerMapProcessor.cc.

Referenced by run().

mps_fire.i
i
Definition: mps_fire.py:428
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
HGCalTowerMapProcessor::towermap2D_
std::unique_ptr< HGCalTowerMap2DImpl > towermap2D_
Definition: HGCalTowerMapProcessor.cc:38
HGCalTowerMapProcessorBase
HGCalProcessorBaseT< edm::Handle< l1t::HGCalTriggerSumsBxCollection >, l1t::HGCalTowerMapBxCollection > HGCalTowerMapProcessorBase
Definition: HGCalProcessorBase.h:30
HGCalTowerMapProcessor::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HGCalTowerMapProcessor.cc:35
get
#define get
edm::Ptr
Definition: AssociationVector.h:31
BXVector::size
unsigned size(int bx) const
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2128