GithubHelp home page GithubHelp logo

sehwook / boostedrazoranalysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jkarancs/boostedrazoranalysis

0.0 2.0 0.0 232 KB

Run II Search for Supersymmetry using Razor variables in the boosted regime

C++ 94.97% Makefile 3.14% Shell 1.56% C 0.20% Python 0.13%

boostedrazoranalysis's Introduction

BoostedRazorAnalysis

Run II Search for Supersymmetry using Razor variables in the boosted regime

Checkout recipe

setenv SCRAM_ARCH slc6_amd64_gcc493
cmsrel CMSSW_7_6_3_patch2
cd CMSSW_7_6_3_patch2/src
cmsenv
git clone https://github.com/jkarancs/BoostedRazorAnalysis
scram b -j 20

Run the Analyzer

When running for the first time, run the setup script in order
to mount eos on lxplus, create softlinks and create/update filelists

cd BoostedRazorAnalysis/Analyzer
source scripts/setup.csh

Before running check/set the options for the Analyzer in settings.h

More info about Analyzer:

  • The Analyzer program is basically an event looper, histograms/methods/cuts etc. are defined in [Name]_Analysis.h
  • All settings (printed also while running) are defined in settings.h it also includes the Analysis code you want
  • common methods (for all analyses/studies) are defined in common/AnalysisBase.h
  • The cross-sections and total weight is taken straight from ntuple files
  • Reweighting and systematics weight methods are also given in AnalysisBase
  • Additionally there's an option (in settings.h) to save a skimmed TTree with same content for the selected events
  • counts are saved for all common and specific analysis cuts in the order they are defined

Run your anaylsis code with

make
./Analyzer <output filename> <filelist.txt or root file(s) ... >
eg:
./Analyzer Bkg_TTJets_madgraph.root filelists/backgrounds/TTJets_madgraph.txt

There is a tcsh script to run the Analyzer and use the results to create plots all in once on part of the data (--test option)

source scripts/run_all.csh --test

Or run a full analysis on all samples (--run option) and similarly create plots in the end

source scripts/run_all.csh --run

Run systematics (first, set doSystematics = true in settings.h)
when running systematics, additionally must specify options:
systematicsFileName and numSyst (i.e. the line to read in syst file)

./Analyzer systematicsFileName=systematics/2015_12_18.txt numSyst=1   Bkg_TTJets_madgraph.root filelists/backgrounds/TTJets_madgraph.txt
./Analyzer systematicsFileName=systematics/2015_12_18.txt numSyst=2   Bkg_TTJets_madgraph.root filelists/backgrounds/TTJets_madgraph.txt
...
./Analyzer systematicsFileName=systematics/2015_12_18.txt numSyst=100 Bkg_TTJets_madgraph.root filelists/backgrounds/TTJets_madgraph.txt

You can remake the systematics file with:

python scripts/write_syst.py <nline>

Contact Information

Janos Karancsi ([email protected])

boostedrazoranalysis's People

Contributors

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