27#ifdef R__LESS_INCLUDES
58 const char *
name =
nullptr,
const char *title =
nullptr,
#define ClassDefOverride(name, id)
Class to manage histogram axis.
Using a TBrowser one can browse all ROOT objects.
Collection abstract base class.
TH1 is the base class of all histogram classes in ROOT.
The Histogram stack class.
TIter begin() const
Get iterator over internal hists list.
~THStack() override
THStack destructor.
void BuildPrimitives(Option_t *chopt="")
void ls(Option_t *option="") const override
List histograms in the stack.
TObjArray * fStack
! Pointer to array of sums of TH1
void BuildAndPaint(Option_t *chopt, Bool_t paint)
Create all additional objects and stack (if specified)
Double_t fMinimum
Minimum value for plotting along y.
void BuildStack()
build sum of all histograms Build a separate list fStack containing the running sum of all histograms
TAxis * GetYaxis() const
Get y axis of the histogram used to draw the stack.
virtual Long64_t Merge(TCollection *li, TFileMergeInfo *info)
Merge the THStack in the TList into this stack.
TH1 * GetHistogram() const
Returns a pointer to the histogram used to draw the axis Takes into account the two following cases.
virtual Double_t GetMaximum(Option_t *option="")
returns the maximum of all added histograms returns the maximum of all histograms if option "nostack"...
virtual void SetHistogram(TH1 *h)
void RecursiveRemove(TObject *obj) override
Recursively remove object from the list of histograms.
virtual void Add(TH1 *h, Option_t *option="")
add a new histogram to the list Only 1-d and 2-d histograms currently supported.
void Print(Option_t *chopt="") const override
Print the list of histograms.
TObjArray * GetStack()
Return pointer to Stack. Build it if not yet done.
THStack & operator=(const THStack &)=delete
Int_t GetNhists() const
Return the number of histograms in the stack.
virtual Double_t GetMinimum(Option_t *option="")
returns the minimum of all added histograms returns the minimum of all histograms if option "nostack"...
void Paint(Option_t *chopt="") override
Paint the list of histograms.
TList * fHists
Pointer to array of TH1.
virtual void SetMaximum(Double_t maximum=-1111)
Set maximum.
TH1 * fHistogram
Pointer to histogram used for drawing axis.
TAxis * GetZaxis() const
Get z axis of the histogram used to draw the stack.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
void Browse(TBrowser *b) override
Browse.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to each graph.
virtual void Modified()
invalidate sum of histograms
virtual void SetMinimum(Double_t minimum=-1111)
Set minimum.
TAxis * GetXaxis() const
Get x axis of the histogram used to draw the stack.
Double_t fMaximum
Maximum value for plotting along y.
static TIter End()
Pointing to the element after the last - to a nullptr value in our case.
The TNamed class is the base class for all named ROOT classes.
Mother of all ROOT objects.