Git Product home page Git Product logo

stattools's Introduction

StatTools

StatTools interface for making plots and datacards

instuctions for download

cmsrel CMSSW_7_4_7
cd CMSSW_7_4_7/src/
cmsenv
git cms-init
git clone https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit
git clone https://github.com/cms-analysis/CombineHarvester.git CombineHarvester #combine harvester integration is underway 
mkdir UWAnalysis
git clone [email protected]:lmdodd/StatTools.git UWAnalysis/StatTools 

Combine hard to set up. Always make a clean build, as scram doesn't always see updates to src/LinkDef.h. See https://twiki.cern.ch/twiki/bin/viewauth/CMS/SWGuideHiggsAnalysisCombinedLimit for more

cd $CMSSW_BASE/src/HiggsAnalysis/CombinedLimit
git fetch origin
git checkout v6.2.1
scramv1 b clean; scramv1 b 

To build the package

cd $CMSSW_BASE/src/UWAnalysis/StatTools/
export USER_CXXFLAGS="-Wno-error=unused-but-set-variable -Wno-error=sign-compare"
source setup.sh
scram b -j8

to make plots make a folder in data

cd UWAnalysis/StatTools/data
cd sm_higgs_ltau
./makeMuTauPlots
root -l -b -q makeTemplatePlotsMuTau.C #check the output directory here 

to run limit example: remember to change 'aux_shapes' in cpp file. works for XTT <-> HTT

(remember to change the aux shapes directory in HTT)
HTT 
cd output/htt_cards
combineTool.py -M T2W -i {cmb,et,mt}/* -o workspace.root --parallel 4
nohup combineTool.py -M Asymptotic -d */*/workspace.root --there -n .limit --parallel 4 &
combineTool.py -M CollectLimits */*/*.limit.* --use-dirs -o limits.json

plotLimits.py limits_{et,mt,cmb}.json:exp0 --auto-style --logy # will plot the expected limit comparisons of the channels

stattools's People

Contributors

lmdodd avatar

Stargazers

 avatar

Watchers

James Cloos 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.