test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions
PFRecHitNavigatorBase Class Referenceabstract

#include <PFRecHitNavigatorBase.h>

Inheritance diagram for PFRecHitNavigatorBase:
PFECALHashNavigator 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 > PFRecHitDualNavigator< D1, barrel, D2, endcap >

Public Member Functions

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

Protected Member Functions

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

Detailed Description

Definition at line 25 of file PFRecHitNavigatorBase.h.

Constructor & Destructor Documentation

PFRecHitNavigatorBase::PFRecHitNavigatorBase ( )
inline

Definition at line 27 of file PFRecHitNavigatorBase.h.

27 {}
PFRecHitNavigatorBase::PFRecHitNavigatorBase ( const edm::ParameterSet iConfig)
inline

Definition at line 28 of file PFRecHitNavigatorBase.h.

28 {}
virtual PFRecHitNavigatorBase::~PFRecHitNavigatorBase ( )
inlinevirtual

Definition at line 30 of file PFRecHitNavigatorBase.h.

30 {}

Member Function Documentation

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

Definition at line 38 of file PFRecHitNavigatorBase.h.

References a, reco::PFRecHit::addNeighbour(), b, PFLayer::NONE, and groupFilesInBlocks::temp.

Referenced by PFRecHitCaloNavigator< CaloTowerDetId, CaloTowerTopology >::associateNeighbours(), and PFECALHashNavigator::associateNeighbours().

38  {
39  const reco::PFRecHit temp(id,PFLayer::NONE,0.0,math::XYZPoint(0,0,0),math::XYZVector(0,0,0),std::vector<math::XYZPoint>());
40  auto found_hit = std::lower_bound(hits->begin(),hits->end(),
41  temp,
42  [](const reco::PFRecHit& a,
43  const reco::PFRecHit& b){
44  return a.detId() < b.detId();
45  });
46  if( found_hit != hits->end() && found_hit->detId() == id.rawId() ) {
47  hit.addNeighbour(eta,phi,depth,reco::PFRecHitRef(refProd,std::distance(hits->begin(),found_hit)));
48  }
49  }
void addNeighbour(short x, short y, short z, const PFRecHitRef &)
Definition: PFRecHit.cc:129
T eta() const
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
Definition: PFRecHit.h:35
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
Definition: DDAxes.h:10
virtual void PFRecHitNavigatorBase::associateNeighbours ( reco::PFRecHit ,
std::auto_ptr< reco::PFRecHitCollection > &  ,
edm::RefProd< reco::PFRecHitCollection > &   
)
pure virtual
virtual void PFRecHitNavigatorBase::beginEvent ( const edm::EventSetup )
pure virtual