Repository navigation
concepts sampling models
This page is generated from docs/concepts/sampling-models.md. Do not edit it directly; change the repository source and let automation publish the Wiki.
The uniform LUND creator uses angles in degrees, momentum in
The code converts degree-valued angles to radians before calling trigonometric functions. The energy calculation uses natural units (
The electron-tester profiles fix
For channel=1e,
- even run-global event IDs draw
$P\sim\mathcal{U}(a,b)$ ; - odd IDs draw
$q\sim\mathcal{U}(b^{-1},a^{-1})$ and use$P=q^{-1}$ .
Here
The production bounds are electron-momentum=uniform selects only the first distribution. The
For channel=eh, hadron
Charged hadrons use the same run-global even/odd mixture of distributions uniform in
The trigger electron has beam momentum and configured
The target catalog resolves a geometry key. TargetGeometry uses the external targets.h implementation to draw
In the checked-in target source,
| Geometry |
|
|---|---|
Ar |
|
liquid |
|
4-foil |
Equal choice from |
1-foil |
|
1-foil-small |
|
1-foil-large |
|
Ca |
These values describe the checked-in targets.h snapshot. Recheck this table whenever that external source is replaced.
Target identity, geometry, and LUND
Uniform creation owns two TRandom3 objects:
-
seedcontrols particle momentum and angles; -
vertex-seedcontrols vertex positions.
Each TRandom3 object is a random-number generator (RNG) with its own sequence. Changing the target geometry draws from the vertex sequence, not the momentum-and-angle sequence. To use the external header, the geometry adapter temporarily copies the caller's vertex RNG state into the header's global RNG and copies the updated state back afterward. A mutex, a lock preventing simultaneous access, protects that shared global state.
A nonzero seed repeats a sequence only when the complete configuration, software, ROOT version, and draw order also match. TRandom3(0) requests automatic seeding. A manifest containing zero therefore cannot reproduce the sequence from that value alone.
Generated from the alons126/CLAS12-sample-tools documentation.
Source links use branch main. Source checkout: df853e1e8efc; commit date: 2026-11-07T16:35:09+02:00. Source checkout was clean when generated.
- Getting started
- Dependencies and execution environments
- Quickstart
- Run directories and outputs
- Troubleshooting
- Create LUND files
- Uniform LUND creation
- Physical LUND conversion
- LUND-creation configuration reference
- Uniform monitoring
- LUND-creation examples
- Sample profiles
- Submit GEMC and reconstruction jobs
- Ifarm environment and checkout model
- Simulation submission guide
- Submission configuration reference
- Follow jobs and verify output
- Submission examples
- GEMC and reconstruction worker
- Concepts and contracts
- Architecture
- LUND data contract and provenance
- Sampling models and random numbers
- External geometry and detector inputs