Scientific Computing / ARTICLE

A 100KB SVG That Does Real-Time 3D PCA and Convex Hulls on CMS Open Data

cerngaw.svg is 100.7 kB and loads 100,000 dimuon events from CMS Run2010B, offering an interactive 3D event display, PCA eigen-solving, and resonance fitting in a single browser file.

The file cerngaw.svg is 100.7 kB. It loads 100,000 dimuon events from CMS Run2010B and presents an interactive 3D event display with a dynamic invariant mass histogram. No external libraries, WebGL, or build steps are required, so the file runs on any modern browser, including locked-down educational hardware.

One file contains the full stack

The authors, Aston Walker and Theo, describe DimuonScope as a self-contained detection instrument written in native XML/SVG and vanilla JavaScript. The single file includes a data parser, a hand-written Jacobi eigensolver for principal component analysis, a Neyman-weighted Levenberg-Marquardt resonance fitter, and a 3D spatial engine built from raw trigonometry. The fitter targets J/ψ, Υ, and Z resonance peaks on the invariant mass histogram. The UI operates through native DOM manipulation, replacing heavy frameworks. Traditional HEP analysis stacks rely on C++ compilers, Python environments, or heavy WebGL frameworks; DimuonScope puts the entire stack in one SVG file.

A data guard validates charge columns before analysis. The author note states that the developer is an independent programmer, not a particle physicist, and that physics parameters such as the charge-flip rate are placeholders. The tool was built using AI-assisted coding as a visual and mathematical exercise. The authors welcome feedback from domain experts on the physics implementation. Vertex counts from the 3D convex hulls are always divisible by 6, which the authors attribute to Euler’s formula for closed triangulated meshes rather than any property of the collision data.

A phase transition driven by pT cuts

A pT threshold slider triggers recalculation of PCA eigenvectors from the momentum vectors. At low pT, the sample is dominated by soft, beam-collimated events; sphericity sits around 0.06 and PC1 aligns with the Z axis. When the pT cut moves above 18 GeV, the selection isolates sparse hard-scattering events. The covariance matrix flattens, PC1 swings away from the Z axis, and sphericity rises to about 0.76.

The authors call this “violent swing” a mathematical fingerprint of a kinematic topological phase transition in the dataset, visible during interactive analysis but absent from traditional one-dimensional histograms.

Dataset and output files

The instrument uses the MuRun2010B dimuon subset from CERN Open Data Portal Record 700. The collisions occurred at 7 TeV center-of-mass energy, with 3.5 TeV per proton beam. Protons reached 99.9999991% of the speed of light, and bunches were spaced 50 to 150 nanoseconds apart. The subset contains events filtered to show decays into two muons.

Alongside the main SVG, the release includes momentum_envelope OBJ meshes and a PDF document. The vector rendering remains sharp at 500% browser zoom, where clicking a muon in a dense cluster highlights its partner and shows the invariant mass in an info panel. The authors note that pick resolution scales with zoom level, and that every vector scales without rasterization, suiting lecture projection, high-DPI printing, and accessibility for visually impaired students.

END
Feedback