Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-25 05:52:14

0001 #include "TopQuarkAnalysis/TopKinFitter/interface/TopKinFitter.h"
0002 
0003 /// default configuration is: max iterations = 200, max deltaS = 5e-5, maxF = 1e-4
0004 TopKinFitter::TopKinFitter(
0005     const int maxNrIter, const double maxDeltaS, const double maxF, const double mW, const double mTop)
0006     : maxNrIter_(maxNrIter), maxDeltaS_(maxDeltaS), maxF_(maxF), mW_(mW), mTop_(mTop) {
0007   fitter_ = std::make_unique<TKinFitter>("TopKinFitter", "TopKinFitter");
0008   fitter_->setMaxNbIter(maxNrIter_);
0009   fitter_->setMaxDeltaS(maxDeltaS_);
0010   fitter_->setMaxF(maxF_);
0011   fitter_->setVerbosity(0);
0012 }
0013 
0014 /// default destructor
0015 TopKinFitter::~TopKinFitter() = default;
0016 
0017 /// convert Param to human readable form
0018 std::string TopKinFitter::param(const Param& param) const {
0019   std::string parName;
0020   switch (param) {
0021     case kEMom:
0022       parName = "EMom";
0023       break;
0024     case kEtEtaPhi:
0025       parName = "EtEtaPhi";
0026       break;
0027     case kEtThetaPhi:
0028       parName = "EtThetaPhi";
0029       break;
0030   }
0031   return parName;
0032 }