#include <TH2.h>
Inheritance diagram for TH2:
Public Member Functions | |
TH2 (const TH2 &) | |
virtual | ~TH2 () |
virtual Int_t | BufferEmpty (Int_t action=0) |
virtual void | Copy (TObject &hnew) const |
Int_t | Fill (Double_t) |
Int_t | Fill (const char *, Double_t) |
virtual Int_t | Fill (Double_t x, Double_t y) |
virtual Int_t | Fill (Double_t x, Double_t y, Double_t w) |
virtual Int_t | Fill (Double_t x, const char *namey, Double_t w) |
virtual Int_t | Fill (const char *namex, Double_t y, Double_t w) |
virtual Int_t | Fill (const char *namex, const char *namey, Double_t w) |
virtual void | FillN (Int_t, const Double_t *, const Double_t *, Int_t) |
virtual void | FillN (Int_t ntimes, const Double_t *x, const Double_t *y, const Double_t *w, Int_t stride=1) |
virtual void | FillRandom (const char *fname, Int_t ntimes=5000) |
virtual void | FillRandom (TH1 *h, Int_t ntimes=5000) |
virtual Int_t | FindFirstBinAbove (Double_t threshold=0, Int_t axis=1) const |
virtual Int_t | FindLastBinAbove (Double_t threshold=0, Int_t axis=1) const |
virtual void | FitSlicesX (TF1 *f1=0, Int_t firstybin=0, Int_t lastybin=-1, Int_t cut=0, Option_t *option="QNR", TObjArray *arr=0) |
virtual void | FitSlicesY (TF1 *f1=0, Int_t firstxbin=0, Int_t lastxbin=-1, Int_t cut=0, Option_t *option="QNR", TObjArray *arr=0) |
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 |
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) |
virtual void | GetStats (Double_t *stats) const |
virtual Double_t | Integral (Option_t *option="") const |
virtual Double_t | Integral (Int_t binx1, Int_t binx2, Int_t biny1, Int_t biny2, Option_t *option="") const |
virtual Double_t | Integral (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Option_t *="") const |
virtual Double_t | IntegralAndError (Int_t binx1, Int_t binx2, Int_t biny1, Int_t biny2, Double_t &err, Option_t *option="") const |
virtual Double_t | Interpolate (Double_t x) |
virtual Double_t | Interpolate (Double_t x, Double_t y) |
virtual Double_t | Interpolate (Double_t x, Double_t y, Double_t z) |
virtual Double_t | KolmogorovTest (const TH1 *h2, Option_t *option="") const |
virtual Long64_t | Merge (TCollection *list) |
virtual TH2 * | RebinX (Int_t ngroup=2, const char *newname="") |
virtual TH2 * | RebinY (Int_t ngroup=2, const char *newname="") |
virtual TH2 * | Rebin2D (Int_t nxgroup=2, Int_t nygroup=2, const char *newname="") |
TProfile * | ProfileX (const char *name="_pfx", Int_t firstybin=1, Int_t lastybin=-1, Option_t *option="") const |
TProfile * | ProfileY (const char *name="_pfy", Int_t firstxbin=1, Int_t lastxbin=-1, Option_t *option="") const |
TH1D * | ProjectionX (const char *name="_px", Int_t firstybin=0, Int_t lastybin=-1, Option_t *option="") const |
TH1D * | ProjectionY (const char *name="_py", Int_t firstxbin=0, Int_t lastxbin=-1, Option_t *option="") const |
virtual void | PutStats (Double_t *stats) |
virtual void | Reset (Option_t *option="") |
virtual void | SetShowProjectionX (Int_t nbins) |
virtual void | SetShowProjectionY (Int_t nbins) |
virtual TH1 * | ShowBackground (Int_t niter=20, Option_t *option="same") |
virtual Int_t | ShowPeaks (Double_t sigma=2, Option_t *option="", Double_t threshold=0.05) |
virtual void | Smooth (Int_t ntimes=1, Option_t *option="") |
TH2 (const TH2 &) | |
virtual | ~TH2 () |
virtual Int_t | BufferEmpty (Int_t action=0) |
virtual void | Copy (TObject &hnew) const |
Int_t | Fill (Double_t) |
Int_t | Fill (const char *, Double_t) |
virtual Int_t | Fill (Double_t x, Double_t y) |
virtual Int_t | Fill (Double_t x, Double_t y, Double_t w) |
virtual Int_t | Fill (Double_t x, const char *namey, Double_t w) |
virtual Int_t | Fill (const char *namex, Double_t y, Double_t w) |
virtual Int_t | Fill (const char *namex, const char *namey, Double_t w) |
virtual void | FillN (Int_t, const Double_t *, const Double_t *, Int_t) |
virtual void | FillN (Int_t ntimes, const Double_t *x, const Double_t *y, const Double_t *w, Int_t stride=1) |
virtual void | FillRandom (const char *fname, Int_t ntimes=5000) |
virtual void | FillRandom (TH1 *h, Int_t ntimes=5000) |
virtual Int_t | FindFirstBinAbove (Double_t threshold=0, Int_t axis=1) const |
virtual Int_t | FindLastBinAbove (Double_t threshold=0, Int_t axis=1) const |
virtual void | FitSlicesX (TF1 *f1=0, Int_t firstybin=0, Int_t lastybin=-1, Int_t cut=0, Option_t *option="QNR", TObjArray *arr=0) |
virtual void | FitSlicesY (TF1 *f1=0, Int_t firstxbin=0, Int_t lastxbin=-1, Int_t cut=0, Option_t *option="QNR", TObjArray *arr=0) |
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 |
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) |
virtual void | GetStats (Double_t *stats) const |
virtual Double_t | Integral (Option_t *option="") const |
virtual Double_t | Integral (Int_t binx1, Int_t binx2, Int_t biny1, Int_t biny2, Option_t *option="") const |
virtual Double_t | Integral (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Option_t *="") const |
virtual Double_t | IntegralAndError (Int_t binx1, Int_t binx2, Int_t biny1, Int_t biny2, Double_t &err, Option_t *option="") const |
virtual Double_t | Interpolate (Double_t x) |
virtual Double_t | Interpolate (Double_t x, Double_t y) |
virtual Double_t | Interpolate (Double_t x, Double_t y, Double_t z) |
virtual Double_t | KolmogorovTest (const TH1 *h2, Option_t *option="") const |
virtual Long64_t | Merge (TCollection *list) |
virtual TH2 * | RebinX (Int_t ngroup=2, const char *newname="") |
virtual TH2 * | RebinY (Int_t ngroup=2, const char *newname="") |
virtual TH2 * | Rebin2D (Int_t nxgroup=2, Int_t nygroup=2, const char *newname="") |
TProfile * | ProfileX (const char *name="_pfx", Int_t firstybin=1, Int_t lastybin=-1, Option_t *option="") const |
TProfile * | ProfileY (const char *name="_pfy", Int_t firstxbin=1, Int_t lastxbin=-1, Option_t *option="") const |
TH1D * | ProjectionX (const char *name="_px", Int_t firstybin=0, Int_t lastybin=-1, Option_t *option="") const |
TH1D * | ProjectionY (const char *name="_py", Int_t firstxbin=0, Int_t lastxbin=-1, Option_t *option="") const |
virtual void | PutStats (Double_t *stats) |
virtual void | Reset (Option_t *option="") |
virtual void | SetShowProjectionX (Int_t nbins) |
virtual void | SetShowProjectionY (Int_t nbins) |
virtual TH1 * | ShowBackground (Int_t niter=20, Option_t *option="same") |
virtual Int_t | ShowPeaks (Double_t sigma=2, Option_t *option="", Double_t threshold=0.05) |
virtual void | Smooth (Int_t ntimes=1, Option_t *option="") |
Protected Member Functions | |
TH2 () | |
TH2 (const char *name, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, Double_t ylow, Double_t yup) | |
TH2 (const char *name, const char *title, Int_t nbinsx, const Double_t *xbins, Int_t nbinsy, Double_t ylow, Double_t yup) | |
TH2 (const char *name, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, const Double_t *ybins) | |
TH2 (const char *name, const char *title, Int_t nbinsx, const Double_t *xbins, Int_t nbinsy, const Double_t *ybins) | |
TH2 (const char *name, const char *title, Int_t nbinsx, const Float_t *xbins, Int_t nbinsy, const Float_t *ybins) | |
virtual Int_t | BufferFill (Double_t, Double_t) |
virtual Int_t | BufferFill (Double_t x, Double_t y, Double_t w) |
virtual TH1D * | DoProjection (bool onX, const char *name, Int_t firstbin, Int_t lastbin, Option_t *option) const |
virtual TProfile * | DoProfile (bool onX, const char *name, Int_t firstbin, Int_t lastbin, Option_t *option) const |
virtual void | DoFitSlices (bool onX, TF1 *f1, Int_t firstbin, Int_t lastbin, Int_t cut, Option_t *option, TObjArray *arr) |
TH2 () | |
TH2 (const char *name, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, Double_t ylow, Double_t yup) | |
TH2 (const char *name, const char *title, Int_t nbinsx, const Double_t *xbins, Int_t nbinsy, Double_t ylow, Double_t yup) | |
TH2 (const char *name, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, const Double_t *ybins) | |
TH2 (const char *name, const char *title, Int_t nbinsx, const Double_t *xbins, Int_t nbinsy, const Double_t *ybins) | |
TH2 (const char *name, const char *title, Int_t nbinsx, const Float_t *xbins, Int_t nbinsy, const Float_t *ybins) | |
virtual Int_t | BufferFill (Double_t, Double_t) |
virtual Int_t | BufferFill (Double_t x, Double_t y, Double_t w) |
virtual TH1D * | DoProjection (bool onX, const char *name, Int_t firstbin, Int_t lastbin, Option_t *option) const |
virtual TProfile * | DoProfile (bool onX, const char *name, Int_t firstbin, Int_t lastbin, Option_t *option) const |
virtual void | DoFitSlices (bool onX, TF1 *f1, Int_t firstbin, Int_t lastbin, Int_t cut, Option_t *option, TObjArray *arr) |
Protected Attributes | |
Double_t | fScalefactor |
Double_t | fTsumwy |
Double_t | fTsumwy2 |
Double_t | fTsumwxy |
Definition at line 36 of file TH2.h.
TH2::TH2 | ( | ) | [protected] |
TH2::TH2 | ( | const char * | name, | |
const char * | title, | |||
Int_t | nbinsx, | |||
Double_t | xlow, | |||
Double_t | xup, | |||
Int_t | nbinsy, | |||
Double_t | ylow, | |||
Double_t | yup | |||
) | [protected] |
Definition at line 52 of file TH2.cxx.
References TH1::fDimension, TH1::fNcells, fScalefactor, fTsumwxy, fTsumwy, fTsumwy2, TH1::fYaxis, and TAxis::Set().
TH2::TH2 | ( | const char * | name, | |
const char * | title, | |||
Int_t | nbinsx, | |||
const Double_t * | xbins, | |||
Int_t | nbinsy, | |||
Double_t | ylow, | |||
Double_t | yup | |||
) | [protected] |
Definition at line 67 of file TH2.cxx.
References TH1::fDimension, TH1::fNcells, fScalefactor, fTsumwxy, fTsumwy, fTsumwy2, TH1::fYaxis, and TAxis::Set().
TH2::TH2 | ( | const char * | name, | |
const char * | title, | |||
Int_t | nbinsx, | |||
Double_t | xlow, | |||
Double_t | xup, | |||
Int_t | nbinsy, | |||
const Double_t * | ybins | |||
) | [protected] |
Definition at line 81 of file TH2.cxx.
References TH1::fDimension, TH1::fNcells, fScalefactor, fTsumwxy, fTsumwy, fTsumwy2, TH1::fYaxis, and TAxis::Set().
TH2::TH2 | ( | const char * | name, | |
const char * | title, | |||
Int_t | nbinsx, | |||
const Double_t * | xbins, | |||
Int_t | nbinsy, | |||
const Double_t * | ybins | |||
) | [protected] |
Definition at line 96 of file TH2.cxx.
References TH1::fDimension, TH1::fNcells, fScalefactor, fTsumwxy, fTsumwy, fTsumwy2, TH1::fYaxis, and TAxis::Set().
TH2::TH2 | ( | const char * | name, | |
const char * | title, | |||
Int_t | nbinsx, | |||
const Float_t * | xbins, | |||
Int_t | nbinsy, | |||
const Float_t * | ybins | |||
) | [protected] |
Definition at line 111 of file TH2.cxx.
References TH1::fDimension, TH1::fNcells, fScalefactor, fTsumwxy, fTsumwy, fTsumwy2, TH1::fYaxis, and TAxis::Set().
TH2::TH2 | ( | ) | [protected] |
TH2::TH2 | ( | const char * | name, | |
const char * | title, | |||
Int_t | nbinsx, | |||
Double_t | xlow, | |||
Double_t | xup, | |||
Int_t | nbinsy, | |||
Double_t | ylow, | |||
Double_t | yup | |||
) | [protected] |
TH2::TH2 | ( | const char * | name, | |
const char * | title, | |||
Int_t | nbinsx, | |||
const Double_t * | xbins, | |||
Int_t | nbinsy, | |||
Double_t | ylow, | |||
Double_t | yup | |||
) | [protected] |
TH2::TH2 | ( | const char * | name, | |
const char * | title, | |||
Int_t | nbinsx, | |||
Double_t | xlow, | |||
Double_t | xup, | |||
Int_t | nbinsy, | |||
const Double_t * | ybins | |||
) | [protected] |
TH2::TH2 | ( | const char * | name, | |
const char * | title, | |||
Int_t | nbinsx, | |||
const Double_t * | xbins, | |||
Int_t | nbinsy, | |||
const Double_t * | ybins | |||
) | [protected] |
TH2::TH2 | ( | const char * | name, | |
const char * | title, | |||
Int_t | nbinsx, | |||
const Float_t * | xbins, | |||
Int_t | nbinsy, | |||
const Float_t * | ybins | |||
) | [protected] |
TH2::TH2 | ( | const TH2 & | ) |
virtual TH2::~TH2 | ( | ) | [virtual] |
Definition at line 205 of file TH2.cxx.
References buffer, BufferEmpty(), TH1::fBuffer, TH1::fBufferSize, TH1::fEntries, Fill(), and Reset().
TH1D * TH2::DoProjection | ( | bool | onX, | |
const char * | name, | |||
Int_t | firstbin, | |||
Int_t | lastbin, | |||
Option_t * | option | |||
) | const [protected, virtual] |
Definition at line 2120 of file TH2.cxx.
References TMath::Abs(), TVirtualPad::cd(), xmlio::Class, TObject::ClassName(), TString::Contains(), TString::Data(), TH1::Draw(), entries, TObject::Error(), TArrayD::fArray, TH1::fEntries, TH1::fgStatOverflows, TAxis::FindBin(), TROOT::FindObject(), TString::First(), TMath::Floor(), TArray::fN, TH1::fPainter, TH1::fTsumw, TH1::fXaxis, TH1::fYaxis, TAxis::GetBinCenter(), TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TH1::GetCellContent(), TH1::GetCellError(), TH1::GetEffectiveEntries(), TAxis::GetFirst(), TAxis::GetLabels(), TAxis::GetLast(), TNamed::GetName(), TAxis::GetNbins(), TH1::GetNbinsX(), TROOT::GetSelectedPad(), GetStats(), TH1::GetSumw2N(), TNamed::GetTitle(), TH1::GetXaxis(), TAxis::GetXbins(), TAxis::GetXmax(), TAxis::GetXmin(), TH1::GetYaxis(), gPad, gROOT, h1, i, TAxis::ImportAttributes(), TObject::InheritsFrom(), TVirtualHistPainter::IsInside(), TAxis::kAxisRange, TH1::kNstat, kTRUE, TVirtualHistPainter::MakeCuts(), TH1::Paint(), PutStats(), TString::Remove(), TH2D::Reset(), TH2D::SetBinContent(), TH1::SetBinError(), TAxis::SetBinLabel(), TH1::SetEntries(), TAttFill::SetFillColor(), TAttLine::SetLineColor(), TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerStyle(), snprintf, TMath::Sqrt(), TObjString::String(), TH1::Sumw2(), TObject::TestBit(), and TString::ToLower().
Referenced by ProjectionX(), and ProjectionY().
TProfile * TH2::DoProfile | ( | bool | onX, | |
const char * | name, | |||
Int_t | firstbin, | |||
Int_t | lastbin, | |||
Option_t * | option | |||
) | const [protected, virtual] |
Definition at line 1856 of file TH2.cxx.
References TVirtualPad::cd(), xmlio::Class, TObject::ClassName(), TString::Contains(), TString::Data(), TH1::Draw(), TObject::Error(), TArrayD::fArray, Fill(), TAxis::FindBin(), TROOT::FindObject(), TString::First(), TArray::fN, TH1::fPainter, TH1::fSumw2, TH1::fXaxis, TH1::fYaxis, TH1::GetBin(), TAxis::GetBinCenter(), TH1::GetBinContent(), TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TH1::GetEffectiveEntries(), TAxis::GetFirst(), TAxis::GetLast(), TNamed::GetName(), TAxis::GetNbins(), TH1::GetNbinsX(), TROOT::GetSelectedPad(), TH1::GetSumw2N(), TNamed::GetTitle(), TH1::GetXaxis(), TAxis::GetXbins(), TAxis::GetXmax(), TAxis::GetXmin(), gPad, gROOT, h1, TAxis::ImportAttributes(), TObject::InheritsFrom(), TVirtualHistPainter::IsInside(), TAxis::kAxisRange, kTRUE, TVirtualHistPainter::MakeCuts(), TH1::Paint(), TString::Remove(), TH2D::Reset(), TH1::ResetStats(), TH1::SetEntries(), TAttFill::SetFillColor(), TAttLine::SetLineColor(), TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerStyle(), snprintf, TH1::Sumw2(), TObject::TestBit(), and TString::ToLower().
Referenced by ProfileX(), and ProfileY().
void TH2::DoFitSlices | ( | bool | onX, | |
TF1 * | f1, | |||
Int_t | firstbin, | |||
Int_t | lastbin, | |||
Int_t | cut, | |||
Option_t * | option, | |||
TObjArray * | arr | |||
) | [protected, virtual] |
Definition at line 656 of file TH2.cxx.
References TString::Contains(), TString::Data(), TObjArray::Expand(), TArrayD::fArray, Fill(), TH1::Fill(), TDirectory::FindObject(), TArray::fN, TH1::fXaxis, TH1::fYaxis, gDirectory, TAxis::GetBinCenter(), TF1::GetChisquare(), TROOT::GetFunction(), TNamed::GetName(), TAxis::GetNbins(), TFormula::GetNpar(), TF1::GetNumberFitPoints(), TFormula::GetParameter(), TFormula::GetParameters(), TF1::GetParError(), TFormula::GetParName(), TAxis::GetTitle(), TH1::GetXaxis(), TAxis::GetXbins(), TAxis::GetXmax(), TAxis::GetXmin(), gROOT, hp, Long64_t, name, nbins, nentries, npfits, ProjectionX(), ProjectionY(), TString::ReplaceAll(), TH1::SetBinError(), TCollection::SetOwner(), TFormula::SetParameters(), TF1::SetRange(), TNamed::SetTitle(), snprintf, title, and TString::ToLower().
Referenced by FitSlicesX(), and FitSlicesY().
Reimplemented from TH1.
Definition at line 141 of file TH2.cxx.
References buffer, TH1::fBuffer, TH1::fBufferSize, TH1::fEntries, Fill(), THLimitsFinder::FindGoodLimits(), TH1::fXaxis, TH1::fYaxis, THLimitsFinder::GetLimitsFinder(), TAxis::GetXmax(), TAxis::GetXmin(), i, TH1::kCanRebin, keep, TH1::RebinAxis(), Reset(), TObject::TestBit(), x, xmax, xmin, y, ymax, and ymin.
Referenced by BufferFill(), and Merge().
void TH2::Copy | ( | TObject & | hnew | ) | const [virtual] |
Reimplemented from TH1.
Definition at line 236 of file TH2.cxx.
References TH1::Copy(), fScalefactor, fTsumwxy, fTsumwy, and fTsumwy2.
Referenced by TH2I::Copy(), TH2F::Copy(), TH2D::Copy(), TH2S::Copy(), and TH2C::Copy().
Reimplemented from TH1.
Definition at line 67 of file TH2.h.
Referenced by TMVA::MethodCommittee::AdaBoost(), basic(), BufferEmpty(), BufferFill(), ProjectionTester::buildHistograms(), ProjectionTester::buildHistogramsWithWeights(), TGeoChecker::CheckBoundaryErrors(), TGeoChecker::CheckGeometryFull(), THbookFile::Convert1D(), THbookFile::Convert2D(), convert_1d(), convert_2d(), RooFitResult::correlationHist(), DoFitSlices(), DoProfile(), DynamicSlice(), earth(), RooNumConvolution::evaluate(), exampleTKDE(), TMVA::RuleFit::FillCorr(), TMVA::RuleFit::FillCut(), FillHistograms(), TestDialog::FillHistos(), TMVA::RuleFit::FillLin(), FillRandom(), fit2d(), fit2DHist(), fit3DHist(), TH3::FitSlicesZ(), fitSparse2D(), foam_kanwa(), GAMinTutorial(), TGraph2D::GetHistogram(), graph2dfit(), h1analysisProxy_Process(), hsimple(), htw(), kdTreeBinning(), MakeHisto(), Merge(), multicolor(), mygenerate(), TPerfStats::PacketEvent(), PhaseSpace(), piRandom(), PlotDecisionBoundary(), portfolio(), h1analysis::Process(), ProofEventProc::Process(), ProofFriends::Process(), TGraph2D::Project(), read(), run_foam(), run_unuran(), sparsehist(), SpyServ::SpyServ(), TSelectorDraw::TakeAction(), TSelectorDraw::TakeEstimate(), tclread(), test1DObjects(), test2DObjects(), test2DRebin(), testAdd2D1(), testAdd2D2(), testAdd2D3(), testAdd3(), testAdd3D1(), testAdd3D2(), testAdd3D3(), testArrayRebin(), testAssign1D(), testAssign2D(), testAssign3D(), testAssignVar1D(), testBinDataData1D(), testBinDataData1DInt(), testBinDataData2D(), testBinDataData2DInt(), testClone1D(), testClone2D(), testClone3D(), testCloneVar1D(), testCont1D(), testCopyConstructor1D(), testCopyConstructor2D(), testCopyConstructor3D(), testCopyConstructorVar1D(), testDisc1D(), testDiscDistr(), testDistr1D(), testDistrMultiDim(), testDivide1(), testDivide2(), testDivide2D1(), testDivide2D2(), testDivide3D1(), testDivide3D2(), testDivideVar1(), testDivideVar2(), testEmpDistr(), testGausFit(), testGetRandom(), testHisto1DFit(), testHisto1DPolFit(), testHisto2DFit(), testIntegerRebin(), testIntegerRebinNoName(), testInterpolation1D(), testInterpolation2D(), testInterpolation3D(), testInterpolationVar1D(), testLabel(), testMerge1DDiff(), testMerge1DLabelAll(), testMerge1DLabelAllDiff(), testMerge1DLabelDiff(), testMerge1DLabelSame(), testMerge2D(), testMerge2DDiff(), testMerge2DLabelAll(), testMerge2DLabelAllDiff(), testMerge2DLabelDiff(), testMerge2DLabelSame(), testMerge3D(), testMerge3DDiff(), testMerge3DLabelAll(), testMerge3DLabelAllDiff(), testMerge3DLabelDiff(), testMerge3DLabelSame(), testMul1(), testMul2(), testMul2D1(), testMul2D2(), testMul3D1(), testMul3D2(), testMulF1D(), testMulF1D2(), testMulF2D(), testMulF2D2(), testMulF3D(), testMulF3D2(), testMulVar1(), testMulVar2(), testPolyFit(), testRefRead1D(), testRefRead2D(), testRefRead3D(), TMVA::MethodBase::TestRegression(), testRootBinomial(), testRootPoisson(), testSparseData1DFull(), testSparseData1DSparse(), testSparseData2DFull(), testSparseData2DSparse(), testSphere(), testStringAPI(), testTH2toTH1(), testTH3toTH2(), testUnfold1(), testUnfold2(), testUnfold3(), testUnfold4(), testUnuran(), testWriteRead1D(), testWriteRead2D(), testWriteRead3D(), testWriteReadVar1D(), tgaxis4(), th2polyEurope(), timeonaxis2(), transpad(), tree1r(), TSVDUnfoldExample(), tv3Read1(), tv3Read2(), twoscales(), unuranDistr(), unuranGraf(), unuranHist(), and unuranSimple().
Reimplemented from TH1.
Definition at line 248 of file TH2.cxx.
References TH1::AddBinContent(), BufferFill(), TArrayD::fArray, TH1::fBuffer, TH1::fEntries, TH1::fgStatOverflows, TAxis::FindBin(), TArray::fN, TH1::fSumw2, TH1::fTsumw, TH1::fTsumw2, TH1::fTsumwx, TH1::fTsumwx2, fTsumwxy, fTsumwy, fTsumwy2, TH1::fXaxis, TH1::fYaxis, and TAxis::GetNbins().
Definition at line 291 of file TH2.cxx.
References TH1::AddBinContent(), BufferFill(), TArrayD::fArray, TH1::fBuffer, TH1::fEntries, TH1::fgStatOverflows, TAxis::FindBin(), TArray::fN, TH1::fSumw2, TH1::fTsumw, TH1::fTsumw2, TH1::fTsumwx, TH1::fTsumwx2, fTsumwxy, fTsumwy, fTsumwy2, TH1::fXaxis, TH1::fYaxis, and TAxis::GetNbins().
Definition at line 412 of file TH2.cxx.
References TH1::AddBinContent(), TArrayD::fArray, TH1::fEntries, TH1::fgStatOverflows, TAxis::FindBin(), TArray::fN, TH1::fSumw2, TH1::fTsumw, TH1::fTsumw2, TH1::fTsumwx, TH1::fTsumwx2, fTsumwxy, fTsumwy, fTsumwy2, TH1::fXaxis, TH1::fYaxis, TAxis::GetBinCenter(), TAxis::GetNbins(), and y.
Definition at line 373 of file TH2.cxx.
References TH1::AddBinContent(), TArrayD::fArray, TH1::fEntries, TH1::fgStatOverflows, TAxis::FindBin(), TArray::fN, TH1::fSumw2, TH1::fTsumw, TH1::fTsumw2, TH1::fTsumwx, TH1::fTsumwx2, fTsumwxy, fTsumwy, fTsumwy2, TH1::fXaxis, TH1::fYaxis, TAxis::GetBinCenter(), TAxis::GetNbins(), and x.
Definition at line 335 of file TH2.cxx.
References TH1::AddBinContent(), TArrayD::fArray, TH1::fEntries, TAxis::FindBin(), TArray::fN, TH1::fSumw2, TH1::fTsumw, TH1::fTsumw2, TH1::fTsumwx, TH1::fTsumwx2, fTsumwxy, fTsumwy, fTsumwy2, TH1::fXaxis, TH1::fYaxis, TAxis::GetBinCenter(), TAxis::GetNbins(), x, and y.
Reimplemented from TH1.
Definition at line 74 of file TH2.h.
Referenced by TSelectorDraw::TakeEstimate().
void TH2::FillN | ( | Int_t | ntimes, | |
const Double_t * | x, | |||
const Double_t * | y, | |||
const Double_t * | w, | |||
Int_t | stride = 1 | |||
) | [virtual] |
Reimplemented from TH1.
Definition at line 451 of file TH2.cxx.
References TH1::AddBinContent(), TArrayD::fArray, TH1::fEntries, TH1::fgStatOverflows, TAxis::FindBin(), TArray::fN, TH1::fSumw2, TH1::fTsumw, TH1::fTsumw2, TH1::fTsumwx, TH1::fTsumwx2, fTsumwxy, fTsumwy, fTsumwy2, TH1::fXaxis, TH1::fYaxis, TAxis::GetNbins(), and i.
void TH2::FillRandom | ( | const char * | fname, | |
Int_t | ntimes = 5000 | |||
) | [virtual] |
Reimplemented from TH1.
Definition at line 500 of file TH2.cxx.
References TMath::BinarySearch(), TObject::Error(), TF1::Eval(), Fill(), TH1::fXaxis, TH1::fYaxis, TAxis::GetBinCenter(), TROOT::GetFunction(), TH1::GetNbinsX(), TH1::GetNbinsY(), gRandom, gROOT, nbins, r1, TRandom::Rndm(), x, and y.
Referenced by customContextMenu(), ErrorIntegral(), findPeak2(), fit2(), fit2a(), DNDMainFrame::GetObject(), glh3c(), hist2image(), hstack(), options2d1(), PT_InputData(), stress2(), stress4(), tables_write(), testConversion2D(), testH1Integral(), testH2Integral(), and unuranHist().
Reimplemented from TH1.
Definition at line 563 of file TH2.cxx.
References TObject::Error(), TH1::fDimension, Fill(), GetRandom2(), h, h2, x, and y.
Reimplemented from TH1.
Definition at line 597 of file TH2.cxx.
References TH1::fXaxis, TH1::fYaxis, TH1::GetBinContent(), TAxis::GetNbins(), and TObject::Warning().
Reimplemented from TH1.
Definition at line 627 of file TH2.cxx.
References TH1::fXaxis, TH1::fYaxis, TH1::GetBinContent(), TAxis::GetNbins(), and TObject::Warning().
Double_t TH2::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 869 of file TH2.cxx.
References TMath::Abs(), TObject::Error(), TH1::fDimension, TH1::fXaxis, TH1::fYaxis, TH1::GetBinContent(), TAxis::GetNbins(), i, and j.
Definition at line 912 of file TH2.cxx.
References TObject::Error(), GetCovariance(), and TH1::GetRMS().
Definition at line 929 of file TH2.cxx.
References TMath::Abs(), TObject::Error(), GetStats(), and TH1::kNstat.
Referenced by GetCorrelationFactor().
Definition at line 959 of file TH2.cxx.
References TMath::BinarySearch(), TH1::ComputeIntegral(), TH1::fEntries, TH1::fIntegral, TH1::fXaxis, TH1::fYaxis, TAxis::GetBinLowEdge(), TAxis::GetBinWidth(), TH1::GetNbinsX(), TH1::GetNbinsY(), gRandom, nbins, r1, and TRandom::Rndm().
Referenced by FillRandom().
void TH2::GetStats | ( | Double_t * | stats | ) | const [virtual] |
Reimplemented from TH1.
Definition at line 985 of file TH2.cxx.
References TMath::Abs(), TH1::fBuffer, TH1::fEntries, TH1::fgStatOverflows, TH1::fTsumw, TH1::fTsumw2, TH1::fTsumwx, TH1::fTsumwx2, fTsumwxy, fTsumwy, fTsumwy2, TH1::fXaxis, TH1::fYaxis, TH1::GetBin(), TAxis::GetBinCenter(), TH1::GetBinContent(), TH1::GetBinError(), TAxis::GetFirst(), TAxis::GetLast(), TAxis::GetNbins(), TAxis::kAxisRange, TObject::TestBit(), w, x, and y.
Referenced by TH1::Add(), TH1::Chi2TestX(), DoProjection(), GetCovariance(), and Merge().
Reimplemented from TH1.
Definition at line 1048 of file TH2.cxx.
References TH1::fXaxis, TH1::fYaxis, TAxis::GetFirst(), and TAxis::GetLast().
Referenced by exampleTKDE(), TMVA::Tools::GetCorrelationRatio(), TMVA::Tools::GetMutualInformation(), THistPainter::PaintStat2(), and th2polyEurope().
Double_t TH2::IntegralAndError | ( | Int_t | binx1, | |
Int_t | binx2, | |||
Int_t | biny1, | |||
Int_t | biny2, | |||
Double_t & | err, | |||
Option_t * | option = "" | |||
) | const [virtual] |
Definition at line 1072 of file TH2.cxx.
References TH1::DoIntegral(), and kTRUE.
Referenced by testH1Integral(), and testH2Integral().
Reimplemented from TH1.
Definition at line 1084 of file TH2.cxx.
References TObject::Error().
Referenced by testInterpolation1D(), testInterpolation2D(), testInterpolation3D(), and testInterpolationVar1D().
Reimplemented from TH1.
Definition at line 1093 of file TH2.cxx.
References d, TObject::Error(), TAxis::FindBin(), TH1::fXaxis, TH1::fYaxis, TH1::GetBin(), TAxis::GetBinCenter(), TH1::GetBinContent(), TAxis::GetBinUpEdge(), TAxis::GetBinWidth(), TH1::GetNbinsX(), TH1::GetNbinsY(), x1, and x2.
Reimplemented from TH1.
Definition at line 1179 of file TH2.cxx.
References TMath::Abs(), TString::Contains(), TObject::Error(), TH2D::GetBinContent(), TH1::GetBinError(), TH1::GetCellContent(), TH1::GetDimension(), TNamed::GetName(), TAxis::GetNbins(), TH1::GetXaxis(), TAxis::GetXmax(), TAxis::GetXmin(), TH1::GetYaxis(), h1, h2, i, j, kFALSE, TMath::KolmogorovProb(), kTRUE, TMath::Log(), TMath::Max(), TMath::Prob(), s1, s2, TMath::Sqrt(), TString::ToUpper(), and TObject::Warning().
Referenced by testUnuran().
Long64_t TH2::Merge | ( | TCollection * | list | ) | [virtual] |
Reimplemented from TH1.
Definition at line 1391 of file TH2.cxx.
References TList::Add(), TCollection::AddAll(), TH1::AddBinContent(), BufferEmpty(), TObject::ClassName(), TNamed::Clone(), TObject::Error(), TArrayD::fArray, Fill(), TAxis::FindBin(), TArray::fN, TH1::fSumw2, TH1::fXaxis, TH1::fYaxis, TH1::GetEntries(), TAxis::GetNbins(), GetStats(), TH1::GetXaxis(), TAxis::GetXmax(), TAxis::GetXmin(), TH1::GetYaxis(), h, i, TH1::kCanRebin, kFALSE, TH1::kNstat, kTRUE, list, Long64_t, nentries, o, PutStats(), R__ASSERT, TH1::RecomputeAxisLimits(), TList::Remove(), TIter::Reset(), Reset(), TObject::ResetBit(), TH1::SameLimitsAndNBins(), TAxis::Set(), TH1::SetBins(), TObject::SetBit(), TH1::SetEntries(), and TObject::TestBit().
Referenced by TFileMerger::MergeRecursive(), testMerge1D(), testMerge1DDiff(), testMerge1DLabelAll(), testMerge1DLabelAllDiff(), testMerge1DLabelDiff(), testMerge1DLabelSame(), testMerge2D(), testMerge2DDiff(), testMerge2DLabelAll(), testMerge2DLabelAllDiff(), testMerge2DLabelDiff(), testMerge2DLabelSame(), testMerge3D(), testMerge3DDiff(), testMerge3DLabelAll(), testMerge3DLabelAllDiff(), testMerge3DLabelDiff(), testMerge3DLabelSame(), and testMergeVar1D().
Definition at line 1566 of file TH2.cxx.
References entries, TObject::Error(), TH1::fEntries, TArray::fN, for(), TH1::fSumw2, TH1::fXaxis, TH1::fYaxis, TH1::GetBinContent(), TH1::GetBinError(), TAxis::GetNbins(), TAxis::GetXmax(), TAxis::GetXmin(), i, j, xmax, xmin, ymax, and ymin.
Referenced by TH2Editor::DoBinMoved(), TH2Editor::DoBinReleased(), RebinX(), and RebinY().
TProfile * TH2::ProfileX | ( | const char * | name = "_pfx" , |
|
Int_t | firstybin = 1 , |
|||
Int_t | lastybin = -1 , |
|||
Option_t * | option = "" | |||
) | const |
Definition at line 2031 of file TH2.cxx.
References DoProfile().
Referenced by ProjectionTester::compareHistograms(), fit2d(), and testTH2toTH1().
TProfile * TH2::ProfileY | ( | const char * | name = "_pfy" , |
|
Int_t | firstxbin = 1 , |
|||
Int_t | lastxbin = -1 , |
|||
Option_t * | option = "" | |||
) | const |
Definition at line 2076 of file TH2.cxx.
References DoProfile().
Referenced by ProjectionTester::compareHistograms(), and testTH2toTH1().
TH1D * TH2::ProjectionX | ( | const char * | name = "_px" , |
|
Int_t | firstybin = 0 , |
|||
Int_t | lastybin = -1 , |
|||
Option_t * | option = "" | |||
) | const |
Definition at line 2356 of file TH2.cxx.
References DoProjection().
Referenced by ProjectionTester::compareHistograms(), DoFitSlices(), testTH2toTH1(), and THStack::THStack().
TH1D * TH2::ProjectionY | ( | const char * | name = "_py" , |
|
Int_t | firstxbin = 0 , |
|||
Int_t | lastxbin = -1 , |
|||
Option_t * | option = "" | |||
) | const |
Definition at line 2397 of file TH2.cxx.
References DoProjection().
Referenced by ProjectionTester::compareHistograms(), DoFitSlices(), testTH2toTH1(), and THStack::THStack().
void TH2::PutStats | ( | Double_t * | stats | ) | [virtual] |
Reimplemented from TH1.
Definition at line 2437 of file TH2.cxx.
References fTsumwxy, fTsumwy, fTsumwy2, and TH1::PutStats().
Referenced by TH3::DoProject1D(), TH3::DoProject2D(), DoProjection(), and Merge().
void TH2::Reset | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TH1.
Definition at line 2448 of file TH2.cxx.
References TString::Contains(), fTsumwxy, fTsumwy, fTsumwy2, TH1::Reset(), and TString::ToUpper().
Referenced by BufferEmpty(), BufferFill(), TH2Editor::DoBinMoved(), TH2Editor::DoBinReleased(), TH2Editor::DoCancel(), Merge(), TH2I::Reset(), TH2F::Reset(), TH2C::Reset(), TH2S::Reset(), TH2D::Reset(), and TH2Editor::SetModel().
void TH2::SetShowProjectionX | ( | Int_t | nbins | ) | [virtual] |
Definition at line 2463 of file TH2.cxx.
References TH1::fPainter, TH1::GetPainter(), and TVirtualHistPainter::SetShowProjection().
void TH2::SetShowProjectionY | ( | Int_t | nbins | ) | [virtual] |
Definition at line 2478 of file TH2.cxx.
References TH1::fPainter, TH1::GetPainter(), and TVirtualHistPainter::SetShowProjection().
Reimplemented from TH1.
Definition at line 2520 of file TH2.cxx.
References buf, TString::Contains(), error, TH1::fEntries, TArray::fN, TH1::fSumw2, TH1::fXaxis, TH1::fYaxis, TH1::GetBin(), TH1::GetBinContent(), TH1::GetBinError(), TAxis::GetFirst(), TAxis::GetLast(), TH1::GetNbinsX(), TH1::GetNbinsY(), j, k, m, n, nentries, norm(), TH1::SetBinContent(), TH1::SetBinError(), sqrt(), TString::ToLower(), and TObject::Warning().
virtual TH1D* TH2::DoProjection | ( | bool | onX, | |
const char * | name, | |||
Int_t | firstbin, | |||
Int_t | lastbin, | |||
Option_t * | option | |||
) | const [protected, virtual] |
virtual TProfile* TH2::DoProfile | ( | bool | onX, | |
const char * | name, | |||
Int_t | firstbin, | |||
Int_t | lastbin, | |||
Option_t * | option | |||
) | const [protected, virtual] |
virtual void TH2::DoFitSlices | ( | bool | onX, | |
TF1 * | f1, | |||
Int_t | firstbin, | |||
Int_t | lastbin, | |||
Int_t | cut, | |||
Option_t * | option, | |||
TObjArray * | arr | |||
) | [protected, virtual] |
virtual void TH2::FillN | ( | Int_t | ntimes, | |
const Double_t * | x, | |||
const Double_t * | y, | |||
const Double_t * | w, | |||
Int_t | stride = 1 | |||
) | [virtual] |
Reimplemented from TH1.
virtual void TH2::FillRandom | ( | const char * | fname, | |
Int_t | ntimes = 5000 | |||
) | [virtual] |
Reimplemented from TH1.
Reimplemented from TH1.
Reimplemented from TH1.
virtual void TH2::FitSlicesX | ( | TF1 * | f1 = 0 , |
|
Int_t | firstybin = 0 , |
|||
Int_t | lastybin = -1 , |
|||
Int_t | cut = 0 , |
|||
Option_t * | option = "QNR" , |
|||
TObjArray * | arr = 0 | |||
) | [virtual] |
virtual void TH2::FitSlicesY | ( | TF1 * | f1 = 0 , |
|
Int_t | firstxbin = 0 , |
|||
Int_t | lastxbin = -1 , |
|||
Int_t | cut = 0 , |
|||
Option_t * | option = "QNR" , |
|||
TObjArray * | arr = 0 | |||
) | [virtual] |
virtual Double_t TH2::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] |
virtual Double_t TH2::Integral | ( | Int_t | binx1, | |
Int_t | binx2, | |||
Int_t | biny1, | |||
Int_t | biny2, | |||
Option_t * | option = "" | |||
) | const [virtual] |
virtual Double_t TH2::IntegralAndError | ( | Int_t | binx1, | |
Int_t | binx2, | |||
Int_t | biny1, | |||
Int_t | biny2, | |||
Double_t & | err, | |||
Option_t * | option = "" | |||
) | const [virtual] |
Reimplemented from TH1.
Reimplemented from TH1.
virtual Long64_t TH2::Merge | ( | TCollection * | list | ) | [virtual] |
Reimplemented from TH1.
virtual TH2* TH2::Rebin2D | ( | Int_t | nxgroup = 2 , |
|
Int_t | nygroup = 2 , |
|||
const char * | newname = "" | |||
) | [virtual] |
TProfile* TH2::ProfileX | ( | const char * | name = "_pfx" , |
|
Int_t | firstybin = 1 , |
|||
Int_t | lastybin = -1 , |
|||
Option_t * | option = "" | |||
) | const |
TProfile* TH2::ProfileY | ( | const char * | name = "_pfy" , |
|
Int_t | firstxbin = 1 , |
|||
Int_t | lastxbin = -1 , |
|||
Option_t * | option = "" | |||
) | const |
TH1D* TH2::ProjectionX | ( | const char * | name = "_px" , |
|
Int_t | firstybin = 0 , |
|||
Int_t | lastybin = -1 , |
|||
Option_t * | option = "" | |||
) | const |
TH1D* TH2::ProjectionY | ( | const char * | name = "_py" , |
|
Int_t | firstxbin = 0 , |
|||
Int_t | lastxbin = -1 , |
|||
Option_t * | option = "" | |||
) | const |
virtual void TH2::SetShowProjectionX | ( | Int_t | nbins | ) | [virtual] |
virtual void TH2::SetShowProjectionY | ( | Int_t | nbins | ) | [virtual] |
Reimplemented from TH1.
virtual Int_t TH2::ShowPeaks | ( | Double_t | sigma = 2 , |
|
Option_t * | option = "" , |
|||
Double_t | threshold = 0.05 | |||
) | [virtual] |
Reimplemented from TH1.
Reimplemented from TH1.
Double_t TH2::fScalefactor [protected] |
Double_t TH2::fTsumwy [protected] |
Definition at line 40 of file TH2.h.
Referenced by TH2Poly::ClearBinContents(), Copy(), TProfile2D::Divide(), TProfile2D::Fill(), TH2Poly::Fill(), Fill(), FillN(), GetStats(), TProfile2D::GetStats(), TH2Poly::Initialize(), PutStats(), TProfile2D::PutStats(), Reset(), and TH2().
Double_t TH2::fTsumwy2 [protected] |
Definition at line 41 of file TH2.h.
Referenced by TH2Poly::ClearBinContents(), Copy(), TProfile2D::Divide(), TProfile2D::Fill(), TH2Poly::Fill(), Fill(), FillN(), GetStats(), TProfile2D::GetStats(), TH2Poly::Initialize(), PutStats(), TProfile2D::PutStats(), Reset(), and TH2().
Double_t TH2::fTsumwxy [protected] |
Definition at line 42 of file TH2.h.
Referenced by Copy(), TProfile2D::Divide(), TProfile2D::Fill(), Fill(), FillN(), GetStats(), TProfile2D::GetStats(), PutStats(), TProfile2D::PutStats(), Reset(), and TH2().