Log of /trunk/gui/fitpanel/src/TFitEditor.cxx
Parent Directory
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: 132437 byte(s)
Diff to
previous 43240
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
32930 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Apr 9 16:18:32 2010 UTC (4 years, 9 months ago) by
pcanal
File length: 131217 byte(s)
Diff to
previous 32171
Prefer the use of InheritsFrom(TClass*) over InheritsFrom(const char*) as long as
it does not increase the library dependencies.
Revision
31790 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Dec 10 14:14:17 2009 UTC (5 years, 1 month ago) by
bellenot
File length: 131136 byte(s)
Diff to
previous 31786
- Check validity of pointers returned by dynamic_cast (coverity)
- Fix memory leaks by properly delete allocated arrays (coverity)
- Fix uninitialized variable (valgrind)
Revision
30461 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 25 16:01:13 2009 UTC (5 years, 3 months ago) by
moneta
File length: 112691 byte(s)
Diff to
previous 30151
merge from development branch work from David:
- Added predefined functions for 2D Objects.
Also correct an error message that displayed wrong information about the method.
- Improve the availability of the Draw Advanced Button. i.e. check
whether the selected object has already been fitted and enable/disable
the button according to this.
Revision
30151 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Sep 14 15:48:19 2009 UTC (5 years, 4 months ago) by
bellenot
File length: 109125 byte(s)
Diff to
previous 29156
Change order of MapWindow() & Window Manager operations (SETWM...) to fix potential WM dependent problems with the event recorder on Linux
Revision
29104 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 19 13:41:05 2009 UTC (5 years, 7 months ago) by
moneta
File length: 108995 byte(s)
Diff to
previous 29083
import latest changes from dev branch:
mathcore/mathmore :
fixes for GSL fit algorithm (Levenberg Marquardt)
from David:
hist:
improve comments in TH2,3 projections
fitpanel:
add GSL minimization methods and use a dynamic pop-up list for algorithms
Revision
29083 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 18 14:57:21 2009 UTC (5 years, 7 months ago) by
moneta
File length: 110182 byte(s)
Diff to
previous 28795
merge changes from David in branch:
Fixed a problem with the parameters when a function registered in ROOT coincides
with a function defined by the user in the fitpanel
Revision
28795 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 3 14:29:37 2009 UTC (5 years, 7 months ago) by
moneta
File length: 109646 byte(s)
Diff to
previous 28790
use option SAME to re-draw the fit function in the current pad.
This is useful when histogram was drawn with option "HIST" and the fit funciton will not be plotted
after fitting
Revision
28790 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 3 08:47:55 2009 UTC (5 years, 7 months ago) by
moneta
File length: 109680 byte(s)
Diff to
previous 28061
- fix a problem with option "SAME". When is set use it as option for drawing after fitting. If not set use default options
from histogram
Revision
28061 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Apr 2 13:07:03 2009 UTC (5 years, 9 months ago) by
moneta
File length: 109498 byte(s)
Diff to
previous 28057
merge latest commit from David in branch
Fixed one particular case where the default function was not gaus for 1D objects.
Revision
27549 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Feb 20 14:31:41 2009 UTC (5 years, 11 months ago) by
moneta
File length: 109407 byte(s)
Diff to
previous 27477
merge changes in branch from David
- The fitpanel now stores the functions used for previous fit and let the user used them in the future.
- Removed some variables that were no longer used
Revision
26947 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Dec 16 11:09:54 2008 UTC (6 years, 1 month ago) by
moneta
File length: 108960 byte(s)
Diff to
previous 26866
merge lates change from dev branch (from version 26682 in math and gui)
fitpanel:
some small improvements from David, like adding the tip text, and possibility for choosing contour color
minuit2:
add new standalone test for multi-dim fit to show effect of parallelization
mathcore.mathmore:
fix some small problems with the test programs
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: 108984 byte(s)
Diff to
previous 26586
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
26370 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Nov 21 20:24:09 2008 UTC (6 years, 2 months ago) by
brun
File length: 109187 byte(s)
Diff to
previous 26357
From Bertrand:
- TFitEditor.cxx: Fix Windows compilation warning C4138: '*/' found outside of comment
- TRootCanvas.cxx: pass correct pointer to TVirtualPad as argument to handler->ExecPlugin() (used as first argument in TFitEditor constructor) instead of a pointer to TRootCanvas
Revision
26245 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Nov 17 16:32:49 2008 UTC (6 years, 2 months ago) by
moneta
File length: 108572 byte(s)
Diff to
previous 25877
from David new version of fit panel imported from the branch. Main Changes are:
- Add support to fit TTree
- Add support for user defined functions and classify function types in the selection
- Make FitPanel independent from the canvas and the fit object
- Add a numeric entry for the slider
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: 93724 byte(s)
Diff to
previous 25740
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
25740 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Oct 8 13:29:56 2008 UTC (6 years, 3 months ago) by
moneta
File length: 93625 byte(s)
Diff to
previous 25626
import from the branch the lates fixed from David:
The update and set up of the sliders has been unified into the
UpdateGUI method, simplifying the DoReset one. This also allowed the
reduction of some data members of the class.
The function CheckRange has been removed.
This funcionality has been moved into the UpdateGUI
function were the rest of the axis were being checked.
The Parameters rxmin and rxmax where removed from the TFitParamertersDialog,
as they were not used nor needed.
Revision
25488 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Sep 22 12:46:10 2008 UTC (6 years, 4 months ago) by
moneta
File length: 94811 byte(s)
Diff to
previous 23445
import from develpment branch a new version of the fit panel
developed by David.
- support now for multi-dimensional histograms, TMultiGraph and TGraph2D.
- improve robustness in setting fitting function and parameters
- use new fitting functions defined in HFitInterface instead of TH1::Fit
Revision
18279 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Mar 15 15:08:50 2007 UTC (7 years, 10 months ago) by
antcheva
Original Path:
trunk/fitpanel/src/TFitEditor.cxx
File length: 94178 byte(s)
Diff to
previous 18174
- If selected object has been fitted, its function(s) is recognized and added to the list and can be selected for later use
- Slider position is adjusted to the function range, if option "R" was used
- Fixed crash when fit panel is activated and leaving ROOT (.q)
Revision
17561 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jan 29 15:10:49 2007 UTC (7 years, 11 months ago) by
brun
Original Path:
trunk/fitpanel/src/TFitEditor.cxx
File length: 74888 byte(s)
Diff to
previous 17553
-Add include "TROOT.h" in all implementation files that were assuming
that TROOT was included via TClass.h
-In TClass.h:
--Remove the include of TROOT.h
--add the following static member
static IdMap_t *fgIdMap; //Map from typeid to TClass pointer
--add the following functions:
static void AddClass(TClass *cl);
static void RemoveClass(TClass *cl);
--Replace the inline definitions of GetClass functions by
template <typename T> TClass* GetClass( T** /* dummy */) { return GetClass((T*)0); }
template <typename T> TClass* GetClass(const T** /* dummy */) { return GetClass((T*)0); }
-In TClass.cxx:
--Instead of forwarding the calls to gROOT->GetClass, move the code
originally in TROOT in the TClass::GetClass functions
--Move class TMapTypeToTClass from TROOT to TClass.
Revision
17110 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Dec 8 15:52:20 2006 UTC (8 years, 1 month ago) by
antcheva
Original Path:
trunk/fitpanel/src/TFitEditor.cxx
File length: 74507 byte(s)
Diff to
previous 17046
- fit panel mapped on the right side of the canvas window (if there is enough space)
- if an object was fitted, we copy the function and its parameters from the previous fit
- when performing linear fit 'best errors' , 'improve results' and 'set parameters' are disabled
Revision
16761 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Nov 14 15:08:33 2006 UTC (8 years, 2 months ago) by
brun
Original Path:
trunk/fitpanel/src/TFitEditor.cxx
File length: 69856 byte(s)
Diff to
previous 16466
From Ilka:
Changes in the fit panel functionality as follows:
- implemented as a modeless dialog, i.e. when open
it does not prevent users from interacting with other windows
- it is a singleton application, created per root session
- users can select an object for fitting in the usual way, i.e.
by left-mouse click on it; it the selected object is suitable
for fitting, the fit panel is connected with it and users can perform
fits by setting different parameters and options
- it is included in the ListOfCleanups and has the RecursiveRemove
method to handle cases of deletion of the currently selected object
or of he pad where this object is drawn
Revision
16439 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Thu Oct 5 15:06:48 2006 UTC (8 years, 3 months ago) by
brun
Original Path:
trunk/fitpanel/src/TFitEditor.cxx
File length: 59694 byte(s)
From Ilka and Lorenzo:
This is the first prototype of the new fit panel GUI. Its goal is to replace the old one and
to provide more user friendly way for prforming, exploring and comparing fits.
The new interface is loaded via plug-in manager. It is set as default in TUtilPad via the
static variable and shows up on the place of the old fit panel. To switch to the old fit panel
interface just do: TUtilPad::SetPanelVersion(1);
For more details see the TFitEditor class description.
fitpanel - new fit panel directory
new classes:
TFitEditor class provides new fit panel user interface.
TFitParametersDialog provides a dialog for fit function parameter settings.
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.