SparseDataComparer.cxx File Reference

#include "TH2.h"
#include "TF2.h"
#include "TCanvas.h"
#include "TApplication.h"
#include "TMath.h"
#include "Fit/SparseData.h"
#include "HFitInterface.h"
#include "Fit/Fitter.h"
#include "Math/WrappedMultiTF1.h"
#include <iostream>
#include <iterator>
#include <algorithm>
#include <functional>

Go to the source code of this file.

Functions

ostream & operator<< (ostream &out, ROOT::Fit::BinData &bd)
int findBin (ROOT::Fit::BinData &bd, const double *x)
bool operator== (ROOT::Fit::BinData &bd1, ROOT::Fit::BinData &bd2)
void OneDimension ()
double gaus2D (double *x, double *p)
void TwoDimensions ()
int main (int argc, char **argv)

Variables

const bool __DRAW__ = 1
double minRange [3] = { -5., -5., -5.}
double maxRange [3] = { 5., 5., 5.}
int nbins [3] = {10 , 10 , 100 }


Function Documentation

int findBin ( ROOT::Fit::BinData bd,
const double x 
)

Definition at line 44 of file SparseDataComparer.cxx.

References E, ROOT::Math::fabs(), ROOT::Fit::BinData::GetPoint(), i, j, ROOT::Fit::BinData::NDim(), ROOT::Fit::BinData::NPoints(), and x1.

Referenced by operator==().

double gaus2D ( double x,
double p 
)

Definition at line 139 of file SparseDataComparer.cxx.

References TMath::Gaus().

Referenced by fit2DHist(), fitFunction(), fitSparse2D(), and TwoDimensions().

int main ( int  argc,
char **  argv 
)

Definition at line 177 of file SparseDataComparer.cxx.

References __DRAW__, OneDimension(), TApplication::Run(), and TwoDimensions().

void OneDimension (  ) 

Definition at line 114 of file SparseDataComparer.cxx.

References ROOT::Fit::FillData(), ROOT::Fit::SparseData::GetBinData(), h, max, maxRange, min, minRange, and nbins.

Referenced by main().

ostream& operator<< ( ostream &  out,
ROOT::Fit::BinData bd 
)

Definition at line 25 of file SparseDataComparer.cxx.

References error, ROOT::Fit::BinData::GetPoint(), i, j, ROOT::Fit::BinData::NDim(), ROOT::Fit::BinData::NPoints(), value, and x.

bool operator== ( ROOT::Fit::BinData bd1,
ROOT::Fit::BinData bd2 
)

Definition at line 65 of file SparseDataComparer.cxx.

References copy(), E, equals(), ROOT::Math::fabs(), findBin(), ROOT::Fit::BinData::GetPoint(), i, j, ROOT::Fit::BinData::NDim(), ROOT::Fit::BinData::NPoints(), x1, and x2.

void TwoDimensions (  ) 

Definition at line 145 of file SparseDataComparer.cxx.

References f2, ROOT::Fit::FillData(), gaus2D(), ROOT::Fit::SparseData::GetBinData(), h, max, maxRange, min, minRange, nbins, and TFormula::SetParameters().

Referenced by main().


Variable Documentation

const bool __DRAW__ = 1

Definition at line 19 of file SparseDataComparer.cxx.

Referenced by main(), test1DObjects(), and test2DObjects().

double maxRange[3] = { 5., 5., 5.}

Definition at line 22 of file SparseDataComparer.cxx.

Referenced by THnSparse::CreateSparse(), FillHistograms(), FillProfiles(), FillVariableRange(), OneDimension(), test2DRebin(), test2DRebinProfile(), testAdd1(), testAdd2(), testAdd2D1(), testAdd2D2(), testAdd2D3(), testAdd2DProfile1(), testAdd2DProfile2(), testAdd3(), testAdd3D1(), testAdd3D2(), testAdd3D3(), testAdd3DProfile1(), testAdd3DProfile2(), testAddProfile1(), testAddProfile2(), testAddSparse(), testArrayRebin(), testArrayRebinProfile(), testAssign1D(), testAssign2D(), testAssign3D(), testAssignProfile1D(), testAssignProfile2D(), testAssignProfile3D(), testAssignProfileVar1D(), testAssignVar1D(), testBinDataData1D(), testBinDataData1DInt(), testBinDataData2D(), testBinDataData2DInt(), testBinDataData3D(), testBinDataData3DInt(), testClone1D(), testClone2D(), testClone3D(), testCloneProfile1D(), testCloneProfile2D(), testCloneProfile3D(), testCloneProfileVar1D(), testCloneSparse(), testCloneVar1D(), testCopyConstructor1D(), testCopyConstructor2D(), testCopyConstructor3D(), testCopyConstructorProfile1D(), testCopyConstructorProfile2D(), testCopyConstructorProfile3D(), testCopyConstructorProfileVar1D(), testCopyConstructorVar1D(), testDivide1(), testDivide2(), testDivide2D1(), testDivide2D2(), testDivide3D1(), testDivide3D2(), testDivideProf1(), testDivideVar1(), testDivideVar2(), testDivSparse1(), testDivSparse2(), testIntegerRebin(), testIntegerRebinNoName(), testIntegerRebinNoNameProfile(), testIntegerRebinProfile(), testInterpolation1D(), testInterpolation2D(), testInterpolation3D(), testLabel(), testLabelsInflateProf1D(), testMerge1D(), testMerge1DLabelAll(), testMerge1DLabelAllDiff(), testMerge1DLabelDiff(), testMerge1DLabelSame(), testMerge2D(), testMerge2DLabelAll(), testMerge2DLabelAllDiff(), testMerge2DLabelDiff(), testMerge2DLabelSame(), testMerge3D(), testMerge3DLabelAll(), testMerge3DLabelAllDiff(), testMerge3DLabelDiff(), testMerge3DLabelSame(), testMergeProf1D(), testMergeProf1DDiff(), testMergeProf1DLabelAll(), testMergeProf1DLabelAllDiff(), testMergeProf1DLabelDiff(), testMergeProf1DLabelSame(), testMergeProf2D(), testMergeProf2DDiff(), testMergeProf2DLabelAll(), testMergeProf2DLabelAllDiff(), testMergeProf2DLabelDiff(), testMergeProf2DLabelSame(), testMergeProf3D(), testMergeProf3DDiff(), testMergeProf3DLabelAll(), testMergeProf3DLabelAllDiff(), testMergeProf3DLabelDiff(), testMergeProf3DLabelSame(), testMergeSparse(), testMul1(), testMul2(), testMul2D1(), testMul2D2(), testMul3D1(), testMul3D2(), testMulF1D(), testMulF1D2(), testMulF2D(), testMulF2D2(), testMulF3D(), testMulF3D2(), testMulFND(), testMulFND2(), testMulSparse(), testMulVar1(), testMulVar2(), testRefRead1D(), testRefRead2D(), testRefRead3D(), testRefReadProf1D(), testRefReadProf2D(), testRefReadProf3D(), testRefReadSparse(), testScale1DProf(), testScale2DProf(), testScale3DProf(), testSparseData1DFull(), testSparseData1DSparse(), testSparseData2DFull(), testSparseData2DSparse(), testSparseData3DFull(), testSparseData3DSparse(), testSparseRebin1(), testWriteRead1D(), testWriteRead2D(), testWriteRead3D(), testWriteReadProfile1D(), testWriteReadProfile2D(), testWriteReadProfile3D(), testWriteReadProfileVar1D(), testWriteReadSparse(), testWriteReadVar1D(), and TwoDimensions().

double minRange[3] = { -5., -5., -5.}

Definition at line 21 of file SparseDataComparer.cxx.

Referenced by THnSparse::CreateSparse(), FillHistograms(), FillProfiles(), FillVariableRange(), OneDimension(), test2DRebin(), test2DRebinProfile(), testAdd1(), testAdd2(), testAdd2D1(), testAdd2D2(), testAdd2D3(), testAdd2DProfile1(), testAdd2DProfile2(), testAdd3(), testAdd3D1(), testAdd3D2(), testAdd3D3(), testAdd3DProfile1(), testAdd3DProfile2(), testAddProfile1(), testAddProfile2(), testAddSparse(), testArrayRebin(), testArrayRebinProfile(), testAssign1D(), testAssign2D(), testAssign3D(), testAssignProfile1D(), testAssignProfile2D(), testAssignProfile3D(), testAssignProfileVar1D(), testAssignVar1D(), testBinDataData1D(), testBinDataData1DInt(), testBinDataData2D(), testBinDataData2DInt(), testBinDataData3D(), testBinDataData3DInt(), testClone1D(), testClone2D(), testClone3D(), testCloneProfile1D(), testCloneProfile2D(), testCloneProfile3D(), testCloneProfileVar1D(), testCloneSparse(), testCloneVar1D(), testCopyConstructor1D(), testCopyConstructor2D(), testCopyConstructor3D(), testCopyConstructorProfile1D(), testCopyConstructorProfile2D(), testCopyConstructorProfile3D(), testCopyConstructorProfileVar1D(), testCopyConstructorVar1D(), testDivide1(), testDivide2(), testDivide2D1(), testDivide2D2(), testDivide3D1(), testDivide3D2(), testDivideProf1(), testDivideVar1(), testDivideVar2(), testDivSparse1(), testDivSparse2(), testIntegerRebin(), testIntegerRebinNoName(), testIntegerRebinNoNameProfile(), testIntegerRebinProfile(), testInterpolation1D(), testInterpolation2D(), testInterpolation3D(), testLabel(), testLabelsInflateProf1D(), testMerge1D(), testMerge1DLabelAll(), testMerge1DLabelAllDiff(), testMerge1DLabelDiff(), testMerge1DLabelSame(), testMerge2D(), testMerge2DLabelAll(), testMerge2DLabelAllDiff(), testMerge2DLabelDiff(), testMerge2DLabelSame(), testMerge3D(), testMerge3DLabelAll(), testMerge3DLabelAllDiff(), testMerge3DLabelDiff(), testMerge3DLabelSame(), testMergeProf1D(), testMergeProf1DDiff(), testMergeProf1DLabelAll(), testMergeProf1DLabelAllDiff(), testMergeProf1DLabelDiff(), testMergeProf1DLabelSame(), testMergeProf2D(), testMergeProf2DDiff(), testMergeProf2DLabelAll(), testMergeProf2DLabelAllDiff(), testMergeProf2DLabelDiff(), testMergeProf2DLabelSame(), testMergeProf3D(), testMergeProf3DDiff(), testMergeProf3DLabelAll(), testMergeProf3DLabelAllDiff(), testMergeProf3DLabelDiff(), testMergeProf3DLabelSame(), testMergeSparse(), testMul1(), testMul2(), testMul2D1(), testMul2D2(), testMul3D1(), testMul3D2(), testMulF1D(), testMulF1D2(), testMulF2D(), testMulF2D2(), testMulF3D(), testMulF3D2(), testMulFND(), testMulFND2(), testMulSparse(), testMulVar1(), testMulVar2(), testRefRead1D(), testRefRead2D(), testRefRead3D(), testRefReadProf1D(), testRefReadProf2D(), testRefReadProf3D(), testRefReadSparse(), testScale1DProf(), testScale2DProf(), testScale3DProf(), testSparseData1DFull(), testSparseData1DSparse(), testSparseData2DFull(), testSparseData2DSparse(), testSparseData3DFull(), testSparseData3DSparse(), testSparseRebin1(), testWriteRead1D(), testWriteRead2D(), testWriteRead3D(), testWriteReadProfile1D(), testWriteReadProfile2D(), testWriteReadProfile3D(), testWriteReadProfileVar1D(), testWriteReadSparse(), testWriteReadVar1D(), and TwoDimensions().

int nbins[3] = {10 , 10 , 100 }

Definition at line 23 of file SparseDataComparer.cxx.

Referenced by RooIntegralMorph::MorphCacheElem::calculate(), RooNumRunningInt::RICacheElem::calculate(), TEfficiency::CheckEntries(), TMVA::PDF::CheckHist(), THnSparse::CloneEmpty(), TH1::ComputeIntegral(), ROOT::TBranchProxyDirector::CreateHistogram(), RooAbsRealLValue::createHistogram(), THnSparse::CreateSparse(), TPainter3dAlgorithms::DefineGridLevels(), TGraphAsymmErrors::Divide(), TH2::DoFitSlices(), TPad::DrawFrame(), fcn(), fcnk0(), TH1::FillN(), TH1::FillRandom(), TH2::FillRandom(), TH3::FillRandom(), TH1::FindFirstBinAbove(), TH1::FindLastBinAbove(), findPeaks(), RooIntegralMorph::MorphCacheElem::findRange(), fit2DHist(), fit3DHist(), RooAbsRealLValue::frame(), TUnfold::GetBias(), TMVA::VariableGaussTransform::GetCumulativeDist(), TUnfold::GetEmatrix(), TUnfold::GetLsquared(), TUnfold::GetOutput(), TH1::GetQuantiles(), TH2::GetRandom2(), TH3::GetRandom3(), TUnfold::GetRhoI(), TUnfold::GetRhoIJ(), TMVA::OptimizeConfigParameters::GetROCIntegral(), TMVA::OptimizeConfigParameters::GetSigEffAt(), TSPlot::GetSWeightsHist(), TSPlot::GetSWeightsHists(), TSPlot::GetXvarHist(), TSPlot::GetXvarHists(), TSPlot::GetYpdfHist(), TSPlot::GetYpdfHists(), TSPlot::GetYvarHist(), TSPlot::GetYvarHists(), RooBinningCategory::initialize(), kdTreeBinning(), TProfileHelper::LabelsDeflate(), TH1::LabelsDeflate(), TProfileHelper::LabelsInflate(), TH1::LabelsInflate(), RooMCStudy::makeFrameAndPlotCmd(), memstat(), TMinuit::mnscan(), multicolor(), OneDimension(), TMVA::operator>>(), TSpectrum2Painter::Paint(), TGaxis::PaintAxis(), TGraphPainter::PaintGrapHist(), THistPainter::PaintHist(), TGraph2DPainter::PaintTriangles(), TEveDigitSetEditor::PlotHisto(), TMVA::TransformationHandler::PlotVariables(), THnSparse::PrintEntries(), TProofProgressDialog::Progress(), TMVA::ResultsRegression::QuadraticDeviation(), TMVA::VariableGaussTransform::ReadTransformationFromStream(), TMVA::PDF::ReadXML(), TProfile::Rebin(), TH1::Rebin(), TEfficiency::SavePrimitive(), TUnuran::SetEmpiricalDistribution(), MethodInfo::SetResultHists(), TMemStatShow::Show(), THistPainter::ShowProjection3(), THistPainter::ShowProjectionX(), THistPainter::ShowProjectionY(), TH1::Smooth(), testConversion1D(), testConversion2D(), testConversion3D(), testMultinomial(), th2polyEurope(), THStack::THStack(), TMVA::MethodLikelihood::Train(), TMVA::MethodCuts::Train(), TSVDUnfoldExample(), TUnuranEmpDist::TUnuranEmpDist(), TwoDimensions(), TTreePlayer::UnbinnedFit(), and TMVA::PDF::ValidatePDF().


Generated on Tue Jul 5 16:07:10 2011 for ROOT_528-00b_version by  doxygen 1.5.1