// @(#)root/minuit2:$Id$
// Authors: M. Winkler, F. James, L. Moneta, A. Zsenei   2003-2005

/**********************************************************************
 *                                                                    *
 * Copyright (c) 2005 LCG ROOT Math team,  CERN/PH-SFT                *
 *                                                                    *
 **********************************************************************/

#ifndef ROOT_Minuit2_MnPosDef
#define ROOT_Minuit2_MnPosDef

namespace ROOT {

namespace Minuit2 {

class MinimumState;
class MinimumError;
class MnMachinePrecision;

/**
   Force the covariance matrix to be positive defined
   by adding extra terms in the diagonal
 */
class MnPosDef {
public:
   MinimumState operator()(const MinimumState &, const MnMachinePrecision &) const;
   MinimumError operator()(const MinimumError &, const MnMachinePrecision &) const;
};

} // namespace Minuit2

} // namespace ROOT

#endif // ROOT_Minuit2_MnPosDef
