// @(#)root/tmva $Id$ // Author: Peter Speckmayer /********************************************************************************** * Project: TMVA - a Root-integrated toolkit for multivariate data analysis * * Package: TMVA * * Class : MinuitWrapper * * Web : http://tmva.sourceforge.net * * * * Description: * * Implementation * * * * Authors (alphabetical): * * Peter Speckmayer - CERN, Switzerland * * * * Copyright (c) 2005: * * CERN, Switzerland * * MPI-K Heidelberg, Germany * * * * Redistribution and use in source and binary forms, with or without * * modification, are permitted according to the terms listed in LICENSE * * (http://tmva.sourceforge.net/LICENSE) * **********************************************************************************/ //_______________________________________________________________________ // // Wrapper around MINUIT //_______________________________________________________________________ #include "TMVA/MinuitWrapper.h" ClassImp(TMVA::MinuitWrapper) //_______________________________________________________________________ TMVA::MinuitWrapper::MinuitWrapper( IFitterTarget& target, Int_t maxpar ) : TMinuit( maxpar ), fFitterTarget( target ), fNumPar( maxpar ) { // constructor for ( Int_t i=0; i< maxpar; i++ ) { fParameters.push_back(0.0); } } //_______________________________________________________________________ Int_t TMVA::MinuitWrapper::Eval(Int_t /*npar*/, Double_t*, Double_t& f, Double_t* par, Int_t) { // std::vector parameters( npar ); for (Int_t ipar=0; iparfFitterTarget = fFitterTarget; return 0; }