UCL project notebook
Finally, Contur: making measurements for a collider that hasn’t run yet
After several posts of promising to get to Contur, here we are. I had a working Rivet analysis, simulated Higgs events and a way to compare signal with background. The one thing I couldn’t get was a measurement from the collider. It hadn’t been built. A slightly inconvenient detail.
Worked examples use synthetic inputs. This note contains no real ATLAS data, ATLAS simulation data or supplied research results. Data and illustration policy.
My original plan was to generate events with modified Higgs interactions and find out how tightly I could constrain them. The coefficient study depended on getting the model translation and event generation to work.
I used the samples I had to test the statistical workflow. Could it recover the expected answer against a reference I had simulated myself?
What does Contur actually do?
Contur stands for Constraints On New Theories Using Rivet.

Contur starts with a collider measurement. Even a distribution measured to study a Standard Model process can constrain a proposed model if its extra contribution changes the shape or rate.
Contur uses measurements preserved in Rivet to test whether predictions from a proposed model are compatible with the data. The Contur toolkit paper explains the approach in detail.
In the extra-contribution setup I was studying, the question was:
How much could I add to an acceptable Standard Model prediction before it stopped agreeing with the reference?
That gives us something more informative than looking at two curves and deciding that one seems suspiciously enthusiastic.
Making a reference dataset
For the FCC study, I used simulated Standard Model events to build the reference distributions.
These pseudo-measurements are the distributions I would expect under the Standard Model assumptions used in the simulation.
They gave me a controlled way to test the workflow. How much the resulting scan can tell us depends on the uncertainties assigned to that reference.
My Rivet routine supplied the distributions. A jet-mass histogram records the simulated contribution in each mass bin, so it keeps the shape of the distribution as well as the total yield.
That matters for a Higgs analysis. An additional contribution concentrated around the Higgs-candidate mass region can behave differently from one spread across the entire distribution.
Rivet stored these histograms in YODA files. Those became the inputs to the next stage.
Teaching the files to talk to each other
A histogram can look perfectly good on a plot and still be invisible to the next program in the chain.
I came here to study Higgs physics and ended up negotiating with histogram names. Fair enough.
I wrote helper code to prepare matching reference and theory objects, labelled /REF/ and /THY/, with consistent analysis names and histogram paths.
I also extended the Contur database with the entries needed for the custom analysis, including its grouping and luminosity information.
I kept the observables intended for the statistical study and excluded empty objects and diagnostic plots from the Rivet output.
Once Contur could read the custom FCC analysis, I could start checking the statistical assumptions.
Turning up the extra contribution
The comparison can be written in plain English:
Total prediction = Standard Model baseline + μ × extra test contribution.
The symbol μ, pronounced “mu”, controls the size of the additional contribution:
- μ = 0 means the baseline alone.
- μ = 1 adds the test contribution at its nominal size.
- μ = 2 adds twice that test contribution.
I built the test templates from Standard Model simulation to give the pipeline controlled inputs. A constraint on cH, cHW or cHB would require validated predictions for how those coefficients change the distributions.
For the statistical calculation, I used Contur with the Spey backend. Spey provides tools for likelihood-based hypothesis tests: assessing how well a prediction describes the reference within a specified statistical model.
Scanning μ then shows where the agreement is best and how it changes as the extra contribution grows.
What the likelihood needs
Each histogram bin supplies a reference value and a prediction. The statistical model describes how far they can differ under the assumed uncertainties. A shift in μ changes the added template in every bin, and the fit evaluates the resulting pattern across the selected observable.
Uncertainties can carry structure across that pattern. A normalisation uncertainty can move several bins together. A shape uncertainty can move events from one region to another. Nuisance parameters describe such allowed variations, and the fit must account for them when deciding how strongly the histogram constrains μ. Spey supplies the inference machinery for the chosen likelihood prescription. Spey statistical framework.
The observable whitelist also has a statistical purpose. Histograms from the same events can share information, so adding their tests as though they were independent can count that information repeatedly. Selecting the intended mass distribution made it easier to trace what entered each benchmark.
A baseline-only closure check asks whether an SM-like reference is compatible with the baseline. A complementary test injects a known additional template and asks whether the method recovers its strength. Repeated synthetic experiments can investigate interval coverage under the chosen statistical model.
First, check the obvious case
A closure test begins with a controlled case whose expected behaviour is understood. If the reference and baseline describe the same process, the best fit should not need a substantial additional contribution. This is an expectation to test, rather than a private scan result reproduced here.
The uncertainty model determines how strongly a difference matters. I need to trace the simulated reference uncertainty, template uncertainty and bin correlations through the likelihood. A scan can run successfully while those choices still require validation.
The workflow connects simulated events, Rivet distributions, reference objects and statistical tests. The next note now uses independent synthetic teaching plots to explain what a minimum and a threshold crossing mean, without presenting the project’s numerical results.