Repository for the Heavy Resonance Tagging exercise for CMSDAS@LPC2023 - https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCMSDataAnalysisSchoolLPC2023TaggingExercise
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.
DAS exercise in 2022
HATS exercise in 2021
HATS exercise in 2020
Two, very similar, options are available to run the jupyter notebook: Vanderbilt anf FNAL EAF.
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.
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
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
Open up a terminal and run the following command from your home area:
mkdir das2023_hrt
cd das2023_hrt
wget https://raw.githubusercontent.com/IreneZoi/HATS_HRT/DAS2023/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).
Run the notebook taggerComp.py in das2023_hrt/CMSSW_11_1_0_pre5/src/DAS2023HRT
To run on FNAL EAF, you will need to be on the Fermilab fgz network (if you are onsite) or use a VPN (if you are offsite, https://redtop.fnal.gov/guide-to-vpn-connections-to-fermilab/). Then login at https://analytics-hub.fnal.gov using your FNAL Services credentials. Once you successfully connect, click on the blue button "Start My Server". And select the CMSLPC SL7 Interactive (bottom right) server options. Click Start at the bottom of the page.
To open a Terminal click on the corresponding option in the Launcher Tab. If the Launcher tab is not open, you can open a new one from the File menu in the top left. This will open a new tab with a bash terminal.
We will copy your grid certificates from the LPC cluster, to do this, got to the terminal you just opened.
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
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
Open up a terminal and run the following command from your home area:
mkdir das2023_hrt
cd das2023_hrt
wget https://raw.githubusercontent.com/IreneZoi/HATS_HRT/DAS2023/setup-libraries.ipynb
On the left you should see the das2023_hrt
directory you created. Double click to go in it. Now double click on the newly downloaded notebook (setup-libraries.ipynb - only one cell to run). This will checkout the code and setup your setup-libraries.ipynb. After running setup-libraries.ipynb, stop this kernel clicking on the square symbol (Interrupt kernel). You can close this tab (NOT the big browser tab). Then you can continue on to the Exercise section (below).
Run the notebook taggerComp.py in das2023_hrt/CMSSW_11_1_0_pre5/src/DAS2023HRT
. Be sure to select the nanohrt-hats
kernel.
To run on LPC, log in via the command below (note: replace username
with your FNAL
username!).
ssh -L localhost:9999:localhost:9999 username@cmslpc-sl7.fnal.gov
and setup CMSSW:
# source /cvmfs/cms.cern.ch/cmsset_default.sh # this should be in your bash profile
mkdir das2023_hrt
cd das2023_hrt
cmsrel CMSSW_11_1_0_pre5
cd CMSSW_11_1_0_pre5/src
git clone https://github.com/IreneZoi/HATS_HRT.git DAS2023HRT -b DAS2023
cmsenv
scram b -j 4
cmsenv
voms-proxy-init -voms cms -valid 192:00
Then run the notebook
jupyter notebook --port 9999 --ip 127.0.0.1 --no-browser