Log of /trunk/hist/hist/src/TFractionFitter.cxx
Parent Directory
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
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
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
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.