Skip to content

cms-jet/HATS_HRT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Heavy resonance tagging (HRT) Hands-on Advanced Tutorial Session (HATS)

FNAL-LPC 2020

The tutorial is heavily based on the jet tagging tools and framework/files produced for the BoostedJet Tagging paper JME-18-002 and the corresponding HATS exercise in 2019

Setup on LPC

To run on LPC, log in via:

ssh -L localhost:9999:localhost:9999 username@cmslpc-sl7.fnal.gov

and setup CMSSW:

source /cvmfs/cms.cern.ch/cmsset_default.sh
mkdir hats2020
cmsrel CMSSW_11_1_0_pre5
cd CMSSW_11_1_0_pre5/src
git clone https://github.com/gouskos/HATS2020_HRT.git HATS2020HRT

scram b -j 8

voms-proxy-init -voms cms -valid 192:00

Then run the notebook

jupyter notebook --port 9999 --ip 127.0.0.1 --no-browser

Setup on Vanderbilt

To run on Vanderbilt, login at https://jupyter.accre.vanderbilt.edu/ using your CERN credentials. Once you successfully connect, you should see the following front page

The two most important buttons are

  • The new button, which lets you open a terminal or start a new Jupyter notebook.
  • The control panel button, which lets you shut down your notebook once you're done. It's helpful to do this to free up resources for other users.

Upload Grid Certificates

We will copy your grid certificates from the LPC cluster, to do this, open the front page (shown above), and click the New box at the top right, then the Terminal option.

This will open a new tab with a bash terminal. Execute the following commands (following the appropriate prompts) to copy your certificate from the LPC to Jupyter (note: replace username with your FNAL username!)

The following command will prompt you for your FNAL password

kinit username@FNAL.GOV
rsync -rLv username@cmslpc-sl7.fnal.gov:.globus/ ~/.globus/
chmod 755 ~/.globus
chmod 600 ~/.globus/*
kdestroy

Initialize Your Proxy at every Login!

If you have a password on your grid certificate, you'll need to remember to execute the following in a terminal each time you log in to Jupyter. Similar to the LPC cluster, you will get a new host at each logon, and the new host won't have your old credentials.

Each time you log in, open a terminal and execute:

voms-proxy-init -voms cms -valid 192:00

Checkout the code

Open up a terminal and run the following command from your home area:

mkdir hats2020_hrt
cd hats2020_hrt/
wget https://raw.githubusercontent.com/gouskos/HATS2020_HRT/master/setup-libraries.ipynb

Go back to your Jupyter browser (Home) page and open/run(double-click) the newly downloaded notebook (setup-libraries.ipynb - downloaded just recently - only one cell to run). This will checkout the code and setup your setup-libraries.ipynb. After running setup-libraries.ipynb, choose "File... Close and Halt". Then you can continue on to the Exercise section (below).

Exercise

Run the notebook taggerComp.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%