CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/TopQuarkAnalysis/TopKinFitter/src/TopKinFitter.cc

Go to the documentation of this file.
00001 #include "TopQuarkAnalysis/TopKinFitter/interface/TopKinFitter.h"
00002 
00004 TopKinFitter::TopKinFitter(const int maxNrIter, const double maxDeltaS, const double maxF,
00005                            const double mW, const double mTop): 
00006   maxNrIter_(maxNrIter), maxDeltaS_(maxDeltaS), maxF_(maxF), mW_(mW), mTop_(mTop)
00007 {
00008   fitter_ = new TKinFitter("TopKinFitter", "TopKinFitter");
00009   fitter_->setMaxNbIter(maxNrIter_);
00010   fitter_->setMaxDeltaS(maxDeltaS_);
00011   fitter_->setMaxF(maxF_);
00012   fitter_->setVerbosity(0);
00013 }
00014 
00016 TopKinFitter::~TopKinFitter() 
00017 {
00018   delete fitter_;
00019 }
00020 
00022 std::string 
00023 TopKinFitter::param(const Param& param) const
00024 {
00025   std::string parName;
00026   switch(param){
00027   case kEMom       : parName="EMom";       break;
00028   case kEtEtaPhi   : parName="EtEtaPhi";   break;
00029   case kEtThetaPhi : parName="EtThetaPhi"; break;    
00030   }
00031   return parName;
00032 }