Code Monkey home page Code Monkey logo

idm-analysis-plotting's Introduction

iDM-analysis-plotting

iDM analysis code (plotting and cutflows)

Run jupyter on the LPC

It is possible to run available versions of jupyter on the LPC. This is in lieu of having to install jupyter on your local machine. The idea is to run the jupyter notebook server on the LPC and connect to it via your local computer browser. For that to work you need to SSH-tunnel the notebook server's port.

To set this up:

  1. SSH tunnel. SSH to LPC machines and add port tunneling:

    $ ssh -L 8888:localhost:8888 [email protected]

    8888 is the default port for jupyter notebooks.

  2. Jupyter notebook server. Once inside an LPC machine, there are two options for enabling jupyter notebooks:

  • Python2: this is the easiest way and comes bundled with CMSSW, but it only offers Python2 support. After running cmsenv inside a CMSSW release, type: jupyter notebook --no-browser

  • Python3: Python3 has a lot of nifty features that are worth using, but it doesn't come with CMSSW except for the very latest releases (10.1.X I believe). To enable it in the LPC (note this is outside CMSSW):

    source /cvmfs/sft.cern.ch/lcg/views/LCG_92python3/x86_64-slc6-gcc62-opt/setup.sh
    export PYTHONPATH=/cvmfs/sft.cern.ch/lcg/views/LCG_92python3/x86_64-slc6-gcc62-opt/lib/python3.6/site-packages:$PYTHONPATH

    Release LCG_92 already comes with jupyter too, so after sourcing it you can just type jupyter notebook --no-browser to run the server.

    NOTE: If you choose Python3 and then afterwards set up a CMSSW environment, it will mess with your jupyter configuration. If you need to use both at the same time, make sure CMSSW is set up before the LCG_92 release.

  1. Access the notebook server on your browser. After the notebook server is set-up, it will give you a link to open (in the form http://localhost:8888...). Copy that link and paste it on your browser and you'll enter the jupyter notebook environment, and you're ready to go.

Scripts

BeamHalo: plots of track quality information and table of beam halo summary GenKinematicsNew: Studies of the Gen information. PlotSignalBkgs: Plots the cutflow for the signal and background from data files containing the summary from SROptimizationAnalysisFull QCDCorrelationStudies: SROptimizationAnalysisFull: Loads all the backgrounds scripts and dumps the information into data files to be read by PlotSignalBkgs

idm-analysis-plotting's People

Contributors

afrankenthal avatar tresreid avatar

Stargazers

Philip Burnham avatar  avatar

Watchers

 avatar Philip Burnham avatar  avatar

Forkers

tresreid

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.