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
 
float getCristalPhiEtaMaxSize () const
 
float getCristalXYMaxSize () const
 
float getPhiOffset () const
 
virtual void insertFieldClusterElt (reco::PFBlockElement *cluster)=0
 
virtual void insertTargetElt (reco::PFBlockElement *target)=0
 
 KDTreeLinkerBase ()
 
virtual void process ()
 
virtual void searchLinks ()=0
 
void setCristalPhiEtaMaxSize (float size)
 
void setCristalXYMaxSize (float size)
 
void setDebug (bool isDebug)
 
void setFieldType (const reco::PFBlockElement::Type &fld)
 
void setPhiOffset (double phiOffset)
 
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_
 
float cristalXYMaxSize_
 
bool debug_
 
float phiOffset_
 

Detailed Description

Definition at line 9 of file KDTreeLinkerBase.h.

Constructor & Destructor Documentation

KDTreeLinkerBase::KDTreeLinkerBase ( )

Definition at line 5 of file KDTreeLinkerBase.cc.

6  : cristalPhiEtaMaxSize_ (0.04),
8  phiOffset_ (0.25),
9  debug_ (false)
10 {
11 }
KDTreeLinkerBase::~KDTreeLinkerBase ( )
virtual

Definition at line 13 of file KDTreeLinkerBase.cc.

14 {
15 }

Member Function Documentation

virtual void KDTreeLinkerBase::buildTree ( )
pure virtual
virtual void KDTreeLinkerBase::clear ( )
pure virtual
const reco::PFBlockElement::Type& KDTreeLinkerBase::fieldType ( ) const
inline
float KDTreeLinkerBase::getCristalPhiEtaMaxSize ( ) const
float KDTreeLinkerBase::getCristalXYMaxSize ( ) const

Definition at line 48 of file KDTreeLinkerBase.cc.

References cristalXYMaxSize_.

Referenced by fieldType(), and KDTreeLinkerPSEcal::searchLinks().

49 {
50  return cristalXYMaxSize_;
51 }
float KDTreeLinkerBase::getPhiOffset ( ) const

Definition at line 54 of file KDTreeLinkerBase.cc.

References phiOffset_.

Referenced by KDTreeLinkerTrackEcal::buildTree(), KDTreeLinkerTrackHcal::buildTree(), and fieldType().

55 {
56  return phiOffset_;
57 }
virtual void KDTreeLinkerBase::insertFieldClusterElt ( reco::PFBlockElement cluster)
pure virtual
virtual void KDTreeLinkerBase::insertTargetElt ( reco::PFBlockElement target)
pure virtual
void KDTreeLinkerBase::process ( )
virtual
virtual void KDTreeLinkerBase::searchLinks ( )
pure virtual
void KDTreeLinkerBase::setCristalPhiEtaMaxSize ( float  size)

Definition at line 18 of file KDTreeLinkerBase.cc.

References cristalPhiEtaMaxSize_, and findQualityFiles::size.

Referenced by fieldType(), and KDTreeLinkerTrackHcal::KDTreeLinkerTrackHcal().

19 {
21 }
size
Write out results.
void KDTreeLinkerBase::setCristalXYMaxSize ( float  size)

Definition at line 24 of file KDTreeLinkerBase.cc.

References cristalXYMaxSize_, and findQualityFiles::size.

Referenced by fieldType().

25 {
27 }
size
Write out results.
void KDTreeLinkerBase::setDebug ( bool  isDebug)

Definition at line 36 of file KDTreeLinkerBase.cc.

References debug, and debug_.

Referenced by fieldType().

37 {
38  debug_ = debug;
39 }
#define debug
Definition: HDRShower.cc:19
void KDTreeLinkerBase::setFieldType ( const reco::PFBlockElement::Type fld)
inline

Definition at line 20 of file KDTreeLinkerBase.h.

References _fieldType.

20  {
21  _fieldType = fld;
22  }
reco::PFBlockElement::Type _fieldType
void KDTreeLinkerBase::setPhiOffset ( double  phiOffset)

Definition at line 30 of file KDTreeLinkerBase.cc.

References phiOffset_.

Referenced by fieldType(), and KDTreeLinkerTrackHcal::KDTreeLinkerTrackHcal().

31 {
32  phiOffset_ = phiOffset;
33 }
void KDTreeLinkerBase::setTargetType ( const reco::PFBlockElement::Type tgt)
inline

Definition at line 16 of file KDTreeLinkerBase.h.

References _targetType.

16  {
17  _targetType = tgt;
18  }
reco::PFBlockElement::Type _targetType
const reco::PFBlockElement::Type& KDTreeLinkerBase::targetType ( ) const
inline

Definition at line 24 of file KDTreeLinkerBase.h.

References _targetType.

24  {
25  return _targetType;
26  }
reco::PFBlockElement::Type _targetType
virtual void KDTreeLinkerBase::updatePFBlockEltWithLinks ( )
pure virtual

Member Data Documentation

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

Definition at line 76 of file KDTreeLinkerBase.h.

Referenced by fieldType(), and setFieldType().

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

Definition at line 76 of file KDTreeLinkerBase.h.

Referenced by setTargetType(), and targetType().

float KDTreeLinkerBase::cristalPhiEtaMaxSize_
protected

Definition at line 78 of file KDTreeLinkerBase.h.

Referenced by getCristalPhiEtaMaxSize(), and setCristalPhiEtaMaxSize().

float KDTreeLinkerBase::cristalXYMaxSize_
protected

Definition at line 79 of file KDTreeLinkerBase.h.

Referenced by getCristalXYMaxSize(), and setCristalXYMaxSize().

bool KDTreeLinkerBase::debug_
protected

Definition at line 88 of file KDTreeLinkerBase.h.

Referenced by setDebug().

float KDTreeLinkerBase::phiOffset_
protected

Definition at line 85 of file KDTreeLinkerBase.h.

Referenced by getPhiOffset(), and setPhiOffset().