Skip to content

Commit 2083c29

Browse files
authored
Update README.md
1 parent 00cfbaf commit 2083c29

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

README.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ This repository offers solutions to the benchmarks listed [here](https://github.
33

44
The file these solutions are intended to run on is public and can be accessed by: `root://eospublic.cern.ch//eos/root-eos/benchmark/Run2012B_SingleMu.root`
55

6-
As of 7/17/2020, I have updated all files in benchmarks/, adding some clarity, simpler solutions, and NanoEvents support. NanoEvents is what you should be using for most Coffea analyses, especially if they involve NanoAODs, but I have left the old method of constructing JaggedCandidateArrays to access data in the oldbenchmarks/ folder for reference, just in case. The oldbenchmarks/ folder has not been significantly updated; if you are learning Coffea, use benchmarks/!
7-
8-
The solutions in the benchmarks/ folder are in response to the list linked above:
6+
As of 1/20/2022, these examples have been contributed by [Nick Smith](https://github.com/nsmith-). They are in the coffea-adl-benchmarks.ipynb notebook and respond to the following queries:
97

108
1. Plot the missing ET of all events.
119
2. Plot pT of all jets in all events.
@@ -16,17 +14,4 @@ The solutions in the benchmarks/ folder are in response to the list linked above
1614
7. Plot the sum of pT of jets with pT > 30 GeV that are not within 0.4 in ΔR of any lepton with pT > 10 GeV.
1715
8. For events with at least three leptons and a same-flavor opposite-sign lepton pair, find the same-flavor opposite-sign lepton pair with the mass closest to 91.2 GeV and plot the transverse mass of the missing energy and the leading other lepton.
1816

19-
The solutions in the oldbenchmarks/ folder are in response to an older set of benchmarks, namely:
20-
21-
1. Plotting the Missing ET (or any event level variable).
22-
2. Plotting the Jet pT (or any variable that is a per-event array).
23-
3. Plotting the Jet pT for jets that have an jet pT > 20 GeV and abs(jet eta) < 1.0
24-
4. Plotting the Missing ET for jets with at least 2 jets with Jet pT > 40 and abs(jet Eta) < 1.0
25-
5. Plot the opposite-sign muon pair mass for all combinations of muons
26-
6. Plot the Missing ET for events that have an opposite-sign muon pair mass in the range 60-120 GeV (double loop over single collection, math)
27-
7. Plot the sum of the pT of jets with pT > 30 GeV that are not within 0.4 from any lepton with pt > 10 GeV (looping over two collections)
28-
8. For events with at least three leptons and a same-flavor opposite-sign lepton pair, find the same-flavor opposite-sign lepton pair with the mass closest to 91.2 GeV and plot the transverse mass of the missing energy and the leading other lepton.
29-
30-
Note that for exercise 8, things get a little more complicated as we deal with cross-lepton pairs. A columnar solution to this exists, where we construct a new 'stacked' array of muons and electrons: leptons. This solution is now implemented in benchmarks/. An event loop solution exists and is implemented in the oldbenchmarks/ version, for purposes of comparison. I think you will find the columnar approach to be much nicer!
31-
32-
I have sought to provide detailed explanations for how each of these things is done in Coffea. Therefore, a lot of the code has verbose comments, which I hope are more helpful than they are distracting!
17+
A more pedagogical approach to solving these examples is contained within the [coffea-casa-tutorials repository](https://github.com/CoffeaTeam/coffea-casa-tutorials/tree/master/examples), intended to be ran on [coffea-casa](https://github.com/CoffeaTeam/coffea-casa).

0 commit comments

Comments
 (0)