Newer
Older
//#include <getopt.h>
//#include <fstream>
//#include <string>
#include <math.h>
#include <stdio.h>
#include "Minuit2/MnUserParameters.h"
#include "PwaUtils/PwaFcnBase.hh"
#include "PwaUtils/AbsLh.hh"
#include "PwaUtils/FitParamsBase.hh"
#include "ErrLogger/ErrLogger.hh"
using namespace ROOT::Minuit2;
PwaFcnBase::PwaFcnBase(boost::shared_ptr<AbsLh> absLh, boost::shared_ptr<FitParamsBase> fitParamsBase) :
_absLhPtr(absLh)
if (0==_absLhPtr) { Alert << "AbsLh* _absLhPtr pointer is 0 !!!!" << endmsg; exit(1); }
double PwaFcnBase::operator()(const std::vector<double>& par) const
fitParams theFitParmValTmp=_fitParamsBasePtr->getFitParamVal(par);
double result=_absLhPtr->calcLogLh(theFitParmValTmp);
DebugMsg << "logLh= " << result <<endmsg;
_fitParamsBasePtr->printParams(theFitParmValTmp);
std::ofstream theStream ( "currentResult.dat");
_fitParamsBasePtr->dumpParams(theStream, theFitParmValTmp, theFitParmValTmp);
double PwaFcnBase::Up() const