Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
carpentry: "swc"

# Overall title for pages.
title: "CMSDAS@IIT Hyderabad 2025: Jets and MET Short Exercise"
title: "HATS@LPC 2025: Jets and MET"

# Life cycle stage of the lesson
# See this page for more details: https://cdh.carpentries.org/the-lesson-life-cycle.html
Expand Down
8 changes: 4 additions & 4 deletions _episodes/01-jets101.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ keypoints:
> ## Remember on LXPLUS
>
> ~~~
> cd <YOUR WORKING DIRECTORY>/notebooks/DAS/
> cd <YOUR WORKING DIRECTORY>/notebooks
> source /cvmfs/sft.cern.ch/lcg/views/LCG_105/x86_64-el9-gcc13-opt/setup.sh
> jupyter notebook --no-browser --port=8888 --ip 127.0.0.1
> ~~~
Expand Down Expand Up @@ -232,8 +232,8 @@ Three main jet collections are stored in the MiniAOD format, as described [here]
> Below are two examples of how to access jet collections from these samples. This exercise does not intend for you to modify code in order to access these collections, but rather for you to look at the code and get an idea about how you could access this information if needed.
>
> ### In C++
> Please take a look at the file [`jmedas_miniAODAnalyzer.C`](https://github.com/cms-jet/JMEDAS/blob/DASJune2025/src/jmedas_miniAODAnalyzer.C) with your favourite code viewer.
> You can run this code by using the python config file [`jmedas_miniAODtest.py`](https://github.com/cms-jet/JMEDAS/blob/DASJune2025/scripts/jmedas_miniAODtest.py) from your terminal once you have set a CMSSW environment and download this JMEDAS package. This script will only print out some information about the jets in that sample. Again, the most important part of this exercise is to get familiar with how to access jet collections from miniAOD. Take a good look at the prints this script produces to your terminal. Use a **new** directory outside the cloned `JMEDAS` directory.
> Please take a look at the file [`jmedas_miniAODAnalyzer.C`](https://github.com/cms-jet/JMEDAS/blob/HATS2025/src/jmedas_miniAODAnalyzer.C) with your favourite code viewer.
> You can run this code by using the python config file [`jmedas_miniAODtest.py`](https://github.com/cms-jet/JMEDAS/blob/HATS2025/scripts/jmedas_miniAODtest.py) from your terminal once you have set a CMSSW environment and download this JMEDAS package. This script will only print out some information about the jets in that sample. Again, the most important part of this exercise is to get familiar with how to access jet collections from miniAOD. Take a good look at the prints this script produces to your terminal. Use a **new** directory outside the cloned `JMEDAS` directory.
> ~~~
> cmsrel CMSSW_14_0_7
> cd CMSSW_14_0_7/src
Expand All @@ -248,7 +248,7 @@ Three main jet collections are stored in the MiniAOD format, as described [here]
>
> ### In Python
>
> Now take a look at the file [`jmedas_miniAODtest_purePython.py`](https://github.com/cms-jet/JMEDAS/blob/DASJune2025/scripts/jmedas_miniAODtest_purePython.py).
> Now take a look at the file [`jmedas_miniAODtest_purePython.py`](https://github.com/cms-jet/JMEDAS/blob/HATS2025/scripts/jmedas_miniAODtest_purePython.py).
> This code can be run with simple python in your terminal. Similar as in the case for C++, the output of this job is some information about jets. The most important part of the exercise is to get familiar with how to access jet collections using python from miniAOD.
> ~~~
> python3 $CMSSW_BASE/src/Analysis/JMEDAS/scripts/jmedas_miniAODtest_purePython.py
Expand Down
2 changes: 1 addition & 1 deletion _episodes/02-Pileup_jetID.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ keypoints:
>
> If using LXPLUS:
> ~~~
> cd <YOUR WORKING DIRECTORY>/notebooks/DAS/
> cd <YOUR WORKING DIRECTORY>/notebooks
> source /cvmfs/sft.cern.ch/lcg/views/LCG_105/x86_64-el9-gcc13-opt/setup.sh
> jupyter notebook --no-browser --port=8888 --ip 127.0.0.1
> ~~~
Expand Down
2 changes: 1 addition & 1 deletion _episodes/03-JEC_JER.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ keypoints:
> ## After following the instructions in the setup (if you have not done it yet) :
>
> ~~~
> cd <YOUR WORKING DIRECTORY>/notebooks/DAS/
> cd <YOUR WORKING DIRECTORY>/notebooks/
> source /cvmfs/sft.cern.ch/lcg/views/LCG_105/x86_64-el9-gcc13-opt/setup.sh
> jupyter notebook --no-browser --port=8888 --ip 127.0.0.1
> ~~~
Expand Down
2 changes: 1 addition & 1 deletion _episodes/04-Jet_Substructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ keypoints:
> ## After following the instructions in the setup:
>
> ~~~
> cd <YOUR WORKING DIRECTORY>/notebooks/DAS/
> cd <YOUR WORKING DIRECTORY>/notebooks/
> source /cvmfs/sft.cern.ch/lcg/views/LCG_105/x86_64-el9-gcc13-opt/setup.sh
> jupyter notebook --no-browser --port=8888 --ip 127.0.0.1
> ~~~
Expand Down
2 changes: 1 addition & 1 deletion _extras/discuss.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
title: Discussion
---

Join us in the mattermost channel: [ShortExJets Mattermost channel](https://mattermost.web.cern.ch/cmsdasiithjune2025/channels/jetmet-se)
Join us in the mattermost channel: [LPC-JetMET Mattermost channel](https://mattermost.web.cern.ch/lpcrun2discuss/channels/jetmet-pu)

{% include links.md %}
9 changes: 2 additions & 7 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,17 @@ _Follow the CMS workbook on jet analysis:_ [WorkBookJetAnalysis](https://twiki.c
> * The exercises are prepared to be run directly from a cmslpc node, with non-interactive notebooks to follow and discuss the exercises.
{: .testimonial}

### Facilitators CMSDAS IIT Hyderabad 2025
### Facilitators HATS@LPC 2025

<img src="fig/photo_facilitators.png" alt="Photo of the facilitators" style="width:80%">

### Support

Join the
[SE-JetMET Mattermost channel](https://mattermost.web.cern.ch/cmsdasiithjune2025/channels/jetmet-se)
[LPC-JetMET Mattermost channel](https://mattermost.web.cern.ch/lpcrun2discuss/channels/jetmet-pu)
and don't hesitate to ask for help from the facilitators in the room.

<!-- this is an html comment -->
{% comment %} This is a comment in Liquid {% endcomment %}

> ## Prerequisites
>
> [CMS DAS Pre-exercises](https://indico.cern.ch/event/1553817/)
{: .prereq}

{% include links.md %}
16 changes: 8 additions & 8 deletions setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Setup
In order to obtain EOS space for the exercises, open the
[CERNBox website](https://cernbox.cern.ch/) and log in with your CERN credentials.
This will provide you with 1 TB of space in
`/eos/user/<USERNAME INITIAL>/<YOUR USERNAME>`, e.g. `/eos/user/c/clange`.
`/eos/user/<USERNAME INITIAL>/<YOUR USERNAME>`, e.g. `/eos/user/g/gagarwal`.

You can either use LXPLUS or SWAN to run the exercises.
You can switch between the two by following the instructions below.
Expand Down Expand Up @@ -47,14 +47,14 @@ cp -r ~/.globus /eos/user/${USER:0:1}/${USER}
## Cloning the repository

~~~
git clone https://github.com/cms-jet/JMEDAS.git -b DASJune2025 --single-branch --depth=1
cd JMEDAS/notebooks/DAS/
git clone https://github.com/cms-jet/JMEDAS.git -b HATS2025 --single-branch --depth=1
cd JMEDAS/notebooks/
~~~
{: .language-bash}

> ## Remember
> Once you clone the repository, using the `DASJune2025` branch, the exercise notebooks are located
> in `JMEDAS/notebooks/DAS/`
> Once you clone the repository, using the `HATS2025` branch, the exercise notebooks are located
> in `JMEDAS/notebooks`
{: .callout}

Activate your grid certificate:
Expand All @@ -80,16 +80,16 @@ jupyter notebook --no-browser --port=8888 --ip 127.0.0.1
If these two lines are running sucessfully, you should see something like this:

~~~
[I 22:17:24.498 NotebookApp] Writing notebook server cookie secret to /afs/cern.ch/user/c/clange/.local/share/jupyter/runtime/notebook_cookie_secret
[I 22:17:26.375 NotebookApp] Serving notebooks from local directory: /eos/home-c/clange/JMEDAS/notebooks/DAS
[I 22:17:24.498 NotebookApp] Writing notebook server cookie secret to /afs/cern.ch/user/g/gagarwal/.local/share/jupyter/runtime/notebook_cookie_secret
[I 22:17:26.375 NotebookApp] Serving notebooks from local directory: /eos/home-g/gagarwal/JMEDAS/notebooks/DAS
[I 22:17:26.376 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 22:17:26.376 NotebookApp] http://127.0.0.1:8888/?token=b7de34fb074433b51831bdef0f0818f13279824ab33502cd
[I 22:17:26.376 NotebookApp] or http://127.0.0.1:8888/?token=b7de34fb074433b51831bdef0f0818f13279824ab33502cd
[I 22:17:26.376 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 22:17:26.384 NotebookApp]

To access the notebook, open this file in a browser:
file:///afs/cern.ch/user/c/clange/.local/share/jupyter/runtime/nbserver-521240-open.html
file:///afs/cern.ch/user/g/gagarwal/.local/share/jupyter/runtime/nbserver-521240-open.html
Or copy and paste one of these URLs:
http://127.0.0.1:8888/?token=b7de34fb074433b51831bdef0f0818f13279824ab33502cd
or http://127.0.0.1:8888/?token=b7de34fb074433b51831bdef0f0818f13279824ab33502cd
Expand Down