[root] / trunk / hist / hist / src / TMultiDimFit.cxx Repository:
ViewVC logotype

Log of /trunk/hist/hist/src/TMultiDimFit.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 44507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by axel
File length: 125575 byte(s)
Diff to previous 44213
Remove
  using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.

Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.

Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.

Revision 44213 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 10 09:08:22 2012 UTC (2 years, 8 months ago) by moneta
File length: 124135 byte(s)
Diff to previous 35406
apply several fixes found by Coverity

In particular fix assignment operators (Copy) in TH1 and TGraph classes for memory leaks

Revision 35406 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 19 17:07:22 2010 UTC (4 years, 4 months ago) by brun
File length: 123994 byte(s)
Diff to previous 35250
Fix memory leak. coverity CID 12222

Revision 35250 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 13 15:01:20 2010 UTC (4 years, 4 months ago) by brun
File length: 123978 byte(s)
Diff to previous 35022
Fix uninitialed data members in constructors: coverity CID 11212, 11213

Revision 35022 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 26 10:08:13 2010 UTC (4 years, 4 months ago) by brun
File length: 123092 byte(s)
Diff to previous 34982
add protection

Revision 34982 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 25 09:18:42 2010 UTC (4 years, 5 months ago) by brun
File length: 123071 byte(s)
Diff to previous 25162
Fix memory leaks reported by coverity

Revision 25162 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 15 16:17:13 2008 UTC (6 years, 5 months ago) by brun
File length: 123045 byte(s)
Diff to previous 23420
From Gilles Quemener
Fix a problem in TMultiDimFit::AddRow. The member fSumSqQuantity was not initialized correctly.

Revision 23420 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 09:23:37 2008 UTC (6 years, 9 months ago) by brun
File length: 122979 byte(s)
Diff to previous 22694
Fix shadowed variables.

Revision 22694 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 17 20:23:21 2008 UTC (6 years, 10 months ago) by rdm
File length: 122991 byte(s)
Diff to previous 20882
move hist, histpainter, spectrum and spectrumpainter in the hist package.

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 122991 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 122991 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 123047 byte(s)
Diff to previous 19620
remove :$ from tag line

Revision 19620 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 13 17:29:32 2007 UTC (7 years, 5 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 123057 byte(s)
Diff to previous 17180
From Axel and Gordon Watts:
Move inline functions referencing class static global variables from inline
to the implementation files (Windows DLLs).

Revision 17180 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 12 14:03:04 2006 UTC (8 years, 1 month ago) by couet
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 122886 byte(s)
Diff to previous 16310
- Change comments according to the new $ROOTSYS/tutorials structure.

Revision 16310 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 22 09:09:47 2006 UTC (8 years, 4 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 122882 byte(s)
Diff to previous 16296
From Gilles Quemener (quemener@lpsc.in2p3.fr):
Add two new features:
 -possibility to set the number of bins of some histograms
   SetBinVarX(Int_t nbbinvarx) {fBinVarX = nbbinvarx;}
   SetBinVarY(Int_t nbbinvary) {fBinVarY = nbbinvary;}
 -New function
   EvalError(const Double_t *x, const Double_t *coeff)
 to evaluate the error on the parametrisation at point x

Revision 16296 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 19 12:38:03 2006 UTC (8 years, 4 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 120946 byte(s)
Diff to previous 15176
Previous version of the class could not be persistent.

Revision 15176 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 26 09:27:12 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 120858 byte(s)
Diff to previous 15072
Fix coding conventions violations

Revision 15072 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 17 09:37:21 2006 UTC (8 years, 8 months ago) by couet
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 120853 byte(s)
Diff to previous 13987
- Coding conventions.

Revision 13987 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 3 21:55:39 2006 UTC (8 years, 11 months ago) by pcanal
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 120656 byte(s)
Diff to previous 12948
Update of spacing and documentation to match the coding rule

Revision 12948 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 13 13:42:07 2005 UTC (9 years, 3 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 119441 byte(s)
Diff to previous 12647
Add several protections in the default constructor and in the destructor.

Revision 12647 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 5 10:02:38 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 119283 byte(s)
Diff to previous 12547
Fix remaining coding conventions in hist.
This has required many changes in TSpectrum and helper classes.

Revision 12547 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 29 10:45:07 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 116798 byte(s)
Diff to previous 12345
Changes to make the rulechecker happy in directory hist.
The class TSpectrum still needs to be changed.

Revision 12345 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 19 07:17:42 2005 UTC (9 years, 6 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 116798 byte(s)
Diff to previous 12344
Forgot one case (monomials) in the previous fix to TMultiDimFit::Print

Revision 12344 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 19 06:38:53 2005 UTC (9 years, 6 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 116796 byte(s)
Diff to previous 11569
Fix in TMultiDimFit::Print in case of Legendre or Chebyschev polynomials

Revision 11569 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 12 16:26:01 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 116792 byte(s)
Diff to previous 11297
From Gilles Quemener <quemener@lpsc.in2p3.fr>
Fix bugs in TMultiDimFit::MakeCorrelation

Revision 11297 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 11 10:21:03 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 116110 byte(s)
Diff to previous 11270
Fix bugs in TMultiDimFit::MakeRealCode

Revision 11270 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 8 21:53:25 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 116102 byte(s)
Diff to previous 11263
From Eddy Offermann:

When using the tutorial multidimfit.C, 3 issues were observed and
they are solved with this patch:

1)
 - a:  Warning in <TMatrixD::Invert(Double_t *)>: Determinant
under/over-flows double....

-------------------------------------------------------------------------

   In this case the determinant becomes > 2^52 or < 2^-52 and is
   therefore starting to over/under flow . So possibly some loss
   of precision in the inversion .
   The change from TMatrixD to TMatrixDSym only highlighted the fact
   that a warning was missing in TMatrixDSym.Invert (now added) .
   It is a good idea to scale the matrix . Since this particular
   matrix is a symmetric positive definite one , the following
   scaling is appropriate:

     A(i,j) = A(i,j)/Sqrt(A(i,i)*A(j,j))

   This is now installed in the code through (plus a better way to
   notice that the matrix is singular) :

   const TVectorD diag = TMatrixDDiag_const(curvatureMatrix);
   curvatureMatrix.NormByDiag(diag);

   TDecompChol chol(curvatureMatrix);
   if (!chol.Decompose())
      Error("MakeCoefficientErrors", "curvature matrix is singular");
   chol.Invert(curvatureMatrix);

  curvatureMatrix.NormByDiag(diag);

 - b: Warning in <TMultiDimFit::MakeCoefficientErrors>: curvature
      matrix is singular
-------------------------------------------------------------------

   Before 18-Dec-2004, Invert(*det) returned a zero determinant in case
   of over/under-flow.
   However, this was removed on the 18th so I do not undertand that
   Gilles had this problem with 4.03/02 .

2)
  It was noted that the tutorial multidimfit.C gave different results
  on different platforms .

--------------------------------------------------------------------------

   One obvious reason were the "#ifndef R__MACOSX" statements that have
   now been removed .

   A more subtle bug/issue was that the function
   TMultiDimFit::EvalControl gave results that depended on platform-specific
   rounding issues . The control number is used to decide which functions to
   use AND in which order .
   I had to think of a change that would keep the control number such
   that old results could (besides the rounding issues) be reproduced .
   My solution is

    control[numberFunctions-1] = Int_t(1.0e+6*s);

    instead of

    control[numberFunctions-1] = s;

    Indeed MacOSX and Linux give now identical results .

Revision 11263 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 8 07:27:59 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 117341 byte(s)
Diff to previous 11163
From Christian Holm Christensen
Use a TMatrixDSym instead of a TMatrixD.

Revision 11163 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 21 18:00:26 2005 UTC (9 years, 11 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 117386 byte(s)
Diff to previous 10996
From Christian Holm
Fix a bug in the code generator

Revision 10996 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 27 18:55:14 2005 UTC (9 years, 11 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 117379 byte(s)
Diff to previous 9824
Fix a typo in the code generator

Revision 9824 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 23 16:01:09 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 117382 byte(s)
Diff to previous 9075
In TMultiDimFit::MakeCorrelation, the correlation matrix was not correctly computed.
(Inversion of rows/columns)

Revision 9075 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 1 11:15:57 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 117306 byte(s)
Diff to previous 5924
Cleanup the class TMultiDimFit with valgrind.
pointer fTestSampleSize was not preset in the constructors.
In the destructor, Clear the list of histograms with option "nodelete".
Histograms are typically deleted when closing a file.

In the function Clear, do not set the arrays fPowerIndex and fFunctionCodes

In function MakeChi2, fix a mismatch between new/delete

In function MakeParameterization, set the arrays fPowerIndex and fFunctionCodes.

In function MakerealCode generate code that can be executed outside ROOT,
replacing Int_t and Double_t by int and double.

Revision 5924 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 16 18:07:52 2003 UTC (12 years ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 117404 byte(s)
Diff to previous 5717
From Christian.Holm.Christensen, solving a problem and adding features
requested by Gilles Qu�m�ner.
I've  made a patch for TMultiDimFit.h and TMultiDimFit.cxx that
exposes the (new) member functions, GetCorrelationMatrix(),
GetCoefficients(), GetPolyType(), and takes two new options to Print:

  K   Print correlation matrix
  M   Pretty print the parameterisation.

Also, the patch fixes a bug.

Revision 5717 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 2 18:50:12 2002 UTC (12 years, 1 month ago) by rdm
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 115978 byte(s)
Diff to previous 3748
mega patch to remove almost all compiler warnings on MacOS X where the
compiler is by default in pedantic mode (LHCb also like to use this option).
The following issues have been fixed:
- removal of unused arguments
- comparison between signed and unsigned integers
- not calling of base class copy ctor in copy ctor's
To be done, the TGeo classes where we get still many hundred warnings of
the above nature. List forwarded to Andrei.

Revision 3748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 24 11:39:31 2002 UTC (13 years ago) by rdm
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 115977 byte(s)
Diff to previous 3742
rename IOSFwd.h and IOStream.h to Riosfwd.h and Riostream.h. The change
is necessary because on Windows which is case insensitive IOStream.h
hides the real iostream.h.

Revision 3742 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 23 17:52:52 2002 UTC (13 years ago) by rdm
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 115977 byte(s)
Diff to previous 3016
use IOSFwd.h in headers instead of <iosfwd> or many other ifdef'ed variant
and IOStream.h in the source instead of <iostream[.h]>, <fstream[.h]> and
<iomanip[.h]>.

Revision 3016 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 12 06:46:56 2001 UTC (13 years, 3 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 116018 byte(s)
Diff to previous 2136
Do not add the TPrincipal and TMultiDimFit objects to the list of special objects in gROOT.
This was preventing the creation of more than one instance of these classes.

Revision 2136 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 7 18:41:49 2001 UTC (13 years, 8 months ago) by rdm
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 116364 byte(s)
Diff to previous 1719
additional MacOS X changes by Keisuke Fujii.

Revision 1719 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 28 11:04:07 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 115811 byte(s)
Diff to previous 1205
More changes (hopefully last cleanup) introducing constness in the API.

Revision 1205 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 15:13:57 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 115757 byte(s)
Diff to previous 1052
      W A R N I N G   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     ==================================================================
A very long list of changes in this pre-release of version 3.00.
We have modified the signature of many functions (in particular TObject)
to introduce more constness in the system.
You must change your code if your class derives from TObject and uses
one of the modified functions such as ls, Print, Compare, Hash, etc.
The modified functions in TObject have the following signature:
   virtual TObject    *Clone() const;
   virtual Int_t       Compare(const TObject *obj) const;
   virtual void        Delete(Option_t *option=""); // *MENU*
   virtual void        DrawClass() const; // *MENU*
   virtual void        DrawClone(Option_t *option="") const; // *MENU*
   virtual void        Dump() const; // *MENU*
   virtual TObject    *FindObject(const TObject *obj) const;
   virtual char       *GetObjectInfo(Int_t px, Int_t py) const;
   virtual ULong_t     Hash() const;
   virtual void        Inspect() const; // *MENU*
   virtual Bool_t      IsEqual(const TObject *obj) const;
   virtual void        ls(Option_t *option="") const;
   virtual void        Print(Option_t *option="") const;

A similar operation has been done with classes such as TH1, TVirtualPad,
TTree, etc.

Revision 1052 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 24 16:36:01 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 115751 byte(s)
Diff to previous 1051
Fix a compilation problem with flush/endl

Revision 1051 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Nov 24 16:21:00 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/hist/src/TMultiDimFit.cxx
File length: 115714 byte(s)
New class by Christian Holm Christensen

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9