Event generation and detector simulation
Separate collision models, detector transport, and reconstruction, then normalize a finite simulated sample without confusing it with observed evidence.
On this page
The question for today
What you’ll understand
- Describe the distinct probability models in an event-simulation chain.
- Normalize unweighted and weighted simulated yields.
- Distinguish finite-sample uncertainty from uncertainty in the physical model.
A simulated collision is a draw from a specified model, followed by a model of how particles interact with an instrument. It is not a miniature observation of nature. Event generators, detector transport, digitization, and reconstruction answer different questions and introduce different approximations. Their combination predicts what a physical hypothesis would look like after selection. We will express that combination as a forward probability calculation and examine what a finite sample can establish about efficiency, normalization, and uncertainty. All numerical samples below are synthetic.
Follow the forward chain
A hard-process calculation describes short-distance scattering, often using parton distributions for incoming hadrons. A shower approximates additional soft and collinear radiation, while hadronization models turn partons into hadrons and unstable particles decay. These ingredients have different accuracy claims: a fixed-order matrix element, a logarithmic shower approximation, and a tuned nonperturbative model are not interchangeable descriptions of exact quantum evolution. Matching and merging aim to combine domains without counting the same radiation twice.
Detector transport then models interactions in material and magnetic fields. Digitization converts deposits into electronic signals, including noise and thresholds; reconstruction infers tracks, clusters, and event quantities from those signals. Pileup and changing operating conditions can modify the response. A generator-level particle record is consequently different from a reconstructed event record. Keeping those stages distinct lets an analyst locate a discrepancy rather than treating a full simulation as one indivisible black box.
Finite samples estimate integrals
For an unweighted sample drawn from the normalized signal model, the fraction passing a selection estimates its probability. Multiplying that fraction by cross section and integrated luminosity gives a predicted event count. Generating more events reduces numerical Monte Carlo error but does not increase the luminosity of the actual experiment. It also cannot correct a missing physical process, an inaccurate material description, or an inappropriate calibration. Those are uncertainties in the integrand or response rather than sampling noise.
Weighted generation changes the estimator. If weights have the declared relative normalization, selected weight divided by total weight estimates the selected fraction within that generated population. Negative weights can arise in higher-order calculations, so the ratio need not behave like an ordinary binomial efficiency and an effective sample size can be much smaller than the event count. For a Poissonized independent-event sample, the sum of squared accepted weights estimates the variance of its unnormalized weighted yield. Fixed-size sampling and ratios require their own normalization and covariance treatment.
Validation tests assumptions in separate ways
Closure tests ask whether an analysis recovers an injected truth when pseudo-data are produced by a known model. Passing closure is necessary evidence about implementation, but using the same response for generation and inversion makes this a limited test of modeling. Alternative generators, distorted spectra, and independent control data probe different vulnerabilities. Agreement after tuning should be evaluated on observables or samples that were not all used to choose the tune.
A useful uncertainty description identifies which variations represent perturbative truncation, nonperturbative tuning, detector calibration, and finite simulated statistics. Arbitrarily adding more simulation does not turn these into one statistical error. Likewise, reusing one event sample under many parameter weights creates correlations between predictions. Recording those correlations, generator versions, truth definitions, and normalization conventions makes a later likelihood or cross-section result reproducible and allows a disagreement to be interpreted physically.
Work it through
Normalize an unweighted sample
A synthetic signal has cross section 4 pb and target integrated luminosity . An independent unweighted simulation has 400 events, of which 100 pass. Estimate the selected expectation and the plug-in standard error arising only from finite simulated efficiency.
The selected fraction is . The target preselection mean is events, so the selected prediction is 20.
The plug-in efficiency standard error is . This is uncertainty in a simulated probability estimate.
Multiplying by 80 gives selected-prediction standard error events. It excludes cross-section, luminosity, and detector-model errors, and is distinct from fluctuations in the observed target count.
The prediction is 20 selected events with about 1.73 events of finite-simulation standard error under the stated binomial assumptions.
The living notebook
Explore the model
Interactive lab · sampling
Finite efficiency estimates
Use Bernoulli success as an abstract pass decision. Reset, set Success probability p = 0.25 and Independent samples n = 20, and predict mean 0.25 with variance 0.009375 for the sample mean. For a fresh run Reset, set p = 0.25 and n = 80, and predict one-quarter of that variance.
- Mean sample proportion
- 0.5
- Sample-mean variance
- 0.0125
- Uniform CDF error bound
- ≤ 0.1062
Exact binomial masses for the mean of n independent Bernoulli trials, compared with normal mass between adjacent half-count boundaries; normal tails outside the finite support remain outside the bars. Playback highlights outcomes, not random samples. The Berry–Esseen bound applies to standardized CDFs, not individual bars or continuity-corrected errors. At p = 0 or 1, normal comparison and that bound are disabled. Normal-CDF evaluation uses a numerical approximation with absolute error below 7.5×10⁻⁸ (at most 1.5×10⁻⁷ per interval, before rounding). Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forThe display contains exact binomial probabilities, not regenerated detector events. It does not simulate showers, event weights, transport, or model uncertainty; playback only highlights exact outcomes.
Pause & reason
Check your understanding
Your turn
Try it yourself
Four synthetic generated events carry relative weights 2, 2, 1, and 1. Only the first and second pass. Their total generated weight represents a 6 pb cross section. Predict the selected yield for and explain why a count-based pass fraction would be wrong.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Use the selected fraction of total weight, keeping the quoted cross-section convention.
Compare with the solution
Selected weight is and total weight is 6, giving weighted fraction 2/3 and yield events. The unweighted fraction 2/4 would instead predict 15 events, because it treats unequal weights as equally representative. Exchanging which two events pass can change selected weight without changing the count. A general calculation must retain the weight normalization and its statistical treatment rather than assume every generated event represents equal probability.
Keep the idea
Take it with you
- Generator physics, detector response, and reconstruction are separate conditional models.
- Simulation normalization requires cross section, luminosity, filters, and weight conventions.
- Monte Carlo precision, closure, and validation of physical assumptions are different claims.
Read further
Original sources and deeper explanations to follow at your own pace.
- P. Nason and P. Skands, PDG 2025 Monte Carlo Event Generators, introduction and sections 43.1–43.4
- ATLAS, ZZ cross sections at 8 TeV, section 5 (generation and detector simulation)
- Frixione and Webber, Matching NLO QCD computations and parton shower simulations, sections 2.2 and 4.5 (negative weights and statistical precision)
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.