CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/RecoParticleFlow/PFProducer/src/KDTreeLinkerBase.cc

Go to the documentation of this file.
00001 #include "RecoParticleFlow/PFProducer/interface/KDTreeLinkerBase.h"
00002 
00003 KDTreeLinkerBase::KDTreeLinkerBase()
00004   : cristalPhiEtaMaxSize_ (0.04),
00005     cristalXYMaxSize_ (3.),
00006     phiOffset_ (0.25),
00007     debug_ (false)
00008 {
00009 }
00010 
00011 KDTreeLinkerBase::~KDTreeLinkerBase()
00012 {
00013 }
00014 
00015 void
00016 KDTreeLinkerBase::setCristalPhiEtaMaxSize(float size)
00017 {
00018   cristalPhiEtaMaxSize_ = size;
00019 }
00020 
00021 void
00022 KDTreeLinkerBase::setCristalXYMaxSize(float size)
00023 {
00024   cristalXYMaxSize_ = size;
00025 }
00026 
00027 void
00028 KDTreeLinkerBase::setPhiOffset(double phiOffset)
00029 {
00030   phiOffset_ = phiOffset;
00031 }
00032 
00033 void
00034 KDTreeLinkerBase::setDebug(bool debug)
00035 {
00036   debug_ = debug;
00037 }
00038 
00039 float
00040 KDTreeLinkerBase::getCristalPhiEtaMaxSize() const
00041 {
00042   return cristalPhiEtaMaxSize_;
00043 }
00044 
00045 float
00046 KDTreeLinkerBase::getCristalXYMaxSize() const
00047 {
00048   return cristalXYMaxSize_;
00049 }
00050 
00051 float
00052 KDTreeLinkerBase::getPhiOffset() const
00053 {
00054   return phiOffset_;
00055 }
00056 
00057 void
00058 KDTreeLinkerBase::process()
00059 {
00060   buildTree();
00061   searchLinks();
00062   updatePFBlockEltWithLinks();
00063   clear();
00064 }
00065 
00066 
00067