// @(#)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_MnGlobalCorrelationCoeff
#define ROOT_Minuit2_MnGlobalCorrelationCoeff

#include "Minuit2/MnConfig.h"
#include "Minuit2/MnMatrix.h"

#include <vector>

namespace ROOT {

   namespace Minuit2 {


/**
   class for global correlation coefficient
 */
class MnGlobalCorrelationCoeff {

public:

  MnGlobalCorrelationCoeff() :
    fGlobalCC(std::vector<double>()), fValid(false) {}

  MnGlobalCorrelationCoeff(const MnAlgebraicSymMatrix&);

  ~MnGlobalCorrelationCoeff() {}

  const std::vector<double>& GlobalCC() const {return fGlobalCC;}

  bool IsValid() const {return fValid;}

private:

  std::vector<double> fGlobalCC;
  bool fValid;
};

  }  // namespace Minuit2

}  // namespace ROOT

#endif  // ROOT_Minuit2_MnGlobalCorrelationCoeff
