ROOT  6.06/09
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:

Go to the source code of this file.

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)
 
int main ()
 

Variables

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

Typedef Documentation

Definition at line 47 of file testRooFit.cxx.

Function Documentation

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

Definition at line 253 of file testRooFit.cxx.

void fillTree ( TTree t2)

Definition at line 49 of file testRooFit.cxx.

Referenced by main().

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

Definition at line 78 of file testRooFit.cxx.

Referenced by DoFit().

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

Definition at line 287 of file testRooFit.cxx.

int FitUsingRooFit ( TTree tree,
RooAbsPdf pdf,
RooArgSet xvars 
)

Definition at line 194 of file testRooFit.cxx.

Referenced by main().

int main ( )

Definition at line 340 of file testRooFit.cxx.

Variable Documentation

double iniPar[2 *N]

Definition at line 43 of file testRooFit.cxx.

Referenced by FitUsingNewFitter(), and main().

const int N = 3

Definition at line 40 of file testRooFit.cxx.

Referenced by fillTree(), FillUnBinData(), and main().

const int nEvents = 10000
const int nfit = 1

Definition at line 41 of file testRooFit.cxx.

Referenced by FitUsingNewFitter(), and FitUsingRooFit().