CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions
PFRecHitNavigatorBase Class Referenceabstract

#include <PFRecHitNavigatorBase.h>

Inheritance diagram for PFRecHitNavigatorBase:
HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb > PFECALHashNavigator PFHCALDenseIdNavigator< DET, TOPO, ownsTopo > PFHCALDenseIdNavigator< HcalDetId, HcalTopology, false > PFRecHitCaloNavigator< DET, TOPO, ownsTopo > PFRecHitCaloNavigator< CaloTowerDetId, CaloTowerTopology > PFRecHitCaloNavigator< EBDetId, EcalBarrelTopology > PFRecHitCaloNavigator< EEDetId, EcalEndcapTopology > PFRecHitCaloNavigator< ESDetId, EcalPreshowerTopology > PFRecHitCaloNavigator< HcalDetId, HcalTopology, false > PFRecHitCaloNavigatorWithTime< D, T, ownsTopo > PFRecHitCaloNavigatorWithTime< EBDetId, EcalBarrelTopology > PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology > PFRecHitCaloNavigatorWithTime< HcalDetId, HcalTopology, false > PFRecHitDualNavigator< D1, barrel, D2, endcap > PFRecHitFakeNavigator< DET > PFRecHitFakeNavigator< HGCalDetId > PFRecHitFakeNavigator< HGCEEDetId > PFRecHitFakeNavigator< HGCHEDetId >

Public Types

typedef std::unordered_map< unsigned, unsigned > DetIdToHitIdx
 

Public Member Functions

virtual void associateNeighbours (reco::PFRecHit &, std::unique_ptr< reco::PFRecHitCollection > &, edm::RefProd< reco::PFRecHitCollection > &)=0
 
virtual void init (const edm::EventSetup &)=0
 
 PFRecHitNavigatorBase ()=default
 
 PFRecHitNavigatorBase (const edm::ParameterSet &iConfig)
 
virtual ~PFRecHitNavigatorBase ()=default
 

Protected Member Functions

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)
 

Detailed Description

Definition at line 26 of file PFRecHitNavigatorBase.h.

Member Typedef Documentation

◆ DetIdToHitIdx

typedef std::unordered_map<unsigned, unsigned> PFRecHitNavigatorBase::DetIdToHitIdx

Definition at line 28 of file PFRecHitNavigatorBase.h.

Constructor & Destructor Documentation

◆ PFRecHitNavigatorBase() [1/2]

PFRecHitNavigatorBase::PFRecHitNavigatorBase ( )
default

◆ PFRecHitNavigatorBase() [2/2]

PFRecHitNavigatorBase::PFRecHitNavigatorBase ( const edm::ParameterSet iConfig)
inline

Definition at line 31 of file PFRecHitNavigatorBase.h.

31 {}

◆ ~PFRecHitNavigatorBase()

virtual PFRecHitNavigatorBase::~PFRecHitNavigatorBase ( )
virtualdefault

Member Function Documentation

◆ associateNeighbour()

void PFRecHitNavigatorBase::associateNeighbour ( const DetId id,
reco::PFRecHit hit,
std::unique_ptr< reco::PFRecHitCollection > &  hits,
edm::RefProd< reco::PFRecHitCollection > &  refProd,
short  eta,
short  phi,
short  depth 
)
inlineprotected

Definition at line 41 of file PFRecHitNavigatorBase.h.

47  {
48  auto found_hit = std::lower_bound(
49  hits->begin(), hits->end(), id, [](const reco::PFRecHit& a, const DetId& id) { return a.detId() < id; });
50  if (found_hit != hits->end() && found_hit->detId() == id.rawId()) {
51  hit.addNeighbour(eta, phi, depth, found_hit - hits->begin());
52  }
53  }

References a, LEDCalibrationChannels::depth, PVValHelper::eta, hfClusterShapes_cfi::hits, triggerObjects_cff::id, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and phi.

Referenced by PFRecHitCaloNavigator< CaloTowerDetId, CaloTowerTopology >::associateNeighbours(), PFECALHashNavigator::associateNeighbours(), and PFHCALDenseIdNavigator< HcalDetId, HcalTopology, false >::associateNeighbours().

◆ associateNeighbours()

virtual void PFRecHitNavigatorBase::associateNeighbours ( reco::PFRecHit ,
std::unique_ptr< reco::PFRecHitCollection > &  ,
edm::RefProd< reco::PFRecHitCollection > &   
)
pure virtual

◆ init()

virtual void PFRecHitNavigatorBase::init ( const edm::EventSetup )
pure virtual
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
DetId
Definition: DetId.h:17
PVValHelper::eta
Definition: PVValidationHelpers.h:70
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
pfDeepBoostedJetPreprocessParams_cfi.lower_bound
lower_bound
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:15
a
double a
Definition: hdecay.h:119
DDAxes::phi
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
reco::PFRecHit
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
Definition: PFRecHit.h:31
hit
Definition: SiStripHitEffFromCalibTree.cc:88