Log of /trunk/hist/hist/inc/THStack.h
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: 3283 byte(s)
Diff to
previous 39365
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
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: 3278 byte(s)
Diff to
previous 28509
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
26239 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Nov 17 14:55:10 2008 UTC (6 years, 2 months ago) by
couet
File length: 3131 byte(s)
Diff to
previous 22694
- Make the data member fHistogram persistent in order to save the axis
attributes which may have been changed during a root session (like,
for instance, the axis titles).
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/inc/THStack.h
File length: 3133 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
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/inc/THStack.h
File length: 3195 byte(s)
Diff to
previous 15134
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
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/inc/THStack.h
File length: 3191 byte(s)
Diff to
previous 15072
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
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/inc/THStack.h
File length: 3270 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/inc/THStack.h
File length: 2980 byte(s)
Diff to
previous 5122
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
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/inc/THStack.h
File length: 2924 byte(s)
Diff to
previous 4908
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
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/inc/THStack.h
File length: 2863 byte(s)
Diff to
previous 3524
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
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/inc/THStack.h
File length: 2793 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.