Skip to content
Snippets Groups Projects
Forked from Carsten Burgard / RooFitUtils
This fork has diverged from the upstream repository.
Xiaohu Sun's avatar
Xiaohu Sun authored
f096d834
History

NOTE

this is forked from https://gitlab.cern.ch/cburgard/RooFitUtils

NEW README

See original README from the bottom To compile for the first time with standalone setup independent of ASG

source /afs/cern.ch/atlas/project/HSG7/root/root_v6-04-16/setup.sh
cd RooFitUtils
make --makefile=cmt/Makefile.standalone

This gives HSG7 ROOT, consistent g++ and compiled shared lib Everytime only do

source /afs/cern.ch/atlas/project/HSG7/root/root_v6-04-16/setup.sh

RooFitUtils

This package is a collection of tools for advanced workspace manipulation and fitting using RooFit. Among others, it includes

  • ExtendedMinimizer and ExtendedModel, advanced fitting tools originally designed by Stefan Gadatsch
  • editws, workspace manipulation functions designed by Tim Adye.
  • guessCorrelations, a helper script able to intelligently identify nuisance parameters when combining workspaces.

Setup

This package supports setup within RootCore and CMake based ASG releases as well as standalone compilation with ROOT.

In order to compile with CMake, type

mkdir build
cd build
cmake ..
make -j4
cd ..
source setup.sh

Now, you are ready to use the package. Don't forget to

source setup.sh

every time you create a new shell.

Usage

A fitting font-end are provided in the form of a python script

scripts/fit.py

which provides extensive help with the --help command line option. The results of likelihood scans obtained with this script can be plotted using

scripts/plotscan.py