Skip to content

Instantly share code, notes, and snippets.

View mattleblanc's full-sized avatar
🎉
"if you ain't boostin', you ain't livin'"

Matt LeBlanc mattleblanc

🎉
"if you ain't boostin', you ain't livin'"
View GitHub Profile
Singularity> pip freeze
ai-edge-litert-nightly==1.0.1.dev20250123
aiohappyeyeballs @ file:///home/conda/feedstock_root/build_artifacts/aiohappyeyeballs_1733331917983/work
aiohttp @ file:///home/conda/feedstock_root/build_artifacts/aiohttp_1734596888970/work
aiosignal @ file:///home/conda/feedstock_root/build_artifacts/aiosignal_1734342155601/work
annotated-types @ file:///home/conda/feedstock_root/build_artifacts/annotated-types_1733247046149/work
anyio @ file:///home/conda/feedstock_root/build_artifacts/anyio_1736174388474/work
archspec @ file:///home/conda/feedstock_root/build_artifacts/archspec_1737352602016/work
argon2-cffi @ file:///home/conda/feedstock_root/build_artifacts/argon2-cffi_1733311059102/work
argon2-cffi-bindings @ file:///home/conda/feedstock_root/build_artifacts/argon2-cffi-bindings_1725356557095/work
#!/usr/bin/env python3
"""
Script to generate a local QCD.json file with XRootD paths to downloaded files.
This script scans the download directory and creates a new JSON file that points
to local files via XRootD (root://eosuser.cern.ch/) while preserving all original metadata.
"""
import json
import os
import sys
#!/usr/bin/env python3
"""
Script to generate a local QCD.json file with XRootD paths to downloaded files.
This script scans the download directory and creates a new JSON file that points
to local files via XRootD (root://eosuser.cern.ch/) while preserving all original metadata.
"""
import json
import os
import sys
#!/usr/bin/env python3
"""
Script to generate a local QCD.json file with absolute paths to downloaded files.
This script scans the download directory and creates a new JSON file that points
to local files while preserving all original metadata.
"""
import json
import os
import sys
#!/usr/bin/env python3
"""
Script to transfer ROOT files from QCD.json or QCD_working_files.json to the current working directory
Uses xrdcp for parallel file transfers with progress tracking and resume capability.
Automatically detects and uses the cleaned working files JSON if available.
"""
import json
import subprocess
import sys
@mattleblanc
mattleblanc / vlc_cpp.ref
Last active July 23, 2025 21:03
Valencia C++ reference output
hard jets (pT > 20 GeV) in inclusive clustering
pt = 122.875, rap = 0.0201274
pt = 122.944, rap = -0.0140412
hard jets in exclusive N=4 clustering
pt = 25.5392, rap = -0.0655267
pt = 97.3956, rap = 0.0428278
pt = 11.2882, rap = -0.122071
pt = 112.065, rap = -0.0029899
// main92.cc is a part of the PYTHIA event generator.
// Copyright (C) 2021 Torbjorn Sjostrand.
// PYTHIA is licenced under the GNU GPL v2 or later, see COPYING for details.
// Please respect the MCnet Guidelines, see GUIDELINES for details.
// Keywords: analysis; root;
// This is a simple test program.
// Modified by Rene Brun and Axel Naumann to put the Pythia::event
// into a TTree.
#! /usr/bin/python
import os
PDFs = '2' # 3 for LO and NLO, 2 for NNLO
how_long = '600' # how long to run, in seconds
base_seed = 400000000 # base seed: 4E8 for MLB
idx = 0 # the index to start from
n_to_run = 2
@mattleblanc
mattleblanc / python-config
Created March 17, 2021 21:57
python-config
#!/usr/bin/env python3
"""
This python-config script was taken from a virtual environment
created by `virtualenv`.
The only change is the hash-bang line.
The user shall copy this to ${VENV}/bin during setup.
:author: unknown + AA
:date: 2018-02-23
"""
import ROOT
from ROOT import gROOT,gPad,gStyle,TCanvas,TFile,TLine,TLatex,TAxis,TLegend,TPostScript
import os
global canvas, canvas
ROOT.gROOT.SetBatch(True)
ROOT.gStyle.SetOptStat(False)
ROOT.gStyle.SetOptTitle(False)