Giter Site home page Giter Site logo

muonmvatraining's Introduction

MuonMVATraining

The tools to train MVA Muons identifications for CMS.

Requirements

This toolkit requires the xgbo package to be installed:

How to train a Muon MVA ID

Overview

The procedure splits up in a few fundamental steps:

  1. Make training ntuple with CMSSW
  2. Train the MVA with XGBoost
  3. Determine working points
  4. Generate configuration files to integrate MVA in CMSSW
  5. Make validation ntuple with CMSSW
  6. Draw performance plots

Only step 1 and 4 require interaction with CMSSW, the other steps can be done offline.

Step 0 - Clone this repository and tweak the configuration

Adapt the configuration in e.g. config_2016.py to your needs.

Step 1 - Making NTuples for Training

Start by setting up the CMSSW area:

  • cmsrel CMSSW_10_3_1
  • cd CMSSW_10_3_1/src
  • cmsenv

Checkout the needed packages:

  • git clone https://github.com/mkovac/MuonMVANtuplizer.git
  • git clone https://github.com/mkovac/MuonMVAReader.git
  • git clone https://github.com/mkovac/PileUpWeight.git

Make sure to have crab in your environment and launch the job to NTuplize the sample in e.g. config_2016.py:

  • python submit_ntuplizer_2016.py --train

When the job is done, you should merge the crab output files to one root file.

  • python merge_ntuple_2016.py --train

Step 2 - Train the MVA with XGBoost

Launch the training with:

  • python training_2016.py

muonmvatraining's People

Contributors

mkovac avatar

Watchers

 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.