49 const char *
name=0,
const char *title=0,
#define ClassDef(name, id)
Class to manage histogram axis.
Using a TBrowser one can browse all ROOT objects.
Collection abstract base class.
The Histogram stack class.
virtual void Print(Option_t *chopt="") const
Print the list of histograms.
TIter begin() const
Get iterator over internal hists list.
virtual ~THStack()
THStack destructor.
THStack()
THStack default constructor.
virtual void ls(Option_t *option="") const
List histograms in the stack.
virtual void Draw(Option_t *chopt="")
Draw this multihist with its current attributes.
void BuildStack()
build sum of all histograms Build a separate list fStack containing the running sum of all histograms
TAxis * GetYaxis() const
Get x 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.
virtual void Paint(Option_t *chopt="")
Paint the list of histograms.
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)
virtual void Add(TH1 *h, Option_t *option="")
add a new histogram to the list Only 1-d and 2-d histograms currently supported.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
TObjArray * GetStack()
Return pointer to Stack. Build it if not yet done.
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"...
virtual void SetMaximum(Double_t maximum=-1111)
Set maximum.
TH1 * fHistogram
Pointer to array of sums of TH1.
virtual void RecursiveRemove(TObject *obj)
Recursively remove object from the list of histograms.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
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.
virtual void Browse(TBrowser *b)
Browse.
THStack & operator=(const THStack &)
TAxis * GetXaxis() const
Get x axis of the histogram used to draw the stack.
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.