How rat-pac/ratpac2-tutorial works
Purpose and Published Artifact
This repository is a Carpentries Workbench Markdown lesson on RAT (RAT/GEANT-style simulation topics), organized as a sequential instructional curriculum rather than an application. Its primary deliverable is a static lesson website, with the lesson landing page at index.md and site-wide metadata in config.yaml.
Lesson Entry Points and Navigation
Learners enter through index.md, then follow numbered Markdown episodes under episodes/. Supporting navigation and reference material is separated from the core lesson: learners/reference.md, links.md, and profiles/learner-profiles.md. Instructor-specific delivery guidance is isolated in instructors/instructor-notes.md.
Curriculum Pipeline
The core architecture is the ordered episode sequence, which progressively moves from simulation setup and domain concepts to execution, validation, and analysis:
• Setup and RAT macro use: episodes/00-setup.md, episodes/01-rat-macro.md
• Simulation construction: episodes/02-generators.md, episodes/03-detector-geometry.md, episodes/04-photon-production.md
• Photon transport and detection: episodes/05-photon-propagation.md, episodes/06-photon-detection.md
• Processing, fitting, I/O, databases, testing, and analysis: episodes/07-processors.md, episodes/08-fitters.md, episodes/09-output.md, episodes/10-input.md, episodes/11-ratdb.md, episodes/13-rattests.md, episodes/14-analysis.md
This ordering is the primary control flow: each document is a lesson stage rather than executable production code.
Domain and Extension Boundaries
The lesson distinguishes general RAT workflow material from locally restricted or experiment-specific content. episodes/12-private-experiment.md is an explicit boundary for private-experiment material, while episodes/15-misc.md captures content outside the main progressive pipeline. The RAT database is treated as a dedicated conceptual subsystem in episodes/11-ratdb.md; input/output are separately modeled in episodes/09-output.md and episodes/10-input.md.
Build Runtime and Site Generation
The repository uses The Carpentries Workbench/Sandpaper publishing stack, evidenced by config.yaml, FIXME.Rproj, and the Sandpaper workflows. The material runtime is therefore an R-project-backed lesson build that transforms Markdown and configuration into a static site. Generated-site expectations and local site context are documented in site/README.md.
Automation and Deployment
GitHub Actions is the operational boundary for repository events and site lifecycle. The principal publishing workflow is .github/workflows/sandpaper-main.yaml; workflow maintenance and cache refresh are handled by .github/workflows/update-workflows.yaml and .github/workflows/update-cache.yaml. Pull-request automation is split into receive, preflight, comment, close-signal, and branch-removal workflows under .github/workflows/, providing CI feedback and repository hygiene rather than application runtime behavior.
Governance and Reuse
The repository is derived from a Workbench lesson template and is intended to be configured and published via GitHub Pages. Contribution, citation, conduct, and licensing boundaries are represented by CONTRIBUTING.md, CITATION.cff, CODE_OF_CONDUCT.md, and LICENSE.md; these govern the educational artifact rather than its lesson content pipeline.
Main entry points: sandpaper-main.yaml Sandpaper publish workflow · 11-ratdb.md RAT database · 00-setup.md Setup · 01-rat-macro.md RAT macros
Components 22
Lesson Curriculum
Ordered Markdown episodes form the instructional flow.
- Lesson landing page · Starting point for learners and supporting lesson navigation.
index.md - Setup
episodes/00-setup.md - RAT macros
episodes/01-rat-macro.md - Generators
episodes/02-generators.md - Detector geometry
episodes/03-detector-geometry.md - Photon production
episodes/04-photon-production.md - Photon propagation
episodes/05-photon-propagation.md - Photon detection
episodes/06-photon-detection.md - Processors
episodes/07-processors.md - Fitters
episodes/08-fitters.md - Output
episodes/09-output.md - Input
episodes/10-input.md - RAT database · Dedicated database conceptual subsystem.
episodes/11-ratdb.md - RAT tests
episodes/13-rattests.md - Analysis
episodes/14-analysis.md - Private experiment · Boundary for experiment-specific material.
episodes/12-private-experiment.md - Miscellaneous topics · Material outside the primary progression.
episodes/15-misc.md
Site Publishing
Workbench build and GitHub Actions publishing boundary.
- Lesson metadata · Site-wide lesson metadata and publishing configuration.
config.yaml - R build project · R-backed Workbench lesson build context.
FIXME.Rproj - Sandpaper publish workflow · Builds Markdown lesson material into the static published site.
.github/workflows/sandpaper-main.yaml - Generated site guidance · Documents local generated-site expectations.
site/README.md
Other components
- Contribution and licensing · Defines contribution, citation, conduct, and license boundaries.
CONTRIBUTING.md
Connections 20
- Lesson landing page → Setup: begins curriculum
- Setup → RAT macros: then
- RAT macros → Generators: then
- Generators → Detector geometry: then
- Detector geometry → Photon production: then
- Photon production → Photon propagation: then
- Photon propagation → Photon detection: then
- Photon detection → Processors: then
- Processors → Fitters: then
- Fitters → Output: then
- Output → Input: then
- Input → RAT database: then
- RAT database → RAT tests: then
- RAT tests → Analysis: then
- RAT database → Private experiment: restricted extension
- Analysis → Miscellaneous topics: supplementary topics
- Lesson metadata → Sandpaper publish workflow: configures
- R build project → Sandpaper publish workflow: build runtime
- Sandpaper publish workflow → Generated site guidance: publishes static site
- Contribution and licensing → Sandpaper publish workflow: governs repository delivery