Giter VIP home page Giter VIP logo

dispjets's Introduction

Displaced Jets

Set up

cmsrel CMSSW_9_2_8
cd CMSSW_9_2_8/src/
cmsenv
git cms-init
git clone [email protected]:mez34/DispJets.git
scram b -j 4

Run analyzer (python dir.)

cmsRun configDispJetsAna.py

Other files in this directory are for running crab jobs. The python configs (crabConfig_) will run crabConfigTemplate.py that reads the data in from the inputfiles_*

Some notes on the analyzer:

Make plots (macros dir.)

  1. Run skimmer ./runSkimmer.sh [SAMPLE] or ./runFullSkim.sh for all samples which calls Skimmer.C (which uses skimmer.cpp).

Some notes on skimmer: Resolutions are specified here: https://github.com/mez34/DispJets/blob/master/analysis/macros/skimmer.cpp#L360-L365 Skimmer loops over gen particles, depending on which jet they are matched to, adds that particle's time, pT, etc. to the quantities for the jet and appends all this information to the ntuples.

  1. Make plots ./runPlotter.sh which calls Plotter.C (which uses plotter.cpp), runPlotter.sh specifies directories and Plotter.C has the names of the files. This makes the plots for each individual sample. Unmatched particles (not associated to a jet) are smeared in this script here: https://github.com/mez34/DispJets/blob/master/analysis/macros/plotter.cpp#L151-L155 So if you want to look at their resolutions, it needs to be changed here, not in the skimmer.

  2. Overlay plots (from each sample) of one variable using ./runOverlay.sh which calls Overlay.C (which uses overlay.cpp). For example, this works to compare the jet time as a function of lifetime.

  3. Overlay different variable plots for a single sample using ./runMultiplot.sh which calls Multiplot.C (which uses multiplot.cpp). For example, this works to compare the time for different time resolutions, but using the same lifetime point.

  4. Run analysis ./runAnalysis.sh to make datacards for combine.

Run combine (combo dir.)

  1. Take cards from macro dir (./runAnalysis.sh) as mentioned before.

  2. Run combine and extract jsons for limits (combineDispJets.sh) in combo dir (need HiggsCombine and CombineTool setup)

  3. Make 1D plot and rootfile of the limits (python plot1Dlimits.py DISP [MASS] [TRES] [LUMI in pb]) Output root file is stored in same directory as the input jsons.

  4. Use the output rootfile and compare with run2 and theorists results (python overlayLimits.py --suffix [ADDNAME] --theory --orig)

dispjets's People

Contributors

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