From cad9868c6b0c6ef45d51412da44793a81e3e713d Mon Sep 17 00:00:00 2001
From: garvitaa <38080271+garvitaa@users.noreply.github.com>
Date: Sat, 17 Aug 2024 11:25:18 +0200
Subject: [PATCH 1/3] rearranging PU mitigation and adding Noise filters
---
_episodes/02-Pileup_jetID.md | 48 +++++++++++++++++++++++++-----------
1 file changed, 34 insertions(+), 14 deletions(-)
diff --git a/_episodes/02-Pileup_jetID.md b/_episodes/02-Pileup_jetID.md
index cb11d80..920b6ab 100644
--- a/_episodes/02-Pileup_jetID.md
+++ b/_episodes/02-Pileup_jetID.md
@@ -50,7 +50,9 @@ We need to simulate out-of-time interactions, time structure of detector sensiti
Many clever ways have been devised to remove the effects of pileup from physics analyses and
objects. Pileup affects all objects (MET, muons, etc.). We are focusing on jets today.
-### $\rho$ pileup correction
+To mitigate PU in jets, we can do it in two steps, first at particle-level and then at the jet-level.
+
+### jet-level PU mitigation: $\rho$ pileup correction
Imagine making a grid out of your detector, then $\rho$ is the median patch value (pT/area). Therefore, the corrected jet momentum is:
$$p_T^{corr} = p_T^{raw} - (\rho \times area)$$
@@ -109,38 +111,35 @@ There are 12 interactions before and 3 after.
>
{: .solution}
-### Charged Hadron Subtraction (CHS)
-
-Tracking is a major tool in CMS. We can identify most charged particles from non-leading primary vertices, CHS removes these particles.
-
+### particle-level PU mitigation
-### PileUp Per Particle Identification (PUPPI)
-
-Unfortunately, pileup is not really isotropic, it is uneven:
+Unfortunately, pileup is not really isotropic, it is uneven. Pileup particles produce additional tracks and deposits in the calorimeters, which are also reconstructed as PF candidates and can overlap with PF candidates belonging to a jet.
-PUPPI is trying to have an inherently local correction based on the following information: A particle from the hard scatter process is likely near (geometrically) other particles from the same interaction and have a generally higher pT. We expect particles from pileup to have no shower structure, have generally lower pT, and be uncorrelated with particles from the leading vertex.
+The paticle-level PU mitigation techniques ensure an inherently local correction. The two techniques used in CMS are:
-
+- **Charged Hadron Subtraction (CHS)** mitigates this charged pileup contribution by removing charged particles originating from pileup vertices. However, it is limited to the tracker-covered region and does not account for neutral pileup contributions.
+- **PileUp Per Particle Identification (PUPPI)** complements CHS by assigning a probability to each particle, quantifying its similarity to pileup. It operates under the assumption that particles originating from the hard scatter process are likely to be near (geometrically) other particles from the same interaction and generally have higher pT​. In contrast, particles from pileup tend to lack shower structure, have lower pT, and are uncorrelated with particles from the leading vertex. These estimated probabilities are then used to assign weights to the four-momentum of the particles.
+
-### Exercise 2.2
+#### Exercise 2.2
> ## Open a notebook
>
> For this part open the notebook called `Pileup.ipynb` and run the Exercise 2.2
{: .checklist}
-> ## Discussion 2.1
+> ## Discussion 2.2
> Do you see any difference in the jet pt for CHS and PUPPI jets? Where you expecting these results?
{: .discussion}
## Pileup reweighting
-Start with chosen input distribution – the instantaneous luminosity for a given event is sampled from this distribution to obtain the mean number of interactions in each beam crossing. The number of interactions for each beam crossing that will be part of the event (in- and out-of-time) is taken from a poisson distribution with the predetermined mean. The input distribution is thus smeared by convolving with a poisson distribution in each bin. This is what the observed distribution should look like after the poisson fluctuations of each interaction
+
-
+
The __Goal__ of the pileup reweighting procedure is to match the generated pileup distribution to the one found in data:
* Step 1: Create the weights
@@ -273,3 +272,24 @@ C++ from a miniAOD file:
{% include links.md %}
+## Noisy event filters
+Detector noise, cosmic rays, and beam-halo particles can lead to large anomalous missing energy in the detector and can be an indication of problematic event reconstruction. To ensure good event reconstruction, JME POG requires the use of Noisy event filters, formerly called MET filters. For 2018, you can find the list of recommended filters on the [twiki](https://twiki.cern.ch/twiki/bin/view/CMS/MissingETOptionalFiltersRun2#Run_2_recommendations).
+
+### Exercise 2.5
+
+Here we are going add the Noise filters from the[twiki](https://twiki.cern.ch/twiki/bin/view/CMS/MissingETOptionalFiltersRun2#Run_2_recommendations).
+
+> ## Open a notebook
+>
+> For this part open the notebook called `Pileup.ipynb` and after Excercise 3, apply the filters for 2018 in an `AND` combination.
+{: .checklist}
+
+> ## Question 2.4
+> How many events do you reject with this requirement?
+{: .challenge}
+
+> ## Question 2.5
+> In what unit will the x-axis be plotted? Another way of asking this is what pileup variable can be measured in both data and MC and is fairly robust?
+{: .challenge}
+
+
From cc1beb8014bb04fee945dec7d1e155394d6397f8 Mon Sep 17 00:00:00 2001
From: garvitaa <38080271+garvitaa@users.noreply.github.com>
Date: Sat, 17 Aug 2024 11:27:36 +0200
Subject: [PATCH 2/3] Update 01-jets101.md
---
_episodes/01-jets101.md | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/_episodes/01-jets101.md b/_episodes/01-jets101.md
index 277f170..8f0a2a2 100644
--- a/_episodes/01-jets101.md
+++ b/_episodes/01-jets101.md
@@ -76,6 +76,10 @@ These algorithms follow this recipe:
> ## How the different jet algorithms look like in our events?
>
> Comparison of jet areas for four different jet algorithms, from "The anti-kt Clustering Algorithm" by Cacciari, Salam, and Soyez [JHEP04, 063 (2008), arXiv:0802.1189].
+>
+> In the figure, you can observe the high irregularity in the kt algorithm's area, the conical shape of the anti-kt jets illustrating this algorithm's preference for hard radiation, and the smaller effective radius of the SIScone jets. This is due to the split-merge procedure, which results in smaller jet areas and two jets being resolved where there is just one grey jet.
+>
+> Despite their differences, all these algorithms share a crucial feature — infrared and collinear safety. This ensures that the presence of a hard particle or a softly radiated gluon does not alter the number or contents of the jet. This condition is essential for making meaningful comparisons between theoretical predictions and experimental data.
{: .callout}
Some excellent references about jet algorithms can be found here:
@@ -255,6 +259,8 @@ Also possible to customize nanoAOD. JME/BTV have their extended format with more
> ## Note
+> Even though the stored jets are corrected in MiniAOD and NanoAOD, these corrections should be removed, and the latest version recommended by the JME should be applied. This is required by the JME POG.
+>
> There are several advanced tools on the market which allow you to do sophisticated analysis using nanoAOD format, including [RDataFrame](https://root.cern/doc/master/classROOT_1_1RDataFrame.html), [NanoAOD-tools](https://github.com/cms-nanoAOD/nanoAOD-tools), or [Coffea](https://github.com/CoffeaTeam/coffea). We encourage you to look at them and use the one you like the most. However, we are going to use coffea for this tutorial.
{: .callout}
@@ -290,4 +296,3 @@ A short list of jet properties that we can find in nanoAOD are:
{% include links.md %}
-
From 20176866d2c11a1f03243361c9c6e937e1559f6c Mon Sep 17 00:00:00 2001
From: garvitaa <38080271+garvitaa@users.noreply.github.com>
Date: Sat, 17 Aug 2024 11:29:10 +0200
Subject: [PATCH 3/3] Update 02-Pileup_jetID.md
---
_episodes/02-Pileup_jetID.md | 4 ----
1 file changed, 4 deletions(-)
diff --git a/_episodes/02-Pileup_jetID.md b/_episodes/02-Pileup_jetID.md
index 920b6ab..ce4877a 100644
--- a/_episodes/02-Pileup_jetID.md
+++ b/_episodes/02-Pileup_jetID.md
@@ -288,8 +288,4 @@ Here we are going add the Noise filters from the[twiki](https://twiki.cern.ch/tw
> How many events do you reject with this requirement?
{: .challenge}
-> ## Question 2.5
-> In what unit will the x-axis be plotted? Another way of asking this is what pileup variable can be measured in both data and MC and is fairly robust?
-{: .challenge}
-