CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Private Attributes
HGCalTowerProcessorSA Class Reference
Inheritance diagram for HGCalTowerProcessorSA:
HGCalProcessorBaseT< InputCollection, OutputCollection >

Public Member Functions

 HGCalTowerProcessorSA (const edm::ParameterSet &conf)
 
void run (const std::pair< edm::Handle< l1t::HGCalTowerMapBxCollection >, edm::Handle< l1t::HGCalClusterBxCollection >> &collHandle, l1t::HGCalTowerBxCollection &collTowers) 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

const edm::ParameterSet conf_
 
std::unique_ptr< HGCalTowerMapsWrapperBasetowerMapWrapper_
 
edm::ESHandle< HGCalTriggerGeometryBasetriggerGeometry_
 

Additional Inherited Members

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

Detailed Description

Definition at line 13 of file HGCalTowerProcessor_SA.cc.

Constructor & Destructor Documentation

◆ HGCalTowerProcessorSA()

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

Definition at line 15 of file HGCalTowerProcessor_SA.cc.

References get, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), AlCaHLTBitMon_QueryRunRegistry::string, and towerMapWrapper_.

15  : HGCalTowerProcessorBase(conf), conf_(conf) {
16  const std::string towerMapsAlgoName(
17  conf.getParameterSet("towermap_parameters").getParameter<std::string>("AlgoName"));
18  towerMapWrapper_ = std::unique_ptr<HGCalTowerMapsWrapperBase>{HGCalTowerMapsWrapperBaseFactory::get()->create(
19  towerMapsAlgoName, conf.getParameterSet("towermap_parameters"))};
20  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ParameterSet const & getParameterSet(std::string const &) const
const edm::ParameterSet conf_
std::unique_ptr< HGCalTowerMapsWrapperBase > towerMapWrapper_
HGCalProcessorBaseT< std::pair< edm::Handle< l1t::HGCalTowerMapBxCollection >, edm::Handle< l1t::HGCalClusterBxCollection > >, l1t::HGCalTowerBxCollection > HGCalTowerProcessorBase
#define get

Member Function Documentation

◆ run()

void HGCalTowerProcessorSA::run ( const std::pair< edm::Handle< l1t::HGCalTowerMapBxCollection >, edm::Handle< l1t::HGCalClusterBxCollection >> &  collHandle,
l1t::HGCalTowerBxCollection collTowers 
)
inlineoverride

Definition at line 22 of file HGCalTowerProcessor_SA.cc.

References conf_, ctppsRawToDigi_cff::configuration, HGCalProcessorBaseT< InputCollection, OutputCollection >::geometry(), mps_fire::i, and towerMapWrapper_.

24  {
25  auto& towerMapCollHandle = collHandle.first;
26 
27  /* create a persistent vector of pointers to the towerMaps */
28  std::vector<edm::Ptr<l1t::HGCalTowerMap>> towerMapsPtrs;
29  for (unsigned i = 0; i < towerMapCollHandle->size(); ++i) {
30  towerMapsPtrs.emplace_back(towerMapCollHandle, i);
31  }
32 
33  // Configuration
34  const std::pair<const HGCalTriggerGeometryBase* const, const edm::ParameterSet&> configuration{geometry(), conf_};
35  towerMapWrapper_->configure(configuration);
36  towerMapWrapper_->process(towerMapsPtrs, collTowers);
37  }
const edm::ParameterSet conf_
std::unique_ptr< HGCalTowerMapsWrapperBase > towerMapWrapper_
const HGCalTriggerGeometryBase * geometry() const

Member Data Documentation

◆ conf_

const edm::ParameterSet HGCalTowerProcessorSA::conf_
private

Definition at line 45 of file HGCalTowerProcessor_SA.cc.

Referenced by run().

◆ towerMapWrapper_

std::unique_ptr<HGCalTowerMapsWrapperBase> HGCalTowerProcessorSA::towerMapWrapper_
private

Definition at line 43 of file HGCalTowerProcessor_SA.cc.

Referenced by HGCalTowerProcessorSA(), and run().

◆ triggerGeometry_

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

Definition at line 40 of file HGCalTowerProcessor_SA.cc.