CSV Schema
eic2ai reads one reconstructed event file, and when a file needs it the paired simulation file, and writes the 19 CSV files below (950 columns). Each box is one file. Click a box to list all its columns with their meaning and unit; Find a column searches every file.
The columns are those of eic2ai with the 2026-11 changes. Files converted before them lack prt_primary_*, clu_link_index, elec_epz_*, mc_vtx_* and the mc_lam_* / mc_elec_index columns of reco_dis, and their calo_clusters.clu_index holds what is now clu_link_index.
Added 2026-12, for files reconstructed with EICrecon 1.44 or later: reco_charged_lambda, the far-forward Λ → p π⁻ candidates. From the same version the far-forward Λ → n π⁰ collection is named ReconstructedLambdaCandidates; reco_ff_lambda and the ff_lam_* columns of reco_dis read it, and ReconstructedLambdas in older files.
one tracker hit, with the MC particle that made it
one calorimeter hit, labeled from the simulated cell
one cluster ↔ MC particle link; the rows of one cluster share (evt, clu_collection, clu_index)
evt◆clu_link_index◆clu_collection→prt_index→ mc_particles→prt_primary_index→ mc_particles→prt_primary_child_index→ mc_particlesone processed event
evtone event, with the generator's DIS kinematics
evtone simulated particle
one reconstructed particle
evt◆rec_indexone event, with reconstructed and true DIS kinematics
one far-forward Λ reconstructed as n γ γ
one far-forward Λ → p π⁻ candidate (a proton candidate paired with a π⁻ candidate)
evt◆lam_collection◆lam_indexone generated Λ with its decay products
lam_index→ mc_particles→prot_index→ mc_particles→pimin_index→ mc_particles→neut_index→ mc_particles→pizero_index→ mc_particles→gamone_index→ mc_particles→gamtwo_index→ mc_particlesone event, with the Λ → p π⁻ acceptance ledger
evtone event with a Λ → p π⁻, with per-detector hit flags
one hit of the Λ's proton
one hit of the Λ's π⁻
one event, with the first Λ and n π⁰ → n γ γ detection flags
lam_index→ mc_particles→prot_index→ mc_particles→pimin_index→ mc_particles→neut_index→ mc_particles→pizero_index→ mc_particles→gamone_index→ mc_particles→gamtwo_index→ mc_particlesone (proton candidate, pion candidate) pair
true_prot_index→ mc_particles→true_pimin_index→ mc_particles→pimin_index→ mc_particles→prot_index→ mc_particlesone proton or π⁻ candidate
one event, with the first Λ's truth summary
Reading the diagram
- A box is one file,
<stem>.<name>.csv.zip; the line under its name says what one row is. - ◆ marks the columns that identify one row of the file.
- → marks a column that holds the row number of another file. In
trk_hits,prt_index = 5means the particle in the row ofmc_particleswith the sameevtandprt_index = 5. Inmc_particles,prt_parent_indexpoints back intomc_particlesthe same way. evtis the entry number in the input file. It is in every file, so rows with equalevtcome from the same event.- A column of the Λ tables starts with a prefix that names the particle (
prot_the proton from the Λ,gamone_the first photon of its π⁰, …); an open box shows the prefixes as headings. - Units: GeV, GeV/c, mm, ns, rad, charge in e. An empty field means the value does not exist for that row.
CSV Example Event follows one real event through the files. Data Format describes how the files are named, how hits are matched to particles and how prt_origin separates signal from background.
Joining files
import pandas as pd
stem = "k_lambda_18x275_5000evt_0022"
hits = pd.read_csv(f"{stem}.trk_hits.csv.zip")
particles = pd.read_csv(f"{stem}.mc_particles.csv.zip")
# the full record of the particle behind each hit
hits = hits.merge(particles[["evt", "prt_index", "prt_sim_status", "prt_parent_index"]],
on=["evt", "prt_index"])
# the PDG code of that particle's parent: the same file joined to itself
parents = particles[["evt", "prt_index", "prt_pdg"]].rename(
columns={"prt_index": "prt_parent_index", "prt_pdg": "parent_pdg"})
hits = hits.merge(parents, on=["evt", "prt_parent_index"], how="left")Editing this page
The boxes, columns and arrows come from csv-schema.yaml next to this page: one line per column, name: description [unit]. The eic2ai repository holds this website as a submodule, and its CI fails when a column eic2ai writes is missing from that file, listed in another order, or has no description.
