104 ((
TH1K*)
this)->Sort();
105 ((
TH1K*)
this)->fReady=1;
107 if (!
fNIn)
return 0.;
118 if (fl < fr) {
ff = fl;
jl--;}
119 else {
ff = fr;
jr++;}
121 ((
TH1K*)
this)->fKCur =
nk - 1;
162 for (
int i = 0; i <
fNIn; i++)
166 out <<
" for(Int_t i = 0; i < " <<
fNIn <<
"; i++)\n";
167 out <<
" " <<
hname <<
"->Fill(" <<
arrname <<
"[i]);\n";
178 if (*((
float*)
f1) < *((
float*)f2))
return -1;
179 if (*((
float*)
f1) > *((
float*)f2))
return 1;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
static int TH1K_fcompare(const void *f1, const void *f2)
Compare.
Array of floats (32 bits per element).
const Float_t * GetArray() const
void AddAt(Float_t c, Int_t i)
Add float c at position i. Check for out of bounds.
void Set(Int_t n) override
Set size of this array to n floats.
virtual Int_t FindBin(Double_t x)
Find bin number corresponding to abscissa x.
TH1K class supports the nearest K Neighbours method, widely used in cluster analysis.
Double_t GetBinError(Int_t bin) const override
Return content of global bin error.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out Note the following restrictions in the code...
Int_t Fill(Double_t x) override
Increment bin with abscissa X by 1.
void Copy(TObject &obj) const override
Copy this histogram structure to newth1.
Double_t GetBinContent(Int_t bin) const override
Return content of global bin number bin.
TH1 is the base class of all histogram classes in ROOT.
virtual Double_t GetBinCenter(Int_t bin) const
Return bin center for 1D histogram.
void Copy(TObject &hnew) const override
Copy this histogram structure to newth1.
Double_t fTsumw
Total Sum of weights.
Double_t fTsumw2
Total Sum of squares of weights.
Double_t fTsumwx2
Total Sum of weight*X*X.
virtual void Reset(Option_t *option="")
Reset this histogram: contents, errors, etc.
TString ProvideSaveName(Option_t *option, Bool_t testfdir=kFALSE)
Provide variable name for histogram for saving as primitive Histogram pointer has by default the hist...
Int_t fDimension
! Histogram dimension (1, 2 or 3 dim)
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,...
Double_t fEntries
Number of entries.
TAxis fXaxis
X axis descriptor.
virtual Double_t GetBinWidth(Int_t bin) const
Return bin width for 1D histogram.
Bool_t GetStatOverflowsBehaviour() const
Double_t fTsumwx
Total Sum of weight*X.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
Mother of all ROOT objects.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
static TString SavePrimitiveArray(std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Bool_t empty_line=kFALSE)
Save array in the output stream "out".
TString & ReplaceSpecialCppChars()
Find special characters which are typically used in printf() calls and replace them by appropriate es...
Double_t Sqrt(Double_t x)
Returns the square root of x.
Long64_t BinarySearch(Long64_t n, const T *array, T value)
Binary search in an array of n values to locate value.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.