Skip to content

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.

◆ identifies a row · → row number in another file
Hits and clusters

one tracker hit, with the MC particle that made it

→prt_index→ mc_particles→prt_primary_index→ mc_particles→prt_primary_child_index→ mc_particles

one calorimeter hit, labeled from the simulated cell

→prt_index→ mc_particles→prt_primary_index→ mc_particles→prt_primary_child_index→ mc_particles

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_particles
Events and MC truth

one processed event

◆evt

one event, with the generator's DIS kinematics

◆evt

one simulated particle

◆evt◆prt_index→prt_parent_index→ mc_particles
Reconstruction

one reconstructed particle

◆evt◆rec_index

one event, with reconstructed and true DIS kinematics

◆evt→mc_elec_index→ mc_particles→mc_lam_index→ mc_particles→elec_epz_index→ reco_particles

one far-forward Λ reconstructed as n γ γ

one far-forward Λ → p π⁻ candidate (a proton candidate paired with a π⁻ candidate)

◆evt◆lam_collection◆lam_index
Λ analysis tables

one 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_particles

one event, with the Λ → p π⁻ acceptance ledger

◆evt

one event with a Λ → p π⁻, with per-detector hit flags

→lam_index→ mc_particles→prot_index→ mc_particles→pimin_index→ mc_particles

one hit of the Λ's proton

→lam_index→ mc_particles

one hit of the Λ's π⁻

→lam_index→ mc_particles

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_particles

one (proton candidate, pion candidate) pair

→true_prot_index→ mc_particles→true_pimin_index→ mc_particles→pimin_index→ mc_particles→prot_index→ mc_particles

one proton or π⁻ candidate

→mc_index→ mc_particles

one event, with the first Λ's truth summary

◆evt→prot_index→ mc_particles→pimin_index→ mc_particles

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 = 5 means the particle in the row of mc_particles with the same evt and prt_index = 5. In mc_particles, prt_parent_index points back into mc_particles the same way.
  • evt is the entry number in the input file. It is in every file, so rows with equal evt come 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 ​

python
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.

Released under the MIT License.