- Apr 24, 2008
-
-
Rene Brun authored
there is a bug in GCC 4.3.0 that makes roottest/root/hist/operator/runsparse.C fail in the error calculation part. Funny enough it fails because TH3 messes up its errors (not THnSparse :-) . The problem stems from TH1::GetBinError(): if (fSumw2.fN) return TMath::Sqrt(fSumw2.fArray[bin]); does not get evaluated properly - it has _horribly_ wrong values, e.g. -5063: 0.42 +5063: 0.648074 ("-" is GCC 3.4.6, "+" is GCC 4.3.0) after scaling a bin with a single entry by 0.42. So this is a real issue. It's possibly connected to the new math compiler intrinsics + pushing their results onto the stack. Attached patch fixes this, by introducing a temporary. Double_t err2 = fSumw2.fArray[bin]; return TMath::Sqrt(err2); The patch also fixes THnSparse::Scale() - it was also scaling the entries. git-svn-id: http://root.cern.ch/svn/root/trunk@23533 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 23, 2008
-
-
Rene Brun authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23424 27541ba8-7e3a-0410-8455-c3a389f83636
-
Rene Brun authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23423 27541ba8-7e3a-0410-8455-c3a389f83636
-
Rene Brun authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23422 27541ba8-7e3a-0410-8455-c3a389f83636
-
Rene Brun authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23421 27541ba8-7e3a-0410-8455-c3a389f83636
-
Rene Brun authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23420 27541ba8-7e3a-0410-8455-c3a389f83636
-
Rene Brun authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23419 27541ba8-7e3a-0410-8455-c3a389f83636
-
Rene Brun authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23418 27541ba8-7e3a-0410-8455-c3a389f83636
-
Rene Brun authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23417 27541ba8-7e3a-0410-8455-c3a389f83636
-
Rene Brun authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23415 27541ba8-7e3a-0410-8455-c3a389f83636
-
Rene Brun authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23413 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 21, 2008
-
-
Lorenzo Moneta authored
Implement Projection() for non-uniform bins, too. Simplify and shorten the code considerably (combine projection targets TH1,2,3, THnSparse). Also fixes a bug with the projection target's title for THnSparse->THnSparse projections. git-svn-id: http://root.cern.ch/svn/root/trunk@23375 27541ba8-7e3a-0410-8455-c3a389f83636
-
Lorenzo Moneta authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23365 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 17, 2008
-
-
Fons Rademakers authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23290 27541ba8-7e3a-0410-8455-c3a389f83636
-
Rene Brun authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23286 27541ba8-7e3a-0410-8455-c3a389f83636
-
Rene Brun authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23275 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 11, 2008
-
-
Fons Rademakers authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23143 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 10, 2008
-
-
Lorenzo Moneta authored
Implement THnSparse::RebinnedAdd(hnsparse, c), which adds hnsparse*c to this, ignoring different bin sizes. Can be used to rebin a THnSparse: create a new THnSparse with the binning you want, and add the THnSparse with the old binning to it using RebinnedAdd(old). Also fixes an issue with Rebin() accessing an out-of-bound bin. git-svn-id: http://root.cern.ch/svn/root/trunk@23127 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 09, 2008
-
-
Fons Rademakers authored
git-svn-id: http://root.cern.ch/svn/root/trunk@23092 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 05, 2008
-
-
Philippe Canal authored
TTree, TH1, TEventList, TEntryList, TGraph2D (and hence their derived classes). The instances of those classes are now added automatically to the current directory only when Constructe'd with arguments or Clone'd and to the directory they are read from when their are stored directly in a TKey. [Note: the default constructor never adds the object to the current directory] The directory auto add can still be disabled for instance of TH1 and TGraph2D by setting TH1::AddDirectory. Additionally one can disable the directory auto add for a specific class by doing: TClass::GetClass("myclass")->SetDirectoryAutoAdd(0) However you might want to also be able to restore the behavior in which case you ought to do: TClass *cl = TClass::GetClass("myclass"); ROOT::DirAutoAdd_t func = cl->GetDirectoryAutoAdd(); cl->SetDirectoryAutoAdd(0); TROOT::ReadingObject is marked as deprecated.. It is still set (as it was) but is no longer used by the above mention classes. NOTE: One side effect of this change, is that instnace of TTree, TH1, TEventList, TEntryList, TGraph2D that are retrieved from a TMessage (i.e. from a socket) no longer auto register themselves to the current ROOT directory. Add a new optional parameter to TDirectory::Append: 'replace' If replace is true (the default is false), the Append will first remove from the directory any existing object and print the message: Replacing existing OldClass: thename (Potential memory leak). Add a new option parameter to TDirectory::CloneObject: 'autoadd' If autoadd is true (the default), CloneObject will call the object 'DirectoryAutoAdd' function (if any) In TDirectory::CloneObject add support for multiple inheritance from TObject where TObject is not the left most base class. Fix memory leak in TGraph2D::operator= (and add TGraph2D::Clear) Cleanup some documentation git-svn-id: http://root.cern.ch/svn/root/trunk@22992 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 04, 2008
-
-
Rene Brun authored
// Smooth bin contents of this 2-d histogram using kernel algorithms // similar to the ones used in the raster graphics community. // Bin contents in the active range are replaced by their smooth values. // If Errors are defined via Sumw2, they are scaled. // 3 kernels are proposed k5a, k5b and k3a. // k5a and k5b act on 5x5 cells (i-2,i-1,i,i+1,i+2, and same for j) // k5b is a bit more stronger in smoothing // k3a acts only on 3x3 cells (i-1,i,i+1, and same for j). // By default the kernel "k5a" is used. You can select the kernels "k5b" or "k3a" // via the option argument. // If TAxis::SetRange has been called on the x or/and y axis, only the bins // in the specified range are smoothed. // In the current implementation if the first argument is not used (default value=1). // // implementation by David McKee (dmckee@bama.ua.edu). Extended by Rene Brun git-svn-id: http://root.cern.ch/svn/root/trunk@22986 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 03, 2008
-
-
Philippe Canal authored
TDirectory::Append. This allows more 'hiding' of the internal list as well as simplifying code (now) using Append/Remove. git-svn-id: http://root.cern.ch/svn/root/trunk@22972 27541ba8-7e3a-0410-8455-c3a389f83636
-
Rene Brun authored
see : http://root.cern.ch/phpBB2/viewtopic.php?t=5262 void TH2::Smooth(Int_t , Option_t *) // Smooth bin contents of this histogram. // Bin contents are replaced by their smooth values. // Errors (if any) are not modified. // implementation by David McKee (dmckee@bama.ua.edu) Also change in A BACKWARD INCOMPATIBLE WAY the signature of TH1::Smooth to be the same as TH2::Smooth. git-svn-id: http://root.cern.ch/svn/root/trunk@22965 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Mar 31, 2008
-
-
Rene Brun authored
in the final TH2C,S,I,F,D constructors git-svn-id: http://root.cern.ch/svn/root/trunk@22912 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Mar 28, 2008
-
-
Fons Rademakers authored
mathcore mathmore fftw foam fumili genvector matrix minuit minuit2 mlp physics smatrix splot unuran quadp git-svn-id: http://root.cern.ch/svn/root/trunk@22885 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Mar 26, 2008
-
-
Lorenzo Moneta authored
( fix for bug https://savannah.cern.ch/bugs/index.php?34936 ) git-svn-id: http://root.cern.ch/svn/root/trunk@22840 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Mar 25, 2008
-
-
Fons Rademakers authored
git-svn-id: http://root.cern.ch/svn/root/trunk@22822 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Mar 19, 2008
-
-
Lorenzo Moneta authored
- remove TMathImp.h file to fix documentaiton problem - change name for class GaussIntegratorOneDim to GaussIntegrator git-svn-id: http://root.cern.ch/svn/root/trunk@22728 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Mar 17, 2008
-
-
Fons Rademakers authored
git-svn-id: http://root.cern.ch/svn/root/trunk@22694 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Mar 12, 2008
-
-
Lorenzo Moneta authored
git-svn-id: http://root.cern.ch/svn/root/trunk@22615 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Mar 10, 2008
-
-
Lorenzo Moneta authored
- fix warning observed on the Windows nightly (avid generating the dictionary for fit method functions for all platforms, it is not needed) - add implementation of Minimizer interface using TMinuit and the linear fitter - add method SetBasisFunctions in TLinearFitter class to set the linear terms - add some optimization of wrapped functions and improve doc git-svn-id: http://root.cern.ch/svn/root/trunk@22564 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Mar 08, 2008
-
-
Fons Rademakers authored
- warning: suggest a space before ; or explicit braces around empty body in for statement git-svn-id: http://root.cern.ch/svn/root/trunk@22546 27541ba8-7e3a-0410-8455-c3a389f83636
-
Fons Rademakers authored
git-svn-id: http://root.cern.ch/svn/root/trunk@22538 27541ba8-7e3a-0410-8455-c3a389f83636
-
Fons Rademakers authored
git-svn-id: http://root.cern.ch/svn/root/trunk@22537 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Mar 07, 2008
-
-
Fons Rademakers authored
and xrootd. git-svn-id: http://root.cern.ch/svn/root/trunk@22527 27541ba8-7e3a-0410-8455-c3a389f83636
-
Lorenzo Moneta authored
git-svn-id: http://root.cern.ch/svn/root/trunk@22519 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Mar 03, 2008
-
-
Rene Brun authored
Changes to support the gcc -weffc++ compiler option. git-svn-id: http://root.cern.ch/svn/root/trunk@22428 27541ba8-7e3a-0410-8455-c3a389f83636
-
Fons Rademakers authored
ROOT can not be compiled with gcc-4.3. Some ROOT source files doesn't contain required #include directives, for example, they use strlen(), but #include <string.h> is missed or malloc() is used and #include <stdlib.h> is missed. Earlier versions of gcc allowed some headers to be included implicitly, but issued a warning (-Wimplicit-function-declaration). Newer one, gcc-4.3 denies such silly behaviour: all required headers must be explicitly included. Attached patch fixes this. Also it fixes another issue, which disallows ROOT to compile under gcc-4.3: C functions don't belong to namespace std, so expressions like std::memcpy() are no longer valid and plain memcpy() should be used instead. git-svn-id: http://root.cern.ch/svn/root/trunk@22419 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Feb 29, 2008
-
-
Lorenzo Moneta authored
git-svn-id: http://root.cern.ch/svn/root/trunk@22403 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Feb 22, 2008
-
-
Lorenzo Moneta authored
from Axel: apply patch to fixe two memleaks: an enormous one reported for THnSparse and a tiny one for TH3::ProjectionZ git-svn-id: http://root.cern.ch/svn/root/trunk@22295 27541ba8-7e3a-0410-8455-c3a389f83636
-