Coder Social home page Coder Social logo

bh_mdlimit's Introduction

BH_MDlimit

1) Generate the signal flatTuple

On Lxplus
Input: a eos path like /store/group/phys_exotica/BH_RunII/BlackMax_NTuple/
Change the $DIR in the shell script, prepare a directory called "SignalFlatTuple/ModelClass" Usage:

cmsenv  
mkdir SignalFlatTuple
cd SignalFlatTuple
mkdir ModelClass
cd ../
python GenSignalFlatTuple_v2.py

1.1) Generate other flatTuple

The flatTupleScripts/flatuplize.py script generate and execute the commands for flatTuplizing BH NTuples

mkdir QCD
cd QCD
cp ../flatTupleScripts/flatuplize.py .

Make different directories corresponding to different energy cuts if needed.

python flatuplize.py

2) Find the Optimal (Stmin,Nmin) points

####i) Ingredients:

####ii) Prepare the input list with:

ls SignalFlatTuple/ModelClass/*.root > MasspointList.txt

The * is important. This will generate a txt file with format path/root

####iii)** Modify the Input constants section in ZbiCalculator.py before running**
eospath is neccessary only if the Ntuple file is in eos. Only the path listed in the code are necessary. The FlatTuples of BH_fullsim and Charybdis already contains Ngen info.

####iv) Running the code ZbiCalculator_v5 = optimizing with observed MI limit.
ZbiCalculator_v4 = optimizing with Zbi.

cmsenv  
eosmount eos
python ZbiCalculator_v5.py MasspointList.txt StOpt_Model.txt

StOpt_Model.txt and StOpt_Model.root will be the output files. StOpt_Model.txt will contain the optimal points for each sample and the limits data for plotting.
StOpt_Model.root will contain validation plots for searching optimal points.

##3) Making the plots ####i) Sort the output

python sort.py StOpt_Model.txt

This is important for interpolating the correct minMBH.

####ii) Make the root file with plots

mkdir ./plots
python MakeMDroot.py StOpt_Model.txt -b

Output: ./plots/StOpt_Model_plots.root

####iii) Make the final limit plot There is one seperate plotting script for each final plot.

python drawSB.py -b

####iv) Make sanity check plots

cd plots
python makepdf.py StOpt_Model_plots.root -b

bh_mdlimit's People

Contributors

cbravo135 avatar

Watchers

 avatar  avatar  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.