Logo ROOT   6.08/07
Reference Guide
Typedefs | Functions | Variables
testRooFit.cxx File Reference
#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>
Include dependency graph for testRooFit.cxx:


typedef ROOT::Math::IParamMultiFunction Func


template<class MinType >
int DoFit (TTree *tree, Func &func, bool debug=false, bool=false)
void fillTree (TTree &t2)
void FillUnBinData (ROOT::Fit::UnBinData &d, TTree *tree)
template<class MinType , class FitObj >
int FitUsingNewFitter (FitObj *fitobj, Func &func, bool useGrad=false)
int FitUsingRooFit (TTree &tree, RooAbsPdf &pdf, RooArgSet &xvars)
int main ()


double iniPar [2 *N]
const int N = 3
const int nEvents = 10000
const int nfit = 1

Typedef Documentation

◆ Func

Definition at line 47 of file testRooFit.cxx.

Function Documentation

◆ DoFit()

template<class MinType >
int DoFit ( TTree tree,
Func func,
bool  debug = false,
bool  = false 

Definition at line 253 of file testRooFit.cxx.

◆ fillTree()

void fillTree ( TTree t2)

Definition at line 49 of file testRooFit.cxx.

◆ FillUnBinData()

void FillUnBinData ( ROOT::Fit::UnBinData d,
TTree tree 

Definition at line 78 of file testRooFit.cxx.

◆ FitUsingNewFitter()

template<class MinType , class FitObj >
int FitUsingNewFitter ( FitObj *  fitobj,
Func func,
bool  useGrad = false 

Definition at line 287 of file testRooFit.cxx.

◆ FitUsingRooFit()

int FitUsingRooFit ( TTree tree,
RooAbsPdf pdf,
RooArgSet xvars 

Definition at line 194 of file testRooFit.cxx.

◆ main()

int main ( )

Definition at line 340 of file testRooFit.cxx.

Variable Documentation

◆ iniPar

double iniPar[2 *N]

Definition at line 43 of file testRooFit.cxx.

◆ N

const int N = 3

Definition at line 40 of file testRooFit.cxx.

◆ nEvents

const int nEvents = 10000

Definition at line 42 of file testRooFit.cxx.

◆ nfit

const int nfit = 1

Definition at line 41 of file testRooFit.cxx.