Coder Social home page Coder Social logo

sbein / rgs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hbprosper/rgs

0.0 1.0 1.0 8.55 MB

Home of the Random Grid Search algorithm. A very simple, but surprisingly effective, way to find rectangular cuts. Developed by yours truly, Chip Stewart, Pushpa Bhat and generalized by Sezen Sekmen.

Makefile 1.78% C++ 42.43% Python 55.49% Shell 0.30%

rgs's Introduction

RGS

Introduction

The Random Grid Search (RGS) algorithm is a simple, but surprisingly effective, way to find rectangular cuts. Developed by Harrison Prosper, Chip Stewart, Pushpa Bhat and generalized by Sezen Sekmen to include two-sided and staircase cuts. A two-sided cut is a cut of the for (x1 < x < x2), while a staircase cut is the OR of two or more one-sided cuts.

Installation

This package depends on the package Root from CERN. To install Root follow the instructions at the Root website. Then do

git clone https://github.com/hbprosper/RGS.git
cd RGS
make
source setup.sh

The setup need be done only once per terminal session. (Note: the bash setup can be "sourced" from any directory, but currently the non-bash setup must be sourced from the RGS directory.)

Examples

There are two examples in the examples directory of RGS. These examples require Root data files, which can get obtained using the commands

cd examples/data
wget http://www.hep.fsu.edu/~harry/RGS/data/Higgs.tar.gz 
tar zxvf Higgs.tar.gz

or downloaded from the website via a web browser. Use a similar procedure for the SUSY data files Susy.tar.gz.

Higgs

This example illustrates three RGS optimizations, HO1, HO2, and HO3, designed to enhance the ratio of Higgs vector boson fusion (VBF) events to Higgs gluon gluon fusion (ggF) events and di-Z boson events. Each optimization can be run by executing the train.py program followed by analysis.py program. For example, HO1 can be run as follows

cd examples/Higgs/HO1
./train.py

which will run RGS and store its results in a file called HO1.root. To analyze the results of RGS do

./analysis.py

which will read the results from HO1.root and write the results to r_HO1.txt and also produce a couple of plots.

SUSY

This example illustrates three optimizations, SO1, SO2, and SO3 that use staircase cuts to improve the search for SUSY events. Switch to the SUSY directory and proceed as in the Higgs example.

rgs's People

Contributors

hbprosper avatar sbein avatar

Watchers

 avatar

Forkers

fnallpc

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.