Code Monkey home page Code Monkey logo

inclusivekinematicfit's Introduction

Inclusive Kinematic Fit for B→Xℓν Decays at Belle II

Inclusive Kinematic Fit provides code to kinematically fit the four momenta of the tag-side B meson, the signal lepton and the inclusive X system in inclusive semi-leptonic B decays ast e+e- B factories like Belle II.

Installation

To install the dependencies of the package simply run

# setup your basf2 environment release in which you want to install this package
pip3 install --upgrade pip
pip3 install --upgrade --editable .

An additional --user argument is required if you don't have writing rights to your basf2 externals, e.g. if you use a basf2 release from cvmfs, so pip will then install the package into your ~/.local directory.

Development

If you just want to import functions from it, you don't need anything else, but if you want to work on the code, and submit PR's, you should run:

pip3 install -r requirements-dev.txt
pre-commit install

The pip command will install some code linters and formatters that check if the style of your code conforms to the project rule, e.g.pylint and pre-commit. The second line install the git hooks to check your code before creating a commit.

To check your code without trying to commit you can just run pre-commit run --all or just run black <filename.py>.

pytest is used to create and run unit tests. Please ensure new code has a corresponding test suite that runs succesfully. You can run the tests via

pytest

in the package root directory.

Contributors

inclusivekinematicfit's People

Contributors

welschma avatar

Watchers

 avatar  avatar

Forkers

marcelhoh

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.