[root] / trunk / hist / hist / inc / TBackCompFitter.h Repository:
ViewVC logotype

Log of /trunk/hist/hist/inc/TBackCompFitter.h

Parent Directory Parent Directory


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

Revision 35643 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 23 12:48:32 2010 UTC (4 years, 4 months ago) by moneta
File length: 5942 byte(s)
Diff to previous 34809
fix a conflict between using at the same time TFitter (and TMinuit) and TMinuitMinimizer (i.e.  when doing TH1::Fit)

- by default TMinuitMinimizer uses global instance of TMinuit (gMinuit). Add a check now if this has been deleted or if it has been re-created outside

- when fitting with TH1::Fit delete the TBackCompFitter object only if it has been created before from a previos TH1::Fit. This avoids deleting an external TMinuit instance

This patch should fix https://savannah.cern.ch/bugs/index.php?72909

Revision 34809 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 13 12:48:34 2010 UTC (4 years, 5 months ago) by moneta
File length: 5831 byte(s)
Diff to previous 31873
change TF1::IntegralError to give possibility to users to set parameters and covariance matrix from a 
different fit 
(see http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=10649 and 
 http://root.cern.ch/phpBB3//viewtopic.php?f=3&t=6678 )

Revision 31873 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 14 10:05:39 2009 UTC (5 years, 1 month ago) by brun
File length: 5685 byte(s)
Diff to previous 28022
From Lorenzo:
a patch fixing some comments in the TBackCompFitter and Fitter class and adding 
missing GetMinimizer() and GetObjFunction() methods.

Revision 28022 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 1 14:41:58 2009 UTC (5 years, 9 months ago) by moneta
File length: 5438 byte(s)
Diff to previous 26866
merge changes from math development branch. 
In details the changes are

TH1  
-----
add new functions IsBinUnderflow(bin), IsBinOverflow(bin) using global bin number
 - fix a problem in TH1::Sumw2() when called from constructor of TProfile()

TProfile,TProfile2D and TProfile3D
----------------------------------
  - add a new data member (TArrayD fBinSumw2) for storing the sum of weight square per bin. This is needed for correct error calculation in case of profile filled with weights different than 1. The new structure is filled only when TProfile::Sumw2() is called or when TH1::SetDefaultSumw2() is set. 
 
 - at the same time the TProfile classes have been improved by factoring out some common implementations of some methods like  Add and Merge

TH2, TH3
------------------

change projection into TProfile's in case Sumw2() is set to correctly project the 
errors.

Revision 26866 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 12 10:50:07 2008 UTC (6 years, 1 month ago) by moneta
File length: 5277 byte(s)
Diff to previous 26541
import lates changes from math development branch 
(from rev 26842) 

The main changes are: 
- add support for drawing Scan and Contour plot from FitPanel
- improve Minimizer interface by adding methods for contours and scan.  
  implement them using Minuit  and Minuit2

Mathcore: 
- improve Fitter class
  mantain now after fitting a reference to the Minimizer and Objective funciton which can be used later for performing the contour and scans      
  - avoid a copy of FitResult class 
 - add new methods in Minimizer for re-setting the variable values 
 - fix the bin fitting using the bin function integral in combination with the gradient or with Fumili 
 - add dictionary for Fit method functions 


Minuit2: 
 remove limit on number of scan points 
 implement scan and contour in Minuit2Minimizer

Minuit
 implement scan and contour in TMinuitMinimizer

SMatrix: 

 Change implementation of SMatrix::Invert (and Inverse) to use the 
 direct Cramer method only for 2x2 (not up to 5x5)
 Add SMatrix::InvertFast using Cramer method up to 5x5 
 (this is having now same behavior as before)

hist: 
 TBackCompFitter: 
 improve class due to change in Fitter. Use now the minimizer reference and 
 there is no need to re-create it
  Add interface for scan and contour in TBackCompFitter
 Add methods to retrieve FitResult and FitConfig

mathmore
 fix a memory leak
 implement changes in Minimizer 

fitpanel
 new dialog for the advanced drawing option with two tabs one for 
 drawing contour the other for drawing scan plots
  fixed some meory leaks and other small problems

Revision 26541 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 1 10:00:52 2008 UTC (6 years, 1 month ago) by moneta
File length: 3900 byte(s)
Diff to previous 26378
-fix a memory leak reported by Khamit Ardashev 
 (see https://savannah.cern.ch/bugs/?44735 ) due to a missing delete

- fix also a problem in printing the chi2 test after a binned likelihood fit

Revision 26378 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 22 11:46:21 2008 UTC (6 years, 2 months ago) by moneta
File length: 3850 byte(s)
Diff to previous 25876
import TUnfold class from S. Schmitt for unfolding
based on algorithm described by V. Blobel at 
https://indico.desy.de/contributionDisplay.py?contribId=23&confId=1149

fix also a bug printing result when fitting with option "U" with TMinuit

Revision 25876 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 18 09:35:00 2008 UTC (6 years, 3 months ago) by moneta
File length: 3810 byte(s)
Diff to previous 25529
import changes in dev branch in hist from revision 25740 to HEAD
import also changes in DataVector and BinData due to a missing virtual destructor
These changes do: 
- fix a bug in using Error and More option. 
- fix return code returned from Fit method
- add UnBinFit method for fitting unbinned data ( will be used later for TTree::Unbinned::Fit)
- improve treatment of strings in TBackCompFitter::ExecuteCommand 
  (now command is case unsensitive)
- add support for unbin data in TBackCompFitter
- forward declare BinData in HFitInterface.h ( this required to change also  TFitEditor)

Revision 25529 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 25 09:53:11 2008 UTC (6 years, 3 months ago) by moneta
File length: 3891 byte(s)
Diff to previous 25507
- fix support for option "U"  in Fit() method. Add in Fitter class method to fit FCN with Minuit-like type FCN.
  Add method to retrieve FCN function pointer from static instance of TVirtualFitter.

Revision 25507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 23 07:54:18 2008 UTC (6 years, 4 months ago) by moneta
File length: 3766 byte(s)
Diff to previous 25501
- fix coding convention violation for method comments and data members of MinimizerOptions class

Revision 25501 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 22 20:55:57 2008 UTC (6 years, 4 months ago) by moneta
File length: 3759 byte(s)
Diff to previous 25487
- fix a problem in using gMinuit after having called TH1::Fit. Now in the class TMinuitMinimizer a static TMinuit is not deleted and the static instance is used. 
- for Minuit provide printing of results in the old way
- use MinimizerOptions class for default parameter of TVirtualFitter

Revision 25487 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 22 12:44:13 2008 UTC (6 years, 4 months ago) by moneta
File length: 3446 byte(s)
Copied from: branches/dev/mathDev/hist/hist/inc/TBackCompFitter.h revision 25468
Diff to previous 25222
Import changes from math development branch, in particular a re-implementation of 
fitting methods for the histogram and graph objects. 

NOTE: Since some files are removed, a  make clean-hist is needed in order to be able 
to compile hist after an svn update. 

 
The implementation of TH1::Fit, TGraph::Fit, TGraph2D::Fit and TMultiGraph::Fit is 
done in a common function implemented in HFitImpl.cxx (HFit::Fit). 

In addition the file HFitInterface.h define ROOT::Fit::FitObject functions passing 
option directly via Foption class and not by a string. They are used by the FitPanel.

Remove previously existing files THistFitInterface.cxx (and *.h) and 
TGraphFitInterface.cxx (and *.h). The code is now in the  HFitInterface.cxx (and *.h) 
files. 

Use plugin manager directly to open the Fit Panel. Do not pass anymore via the THistPainter. 
Changes in TH1::FitPanel, TGraph::FitPanel. 
Add FitPanel() method for TGraph2D and TMultiGraph. 

Add new class TBackCompFitter, providing a backward compatible implementation of 
TVirtualFitter using the new fitting class. It is constructed from the fitter class 
and can be used to retrieve the fit information (result and configuration) via the 
TVirtualFitter API from FitConfig and FitResult. A static istance is created after 
calling the Fit method.   
  
Other changes are:  


TGraph: 
  - when creating a graph from an histogram, don't use the same name. 
  Otherwise it will conflict later with histogram created internally by the TGraph. 

TH2: 
     add protected method TH2::DoFitSlices and TH2::DoProfile as common implementations
     for (FitSlicesX,FitSclicesY) and (ProfileX, ProfileY).
     pass the global statistics in DoProjection when range is (1,NBIN)

TBinimialEfficiencyFit: 
     add possibility to set verbose option, and set different precision and 
     max iterations for minimizing.

Revision 25222 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon Aug 25 08:32:05 2008 UTC (6 years, 5 months ago) by moneta
Original Path: branches/dev/mathDev/hist/hist/inc/TBackCompFitter.h
File length: 3446 byte(s)
- add an implementatino of TVirtualFitter based on new fitting class to preserve backward compatibility

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