Skip to content

ROOT-inspired model building toolkit extension for RooFit, with some applications built in

Notifications You must be signed in to change notification settings

PrimeZhang/TRooFit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

TRooFit is a collection of pdf classes for RooFit, that are designed to behave like objects from ROOT. For example, TRooFit introduces:

- TRooH1D : A pdf (inherits from RooAbsPdf) that you can fill and draw like a TH1D. The value of this object is a DENSITY.
- TRooHF1D : A function (inherits from RooAbsReal). The value of this object is a VALUE.
- TRooHStack : A sum of TRooH1D (or any other RooAbsReal) ... think of it as a stack of histograms
- TRooHPdfStack : Like a TRooHStack but only accepts (extended) pdfs, and ensures each is normalized individually in the summation, i.e. pdfValue = Sum(i) coef_i*pdfValue_i, where coef_i is the fraction of total expected events of that pdf. The coef_i are automatically recomputed 

Setup (CMake)

Setup any release that has ROOT, e.g. AthAnalysis, and then use acm to clone this package and compile it (this will compile the master version of TRooFit)

mkdir build source
cd build
acmSetup AthAnalysis,21.2,latest
acm clone_project TRooFit will/TRooFit
acm compile

To checkout the master, just omit the last argument in the clone_project command.

Documentation

Example notebooks are available to help you get started ....

1a. Building a simple s+b model 1b. Model building with TRooWorkspaces

2a. Model inspection general demo
2b. Obtaining yields and uncertainties
2c. Parameter estimation and systematic breakdown

Binder

Binder

About

ROOT-inspired model building toolkit extension for RooFit, with some applications built in

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.0%
  • C 6.4%
  • Other 0.6%