Skip to content

Instantly share code, notes, and snippets.

@philippgadow
philippgadow / plot_dijet_mass.png
Created June 27, 2025 11:52
plot VBF H(cc) vs QCD
import uproot
import numpy as np
import matplotlib.pyplot as plt
import mplhep as hep
def compute_dijet_mass(pt, eta, phi, mass):
px1 = pt[0] * np.cos(phi[0])
py1 = pt[0] * np.sin(phi[0])
pz1 = pt[0] * np.sinh(eta[0])
E1 = np.sqrt(px1*px1 + py1*py1 + pz1*pz1 + mass[0]*mass[0])
@philippgadow
philippgadow / HGamAnalysis.ipynb
Last active September 4, 2024 08:27
HGamAnalysis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@philippgadow
philippgadow / run_corry.sh
Created June 27, 2023 13:21
Environment in docker with corry dependencies
#!/bin/bash
docker run -it --rm \
-v /cvmfs:/cvmfs \
-v $HOME:$HOME \
-v $PWD:$PWD \
-v $HOME/.globus:/home/atlas/.globus \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=${DISPLAY} \
-h ${HOSTNAME} \
@philippgadow
philippgadow / Dockerfile
Created March 19, 2022 08:40
Custom dockerfile to create root with bumphunter-compatible boost library
FROM atlasamglab/stats-base:root6.22.00-python3.8
ENV BOOST_VERSION=1.64.0
ENV BOOST_VERSION_=1_64_0
ENV BOOST_ROOT=/usr/include/boost
RUN apt-get -qq update && apt-get install -q -y software-properties-common
RUN apt-get -qq update && apt-get install -qy g++ gcc git wget
@philippgadow
philippgadow / createHtmlOverview.py
Created November 2, 2021 10:19
Python script to create website of plots
#!/bin/env python
#
# A simple script to create an html page with an overview of the directory tree.
# This script walks recursively the directory tree and for each sub-directory
# it creates an 'index.html' page which will contain:
# - an overview of the subdirectories
# - a dump of the text files
# - a table (currently with two items per row) with all the images scaled to
# some predefined size (currently 400px X 300px)
#
[root@pgadow ~]# docker run --rm -it atlas/analysisbase:21.2.150
_ _____ _ _ ___
/_\_ _| | /_\ / __|
/ _ \| | | |__ / _ \\__ \
/_/ \_\_| |____/_/ \_\___/
This is a self-contained ATLAS AnalysisBase image.
To set up the analysis release of the image, please
execute:
@philippgadow
philippgadow / btaggingdebugging
Created March 22, 2019 14:45
b-taggingdebugging
[some blah output]
ToolSvc.BTagSF_AntiKt4EMTopoJets INFO Hello BTaggingEfficiencyTool user... initializing
ToolSvc.BTagSF_AntiKt4EMTopoJets INFO TaggerName = MV2c10
ToolSvc.BTagSF_AntiKt4EMTopoJets INFO OP = FixedCutBEff_77
ToolSvc.BTagSF_AntiKt4EMTopoJets INFO b-jet SF/eff calibration = default / 410470
ToolSvc.BTagSF_AntiKt4EMTopoJets INFO c-jet SF/eff calibration = default / 410470
ToolSvc.BTagSF_AntiKt4EMTopoJets INFO tau-jet SF/eff calibration = default / 410470
ToolSvc.BTagSF_AntiKt4EMTopoJets INFO light-jet SF/eff calibration = default / 410470
ToolSvc.BTagSF_AntiKt4EMTopoJets INFO JetAuthor = AntiKt4EMTopoJets
@philippgadow
philippgadow / XAMPPmonoH_btaggingweightsoutput
Created March 21, 2019 09:15
debugging for XAMPPmonoH
*............................................................................*
*Br 243 :TrackJetWeight : TrackJetWeight/D *
*Entries : 0 : Total Size= 529 bytes One basket in memory *
*Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 *
*............................................................................*
*Br 244 :TrackJetWeight_FT_EFF_Eigen_B_0__1down : *
* | TrackJetWeight_FT_EFF_Eigen_B_0__1down/D *
*Entries : 0 : Total Size= 625 bytes One basket in memory *
*Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 *
*............................................................................*
@philippgadow
philippgadow / gist:92df9abca626bf1d142b3c0fe6d1978b
Created January 16, 2019 12:14
logfile error for xrootd in docker run --rm -it atlas/athanalysis:21.2.58
pgadow@pgadow-T460p:~/coding/atlas/monoHbb/recast$ docker run --rm -it atlas/athanalysis:21.2.58
_ _____ _ _ ___
/_\_ _| | /_\ / __|
/ _ \| | | |__ / _ \\__ \
/_/ \_\_| |____/_/ \_\___/
This is a self-contained ATLAS AthAnalysis image.
To set up the analysis release of the image, please
execute:
@philippgadow
philippgadow / arxiv2kindle.ipynb
Created January 27, 2017 00:28 — forked from bshillingford/arxiv2kindle.ipynb
arxiv2kindle: recompiles an arxiv paper for kindle-sized screens, and sends it to your wifi-enabled kindle
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.