|
ROOT
Reference Guide |
|
Go to the documentation of this file.
412 virtual void SetTitle(
const char *title);
447 std::string printValue(
TH1 *val);
660 extern TH1 *
R__H(
const char *hname);
virtual TObject * FindObject(const char *name) const
Search object named name in the list of functions.
friend TH1I operator+(const TH1I &h1, const TH1I &h2)
Operator +.
virtual void UpdateBinContent(Int_t bin, Double_t content)
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...
virtual Float_t GetTitleSize(Option_t *axis="X") const
Return the "axis" title size.
friend TH1I operator/(const TH1I &h1, const TH1I &h2)
Operator /.
virtual void LabelsOption(Option_t *option="h", Option_t *axis="X")
Sort bins with labels or set option(s) to draw axis with labels.
virtual Double_t RetrieveBinContent(Int_t bin) const
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
virtual Double_t AndersonDarlingTest(const TH1 *h2, Option_t *option="") const
Statistical test of compatibility in shape between this histogram and h2, using the Anderson-Darling ...
Class to manage histogram axis.
const TAxis * GetZaxis() const
@ kIsHighlight
bit set if histo is highlight
virtual Double_t GetBinError(Int_t binx, Int_t biny) const
Array of shorts (16 bits per element).
@ kPoisson2
Errors from Poisson interval at 95% CL (~ 2 sigma)
virtual Int_t GetSumw2N() const
virtual TF1 * GetFunction(const char *name) const
Return pointer to function with name.
virtual void Copy(TObject &hnew) const
Copy this histogram structure to newth1.
virtual Double_t Chi2Test(const TH1 *h2, Option_t *option="UU", Double_t *res=0) const
test for comparing weighted and unweighted histograms
virtual Int_t FindFixBin(Double_t x, Double_t y=0, Double_t z=0) const
Return Global bin number corresponding to x,y,z.
virtual TH1 * ShowBackground(Int_t niter=20, Option_t *option="same")
This function calculates the background spectrum in this histogram.
Using a TBrowser one can browse all ROOT objects.
virtual Double_t GetBinWithContent(Double_t c, Int_t &binx, Int_t firstx=0, Int_t lastx=0, Double_t maxdiff=0) const
Compute first binx in the range [firstx,lastx] for which diff = abs(bin_content-c) <= maxdiff.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual Double_t GetMeanError(Int_t axis=1) const
Return standard error of mean of this histogram along the X axis.
@ kNstat
Size of statistics data (up to TProfile3D)
virtual Double_t GetBinErrorLow(Int_t bin) const
Return lower error associated to bin number bin.
TAxis fYaxis
Y axis descriptor.
virtual void SetContour(Int_t nlevels, const Double_t *levels=0)
Set the number and values of contour levels.
friend TH1C operator*(Double_t c1, const TH1C &h1)
Operator *.
friend TH1I operator-(const TH1I &h1, const TH1I &h2)
Operator -.
static Bool_t SameLimitsAndNBins(const TAxis &axis1, const TAxis &axis2)
Same limits and bins.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
TH1C operator/(const TH1C &h1, const TH1C &h2)
Operator /.
R__EXTERN Foption_t Foption
EBinErrorOpt fBinStatErrOpt
Option for bin statistical errors.
TH1I & operator=(const TH1I &h1)
Operator =.
@ kPoisson
Errors from Poisson interval at 68.3% (1 sigma)
virtual void SetMinimum(Double_t minimum=-1111)
virtual Int_t GetNbinsZ() const
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Redefines TObject::GetObjectInfo.
1-D histogram with an int per channel (see TH1 documentation)}
Double_t fEntries
Number of entries.
const char * Data() const
virtual void SetNameTitle(const char *name, const char *title)
Change the name and title of this histogram.
TAxis fZaxis
Z axis descriptor.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
virtual Float_t GetTitleOffset(Option_t *axis="X") const
Return the "axis" title offset.
virtual Double_t GetCellContent(Int_t binx, Int_t biny) const
static Double_t AutoP2GetPower2(Double_t x, Bool_t next=kTRUE)
Auxiliary function to get the power of 2 next (larger) or previous (smaller) a given x.
virtual Bool_t Divide(TF1 *f1, Double_t c1=1)
Performs the operation: this = this/(c1*f1) if errors are defined (see TH1::Sumw2),...
virtual TH1 * DrawCopy(Option_t *option="", const char *name_postfix="_copy") const
Copy this histogram and Draw in the current pad.
virtual void ClearUnderflowAndOverflow()
Remove all the content from the underflow and overflow bins, without changing the number of entries A...
TVirtualHistPainter * GetPainter(Option_t *option="")
Return pointer to painter.
virtual Double_t RetrieveBinContent(Int_t bin) const
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
virtual void SetBuffer(Int_t buffersize, Option_t *option="")
Set the maximum number of entries to be kept in the buffer.
Double_t fTsumw
Total Sum of weights.
virtual void SetContent(const Double_t *content)
Replace bin contents by the contents of array content.
virtual void DrawPanel()
Display a panel with all histogram drawing options.
friend TH1C operator/(const TH1C &h1, const TH1C &h2)
Operator /.
Int_t fBufferSize
fBuffer size
virtual void SetNormFactor(Double_t factor=1)
virtual Double_t GetSkewness(Int_t axis=1) const
1-D histogram with a double per channel (see TH1 documentation)}
virtual void SetBins(Int_t nx, Double_t xmin, Double_t xmax)
Redefine x axis parameters.
virtual Double_t GetContourLevel(Int_t level) const
Return value of contour number level.
@ kIsNotW
Histogram is forced to be not weighted even when the histogram is filled with weighted different than...
TH1 * GetAsymmetry(TH1 *h2, Double_t c2=1, Double_t dc2=0)
Return an histogram containing the asymmetry of this histogram with h2, where the asymmetry is define...
include TDocParser_001 C image html pict1_TDocParser_001 png width
static bool CheckBinLabels(const TAxis *a1, const TAxis *a2)
Check that axis have same labels.
virtual void UpdateBinContent(Int_t bin, Double_t content)
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...
static Bool_t GetDefaultSumw2()
Return kTRUE if TH1::Sumw2 must be called when creating new histograms.
virtual Double_t GetBinErrorUp(Int_t bin) const
Return upper error associated to bin number bin.
virtual Float_t GetTickLength(Option_t *axis="X") const
Return the "axis" tick length.
TH1C operator+(const TH1C &h1, const TH1C &h2)
Operator +.
virtual Double_t GetBinError(Int_t bin) const
Return value of error associated to bin number bin.
virtual UInt_t SetCanExtend(UInt_t extendBitMask)
Make the histogram axes extendable / not extendable according to the bit mask returns the previous bi...
TDirectory * fDirectory
! Pointer to directory holding this histogram
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
Double_t * fBuffer
[fBufferSize] entry buffer
virtual void SetBinContent(Int_t bin, Int_t, Int_t, Double_t content)
virtual Double_t GetBinWidth(Int_t bin) const
Return bin width for 1D histogram.
virtual ~TH1C()
Destructor.
TH1 & operator=(const TH1 &)
virtual Double_t GetEntries() const
Return the current number of entries.
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content see convention for numbering bins in TH1::GetBin In case the bin number is greater th...
TH1S & operator=(const TH1S &h1)
Operator =.
@ kNoAxis
NOTE: Must always be 0 !!!
virtual Double_t RetrieveBinContent(Int_t bin) const
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
static Int_t FitOptionsMake(Option_t *option, Foption_t &Foption)
Decode string choptin and fill fitOption structure.
const TAxis * GetYaxis() const
virtual Double_t GetBinContent(Int_t bin, Int_t, Int_t) const
@ kNeutral
Adapt to the global flag.
TList * GetListOfFunctions() const
virtual Bool_t Add(TF1 *h1, Double_t c1=1, Option_t *option="")
Performs the operation: this = this + c1*f1 if errors are defined (see TH1::Sumw2),...
TH1 * R__H(Int_t hid)
return pointer to histogram with name hid if id >=0 h_id if id <0
Int_t fNcells
Number of bins(1D), cells (2D) +U/Overflows.
virtual void FillRandom(const char *fname, Int_t ntimes=5000, TRandom *rng=nullptr)
Fill histogram following distribution in function fname.
virtual Double_t GetContourLevelPad(Int_t level) const
Return the value of contour number "level" in Pad coordinates.
static TH1 * TransformHisto(TVirtualFFT *fft, TH1 *h_output, Option_t *option)
For a given transform (first parameter), fills the histogram (second parameter) with the transform ou...
virtual void SetName(const char *name)
Change the name of this histogram.
void Obsolete(const char *method, const char *asOfVers, const char *removedFromVers) const
Use this method to declare a method obsolete.
Int_t fDimension
! Histogram dimension (1, 2 or 3 dim)
virtual void SetAxisRange(Double_t xmin, Double_t xmax, Option_t *axis="X")
Set the "axis" range.
virtual void ResetStats()
Reset the statistics including the number of entries and replace with values calculated from bin cont...
Double_t fMaximum
Maximum value for plotting.
friend TH1I operator*(Double_t c1, const TH1I &h1)
Operator *.
TH1()
Histogram default constructor.
virtual void SetXTitle(const char *title)
virtual void SetContourLevel(Int_t level, Double_t value)
Set value for one contour level.
static Bool_t RecomputeAxisLimits(TAxis &destAxis, const TAxis &anAxis)
Finds new limits for the axis for the Merge function.
Short_t fBarOffset
(1000*offset) for bar charts or legos
virtual void Print(Option_t *option="") const
Print some global quantities for this histogram.
TVirtualHistPainter * fPainter
! Pointer to histogram painter
virtual void UpdateBinContent(Int_t bin, Double_t content)
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...
Array of floats (32 bits per element).
virtual ~TH1D()
Destructor.
virtual Double_t Interpolate(Double_t x) const
Given a point x, approximates the value via linear interpolation based on the two nearest bin centers...
virtual void SetYTitle(const char *title)
virtual Double_t RetrieveBinContent(Int_t bin) const
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
virtual void RecursiveRemove(TObject *obj)
Recursively remove object from the list of functions.
virtual Style_t GetTitleFont(Option_t *axis="X") const
Return the "axis" title font.
virtual Int_t GetNdivisions(Option_t *axis="X") const
Return the number of divisions for "axis".
virtual TH1 * RebinX(Int_t ngroup=2, const char *newname="")
static bool CheckBinLimits(const TAxis *a1, const TAxis *a2)
Check bin limits.
virtual Double_t KolmogorovTest(const TH1 *h2, Option_t *option="") const
Statistical test of compatibility in shape between this histogram and h2, using Kolmogorov test.
virtual void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
Set the axis' title size.
virtual void SetZTitle(const char *title)
virtual void SetTitleFont(Style_t font=62, Option_t *axis="X")
Set the axis' title font.
TH1C operator*(Double_t c1, const TH1C &h1)
Operator *.
Double_t fTsumw2
Total Sum of squares of weights.
@ kNoTitle
Don't draw the histogram title.
void UseCurrentStyle()
Copy current attributes from/to current style.
virtual ~TH1S()
Destructor.
static bool CheckConsistentSubAxes(const TAxis *a1, Int_t firstBin1, Int_t lastBin1, const TAxis *a2, Int_t firstBin2=0, Int_t lastBin2=0)
Check that two sub axis are the same.
virtual Double_t GetNormFactor() const
virtual Double_t IntegralAndError(Int_t binx1, Int_t binx2, Double_t &err, Option_t *option="") const
Return integral of bin contents in range [binx1,binx2] and its error.
virtual Int_t GetDimension() const
virtual Int_t GetContour(Double_t *levels=0)
Return contour values into array levels if pointer levels is non zero.
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
virtual void GetMinimumAndMaximum(Double_t &min, Double_t &max) const
Retrieve the minimum and maximum values in the histogram.
static Bool_t fgDefaultSumw2
! Flag to call TH1::Sumw2 automatically at histogram creation time
TObject * Clone(const char *newname=0) const
Make a complete copy of the underlying object.
static Bool_t fgAddDirectory
! Flag to add histograms to the directory
virtual ~TH1I()
Destructor.
const TAxis * GetXaxis() const
virtual void ExtendAxis(Double_t x, TAxis *axis)
Histogram is resized along axis such that x is in the axis range.
1-D histogram with a byte per channel (see TH1 documentation)
virtual Double_t RetrieveBinContent(Int_t bin) const
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
virtual void UpdateBinContent(Int_t bin, Double_t content)
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...
virtual ~TH1()
Histogram default destructor.
virtual Double_t GetBinError(Int_t binx, Int_t biny, Int_t binz) const
virtual Float_t GetLabelSize(Option_t *axis="X") const
Return the "axis" label size.
Double_t GetRMSError(Int_t axis=1) const
Short_t fBarWidth
(1000*width) for bar charts or legos
virtual Double_t GetMean(Int_t axis=1) const
For axis = 1,2 or 3 returns the mean value of the histogram along X,Y or Z axis.
virtual Int_t BufferFill(Double_t x, Double_t w)
accumulate arguments in buffer.
virtual void PutStats(Double_t *stats)
Replace current statistics with the values in array stats.
Abstract interface to a histogram painter.
virtual void GetCenter(Double_t *center) const
Fill array with center of bins for 1D histogram Better to use h1.GetXaxis()->GetCenter(center)
virtual void SavePrimitiveHelp(std::ostream &out, const char *hname, Option_t *option="")
Helper function for the SavePrimitive functions from TH1 or classes derived from TH1,...
virtual void Eval(TF1 *f1, Option_t *option="")
Evaluate function f1 at the center of bins of this histogram.
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
virtual Int_t ShowPeaks(Double_t sigma=2, Option_t *option="", Double_t threshold=0.05)
Interface to TSpectrum::Search.
virtual Int_t GetMinimumBin() const
Return location of bin with minimum value in the range.
friend TH1S operator*(Double_t c1, const TH1S &h1)
Operator *.
virtual void SetTickLength(Float_t length=0.02, Option_t *axis="X")
Set the axis' tick marks length.
This is the base class for the ROOT Random number generators.
virtual Float_t GetLabelOffset(Option_t *axis="X") const
Return the "axis" label offset.
virtual Double_t GetRandom(TRandom *rng=nullptr) const
Return a random number distributed according the histogram bin contents.
EStatOverflows GetStatOverflows() const
@ kIgnore
Override global flag ignoring the overflows.
TH1D & operator=(const TH1D &h1)
Operator =.
Provides an indirection to the TFitResult class and with a semantics identical to a TFitResult pointe...
virtual Int_t GetMaximumBin() const
Return location of bin with maximum value in the range.
virtual TArrayD * GetSumw2()
virtual void AddBinContent(Int_t bin, Double_t w)
Increment bin content by a weight w.
Double_t * fIntegral
! Integral of bins used by GetRandom
virtual TH1 * Rebin(Int_t ngroup=2, const char *newname="", const Double_t *xbins=0)
Rebin this histogram.
static bool CheckConsistency(const TH1 *h1, const TH1 *h2)
Check histogram compatibility.
virtual void SetLabelSize(Float_t size=0.02, Option_t *axis="X")
Set size of axis' labels.
virtual Float_t GetBarWidth() const
virtual TH1 * DrawNormalized(Option_t *option="", Double_t norm=1) const
Draw a normalized copy of this histogram.
static Int_t fgBufferSize
! Default buffer size for automatic histograms
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
virtual Double_t ComputeIntegral(Bool_t onlyPositive=false)
Compute integral (cumulative sum of bins) The result stored in fIntegral is used by the GetRandom fun...
virtual Double_t GetMaximumStored() const
TArrayD fContour
Array to display contour levels.
virtual Int_t BufferEmpty(Int_t action=0)
Fill histogram with all entries in the buffer.
virtual void GetLowEdge(Double_t *edge) const
Fill array with low edge of bins for 1D histogram Better to use h1.GetXaxis()->GetLowEdge(edge)
virtual void SetEntries(Double_t n)
virtual Int_t FindLastBinAbove(Double_t threshold=0, Int_t axis=1, Int_t firstBin=1, Int_t lastBin=-1) const
Find last bin with content > threshold for axis (1=x, 2=y, 3=z) if no bins with content > threshold i...
virtual Double_t DoIntegral(Int_t ix1, Int_t ix2, Int_t iy1, Int_t iy2, Int_t iz1, Int_t iz2, Double_t &err, Option_t *opt, Bool_t doerr=kFALSE) const
Internal function compute integral and optionally the error between the limits specified by the bin n...
virtual void SetBinContent(Int_t bin, Int_t, Double_t content)
The TNamed class is the base class for all named ROOT classes.
virtual Double_t GetStdDevError(Int_t axis=1) const
Return error of standard deviation estimation for Normal distribution.
virtual Double_t GetBinContent(Int_t bin, Int_t) const
Int_t GetBufferSize() const
static void AddDirectory(Bool_t add=kTRUE)
Sets the flag controlling the automatic add of histograms in memory.
virtual Double_t GetBinCenter(Int_t bin) const
Return bin center for 1D histogram.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
virtual EBinErrorOpt GetBinErrorOption() const
virtual void Copy(TObject &hnew) const
Copy this to newth1.
virtual void SetHighlight(Bool_t set=kTRUE)
Set highlight (enable/disable) mode for the histogram by default highlight mode is disable.
virtual TH1 * FFT(TH1 *h_output, Option_t *option)
This function allows to do discrete Fourier transforms of TH1 and TH2.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a line.
virtual Int_t GetBin(Int_t binx, Int_t biny=0, Int_t binz=0) const
Return Global bin number corresponding to binx,y,z.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual void SetMaximum(Double_t maximum=-1111)
virtual Int_t AutoP2FindLimits(Double_t min, Double_t max)
Buffer-based estimate of the histogram range using the power of 2 algorithm.
virtual Style_t GetLabelFont(Option_t *axis="X") const
Return the "axis" label font.
virtual Double_t * GetIntegral()
Return a pointer to the array of bins integral.
virtual void Rebuild(Option_t *option="")
Using the current bin info, recompute the arrays for contents and errors.
static Int_t GetDefaultBufferSize()
Static function return the default buffer size for automatic histograms the parameter fgBufferSize ma...
virtual Int_t GetNcells() const
Double_t fNormFactor
Normalization factor.
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual void UpdateBinContent(Int_t bin, Double_t content)
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...
virtual Double_t GetBinErrorSqUnchecked(Int_t bin) const
virtual Double_t GetMinimum(Double_t minval=-FLT_MAX) const
Return minimum value larger than minval of bins in the range, unless the value has been overridden by...
virtual void FillN(Int_t ntimes, const Double_t *x, const Double_t *w, Int_t stride=1)
Fill this histogram with an array x and weights w.
virtual const TArrayD * GetSumw2() const
virtual void SetBinsLength(Int_t=-1)
TList * fFunctions
->Pointer to list of functions (fits and user)
Bool_t IsBinOverflow(Int_t bin, Int_t axis=0) const
Return true if the bin is overflow.
Double_t fMinimum
Minimum value for plotting.
TH1F & operator=(const TH1F &h1)
Operator =.
void Build()
Creates histogram basic data structure.
EStatOverflows fStatOverflows
Per object flag to use under/overflows in statistics.
virtual void SetDirectory(TDirectory *dir)
By default when an histogram is created, it is added to the list of histogram objects in the current ...
Bool_t IsBinUnderflow(Int_t bin, Int_t axis=0) const
Return true if the bin is underflow.
virtual void Reset(Option_t *option="")
Reset.
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
virtual void FillN(Int_t, const Double_t *, const Double_t *, const Double_t *, Int_t)
virtual void SetError(const Double_t *error)
Replace bin errors by values in array error.
friend TH1S operator+(const TH1S &h1, const TH1S &h2)
Operator +.
Bool_t GetStatOverflowsBehaviour() const
virtual Double_t GetMinimumStored() const
virtual void SetBarWidth(Float_t width=0.5)
Set the width of bars as fraction of the bin width for drawing mode "B".
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
static Bool_t fgStatOverflows
! Flag to use under/overflows in statistics
@ kLogX
X-axis in log scale.
virtual Bool_t CanExtendAllAxes() const
Returns true if all axes are extendable.
virtual Bool_t Multiply(TF1 *f1, Double_t c1=1)
Performs the operation:
EBinErrorOpt
Enumeration specifying type of statistics for bin errors.
virtual Double_t Chisquare(TF1 *f1, Option_t *option="") const
Compute and return the chisquare of this histogram with respect to a function The chisquare is comput...
virtual void Copy(TObject &hnew) const
Copy this to newth1.
virtual Double_t GetKurtosis(Int_t axis=1) const
friend TH1S operator-(const TH1S &h1, const TH1S &h2)
Operator -.
virtual void SetNdivisions(Int_t n=510, Option_t *axis="X")
Set the number of divisions to draw an axis.
virtual Int_t GetQuantiles(Int_t nprobSum, Double_t *q, const Double_t *probSum=0)
Compute Quantiles for this histogram Quantile x_q of a probability distribution Function F is defined...
Option_t * GetOption() const
virtual void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
Set offset between axis and axis' labels.
TString fOption
Histogram options.
Array of chars or bytes (8 bits per element).
virtual Double_t GetStdDev(Int_t axis=1) const
Returns the Standard Deviation (Sigma).
static bool CheckEqualAxes(const TAxis *a1, const TAxis *a2)
Check that the axis are the same.
static void StatOverflows(Bool_t flag=kTRUE)
if flag=kTRUE, underflows and overflows are used by the Fill functions in the computation of statisti...
virtual Int_t FindFirstBinAbove(Double_t threshold=0, Int_t axis=1, Int_t firstBin=1, Int_t lastBin=-1) const
Find first bin with content > threshold for axis (1=x, 2=y, 3=z) if no bins with content > threshold ...
virtual void Browse(TBrowser *b)
Browse the Histogram object.
virtual void Copy(TObject &hnew) const
Copy this to newth1.
virtual Double_t GetBinLowEdge(Int_t bin) const
Return bin lower edge for 1D histogram.
virtual ~TH1F()
Destructor.
virtual void LabelsDeflate(Option_t *axis="X")
Reduce the number of bins for the axis passed in the option to the number of bins having a label.
virtual Bool_t IsHighlight() const
virtual void RebinAxis(Double_t x, TAxis *axis)
UInt_t GetAxisLabelStatus() const
Internal function used in TH1::Fill to see which axis is full alphanumeric i.e.
virtual void SetCellContent(Int_t binx, Int_t biny, Double_t content)
virtual Color_t GetLabelColor(Option_t *axis="X") const
Return the "axis" label color.
Double_t GetRMS(Int_t axis=1) const
virtual void Smooth(Int_t ntimes=1, Option_t *option="")
Smooth bin contents of this histogram.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
virtual Color_t GetAxisColor(Option_t *axis="X") const
Return the number of divisions for "axis".
virtual void SetTitleOffset(Float_t offset=1, Option_t *axis="X")
Specify a parameter offset to control the distance between the axis and the axis' title.
virtual void GetStats(Double_t *stats) const
fill the array stats from the contents of this histogram The array stats must be correctly dimensione...
virtual void SetLabelFont(Style_t font=62, Option_t *axis="X")
Set font number used to draw axis labels.
virtual void DirectoryAutoAdd(TDirectory *)
Perform the automatic addition of the histogram to the given directory.
virtual void SetBinError(Int_t bin, Double_t error)
Set the bin Error Note that this resets the bin eror option to be of Normal Type and for the non-empt...
Int_t GetBufferLength() const
virtual Int_t FindBin(Double_t x, Double_t y=0, Double_t z=0)
Return Global bin number corresponding to x,y,z.
virtual Double_t RetrieveBinContent(Int_t bin) const
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
@ kUserContour
User specified contour levels.
1-D histogram with a float per channel (see TH1 documentation)}
1-D histogram with a short per channel (see TH1 documentation)
void SetStatOverflows(EStatOverflows statOverflows)
TH1C & operator=(const TH1C &h1)
Operator =.
void forward(const LAYERDATA &prevLayerData, LAYERDATA &currLayerData)
apply the weights (and functions) in forward direction of the DNN
TArrayD fSumw2
Array of sum of squares of weights.
virtual void FitPanel()
Display a panel with all histogram fit options.
virtual void Sumw2(Bool_t flag=kTRUE)
Create structure to store sum of squares of weights.
Mother of all ROOT objects.
static void SmoothArray(Int_t NN, Double_t *XX, Int_t ntimes=1)
Smooth array xx, translation of Hbook routine hsmoof.F based on algorithm 353QH twice presented by J.
Double_t fTsumwx2
Total Sum of weight*X*X.
#define ClassDef(name, id)
EStatOverflows
Enumeration specifying the way to treat statoverflow.
virtual void Reset(Option_t *option="")
Reset this histogram: contents, errors, etc.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
@ kIsZoomed
Bit set when zooming on Y axis.
TH1 is the base class of all histogram classes in ROOT.
virtual void Copy(TObject &hnew) const
Copy this to newth1.
const Double_t * GetBuffer() const
virtual void AddBinContent(Int_t bin, Double_t w)
Increment bin content by a weight w.
static bool CheckAxisLimits(const TAxis *a1, const TAxis *a2)
Check that the axis limits of the histograms are the same.
static void SetDefaultSumw2(Bool_t sumw2=kTRUE)
When this static function is called with sumw2=kTRUE, all new histograms will automatically activate ...
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
TAxis fXaxis
X axis descriptor.
Bool_t IsEmpty() const
Check if an histogram is empty (this a protected method used mainly by TH1Merger )
Describe directory structure in memory.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
TH1C operator-(const TH1C &h1, const TH1C &h2)
Operator -.
virtual Double_t Chi2TestX(const TH1 *h2, Double_t &chi2, Int_t &ndf, Int_t &igood, Option_t *option="UU", Double_t *res=0) const
The computation routine of the Chisquare test.
virtual void DoFillN(Int_t ntimes, const Double_t *x, const Double_t *w, Int_t stride=1)
Internal method to fill histogram content from a vector called directly by TH1::BufferEmpty.
@ kIsAverage
Bin contents are average (used by Add)
TH1 * GetCumulative(Bool_t forward=kTRUE, const char *suffix="_cumulative") const
Return a pointer to an histogram containing the cumulative content.
static void SetDefaultBufferSize(Int_t buffersize=1000)
Static function to set the default buffer size for automatic histograms.
@ kNoStats
Don't draw stats box.
friend TH1S operator/(const TH1S &h1, const TH1S &h2)
Operator /.
virtual Float_t GetBarOffset() const
virtual Int_t GetNbinsY() const
virtual void SetCellError(Int_t binx, Int_t biny, Double_t content)
Collection abstract base class.
Fill Area Attributes class.
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="", Double_t xmin=0, Double_t xmax=0)
Fit histogram with function fname.
virtual Long64_t Merge(TCollection *list)
virtual void GetBinXYZ(Int_t binglobal, Int_t &binx, Int_t &biny, Int_t &binz) const
Return binx, biny, binz corresponding to the global bin number globalbin see TH1::GetBin function abo...
@ kConsider
Override global flag considering the overflows.
static Bool_t AddDirectoryStatus()
Static function: cannot be inlined on Windows/NT.
Array of doubles (64 bits per element).
virtual Double_t GetSumOfWeights() const
Return the sum of weights excluding under/overflows.
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
Double_t fTsumwx
Total Sum of weight*X.
virtual Double_t GetMaximum(Double_t maxval=FLT_MAX) const
Return maximum value smaller than maxval of bins in the range, unless the value has been overridden b...
virtual Double_t Integral(Option_t *option="") const
Return integral of bin contents.
static Int_t AutoP2GetBins(Int_t n)
Auxiliary function to get the next power of 2 integer value larger then n.
TDirectory * GetDirectory() const
virtual void SetLabelColor(Color_t color=1, Option_t *axis="X")
Set axis labels color.
@ kNormal
Errors with Normal (Wald) approximation: errorUp=errorLow= sqrt(N)
virtual void SetOption(Option_t *option=" ")
virtual void LabelsInflate(Option_t *axis="X")
Double the number of bins for axis.
Int_t AxisChoice(Option_t *axis) const
Choose an axis according to "axis".
virtual void Scale(Double_t c1=1, Option_t *option="")
Multiply this histogram by a constant c1.
virtual void Copy(TObject &hnew) const
Copy this to newth1.
TVirtualFFT is an interface class for Fast Fourier Transforms.
virtual void SetAxisColor(Color_t color=1, Option_t *axis="X")
Set color to draw the axis line and tick marks.
virtual Double_t GetEffectiveEntries() const
Number of effective entries of the histogram.
virtual void Paint(Option_t *option="")
Control routine to paint any kind of histograms.
friend TH1C operator-(const TH1C &h1, const TH1C &h2)
Operator -.
const double xbins[xbins_n]
Array of integers (32 bits per element).
virtual Int_t GetNbinsX() const
@ kAutoBinPTwo
Use Power(2)-based algorithm for autobinning.
virtual void SetBarOffset(Float_t offset=0.25)
Set the bar offset as fraction of the bin width for drawing mode "B".
friend TH1C operator+(const TH1C &h1, const TH1C &h2)
Operator +.
virtual void SetBinErrorOption(EBinErrorOpt type)
virtual Bool_t FindNewAxisLimits(const TAxis *axis, const Double_t point, Double_t &newMin, Double_t &newMax)
finds new limits for the axis so that point is within the range and the limits are compatible with th...
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual Double_t GetCellError(Int_t binx, Int_t biny) const
virtual void UpdateBinContent(Int_t bin, Double_t content)
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...