Giter Site home page Giter Site logo

tnp_tamsa's Introduction

Quick start

source setup.sh
# python tnp_tamsa.py CONFIG_FILE CONFIG_KEY
python tnp_tamsa.py config/AFBMuon_v15.py 2018_MediumID_LooseTrkIso

Configuration

In the config file, you should define a dictionary called 'Configs' as below. See more examples in config directory.

from tnpConfig import tnpConfig
Configs["2018_muonID"]=tnpConfig(
  data="/path/to/data.root",
  sim="/path/to/sim.root",
  ...
)

tnpConfig parameters

The parameters for tnpConfig class are listed below. The parameters can be prefixed by 'data_' or 'sim_' to specify it is only for certain type of sample.

  • data: Path to data ROOT file(s)
  • sim: Path to simulation ROOT file(s)
  • tree: TTree name
  • mass: Branch name or expression for the mass variable to be used as x-axis of histograms
  • expr: Expression for the event selection
  • test: Expression for the pass condition
  • weight: Expression for the event weight
  • maxweight: maximum value of absolute weight.
  • hist_nbins: Number of mass bins
  • hist_range: Minimum and maximum mass as a tuple. ex) (60.0, 120.0)
  • bins: TnP binning
  • genmatching: Expression for the gen-matching
  • genmass: Expression for the generator level mass.
  • method: TnP method. 'fit' or 'count'.
  • fit_parameter (only for fit method): List of strings for RooWorkspace factory. You should define PDFs with name of 'sigPass', 'sigFail', 'bkgPass' and 'bkgFail'.
  • fit_range (only for fit method): Mass range for fitting
  • count_range: Mass range for the efficiency evaluation. It could be different from fit_range.
  • option: extra options separated by space; 'saveprefit', 'fix_below20'
  • systematic: Definition of systematic variations.

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.