CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
KDTreeLinkerBase Class Referenceabstract

#include <KDTreeLinkerBase.h>

Inheritance diagram for KDTreeLinkerBase:
KDTreeLinkerPSEcal KDTreeLinkerTrackEcal KDTreeLinkerTrackHcal

Public Member Functions

virtual void buildTree ()=0
 
virtual void clear ()=0
 
const reco::PFBlockElement::TypefieldType () const
 
virtual void insertFieldClusterElt (reco::PFBlockElement *cluster)=0
 
virtual void insertTargetElt (reco::PFBlockElement *target)=0
 
void process ()
 
virtual void searchLinks ()=0
 
void setDebug (bool isDebug)
 
void setFieldType (const reco::PFBlockElement::Type &fld)
 
void setTargetType (const reco::PFBlockElement::Type &tgt)
 
const reco::PFBlockElement::TypetargetType () const
 
virtual void updatePFBlockEltWithLinks ()=0
 
virtual ~KDTreeLinkerBase ()
 

Protected Attributes

reco::PFBlockElement::Type _fieldType
 
reco::PFBlockElement::Type _targetType
 
float cristalPhiEtaMaxSize_ = 0.04
 
float cristalXYMaxSize_ = 3.
 
bool debug_ = false
 
float phiOffset_ = 0.25
 

Detailed Description

Definition at line 18 of file KDTreeLinkerBase.h.

Constructor & Destructor Documentation

virtual KDTreeLinkerBase::~KDTreeLinkerBase ( )
inlinevirtual

Definition at line 21 of file KDTreeLinkerBase.h.

21 {}

Member Function Documentation

virtual void KDTreeLinkerBase::buildTree ( )
pure virtual
virtual void KDTreeLinkerBase::clear ( )
pure virtual
const reco::PFBlockElement::Type& KDTreeLinkerBase::fieldType ( ) const
inline
virtual void KDTreeLinkerBase::insertFieldClusterElt ( reco::PFBlockElement cluster)
pure virtual
virtual void KDTreeLinkerBase::insertTargetElt ( reco::PFBlockElement target)
pure virtual
void KDTreeLinkerBase::process ( )
inline

Definition at line 73 of file KDTreeLinkerBase.h.

References buildTree(), clear(), searchLinks(), and updatePFBlockEltWithLinks().

74  {
75  buildTree();
76  searchLinks();
78  clear();
79  }
virtual void updatePFBlockEltWithLinks()=0
virtual void buildTree()=0
virtual void clear()=0
virtual void searchLinks()=0
virtual void KDTreeLinkerBase::searchLinks ( )
pure virtual
void KDTreeLinkerBase::setDebug ( bool  isDebug)

Referenced by fieldType().

void KDTreeLinkerBase::setFieldType ( const reco::PFBlockElement::Type fld)
inline

Definition at line 27 of file KDTreeLinkerBase.h.

References _fieldType.

27  {
28  _fieldType = fld;
29  }
reco::PFBlockElement::Type _fieldType
void KDTreeLinkerBase::setTargetType ( const reco::PFBlockElement::Type tgt)
inline

Definition at line 23 of file KDTreeLinkerBase.h.

References _targetType.

23  {
24  _targetType = tgt;
25  }
reco::PFBlockElement::Type _targetType
const reco::PFBlockElement::Type& KDTreeLinkerBase::targetType ( ) const
inline

Definition at line 31 of file KDTreeLinkerBase.h.

References _targetType.

31  {
32  return _targetType;
33  }
reco::PFBlockElement::Type _targetType
virtual void KDTreeLinkerBase::updatePFBlockEltWithLinks ( )
pure virtual

Member Data Documentation

reco::PFBlockElement::Type KDTreeLinkerBase::_fieldType
protected

Definition at line 83 of file KDTreeLinkerBase.h.

Referenced by fieldType(), and setFieldType().

reco::PFBlockElement::Type KDTreeLinkerBase::_targetType
protected

Definition at line 83 of file KDTreeLinkerBase.h.

Referenced by setTargetType(), and targetType().

float KDTreeLinkerBase::cristalPhiEtaMaxSize_ = 0.04
protected
float KDTreeLinkerBase::cristalXYMaxSize_ = 3.
protected

Definition at line 86 of file KDTreeLinkerBase.h.

Referenced by KDTreeLinkerPSEcal::searchLinks().

bool KDTreeLinkerBase::debug_ = false
protected

Definition at line 95 of file KDTreeLinkerBase.h.

float KDTreeLinkerBase::phiOffset_ = 0.25
protected