How samvanstroud/hepattn works
hepattn is a PyTorch/Lightning research codebase for transformer-based particle-physics reconstruction. Experiment entry points configure a task model, dataset module, and shared CLI; the model stack turns detector constituents into reconstructed objects, with experiment-specific evaluation and output. The README documents additional reconstruction domains beyond the sampled entry points, so these appear as capability nodes without speculative implementation links. Source-index references and excerpts support the shown calls; unsampled domain internals are represented only at their existing directory paths.
Main entry points: cli.py Experiment CLI · pixel/main.py Pixel training · tide/main.py TIDE training · cld/main.py CLD training
Components 32
Reconstruction experiments
- Pixel training
src/hepattn/experiments/pixel/main.py - Pixel data
src/hepattn/experiments/pixel/data.py - Pixel splitter
src/hepattn/experiments/pixel/model.py - TIDE training
src/hepattn/experiments/tide/main.py - TIDE data
src/hepattn/experiments/tide/data.py - TIDE model
src/hepattn/experiments/tide/model.py - CLD training
src/hepattn/experiments/cld/main.py - CLD data
src/hepattn/experiments/cld/data.py - CLD reconstructor
src/hepattn/experiments/cld/model.py - CLIC training
src/hepattn/experiments/clic/main.py - Particle-flow data
src/hepattn/experiments/clic/pflow_data.py - Particle-flow module
src/hepattn/experiments/clic/lightning_module.py - ColliderML training
src/hepattn/experiments/colliderml/main.py - ColliderML data
src/hepattn/experiments/colliderml/data.py - ColliderML model
src/hepattn/experiments/colliderml/model.py - TrackML filtering/tracking
src/hepattn/experiments/trackml - ITk filtering/tracking
src/hepattn/experiments/itk - ATLAS muon tracking
src/hepattn/experiments/atlas_muon
Model architecture
- Transformer components
src/hepattn/models/decoder.py - Task and loss
src/hepattn/models/task.py - Loss functions
src/hepattn/models/loss.py - Model wrapper
src/hepattn/models/wrapper.py - Efficient attention
src/hepattn/flex/fast_local_ca.py
Data and utilities
- Experiment CLI
src/hepattn/utils/cli.py - Dataset utilities
src/hepattn/utils/lrsm_dataset.py - Feature scaling
src/hepattn/utils/scaling.py - Tensor utilities
src/hepattn/utils/tensor_utils.py
Assignment solver
- Assignment Python API
src/lap1015/src/main.cpp - Assignment solver
src/lap1015/src/csrc/core/lap_solver.h - Cost matrix
src/lap1015/src/csrc/core/lap_cost.h - Solver interface
src/lap1015/src/csrc/lap.h
Other components
- Researcher
Connections 36
- Researcher → Pixel training: starts training
- Researcher → TIDE training: starts training
- Researcher → CLD training: starts training
- Researcher → CLIC training: starts training
- Researcher → ColliderML training: starts training
- Pixel training → Experiment CLI: configures
src/hepattn/experiments/pixel/main.py - Pixel training → Pixel data: registers
src/hepattn/experiments/pixel/main.py - Pixel training → Pixel splitter: registers
src/hepattn/experiments/pixel/main.py - TIDE training → Experiment CLI: configures
src/hepattn/experiments/tide/main.py - TIDE training → TIDE data: registers
src/hepattn/experiments/tide/main.py - TIDE training → TIDE model: registers
src/hepattn/experiments/tide/main.py - CLD training → Experiment CLI: configures
src/hepattn/experiments/cld/main.py - CLD training → CLD data: registers
src/hepattn/experiments/cld/main.py - CLD training → CLD reconstructor: registers
src/hepattn/experiments/cld/main.py - CLIC training → Experiment CLI: configures
src/hepattn/experiments/clic/main.py - CLIC training → Particle-flow data: registers
src/hepattn/experiments/clic/main.py - CLIC training → Particle-flow module: registers
src/hepattn/experiments/clic/main.py - ColliderML training → Experiment CLI: configures
src/hepattn/experiments/colliderml/main.py - ColliderML training → ColliderML data: registers
src/hepattn/experiments/colliderml/main.py - ColliderML training → ColliderML model: registers
src/hepattn/experiments/colliderml/main.py - Pixel data → Tensor utilities: uses
src/hepattn/experiments/pixel/data.py - TIDE data → Tensor utilities: uses
src/hepattn/experiments/tide/data.py - CLD data → Dataset utilities: uses
src/hepattn/experiments/cld/data.py - CLD reconstructor → Model wrapper: uses
src/hepattn/experiments/cld/model.py - ColliderML model → Model wrapper: uses
src/hepattn/experiments/colliderml/model.py - Particle-flow module → Model wrapper: uses
src/hepattn/experiments/clic/lightning_module.py - Particle-flow data → Feature scaling: uses
src/hepattn/experiments/clic/pflow_data.py - Task and loss → Loss functions: uses
src/hepattn/models/task.py - Task and loss → Feature scaling: uses
src/hepattn/models/task.py - Transformer components → Efficient attention: uses
- Assignment Python API → Solver interface: calls solver interface
src/lap1015/src/main.cpp - Solver interface → Assignment solver: includes
src/lap1015/src/csrc/lap.h - Solver interface → Cost matrix: includes
src/lap1015/src/csrc/lap.h - TrackML filtering/tracking → Researcher: supports tracking
- ITk filtering/tracking → Researcher: supports filtering
- ATLAS muon tracking → Researcher: supports muon tracking