GithubHelp home page GithubHelp logo

dq_fit_library's Introduction

DQ fit library

Python class

This python class is based on RooFit and allows to perform binned and unbinned fits. An example of fit can be found in /tutorial:

  • Generate a toy sample
    python tutorial.py configFit.json --gen_tutorial
  • Run the fit on the toy sample
    python tutorial.py configFit.json --fo_fit

For validation of the code use the reference:

c++ class

This class can be used to fit invariant mass distributions (signal + backgorund). To run it is necessary ROOT6. The class contains:

  • class files: DQFitter.cxx and DQFitter.h
  • function library: fit_library/
  • test macro: create_tutorial_dataset.C, tutorial.C

The test fit code performs a simple fit of a gaussian signal and a pol0 / expo background

In the root environment run with:

  • .x DQFitter.cxx+
  • .x tutorial.C

An AnalysisResults.root file will be produced containing:

  • the canvas fit the histogram and the fitting functions
  • the canvas with the ratio Data / Fit
  • the canvas with the residuals (data - background after fit)
  • the histogram with the X2 / NDF, the number of signal events and the parameters of interest (POI)

The class can use also the RooFit library. In this case the used has to create a class following the example of GausPdf.cxx. At this point the PDF can be added to the class and used for the fit.

QC macro

This macro can be used to produce control plots reading the O2 DQ tableMaker and tableReader.In addition it extracts basic J/psi basic features (mass position and width) using the DQ fit library

In the root environment run with:

  • .x DQFitter.cxx+
  • .x run_qc.C++

dq_fit_library's People

Contributors

lucamicheletti93 avatar lucamicheletti avatar victorvalenciatorres avatar

Watchers

Robin Caron avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.