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

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

Parent Directory Parent Directory


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

Revision 48409 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 24 15:03:10 2013 UTC (23 months, 4 weeks ago) by moneta
File length: 35401 byte(s)
Diff to previous 48333
from Gabriel: 

 Fixed coverity issues: 48371, 48513, 47921, 48345, 47920, 48348, 47886, 47885

Revision 48333 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 18 14:12:02 2013 UTC (2 years ago) by moneta
File length: 35385 byte(s)
Diff to previous 48324
from Gabriel: fix compilation on Windows and Solaris

Revision 48324 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 18 10:05:35 2013 UTC (2 years ago) by moneta
File length: 35771 byte(s)
Diff to previous 46606
from Gabriel: 

   - added protection to FindPrediction in case Newton's method fails for whatever reason: maximum number of iterations set at 100000 (and warning message in case this limit is surpassed)
   - added protection against negative values in MC observed events input: if no. events is negative an error message is printed
   - FindPrediction now caches values from the input histograms instead of repeating the same operations many times


This fixes a problem reported in 

 http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=15854

Revision 46606 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 17 12:30:31 2012 UTC (2 years, 3 months ago) by moneta
File length: 34750 byte(s)
Diff to previous 44507
Change TFractionFItter and TBinomialEfficiencyFitter class to use the ROOT::Fit::Fitter class (as TH1::Fit) instead of TVirtualFitter
This fixes also the bug https://savannah.cern.ch/bugs/?97097

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: 34428 byte(s)
Diff to previous 38775
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 38775 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 8 08:27:27 2011 UTC (3 years, 9 months ago) by moneta
File length: 34418 byte(s)
Diff to previous 35510
from Frank Filthaut: new version of TFractionFitter providing the possibility top exclude bins from the fit 

- Add also an option in the constructor to switch off (option Q) or to turn all (option V) the printout from the fitter

Revision 35510 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 08:47:21 2010 UTC (4 years, 4 months ago) by moneta
File length: 31627 byte(s)
Diff to previous 35436
fix some Coverity issues (dead code)

Revision 35436 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 09:30:12 2010 UTC (4 years, 4 months ago) by moneta
File length: 31877 byte(s)
Diff to previous 35016
fix coverity issues 11202 and 11810

Revision 35016 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 25 15:41:07 2010 UTC (4 years, 5 months ago) by moneta
File length: 31862 byte(s)
Diff to previous 25492
fox for uninitialize constructors (coverity)

Revision 25492 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 22 13:38:31 2008 UTC (6 years, 4 months ago) by brun
File length: 31734 byte(s)
Diff to previous 22694
From Frank Filthaut:
Add more comments in the class description explaining the assumptions.

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: 31183 byte(s)
Diff to previous 22403
move hist, histpainter, spectrum and spectrumpainter in the hist package.

Revision 22403 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 29 09:41:02 2008 UTC (6 years, 10 months ago) by moneta
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 31183 byte(s)
Diff to previous 20882
- apply fix from Benno List. Code is now as in  the orginal paper from Barlow, Eq. 9

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/TFractionFitter.cxx
File length: 31183 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/TFractionFitter.cxx
File length: 31183 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/TFractionFitter.cxx
File length: 31242 byte(s)
Diff to previous 16221
remove :$ from tag line

Revision 16221 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 8 12:24:38 2006 UTC (8 years, 4 months ago) by brun
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 31252 byte(s)
Diff to previous 15082
Add a protection against a log with a negative argument in TFractionFitter::ComputeFCN

Revision 15082 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 17 16:37:26 2006 UTC (8 years, 8 months ago) by couet
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 31233 byte(s)
Diff to previous 14062
- Coding conventions.

Revision 14062 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 19 17:06:29 2006 UTC (8 years, 11 months ago) by brun
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 30548 byte(s)
Diff to previous 12647
From Axel:
 A small fix for TFractionFitter's doc.

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/TFractionFitter.cxx
File length: 30552 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/TFractionFitter.cxx
File length: 30020 byte(s)
Diff to previous 9780
Changes to make the rulechecker happy in directory hist.
The class TSpectrum still needs to be changed.

Revision 9780 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 18 12:29:44 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 30011 byte(s)
Diff to previous 9768
From Frank filthaut
Fix a bug in TFractionFitter::FindPrediction

Revision 9768 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 17 10:57:05 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 29943 byte(s)
Diff to previous 8184
Add a protection in TFractionFitter::FindPrediction against the case nMax=0.

Revision 8184 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 11 14:08:27 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 29922 byte(s)
Diff to previous 8106
Fix by Frank Filthaut for a precision problem in a if statement

Revision 8106 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 2 15:37:28 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 29930 byte(s)
Diff to previous 8048
From Axel Naumann:
here's a patch for TFractionFitter (cvs current cvs) which prevents it
from ending up in an infinite loop (with key params being NAN).

Revision 8048 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 27 13:28:23 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 29921 byte(s)
Diff to previous 7519
Cleanup of many files havind trailing CR/LF

Restrustruring of TGraph2D::GetContourList with the algorithm in histpainter (by Olivier)

Revision 7519 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 4 22:03:25 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 30795 byte(s)
Diff to previous 5717
New features added to TFractionFitter by Bram Wijngaarden <dwijngaa@hef.kun.nl>

"I've added some features to the TFractionFitter class:
- the adjusted templates generated by the fit method are now stored and
accessible;
- a Chisquare and NDF have been added.

You can access the adjusted templates using
TH1* GetMCPrediction(Int_t parm) const;

Chi squared and NDF are accessible using
Double_t GetChisquare()
Int_t GetNDF()
Double_t GetProb(),
only if the fit is successful of course (GetChisquare will return 0 if no
successful fit has been performed).

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/TFractionFitter.cxx
File length: 25761 byte(s)
Diff to previous 4583
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 4583 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 23 06:50:56 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 25725 byte(s)
Diff to previous 4573
Implement default constructor for the new class TFractionFitter

Revision 4573 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 20 21:05:31 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 25823 byte(s)
Diff to previous 4571
Replace include <iostream> by Riostream.h

Revision 4571 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon May 20 15:10:08 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/hist/src/TFractionFitter.cxx
File length: 25820 byte(s)
Add new class TFractionFitter from Frank Filthaut

Fits MC fractions to data histogram (a la HMCMLL, see R. Barlow and C. Beeston,
Comp. Phys. Comm. 77 (1993) 219-228, and http://www.hep.man.ac.uk/~roger/hfrac.f).

The virtue of this fit is that it takes into account both data and Monte Carlo
statistical uncertainties. The way in which this is done is through a standard
likelihood fit using Poisson statistics; however, the template (MC) predictions
are also varied within statistics, leading to additional contributions to the
overall likelihood. This leads to many more fit parameters (one per bin per
template), but the minimisation with respect to these additional parameters is
done analytically rather than introducing them as formal fit parameters.

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