GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
GHSym Class Reference

Detailed Description

Definition at line 12 of file GHSym.h.

Public Member Functions

 GHSym ()
 
 GHSym (const char *name, const char *title, Int_t nbins, const Double_t *bins)
 
 GHSym (const char *name, const char *title, Int_t nbins, const Float_t *bins)
 
 GHSym (const char *name, const char *title, Int_t nbins, Double_t low, Double_t up)
 
 GHSym (const GHSym &)
 
 GHSym (GHSym &&) noexcept
 
 ~GHSym ()=default
 
Int_t BufferEmpty (Int_t action=0) override
 
virtual Int_t BufferFill (Double_t x, Double_t y, Double_t w)
 
Int_t BufferFill (Double_t, Double_t) override
 
void Copy (TObject &obj) const override
 
Int_t Fill (const char *, Double_t) override
 
virtual Int_t Fill (const char *namex, const char *namey, Double_t w)
 
Int_t Fill (Double_t x, Double_t y) override
 
virtual Int_t Fill (Double_t x, Double_t y, Double_t w)
 
Int_t Fill (Double_t) override
 
void FillN (Int_t ntimes, const Double_t *x, const Double_t *y, const Double_t *w, Int_t stride=1) override
 
void FillN (Int_t, const Double_t *, const Double_t *, Int_t) override
 
void FillRandom (const char *fname, Int_t ntimes=5000, TRandom *rng=nullptr)
 
void FillRandom (TH1 *h, Int_t ntimes=5000, TRandom *rng=nullptr) override
 
Int_t FindFirstBinAbove (Double_t threshold=0, Int_t axis=1, Int_t firstBin=1, Int_t lastBin=-1) const override
 
Int_t FindLastBinAbove (Double_t threshold=0, Int_t axis=1, Int_t firstBin=1, Int_t lastBin=-1) const override
 
virtual void FitSlices (TF1 *f1=nullptr, Int_t firstbin=0, Int_t lastbin=-1, Int_t cut=0, Option_t *option="QNR", TObjArray *arr=nullptr)
 
Int_t GetBin (Int_t binx, Int_t biny=0, Int_t binz=0) const override
 
virtual Double_t GetBinWithContent2 (Double_t c, Int_t &binx, Int_t &biny, Int_t firstxbin=1, Int_t lastxbin=-1, Int_t firstybin=1, Int_t lastybin=-1, Double_t maxdiff=0) const
 
Double_t GetCellContent (Int_t binx, Int_t biny) const override
 
Double_t GetCellError (Int_t binx, Int_t biny) const override
 
virtual Double_t GetCorrelationFactor (Int_t axis1=1, Int_t axis2=2) const
 
virtual Double_t GetCovariance (Int_t axis1=1, Int_t axis2=2) const
 
virtual void GetRandom2 (Double_t &x, Double_t &y)
 
void GetStats (Double_t *stats) const override
 
virtual Double_t Integral (Int_t firstxbin, Int_t lastxbin, Int_t firstybin, Int_t lastybin, Option_t *option="") const
 
virtual Double_t Integral (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Option_t *="") const
 
Double_t Integral (Option_t *option="") const override
 
virtual Double_t IntegralAndError (Int_t firstxbin, Int_t lastxbin, Int_t firstybin, Int_t lastybin, Double_t &error, Option_t *option="") const
 
Double_t Interpolate (Double_t) const override
 
Double_t Interpolate (Double_t, Double_t) const override
 
Double_t Interpolate (Double_t, Double_t, Double_t) const override
 
Double_t KolmogorovTest (const TH1 *h2, Option_t *option="") const override
 
Long64_t Merge (TCollection *list) override
 
GHSymoperator= (const GHSym &)
 
GHSymoperator= (GHSym &&) noexcept
 
virtual TProfile * Profile (const char *name="_pf", Int_t firstbin=1, Int_t lastbin=-1, Option_t *option="") const
 
virtual TH1D * Projection (const char *name="_pr", Int_t firstBin=0, Int_t lastBin=-1, Option_t *option="") const
 
void PutStats (Double_t *stats) override
 
virtual GHSymRebin2D (Int_t ngroup=2, const char *newname="")
 
void Reset (Option_t *option="") override
 
void SetCellContent (Int_t binx, Int_t biny, Double_t content) override
 
void SetCellError (Int_t binx, Int_t biny, Double_t content) override
 
virtual void SetShowProjectionX (Int_t nbins=1)
 
virtual void SetShowProjectionY (Int_t nbins=1)
 
TH1 * ShowBackground (Int_t niter=20, Option_t *option="same") override
 
Int_t ShowPeaks (Double_t sigma=2, Option_t *option="", Double_t threshold=0.05) override
 
void Smooth (Int_t ntimes=1, Option_t *option="") override
 

Protected Member Functions

virtual Double_t DoIntegral (Int_t binx1, Int_t binx2, Int_t biny1, Int_t biny2, Double_t &error, Option_t *option, Bool_t doError=kFALSE) const
 
TH2 * Matrix ()
 
void Matrix (TH2 *val)
 

Private Attributes

TH2 * fMatrix {nullptr}
 
Double_t fTsumwxy {0.}
 
Double_t fTsumwy {0.}
 
Double_t fTsumwy2 {0.}
 
+ Inheritance diagram for GHSym:
+ Collaboration diagram for GHSym:

Constructor & Destructor Documentation

◆ GHSym() [1/6]

GHSym::GHSym ( )

Definition at line 30 of file GHSym.cxx.

◆ GHSym() [2/6]

GHSym::GHSym ( const char * name,
const char * title,
Int_t nbins,
Double_t low,
Double_t up )

Definition at line 37 of file GHSym.cxx.

◆ GHSym() [3/6]

GHSym::GHSym ( const char * name,
const char * title,
Int_t nbins,
const Double_t * bins )

Definition at line 47 of file GHSym.cxx.

◆ GHSym() [4/6]

GHSym::GHSym ( const char * name,
const char * title,
Int_t nbins,
const Float_t * bins )

Definition at line 57 of file GHSym.cxx.

◆ GHSym() [5/6]

GHSym::GHSym ( const GHSym & rhs)

Definition at line 67 of file GHSym.cxx.

References Copy().

◆ GHSym() [6/6]

GHSym::GHSym ( GHSym && rhs)
noexcept

Definition at line 72 of file GHSym.cxx.

◆ ~GHSym()

GHSym::~GHSym ( )
default

Member Function Documentation

◆ BufferEmpty()

Int_t GHSym::BufferEmpty ( Int_t action = 0)
override

Fill histogram with all entries in the buffer. action = -1 histogram is reset and refilled from the buffer (called by THistPainter::Paint) action = 0 histogram is filled from the buffer action = 1 histogram is filled and buffer is deleted The buffer is automatically deleted when the number of entries in the buffer is greater than the number of entries in the histogram

Definition at line 77 of file GHSym.cxx.

References Fill(), and Reset().

Referenced by BufferFill(), GHSymD::GetBinContent(), GHSymF::GetBinContent(), GetStats(), and Merge().

◆ BufferFill() [1/2]

Int_t GHSym::BufferFill ( Double_t x,
Double_t y,
Double_t w )
virtual

Definition at line 174 of file GHSym.cxx.

References BufferEmpty(), Fill(), and Reset().

◆ BufferFill() [2/2]

Int_t GHSym::BufferFill ( Double_t ,
Double_t  )
inlineoverride

Definition at line 26 of file GHSym.h.

Referenced by Fill(), and Fill().

◆ Copy()

void GHSym::Copy ( TObject & obj) const
override

Definition at line 203 of file GHSym.cxx.

References fMatrix, fTsumwxy, fTsumwy, and fTsumwy2.

Referenced by GHSym(), GHSymD::GHSymD(), GHSymF::GHSymF(), GHSymD::Copy(), GHSymF::Copy(), and Merge().

◆ DoIntegral()

Double_t GHSym::DoIntegral ( Int_t binx1,
Int_t binx2,
Int_t biny1,
Int_t biny2,
Double_t & error,
Option_t * option,
Bool_t doError = kFALSE ) const
protectedvirtual

Definition at line 214 of file GHSym.cxx.

References GetBin().

Referenced by Integral(), and IntegralAndError().

◆ Fill() [1/5]

Int_t GHSym::Fill ( const char * ,
Double_t  )
inlineoverride

Definition at line 30 of file GHSym.h.

References Fill().

Referenced by Fill().

◆ Fill() [2/5]

Int_t GHSym::Fill ( const char * namex,
const char * namey,
Double_t w )
virtual

Definition at line 382 of file GHSym.cxx.

References fTsumwxy, fTsumwy, and fTsumwy2.

◆ Fill() [3/5]

Int_t GHSym::Fill ( Double_t x,
Double_t y )
override

Increment cell defined by x,y by 1.

Definition at line 288 of file GHSym.cxx.

References BufferFill(), fTsumwxy, fTsumwy, and fTsumwy2.

◆ Fill() [4/5]

Int_t GHSym::Fill ( Double_t x,
Double_t y,
Double_t w )
virtual

Increment cell defined by x,y by 1.

Definition at line 335 of file GHSym.cxx.

References BufferFill(), fTsumwxy, fTsumwy, and fTsumwy2.

◆ Fill() [5/5]

Int_t GHSym::Fill ( Double_t )
override

Definition at line 281 of file GHSym.cxx.

Referenced by BufferEmpty(), BufferFill(), FillN(), FillRandom(), and Merge().

◆ FillN() [1/2]

void GHSym::FillN ( Int_t ntimes,
const Double_t * x,
const Double_t * y,
const Double_t * w,
Int_t stride = 1 )
override

Definition at line 430 of file GHSym.cxx.

References Fill().

◆ FillN() [2/2]

void GHSym::FillN ( Int_t ,
const Double_t * ,
const Double_t * ,
Int_t  )
inlineoverride

Definition at line 34 of file GHSym.h.

◆ FillRandom() [1/2]

void GHSym::FillRandom ( const char * fname,
Int_t ntimes = 5000,
TRandom * rng = nullptr )

Definition at line 459 of file GHSym.cxx.

References Fill().

◆ FillRandom() [2/2]

void GHSym::FillRandom ( TH1 * h,
Int_t ntimes = 5000,
TRandom * rng = nullptr )
override

Definition at line 531 of file GHSym.cxx.

References hist.

◆ FindFirstBinAbove()

Int_t GHSym::FindFirstBinAbove ( Double_t threshold = 0,
Int_t axis = 1,
Int_t firstBin = 1,
Int_t lastBin = -1 ) const
override

Definition at line 574 of file GHSym.cxx.

◆ FindLastBinAbove()

Int_t GHSym::FindLastBinAbove ( Double_t threshold = 0,
Int_t axis = 1,
Int_t firstBin = 1,
Int_t lastBin = -1 ) const
override

Definition at line 607 of file GHSym.cxx.

◆ FitSlices()

void GHSym::FitSlices ( TF1 * f1 = nullptr,
Int_t firstbin = 0,
Int_t lastbin = -1,
Int_t cut = 0,
Option_t * option = "QNR",
TObjArray * arr = nullptr )
virtual

Definition at line 640 of file GHSym.cxx.

References Projection().

◆ GetBin()

◆ GetBinWithContent2()

Double_t GHSym::GetBinWithContent2 ( Double_t c,
Int_t & binx,
Int_t & biny,
Int_t firstxbin = 1,
Int_t lastxbin = -1,
Int_t firstybin = 1,
Int_t lastybin = -1,
Double_t maxdiff = 0 ) const
virtual

Definition at line 834 of file GHSym.cxx.

◆ GetCellContent()

Double_t GHSym::GetCellContent ( Int_t binx,
Int_t biny ) const
override

Definition at line 890 of file GHSym.cxx.

References GetBin().

Referenced by Projection().

◆ GetCellError()

Double_t GHSym::GetCellError ( Int_t binx,
Int_t biny ) const
override

Definition at line 895 of file GHSym.cxx.

References GetBin().

Referenced by Projection().

◆ GetCorrelationFactor()

Double_t GHSym::GetCorrelationFactor ( Int_t axis1 = 1,
Int_t axis2 = 2 ) const
virtual

Definition at line 900 of file GHSym.cxx.

References GetCovariance().

◆ GetCovariance()

Double_t GHSym::GetCovariance ( Int_t axis1 = 1,
Int_t axis2 = 2 ) const
virtual

Definition at line 922 of file GHSym.cxx.

References GetStats().

Referenced by GetCorrelationFactor().

◆ GetRandom2()

void GHSym::GetRandom2 ( Double_t & x,
Double_t & y )
virtual

Definition at line 953 of file GHSym.cxx.

◆ GetStats()

void GHSym::GetStats ( Double_t * stats) const
override

Definition at line 996 of file GHSym.cxx.

References BufferEmpty(), fTsumwxy, fTsumwy, fTsumwy2, and GetBin().

Referenced by GetCovariance(), Merge(), Projection(), and Rebin2D().

◆ Integral() [1/3]

Double_t GHSym::Integral ( Int_t firstxbin,
Int_t lastxbin,
Int_t firstybin,
Int_t lastybin,
Option_t * option = "" ) const
virtual

Definition at line 1089 of file GHSym.cxx.

References DoIntegral().

◆ Integral() [2/3]

virtual Double_t GHSym::Integral ( Int_t ,
Int_t ,
Int_t ,
Int_t ,
Int_t ,
Int_t ,
Option_t * = "" ) const
inlinevirtual

Definition at line 78 of file GHSym.h.

◆ Integral() [3/3]

Double_t GHSym::Integral ( Option_t * option = "") const
override

Definition at line 1079 of file GHSym.cxx.

References Integral().

Referenced by Integral().

◆ IntegralAndError()

Double_t GHSym::IntegralAndError ( Int_t firstxbin,
Int_t lastxbin,
Int_t firstybin,
Int_t lastybin,
Double_t & error,
Option_t * option = "" ) const
virtual

Definition at line 1100 of file GHSym.cxx.

References DoIntegral().

◆ Interpolate() [1/3]

Double_t GHSym::Interpolate ( Double_t ) const
override

Definition at line 1116 of file GHSym.cxx.

◆ Interpolate() [2/3]

Double_t GHSym::Interpolate ( Double_t x,
Double_t y ) const
override

Definition at line 1127 of file GHSym.cxx.

◆ Interpolate() [3/3]

Double_t GHSym::Interpolate ( Double_t ,
Double_t ,
Double_t  ) const
override

Definition at line 1224 of file GHSym.cxx.

◆ KolmogorovTest()

Double_t GHSym::KolmogorovTest ( const TH1 * h2,
Option_t * option = "" ) const
override

Definition at line 1232 of file GHSym.cxx.

◆ Matrix() [1/2]

TH2 * GHSym::Matrix ( )
inlineprotected

Definition at line 113 of file GHSym.h.

References fMatrix.

Referenced by GHSymD::GetMatrix(), and GHSymF::GetMatrix().

◆ Matrix() [2/2]

void GHSym::Matrix ( TH2 * val)
inlineprotected

Definition at line 114 of file GHSym.h.

References fMatrix.

◆ Merge()

Long64_t GHSym::Merge ( TCollection * list)
override

Definition at line 1448 of file GHSym.cxx.

References BufferEmpty(), Copy(), Fill(), GetBin(), GetStats(), PutStats(), and Reset().

◆ operator=() [1/2]

GHSym & GHSym::operator= ( const GHSym & )

◆ operator=() [2/2]

GHSym & GHSym::operator= ( GHSym && )
noexcept

◆ Profile()

TProfile * GHSym::Profile ( const char * name = "_pf",
Int_t firstbin = 1,
Int_t lastbin = -1,
Option_t * option = "" ) const
virtual

Definition at line 1720 of file GHSym.cxx.

References GetBin().

◆ Projection()

TH1D * GHSym::Projection ( const char * name = "_pr",
Int_t firstBin = 0,
Int_t lastBin = -1,
Option_t * option = "" ) const
virtual

method for performing projection

Definition at line 1957 of file GHSym.cxx.

References GetCellContent(), GetCellError(), and GetStats().

Referenced by FitSlices().

◆ PutStats()

void GHSym::PutStats ( Double_t * stats)
override

Definition at line 2198 of file GHSym.cxx.

References fTsumwxy, fTsumwy, and fTsumwy2.

Referenced by Merge(), and Rebin2D().

◆ Rebin2D()

GHSym * GHSym::Rebin2D ( Int_t ngroup = 2,
const char * newname = "" )
virtual

Definition at line 2207 of file GHSym.cxx.

References GetBin(), GetStats(), and PutStats().

◆ Reset()

void GHSym::Reset ( Option_t * option = "")
override

Definition at line 2516 of file GHSym.cxx.

References fMatrix, fTsumwxy, fTsumwy, and fTsumwy2.

Referenced by BufferEmpty(), BufferFill(), Merge(), GHSymD::Reset(), and GHSymF::Reset().

◆ SetCellContent()

void GHSym::SetCellContent ( Int_t binx,
Int_t biny,
Double_t content )
override

Definition at line 2541 of file GHSym.cxx.

References GetBin().

◆ SetCellError()

void GHSym::SetCellError ( Int_t binx,
Int_t biny,
Double_t content )
override

Definition at line 2546 of file GHSym.cxx.

References GetBin().

◆ SetShowProjectionX()

void GHSym::SetShowProjectionX ( Int_t nbins = 1)
virtual

Definition at line 2551 of file GHSym.cxx.

◆ SetShowProjectionY()

void GHSym::SetShowProjectionY ( Int_t nbins = 1)
virtual

Definition at line 2565 of file GHSym.cxx.

◆ ShowBackground()

TH1 * GHSym::ShowBackground ( Int_t niter = 20,
Option_t * option = "same" )
override

Definition at line 2579 of file GHSym.cxx.

◆ ShowPeaks()

Int_t GHSym::ShowPeaks ( Double_t sigma = 2,
Option_t * option = "",
Double_t threshold = 0.05 )
override

Definition at line 2589 of file GHSym.cxx.

◆ Smooth()

void GHSym::Smooth ( Int_t ntimes = 1,
Option_t * option = "" )
override

Definition at line 2602 of file GHSym.cxx.

References GetBin().

Member Data Documentation

◆ fMatrix

TH2* GHSym::fMatrix {nullptr}
private

! Transient pointer to the 2D-Matrix used in Draw() or GetMatrix()

Definition at line 120 of file GHSym.h.

Referenced by Copy(), Matrix(), Matrix(), and Reset().

◆ fTsumwxy

Double_t GHSym::fTsumwxy {0.}
private

Total Sum of weight*X*Y.

Definition at line 119 of file GHSym.h.

Referenced by Copy(), Fill(), Fill(), Fill(), GetStats(), PutStats(), and Reset().

◆ fTsumwy

Double_t GHSym::fTsumwy {0.}
private

Total Sum of weight*Y.

Definition at line 117 of file GHSym.h.

Referenced by Copy(), Fill(), Fill(), Fill(), GetStats(), PutStats(), and Reset().

◆ fTsumwy2

Double_t GHSym::fTsumwy2 {0.}
private

Total Sum of weight*Y*Y.

Definition at line 118 of file GHSym.h.

Referenced by Copy(), Fill(), Fill(), Fill(), GetStats(), PutStats(), and Reset().