27#ifdef R__LESS_INCLUDES
60 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 an iterator over internal hists list.
void BuildPrimitives(Option_t *chopt="", Bool_t rebuild_stack=kFALSE)
~THStack() override
THStack destructor.
void BuildAndPaint(Option_t *chopt, Bool_t paint, Bool_t rebuild_stack=kFALSE)
Create all additional objects and stack (if specified).
virtual Double_t GetMinimum(Option_t *option="", Double_t minval=-std::numeric_limits< Double_t >::max())
Returns the minimum of all added histograms larger than minval.
void ls(Option_t *option="") const override
List histograms in the stack.
TObjArray * fStack
! Pointer to array of sums of TH1
Double_t fMinimum
Minimum value for plotting along y.
void BuildStack()
Build the sum of all histograms.
TAxis * GetYaxis() const
Get the 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.
virtual void SetHistogram(TH1 *h)
void RecursiveRemove(TObject *obj) override
Recursively remove the object obj from the list of histograms.
virtual void Add(TH1 *h, Option_t *option="")
Add a new histogram to the list.
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 GetMaximum(Option_t *option="", Double_t maxval=std::numeric_limits< Double_t >::max())
Returns the maximum of all added histograms smaller than maxval.
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 the 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()
Note: this method invalidates the sum of histograms.
virtual void SetMinimum(Double_t minimum=-1111)
Set minimum.
TAxis * GetXaxis() const
Get the 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.