CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PFRecHitCaloTowerNavigator Class Reference
Inheritance diagram for PFRecHitCaloTowerNavigator:
PFRecHitCaloNavigator< CaloTowerDetId, CaloTowerTopology > PFRecHitNavigatorBase

Public Member Functions

void init (const edm::EventSetup &iSetup) override
 
 PFRecHitCaloTowerNavigator (const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
 
- Public Member Functions inherited from PFRecHitCaloNavigator< CaloTowerDetId, CaloTowerTopology >
void associateNeighbours (reco::PFRecHit &hit, std::unique_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refProd) override
 
 ~PFRecHitCaloNavigator () override
 
- Public Member Functions inherited from PFRecHitNavigatorBase
 PFRecHitNavigatorBase ()=default
 
 PFRecHitNavigatorBase (const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
 
virtual ~PFRecHitNavigatorBase ()=default
 

Private Attributes

edm::ESGetToken< CaloTowerTopology, HcalRecNumberingRecordcaloToken_
 

Additional Inherited Members

- Public Types inherited from PFRecHitNavigatorBase
typedef std::unordered_map< unsigned, unsigned > DetIdToHitIdx
 
- Protected Member Functions inherited from PFRecHitNavigatorBase
void associateNeighbour (const DetId &id, reco::PFRecHit &hit, std::unique_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refProd, short eta, short phi, short depth)
 
- Protected Attributes inherited from PFRecHitCaloNavigator< CaloTowerDetId, CaloTowerTopology >
std::unique_ptr< const CaloTowerTopologytopology_
 

Detailed Description

Definition at line 113 of file Navigators.cc.

Constructor & Destructor Documentation

◆ PFRecHitCaloTowerNavigator()

PFRecHitCaloTowerNavigator::PFRecHitCaloTowerNavigator ( const edm::ParameterSet iConfig,
edm::ConsumesCollector cc 
)
inline

Definition at line 115 of file Navigators.cc.

116  : caloToken_(cc.esConsumes<edm::Transition::BeginRun>()) {}
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
edm::ESGetToken< CaloTowerTopology, HcalRecNumberingRecord > caloToken_
Definition: Navigators.cc:125

Member Function Documentation

◆ init()

void PFRecHitCaloTowerNavigator::init ( const edm::EventSetup iSetup)
inlineoverridevirtual

Implements PFRecHitNavigatorBase.

Definition at line 118 of file Navigators.cc.

References caloToken_, edm::EventSetup::getHandle(), edm::ESHandle< T >::product(), and PFRecHitCaloNavigator< CaloTowerDetId, CaloTowerTopology >::topology_.

118  {
119  edm::ESHandle<CaloTowerTopology> caloTowerTopology = iSetup.getHandle(caloToken_);
120  topology_.release();
121  topology_.reset(caloTowerTopology.product());
122  }
T const * product() const
Definition: ESHandle.h:86
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130
edm::ESGetToken< CaloTowerTopology, HcalRecNumberingRecord > caloToken_
Definition: Navigators.cc:125
std::unique_ptr< const CaloTowerTopology > topology_

Member Data Documentation

◆ caloToken_

edm::ESGetToken<CaloTowerTopology, HcalRecNumberingRecord> PFRecHitCaloTowerNavigator::caloToken_
private

Definition at line 125 of file Navigators.cc.

Referenced by init().