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

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

Parent Directory Parent Directory


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

Revision 49284 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 22 12:31:54 2013 UTC (21 months ago) by moneta
File length: 30080 byte(s)
Diff to previous 46874
fix in THStack for variable histograms

Revision 46874 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 29 15:11:59 2012 UTC (2 years, 2 months ago) by couet
File length: 29891 byte(s)
Diff to previous 44507
Update the help of GetHistogram()

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: 29582 byte(s)
Diff to previous 44225
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 44225 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 11 07:43:46 2012 UTC (2 years, 8 months ago) by moneta
File length: 29517 byte(s)
Diff to previous 41395
apply several Coverity fixes for Hist (mainly to check return pointer values)

Revision 41395 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 14 12:25:08 2011 UTC (3 years, 3 months ago) by pcanal
File length: 29467 byte(s)
Diff to previous 39365
Avoid spurrious error message when merging with an empty list

Revision 39365 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 24 19:53:19 2011 UTC (3 years, 8 months ago) by pcanal
File length: 29388 byte(s)
Diff to previous 39265
Remove hard dependencies of TFileMerger on TH1 and TTree.
(Soft dependencies still exist to be able to disable the
merging of TTrees and to be able to disable the AutoAdd
behavior of TH1).

Introduce new explicit interface for providing merging 
capability.  If a class has a method with the name and 
signature:

   Long64_t Merge(TCollection *input, TFileMergeInfo*);

it will be used by a TFileMerger to merge one or more
other objects into the current object.   Merge should
return a negative value if the merging failed.

If this method does not exist, the TFileMerger will use
a method with the name and signature:

   Long64_t Merge(TColletion *input);

TClass now provides a quick access to these merging 
function via TClass::GetMerge.   The wrapper function
is automatically created by rootcint and can be installed
via TClass::SetMerge.   The wrapper function should have
the signature/type ROOT::MergeFunc_t:

   Long64_t (*)(void *thisobj, TCollection *input, TFileMergeInfo*);

Added the new Merge function to TTree and THStack.
Also add the new Merge function to TQCommand as the
existing TQCommand::Merge does _not_ have the right
semantic (in part because TQCommand is a collection). 
Fix the return value of TEfficiency::Merge

In TFileMerger, add a PrintLevel to allow hadd to request
more output than regular TFileMerger.

The object TFileMergeInfo can be used inside the Merge
function to pass information between runs of the Merge
(see below).  In particular it contains:

   TDirectory  *fOutputDirectory;  // Target directory where the merged object will be written.
   Bool_t       fIsFirst;          // True if this is the first call to Merge for this series of object.
   TString      fOptions;          // Additional text based option being passed down to customize the merge.
   TObject     *fUserData;         // Place holder to pass extra information.  This object will be deleted at the end of each series of objects.
   
The default in TFileMerger is to call Merge for every object
in the series (i.e the collection has exactly one element) in
order to save memory (by not having all the object in memory 
at the same time).

However for histograms, the default is to first load all the
objects and then merge them in one go ; this is customizable
when creating the TFileMerger object.

Revision 39265 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 19 13:33:50 2011 UTC (3 years, 8 months ago) by couet
File length: 28690 byte(s)
Diff to previous 38913
- When the 1D histograms in a stack are painted with patterns or hatches
  the histogram is first painted with the TFrame background color to avoid
  the hatches overlaps. In case the TFrame background color is 0 this did not
  work because in that case the histogram is hollow. Instead of 0 we now use
  10.

Revision 38913 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 19 08:14:22 2011 UTC (3 years, 9 months ago) by couet
File length: 28689 byte(s)
Diff to previous 35994
- Because of this patch http://root.cern.ch/viewvc?view=rev&revision=30001
  THStack::SavePrimitive() did not work.

Revision 35994 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 1 12:31:26 2010 UTC (4 years, 3 months ago) by couet
File length: 28663 byte(s)
Diff to previous 35527
coverity #21750

Revision 35527 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 12:27:01 2010 UTC (4 years, 4 months ago) by brun
File length: 28660 byte(s)
Diff to previous 35505
do not include snprintf.h

Revision 35505 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 08:18:20 2010 UTC (4 years, 4 months ago) by brun
File length: 28682 byte(s)
Diff to previous 35475
Fix strlcpy calls

Revision 35475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 18:04:46 2010 UTC (4 years, 4 months ago) by brun
File length: 28697 byte(s)
Diff to previous 35454
Replace calls to strncpy by strlcpy

Revision 35454 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 13:16:31 2010 UTC (4 years, 4 months ago) by brun
File length: 28697 byte(s)
Diff to previous 35448
Fix strncpy calls

Revision 35448 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 12:10:55 2010 UTC (4 years, 4 months ago) by brun
File length: 28682 byte(s)
Diff to previous 32728
Replace calls to strcpy, sprintf by strncpy, snprintf

Revision 32728 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 24 11:41:30 2010 UTC (4 years, 10 months ago) by couet
File length: 28632 byte(s)
Diff to previous 31321
- The fill color used to "Erase before drawing the histogram"
  was wrong (it was 1000 it should be 0).

Revision 31321 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 19 16:46:07 2009 UTC (5 years, 2 months ago) by couet
File length: 28635 byte(s)
Diff to previous 30957
- Revert last fix. It had some side effect seen thanks
  to the macro hstack.C executed to build the THistPainter 
  online doc. The previous fix should be reconsidered. It 
  was not critical any way.

Revision 30957 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 3 10:27:38 2009 UTC (5 years, 2 months ago) by couet
File length: 28631 byte(s)
Diff to previous 30916
- Like in TMultiGraph the histogram used to paint the axis (fHistogram) should
  be painted with the option "0" otherwise an horizontal line is drawn at y=0
  when the minimum of the data is negative. This problem was mentionned here:
  http://root.cern.ch/phpBB2/viewtopic.php?t=9366&highlight=thstack

Revision 30916 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 29 13:10:56 2009 UTC (5 years, 2 months ago) by couet
File length: 28635 byte(s)
Diff to previous 30182
- Change GetMaximum and GetMinimum to make sure the errors bars fit entirely 
  on the plot when a THStack is plotted with the option E. The following 
  macro showed the problem:

{
   TH1D *h1 = new TH1D("h1","h1",10,0,10);
   TH1D *h2 = new TH1D("h2","h2",10,0,10);
   THStack h;

   h1->SetLineColor(kRed);   
   h1->SetMarkerStyle(20),   
   h2->SetLineColor(kBlue);   
   h2->SetMarkerStyle(21);   

   for(int i=0; i<11; i++){
      h1->SetBinContent(i,1.5-i/10);
      h1->SetBinError(i,0.5*i);
      h2->SetBinContent(i,10.5-i/10);
      h2->SetBinError(i,0.7*i);
   }

   h.Add(h1);
   h.Add(h2);
   h.Draw("nostack E1");
}

Revision 30182 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 16 09:34:19 2009 UTC (5 years, 4 months ago) by couet
File length: 27853 byte(s)
Diff to previous 29633
- Fix a bug with axis re-painting. The following macro displayed two sets 
  of superimposed labels. 
 
  {
     TH1F *hgaus1 = new TH1F("Hgaus1", "", 100, -10, 10);
     TH1F *hgaus2 = new TH1F("Hgaus2", "", 100, -20, 20);
     THStack *hst = new THStack();
     hgaus1->FillRandom("gaus", 30000); hst->Add(hgaus1, "ep");
     hgaus2->FillRandom("gaus", 30000); hst->Add(hgaus2, "ep");
     hst->Draw("nostack");
     hst->GetHistogram()->SetLabelSize(0.07, "xy");
  }

  The bug was submitted here:
  http://root.cern.ch/phpBB2/viewtopic.php?p=39006#39006
 
  This was yet an other side effect of the fix we did there:
  http://root.cern.ch/viewvc?view=rev&revision=25536
      
  This time we took a different approach which fixes all the known
  reported problems and keeps the axis re-drawing as it was introduced
  in 2002 here:
  http://root.cern.ch/viewvc?view=rev&revision=5394

Revision 29633 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 30 13:18:17 2009 UTC (5 years, 5 months ago) by rdm
File length: 28099 byte(s)
Diff to previous 28509
add missing protection.

Revision 28509 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 11 07:19:52 2009 UTC (5 years, 8 months ago) by brun
File length: 28089 byte(s)
Diff to previous 28092
In THStack::SavePrimitive, also save the fHistogram attributes like in TGRaph.
New function THStack::SetHistogram.

Revision 28092 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 3 11:45:49 2009 UTC (5 years, 9 months ago) by couet
File length: 27740 byte(s)
Diff to previous 28088
- Complete the last fix.

Revision 28088 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 3 10:02:27 2009 UTC (5 years, 9 months ago) by couet
File length: 27481 byte(s)
Diff to previous 27402
- The problem submitted here: 
  http://root.cern.ch/phpBB2/viewtopic.php?p=35090#35090
  was a side effect of the fix done here:
  http://root.cern.ch/viewvc?view=rev&revision=25536
  Both problems are now fixed. The following macro 
  reproduces the problem submitted in the forum:
  {
    TCanvas *can = new TCanvas("can", "",5,48,800,600);
    can->SetTickx(1); can->SetTicky(1);
    THStack *hs = new THStack();
    TH1 *h = new TH1F("h","h",40,0,200);
    h->SetBinContent(4,4);
    hs->Add(h,""); hs->Draw();
    TLegend *leg = new TLegend(0.7,0.6,0.99,0.99,NULL,"brNDC");
    leg->AddEntry("h","h","F");
    leg->Draw();
  }

Revision 27402 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 10 16:05:01 2009 UTC (5 years, 11 months ago) by brun
File length: 27568 byte(s)
Diff to previous 26246
Protect THStach::GetMaximum, GetMinimum in case no histograms are defined.

Revision 26246 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 17 17:13:30 2008 UTC (6 years, 2 months ago) by couet
File length: 27516 byte(s)
Diff to previous 25536
- When a THStack is drawn with the option "pads", the number of lines is 
  optimized to make sure there is no empty line. This problem was 
  mentionned here:
  https://savannah.cern.ch/bugs/index.php?44138

Revision 25536 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 25 13:30:23 2008 UTC (6 years, 3 months ago) by couet
File length: 27464 byte(s)
Diff to previous 23419
- In THStack::Paint() replace fHistogram->Paint("axissame"); by
  gPad->RedrawAxis(); in order to fix the bug described here:
  https://savannah.cern.ch/bugs/?41423 .
  The simple following macro was enough to show the problem:

  {
    TH1D h("h", "h", 10., 0., 1.); h.Fill(.5);
    THStack s("s", "s"); s.Add(&h);
    TCanvas canvas("canvas");
    frame = canvas.DrawFrame(-1., 0., 2., 2.);
    frame.SetLabelSize(0.05, "XY");
    frame.Draw(); s.Draw("same");
  }

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

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

Revision 22527 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 7 16:37:03 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/hist/src/THStack.cxx
File length: 27507 byte(s)
Diff to previous 21541
more gcc 4.3 warning fixes. Remains only some warning in Cint, Reflex
and xrootd.

Revision 21541 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 20 15:09:09 2007 UTC (7 years, 1 month ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 27498 byte(s)
Diff to previous 21305
Protect THStack::GetXaxis and THStack::GetYaxis in case the THStack does not have any histogram.

Revision 21305 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 10 16:56:07 2007 UTC (7 years, 1 month ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 27426 byte(s)
Diff to previous 20882
From Axel & Lorenzo:
Fixing first and last bin default arguments. Now the default argument of:

 firstbin = 0, lastbin = -1   indicates  [0,Nbin+1]  (includes underflow/overflow)
 firstbin= 1, lastbin = -1    indicates  [1,Nbin]

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/THStack.cxx
File length: 27383 byte(s)
Diff to previous 20138
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 20138 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 29 05:50:52 2007 UTC (7 years, 3 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 27383 byte(s)
Diff to previous 19826
Fix a problem in THStack::Paint when using option "pads" and reported
by Jan Musinsky at URL: <http://savannah.cern.ch/bugs/?29970>

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/THStack.cxx
File length: 27384 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/THStack.cxx
File length: 27434 byte(s)
Diff to previous 18405
remove :$ from tag line

Revision 18405 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 27 14:47:57 2007 UTC (7 years, 10 months ago) by pcanal
Original Path: trunk/hist/src/THStack.cxx
File length: 27444 byte(s)
Diff to previous 18061
Use TClass::DynamicCast instead of the C-Style cast to get the correct object address without introducing a link time dependency.

Revision 18061 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 22 15:40:02 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 27302 byte(s)
Diff to previous 17967
From Axel:
Remove unnecessary includes.

Revision 17967 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 15 15:04:41 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 27296 byte(s)
Diff to previous 17612
-replace calls to gROOT->GetMakeDefCanvas()() by gROOT->MakeDefCanvas()

Revision 17612 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 1 14:58:44 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 27303 byte(s)
Diff to previous 17609
Use a forward declaration of TList instead of including TList.h

Revision 17609 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 1 14:21:01 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 27280 byte(s)
Diff to previous 17338
-Use forward declarations of TList and TVirtualHistPainter.

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/THStack.cxx
File length: 27248 byte(s)
Diff to previous 17302
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 17302 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 12 10:59:16 2007 UTC (8 years ago) by couet
Original Path: trunk/hist/src/THStack.cxx
File length: 27229 byte(s)
Diff to previous 17180
- THStack::Paint: if the first histogram in the stack has alphanumeric
  labels on X-axis, they are now displayed.

Revision 17180 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 12 14:03:04 2006 UTC (8 years, 1 month ago) by couet
Original Path: trunk/hist/src/THStack.cxx
File length: 26773 byte(s)
Diff to previous 15672
- Change comments according to the new $ROOTSYS/tutorials structure.

Revision 15672 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 3 16:10:46 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 26767 byte(s)
Diff to previous 15181
from Axel:
Change the signature of SavePrimitive from

  void SavePrimitive(ofstream &out, Option_t *option);
to
  void SavePrimitive(ostream &out, Option_t *option = "");

With this change one can do, eg
   myhist.SavePrimitive(std::cout);

WARNING: do rm -f tree/src/*.o

Revision 15181 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 26 15:13:03 2006 UTC (8 years, 8 months ago) by rdm
Original Path: trunk/hist/src/THStack.cxx
File length: 26760 byte(s)
Diff to previous 15167
one more round of code cleanup: change NULL by 0 in all C++ code.

Revision 15167 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 24 14:55:26 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 26790 byte(s)
Diff to previous 15134
Fix coding conventions violations

Revision 15134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 23 04:47:42 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 26786 byte(s)
Diff to previous 15082
From Federico Carminati:

"I have implemented all copy and equal operators needed to silence all
warnings in AliRoot, as requested. I have implemented shallow copies as
would do the default operators synthetized by the compiler.
Most operators are protected. If users complain, you just have to move
them into the public area, but class derivation is of course supported.
It has been a terrible job, I have modified 278 files, but the changes
are backward compabile, and this goes a long way to permitting user to
use the effc++ flag with root headers."

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/THStack.cxx
File length: 26850 byte(s)
Diff to previous 14336
- Coding conventions.

Revision 14336 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 20 21:43:44 2006 UTC (8 years, 10 months ago) by pcanal
Original Path: trunk/hist/src/THStack.cxx
File length: 26795 byte(s)
Diff to previous 13987
Reduce direct dependencies on TClass.h, TROOT.h and TStreamerInfo.h.
Warning:  This means that some file that relied on the indirect
inclusion of these header file might now fail to compile with
an error message mention that gROOT is no known or that TClass,
TROOT or TStreamerInfo is incompletely defined.  Simply add the
proper include directive.

Revision 13987 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 3 21:55:39 2006 UTC (8 years, 11 months ago) by pcanal
Original Path: trunk/hist/src/THStack.cxx
File length: 26774 byte(s)
Diff to previous 13956
Update of spacing and documentation to match the coding rule

Revision 13956 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 31 10:22:26 2006 UTC (8 years, 11 months ago) by couet
Original Path: trunk/hist/src/THStack.cxx
File length: 26796 byte(s)
Diff to previous 13578
- New TStyle attribute: HistTopMargin. It defines the margin value between
  the top of the histogram and the pad borber. It can be "set" and "get" with
  SetHistTopMargin() and GetHistTopMargin(). The default value is 0.05.

Revision 13578 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 9 09:45:05 2005 UTC (9 years, 1 month ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 26749 byte(s)
Diff to previous 12909
In THStack::Paint take into account the special case when option "same"
has been specified when adding the histogram to the stack.

Revision 12909 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 13:45:28 2005 UTC (9 years, 3 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 26465 byte(s)
Diff to previous 12882
In the THStack destructor, Clear("nodelete") instead of Delete
for the TList containing the list of histograms

Revision 12882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 2 17:31:40 2005 UTC (9 years, 3 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 26448 byte(s)
Diff to previous 12647
In THStack::Modified, one must also delete fHistogram.

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/THStack.cxx
File length: 26407 byte(s)
Diff to previous 11268
Fix remaining coding conventions in hist.
This has required many changes in TSpectrum and helper classes.

Revision 11268 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 8 17:43:54 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 26225 byte(s)
Diff to previous 10202
From Olivier:
- Improvement in THStack::Paint in 1d histograms stacks drawing: The
  background of each level is erased with the TFrame color and pattern
  before drawing it.

Revision 10202 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 4 17:00:21 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 25635 byte(s)
Diff to previous 9872
Add the following note in THStack::GetHistogram, GetXaxis, GetYaxis
// IMPORTANT NOTE
//  You must call Draw before calling this function. The returned histogram
//  depends on the selected Draw options.

Revision 9872 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 1 17:44:00 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 25136 byte(s)
Diff to previous 9681
Protect THStack::BuildStack and THStack::Paint in case of 0 histograms in the stack

Revision 9681 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 5 08:01:56 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 25077 byte(s)
Diff to previous 9565
In THStack::Paint fix a problem when option "same" is specified.

Revision 9565 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 21 06:56:01 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 25030 byte(s)
Diff to previous 9283
From Axel Naumann:
a small patch for THStack's c'tor taking a TH2 or TH3 and
building a stack of projections. If one creates several THStacks this
way the previous projections are overwritten by the new ones. This patch
makes sure the projections' names are unique (i.e. they are built from
the histo's name, the projection direction, and the bin number).

Revision 9283 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 22 15:36:42 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 24908 byte(s)
Diff to previous 9244
From Valeriy Onuchin:
- this patch allows to set draw option while  browsing TFiles/TTrees

Revision 9244 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 18 10:28:29 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 24858 byte(s)
Diff to previous 9243
Optimize the computaion of the range in Y in case of log scales.

Revision 9243 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 18 10:20:59 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 24974 byte(s)
Diff to previous 8833
From Valeriy Onuchin:
- these mods allows to have the same key bindings for different frames.

Revision 8833 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 10 07:33:52 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 24542 byte(s)
Diff to previous 8751
From Axel Naumann
Implement a new THStack constructor accepting a TH2 or TH3 as input.

THStack::THStack(const TH1* hist, Option_t *axis /*="x"*/,
                 const char *name /*=0*/, const char *title /*=0*/,
                 Int_t firstbin /*=-1*/, Int_t lastbin /*=-1*/,
                 Int_t firstbin2 /*=-1*/, Int_t lastbin2 /*=-1*/,
                 Option_t* proj_option /*=""*/, Option_t* draw_option /*=""*/): TNamed(name, title) {
// Creates a new THStack from a TH2 or TH3
// It is filled with the 1D histograms from GetProjectionX or GetProjectionY
// for each bin of the histogram. It illustrates the differences and total
// sum along an axis.
//
// Parameters:
// - hist:  the histogram used for the projections. Can be an object deriving
//          from TH2 or TH3.
// - axis:  for TH2: "x" for ProjectionX, "y" for ProjectionY.
//          for TH3: see TH3::Project3D.
// - name:  fName is set to name if given, otherwise to histo's name with
//          "_stack_<axis>" appended, where <axis> is the value of the
//          parameter axis.
// - title: fTitle is set to title if given, otherwise to histo's title
//          with ", stack of <axis> projections" appended.
// - firstbin, lastbin:
//          for each bin within [firstbin,lastbin] a stack entry is created.
//          See TH2::ProjectionX/Y for use overflow bins.
//          Defaults to "all bins"
// - firstbin2, lastbin2:
//          Other axis range for TH3::Project3D, defaults to "all bins".
//          Ignored for TH2s
// - proj_option:
//          option passed to TH2::ProjectionX/Y and TH3::Project3D (along
//          with axis)
// - draw_option:
//          option passed to THStack::Add.

Revision 8751 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 30 07:03:17 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 17936 byte(s)
Diff to previous 8433
Implement a suggestion from Sergey Linev
Add function THStack::RecursiveRemove to automatically cleanup
the THStack object if one of the histograms is deleted.
This also solves the problem when the same histogram is referenced
multiple times in the THStack.
The THStack constructor registers automatically itself to
gROOT->GetListOfCleanups. The destructor removes itself.

Revision 8433 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 18 20:41:31 2004 UTC (10 years, 10 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 17540 byte(s)
Diff to previous 7418
Fix a problem in THStack::Paint when option "same" is specified.
The string "same" must be removed from the list of options passed to
the histograms to avoid option "e" (from "same") to be used.

Revision 7418 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 8 16:36:14 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 17460 byte(s)
Diff to previous 7277
In THStack::Paint, take into account the fact that the stack histogram title may have
changed between consecutive calls to the Paint function.

Revision 7277 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 13 09:03:22 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 17408 byte(s)
Diff to previous 6467
Optimize the computation of the maximum in case of option "nostack"

Revision 6467 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 18 12:55:50 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 17175 byte(s)
Diff to previous 6466
Add another improvement by Jiri Masik when drawing THStack in log scale.

Revision 6466 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 18 10:03:01 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 17107 byte(s)
Diff to previous 6464
Protection added in THStack::Paint when setting a logy scale
and a minimum not set for the stack.
(thanks to Jiri Masik)

Revision 6464 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 17 19:19:16 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 17032 byte(s)
Diff to previous 5717
From Olivier:
Implement support for stacked lego plots with variable bin size histograms

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/THStack.cxx
File length: 16165 byte(s)
Diff to previous 5396
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 5396 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 5 09:27:45 2002 UTC (12 years, 3 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 16174 byte(s)
Diff to previous 5394
Fix a problem in THStack::Paint when option "nostack" is used.
The "c" in "nostack" was interpreted to draw a smooth curve.

Revision 5394 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 4 17:59:04 2002 UTC (12 years, 3 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 16081 byte(s)
Diff to previous 5122
In THStack::Paint, redraw the axis in case the fill area of one of the histos
is hidding the axis (thanks Matt Palmer)

Revision 5122 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 13 21:17:59 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 16047 byte(s)
Diff to previous 4915
Add new features in THStack:
 -possibility to specify a drawing option in THStack::Add
 -THStack::SavePrimitive save more parameters and options

The TVirtualHistpainter, THistPainter modified accordingly.

Revision 4915 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 15 15:03:38 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 15125 byte(s)
Diff to previous 4904
Changes in the functions DistancetoPrimitive. Return immediatly in case
one of the sub-objects has already selected an object.
This may be the case with TPaveStats.

Revision 4904 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 15 10:39:53 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 15094 byte(s)
Diff to previous 4770
Implement the Copy constructor.

Call the function Modified in THStack::Add.

Revision 4770 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 21 06:57:27 2002 UTC (12 years, 7 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 14605 byte(s)
Diff to previous 4409
Change signature of THStack::GetStack. Function is not inlined anymore
and the qualifier const removed. If the stack is not yet built, GetStack
attempts to build the stack.
Several protections added in case the default constructor is called.

Revision 4409 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 26 10:23:40 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 14371 byte(s)
Diff to previous 4396
Modify the THStack::Paint function to take into account TH1::kIsZoomed bit.
If this bit is set, the max/min of the fHistogram member is not set.
This change allows zooming on the Y or Z axis of a THStack object.

Revision 4396 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 22 20:12:05 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 14313 byte(s)
Diff to previous 4111
The new version of THStack::Paint supports histograms with different x and y
axis limits.

Revision 4111 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 26 10:07:53 2002 UTC (12 years, 10 months ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 13960 byte(s)
Diff to previous 3748
Add a new drawing option to THStack::Paint.
When the option "pads" is specified,the current pad/canvas is subdivided into
a number of pads equal to the number of histograms and each histogram
is paint into a separate pad.

Revision 3748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 24 11:39:31 2002 UTC (13 years ago) by rdm
Original Path: trunk/hist/src/THStack.cxx
File length: 13023 byte(s)
Diff to previous 3742
rename IOSFwd.h and IOStream.h to Riosfwd.h and Riostream.h. The change
is necessary because on Windows which is case insensitive IOStream.h
hides the real iostream.h.

Revision 3742 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 23 17:52:52 2002 UTC (13 years ago) by rdm
Original Path: trunk/hist/src/THStack.cxx
File length: 13023 byte(s)
Diff to previous 3557
use IOSFwd.h in headers instead of <iosfwd> or many other ifdef'ed variant
and IOStream.h in the source instead of <iostream[.h]>, <fstream[.h]> and
<iomanip[.h]>.

Revision 3557 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 2 21:45:48 2002 UTC (13 years ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 13048 byte(s)
Diff to previous 3524
In THStack::Paint, Use a default minimum=0 if the minimum is positive.

Revision 3524 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 21 13:41:09 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 13017 byte(s)
Diff to previous 3445
Add support for SetMaximum and SetMinimum.
The two functions visible in the context menu.

Revision 3445 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 10 15:03:18 2001 UTC (13 years, 1 month ago) by rdm
Original Path: trunk/hist/src/THStack.cxx
File length: 12772 byte(s)
Diff to previous 3440
add missing CVS Id line at top of files

Revision 3440 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 10 14:11:34 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 12741 byte(s)
Diff to previous 3438
Take into account error bars when computing the maximum of the histogram
when the "e" option is specified.

Revision 3438 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 10 11:46:41 2001 UTC (13 years, 1 month ago) by rdm
Original Path: trunk/hist/src/THStack.cxx
File length: 12585 byte(s)
Diff to previous 3437
added <iostream.h> to fix compilation with g++ v3.

Revision 3437 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 10 11:07:16 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 12599 byte(s)
Diff to previous 3430
Fix a problem preventing picking in case the same THStack was drawn in stack and nostack mode
in two different pads.

Revision 3430 - (view) (download) (as text) (annotate) - [select for diffs]
Added Sun Dec 9 17:38:34 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/hist/src/THStack.cxx
File length: 12546 byte(s)
Add new class THStack in the hist directory.
This new class can be used to draw a stack of histograms.
It supports 1-d and 2-d histograms.
See explanations in the class.

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