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

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

Parent Directory Parent Directory


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

Revision 39671 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 10 15:26:19 2011 UTC (3 years, 7 months ago) by couet
File length: 14569 byte(s)
Diff to previous 38862
Improve Optimize help

Revision 38862 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 15 09:55:53 2011 UTC (3 years, 9 months ago) by moneta
File length: 14164 byte(s)
Diff to previous 35262
fixes for Coverity (uninitialized  variables)

Revision 35262 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 14 09:51:49 2010 UTC (4 years, 4 months ago) by brun
File length: 14156 byte(s)
Diff to previous 35015
Fix a potentially uninitialized variable. coverity CID 20769

Revision 35015 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 25 14:58:43 2010 UTC (4 years, 5 months ago) by couet
File length: 14154 byte(s)
Diff to previous 23417
- In Optimize: initialize nbins as nold to make coverity happy.

Revision 23417 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 09:19:11 2008 UTC (6 years, 9 months ago) by brun
File length: 14136 byte(s)
Diff to previous 22694
Fix shadowed variable

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

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/THLimitsFinder.cxx
File length: 14145 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/THLimitsFinder.cxx
File length: 14145 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/THLimitsFinder.cxx
File length: 14202 byte(s)
Diff to previous 19118
remove :$ from tag line

Revision 19118 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 22 07:17:48 2007 UTC (7 years, 7 months ago) by brun
Original Path: trunk/hist/src/THLimitsFinder.cxx
File length: 14212 byte(s)
Diff to previous 17338
Fix possible uninitialized variables in TGaxis::PaintAxis and THLimitsFinder

Revision 17338 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 15 16:10:11 2007 UTC (8 years ago) by brun
Original Path: trunk/hist/src/THLimitsFinder.cxx
File length: 14210 byte(s)
Diff to previous 13485
Remove TMath.h from TH1.h and add TMath.h to all files previously assuming TMath.h
via TH1.h
This should complete the changes related to TMath.

Revision 13485 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 4 10:51:27 2005 UTC (9 years, 1 month ago) by brun
Original Path: trunk/hist/src/THLimitsFinder.cxx
File length: 14190 byte(s)
Diff to previous 12547
Replace all references to Axis_t and Stat_t by Double_t in all histogram classes.

Following several recent requests, implement new functions
to search the bin with a specified content.

Double_t TH1::GetBinWithContent(Double_t c, Int_t &binx, Int_t firstx, Int_t lastx,Double_t maxdiff) const
{
   // compute first binx in the range [firstx,lastx] for which
   // diff = abs(bin_content-c) <= maxdiff
   // In case several bins in the specified range with diff=0 are found
   // the first bin found is returned in binx.
   // In case several bins in the specified range satisfy diff <=maxdiff
   // the bin with the smallest difference is returned in binx.
   // In all cases the function returns the smallest difference.
   //
   // NOTE1: if firstx <= 0, firstx is set to bin 1
   //        if (lastx < firstx then firstx is set to the number of bins
   //        ie if firstx=0 and lastx=0 (default) the search is on all bins.
   // NOTE2: if maxdiff=0 (default), the first bin with content=c is returned.

Double_t TH2::GetBinWithContent2(Double_t c, Int_t &binx, Int_t &biny, Int_t firstx, Int_t lastx, Int_t firsty, Int_t lasty, Double_t maxdiff) const
{
   // compute first cell (binx,biny) in the range [firstx,lastx](firsty,lasty] for which
   // diff = abs(cell_content-c) <= maxdiff
   // In case several cells in the specified range with diff=0 are found
   // the first cell found is returned in binx,biny.
   // In case several cells in the specified range satisfy diff <=maxdiff
   // the cell with the smallest difference is returned in binx,biny.
   // In all cases the function returns the smallest difference.
   //
   // NOTE1: if firstx <= 0, firstx is set to bin 1
   //        if (lastx < firstx then firstx is set to the number of bins in X
   //        ie if firstx=0 and lastx=0 (default) the search is on all bins in X.
   //        if firsty <= 0, firsty is set to bin 1
   //        if (lasty < firsty then firsty is set to the number of bins in Y
   //        ie if firsty=0 and lasty=0 (default) the search is on all bins in Y.
   // NOTE2: if maxdiff=0 (default), the first cell with content=c is returned.

Double_t TH3::GetBinWithContent3(Double_t c, Int_t &binx, Int_t &biny, Int_t &binz, Int_t firstx, Int_t lastx, Int_t firsty, Int_t lasty, Int_t firstz, Int_t lastz, Double_t maxdiff) const
{
   // compute first cell (binx,biny,binz) in the range [firstx,lastx](firsty,lasty][firstz,lastz] for which
   // diff = abs(cell_content-c) <= maxdiff
   // In case several cells in the specified range with diff=0 are found
   // the first cell found is returned in binx,biny,binz.
   // In case several cells in the specified range satisfy diff <=maxdiff
   // the cell with the smallest difference is returned in binx,biny,binz.
   // In all cases the function returns the smallest difference.
   //
   // NOTE1: if firstx <= 0, firstx is set to bin 1
   //        if (lastx < firstx then firstx is set to the number of bins in X
   //        ie if firstx=0 and lastx=0 (default) the search is on all bins in X.
   //        if firsty <= 0, firsty is set to bin 1
   //        if (lasty < firsty then firsty is set to the number of bins in Y
   //        ie if firsty=0 and lasty=0 (default) the search is on all bins in Y.
   //        if firstz <= 0, firstz is set to bin 1
   //        if (lastz < firstz then firstz is set to the number of bins in Z
   //        ie if firstz=0 and lastz=0 (default) the search is on all bins in Z.
   // NOTE2: if maxdiff=0 (default), the first cell with content=c is returned.

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

Revision 7744 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 12 17:57:05 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/hist/src/THLimitsFinder.cxx
File length: 14162 byte(s)
Diff to previous 7386
Some axis optimisations (time axis in particular) by Damir Buskulic

Revision 7386 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 30 19:04:39 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/hist/src/THLimitsFinder.cxx
File length: 13878 byte(s)
Diff to previous 6532
From Philippe:
correction for correctly finding the limits of an integer histogram of range [-x,0]. It was ]-x-1,0[ and is
now ]-x-1,1[

Revision 6532 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 5 09:18:42 2003 UTC (11 years, 8 months ago) by brun
Original Path: trunk/hist/src/THLimitsFinder.cxx
File length: 13816 byte(s)
Diff to previous 5755
In THLimitsFinder::Optimize take into account very special cases when the number of bins is
less than 5

Revision 5755 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 6 11:12:30 2002 UTC (12 years, 1 month ago) by brun
Original Path: trunk/hist/src/THLimitsFinder.cxx
File length: 13664 byte(s)
Diff to previous 5718
Add more comments in THLimitsFinder::FindGoodLimits

Revision 5718 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 2 21:39:09 2002 UTC (12 years, 1 month ago) by brun
Original Path: trunk/hist/src/THLimitsFinder.cxx
File length: 13506 byte(s)
Diff to previous 5259
In the FindGoodLimits functions for 1,2 and 3-d histograms, add support
for axis with alphanumeric bin labels.

Revision 5259 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 11 08:50:07 2002 UTC (12 years, 4 months ago) by brun
Original Path: trunk/hist/src/THLimitsFinder.cxx
File length: 12811 byte(s)
Diff to previous 4817
Fix a numerical rounding problem in THLimitsFinder::Optimize affecting
the axis labels optimisation in particular.

Revision 4817 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 4 16:12:42 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/hist/src/THLimitsFinder.cxx
File length: 12685 byte(s)
Diff to previous 3666
Fix by Damir Busklic in THLimitsFinder::Optimize in case
of special values in timedisplay format.

Revision 3666 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue Jan 15 10:22:27 2002 UTC (13 years ago) by brun
Original Path: trunk/hist/src/THLimitsFinder.cxx
File length: 12657 byte(s)
New class to compute nice axis limits.
This class is called by the histograming package and by TTree::Draw.

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