#include <RooAbsPdf.h>
#include <RooRealVar.h>
#include <RooArgSet.h>
#include <RooGaussian.h>
#include "RooDataSet.h"
#include "RooGlobalFunc.h"
#include "RooFitResult.h"
#include "RooProdPdf.h"
#include <TF1.h>
#include <TTree.h>
#include <TRandom3.h>
#include "TStopwatch.h"
#include "Math/DistFunc.h"
#include "Fit/UnBinData.h"
#include "Fit/BinData.h"
#include "Fit/Fitter.h"
#include "WrapperRooPdf.h"
#include <string>
#include <iostream>
#include <vector>
#include <memory>
#include "MinimizerTypes.h"
#include "Math/WrappedParamFunction.h"
#include <cmath>
Go to the source code of this file.
Classes | |
class | MultiGaussRooPdf |
Typedefs | |
typedef ROOT::Math::IParamMultiFunction | Func |
Functions | |
void | fillTree (TTree &t2) |
void | FillUnBinData (ROOT::Fit::UnBinData &d, TTree *tree) |
int | FitUsingRooFit (TTree &tree, RooAbsPdf &pdf, RooArgSet &xvars) |
template<class MinType> | |
int | DoFit (TTree *tree, Func &func, bool debug=false, bool=false) |
template<class MinType, class FitObj> | |
int | FitUsingNewFitter (FitObj *fitobj, Func &func, bool useGrad=false) |
double | gausnorm (const double *x, const double *p) |
int | main () |
Variables | |
const int | N = 1 |
const int | nfit = 1 |
const int | nEvents = 10000 |
double | iniPar [2 *N] |
typedef ROOT::Math::IParamMultiFunction Func |
Definition at line 46 of file testRooFit.cxx.
Definition at line 242 of file testRooFit.cxx.
References ROOT::Fit::Fitter::Config(), d, debug, FillUnBinData(), ROOT::Fit::Fitter::Fit(), func(), name, ROOT::Fit::Fitter::Result(), and ROOT::Fit::Fitter::SetFunction().
void fillTree | ( | TTree & | t2 | ) |
Definition at line 48 of file testRooFit.cxx.
References TTree::Branch(), double, TTree::Fill(), i, j, N, nEvents, s, ROOT::Math::Util::ToString(), and x.
Referenced by main().
void FillUnBinData | ( | ROOT::Fit::UnBinData & | d, | |
TTree * | tree | |||
) |
Definition at line 73 of file testRooFit.cxx.
References d, TTree::GetBranch(), TTree::GetEntries(), TTree::GetEntry(), i, j, m, N, n, TBranch::SetAddress(), and ROOT::Math::Util::ToString().
int FitUsingNewFitter | ( | FitObj * | fitobj, | |
Func & | func, | |||
bool | useGrad = false | |||
) |
Definition at line 184 of file testRooFit.cxx.
References data, RooAbsPdf::fitTo(), TNamed::GetName(), RooAbsArg::getParameters(), RooAbsArg::getVariables(), RooFit::Hesse(), i, level, RooFit::Minos(), N, nfit, params, Print(), RooFit::PrintLevel(), result(), RooFit::Save(), and w.
int main | ( | void | ) |
Definition at line 314 of file testRooFit.cxx.
References fillTree(), FitUsingRooFit(), gausnorm(), MultiGaussRooPdf::getPdf(), MultiGaussRooPdf::getVars(), i, iniPar, N, WrapperRooPdf::NDim(), WrapperRooPdf::NPar(), WrapperRooPdf::ParameterName(), WrapperRooPdf::Parameters(), and WrapperRooPdf::SetParameters().
Definition at line 43 of file testRooFit.cxx.
const int N = 1 |
Definition at line 40 of file testRooFit.cxx.
const int nEvents = 10000 |
Definition at line 42 of file testRooFit.cxx.
Referenced by TMVA::MethodBase::AddClassifierOutput(), TMVA::MethodBase::AddClassifierOutputProb(), AddData(), TMVA::MethodBase::AddMulticlassOutput(), TMVA::MethodBase::AddRegressionOutput(), TMVA::MethodMLP::CalculateEstimator(), TMVA::MethodMLP::ComputeDEDw(), TMultiLayerPerceptron::ComputeDEDw(), create_3Bumps(), create_schachbrett(), create_schachbrett_2D(), create_schachbrett_3D(), create_schachbrett_4D(), create_schachbrett_5D(), TMLPAnalyzer::DrawNetwork(), TMultiLayerPerceptron::DrawResult(), FillHistograms(), FillProfiles(), fillSparse(), fillTree(), TMLPAnalyzer::GatherInformations(), RooAbsPdf::generate(), RooAbsPdf::generateBinned(), TMVA::MethodMLP::GetApproxInvHessian(), TMVA::MethodMLP::GetError(), TMultiLayerPerceptron::GetError(), mathcoreVectorCollection(), mathcoreVectorIO(), TMultiLayerPerceptron::MLP_Stochastic(), RooAbsPdf::prepareMultiGen(), runIt(), test2DRebin(), test2DRebinProfile(), 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(), testIO(), testLabel(), testMerge1DDiff(), testMerge1DLabelAll(), testMerge1DLabelAllDiff(), testMerge1DLabelDiff(), testMerge1DLabelSame(), testMerge2D(), testMerge2DDiff(), testMerge2DLabelAll(), testMerge2DLabelAllDiff(), testMerge2DLabelDiff(), testMerge2DLabelSame(), testMerge3D(), testMerge3DDiff(), testMerge3DLabelAll(), testMerge3DLabelAllDiff(), testMerge3DLabelDiff(), testMerge3DLabelSame(), 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(), testSparseData2DFull(), testSparseData3DFull(), testSparseRebin1(), testVectorIO(), testWriteRead1D(), testWriteRead2D(), testWriteRead3D(), testWriteReadProfile1D(), testWriteReadProfile2D(), testWriteReadProfile3D(), testWriteReadProfileVar1D(), testWriteReadSparse(), testWriteReadVar1D(), TMVA::MethodMLP::Train(), TMVA::MethodBase::TrainMethod(), TMVA::MethodMLP::TrainOneEpoch(), GoFTStress::UnitTest3(), GoFTStress::UnitTest4(), GoFTStress::UnitTest5(), GoFTStress::UnitTest6(), and GoFTStress::UnitTest7().
const int nfit = 1 |
Definition at line 41 of file testRooFit.cxx.