Software Innovations in MPD: Advanced Modeling, Algorithmic Developments, and Ecosystem Modernization in MpdRoot

HNATIC Slavomir
on behalf of the
MPD Software Development & Computing Team

MPD Software Ecosystem: From Detector Data to Analysis

MPD software ecosystem from detector data to analysis
  • MPD software must support both online detector operation and offline physics-quality reconstruction.
  • Reconstruction depends on stable installation, releases, calibration, conditions, QA, storage, and production workflows.
  • The talk moves from the platform layer to the algorithmic layer and then to the production/operations layer.

Offline Software: Unified container environment

Offline software installation workflow
  • Automatic installation of the MPD offline environment.
  • Containerized workspace for users and developers.
  • Pre-configured tools, paths, modules, and runtime environment.
  • Same working space across personal machines and computing infrastructure.
  • Service Desk provides user support and issue tracking (mpdroot.jinr.ru/questions-answers-service-desk/).

Less local maintenance, easier upgrades, reproducible user support.

Offline Software: Versioned Runtime Stacks with NicaDist and CVMFS

Software distribution with NicaDist and CVMFS
  • NicaDist handles dependencies and modular builds.
  • Packages and modules are loaded from a centralized CVMFS server.
  • Each MpdRoot version has its own dependency tree.
  • Fixed release schedule: every 3 months.
  • Local container and cluster jobs load the same release stacks.
  • Central maintenance simplifies upgrades and production reproducibility.
One centrally maintained software stack, many execution environments.

Online QA Microservices: Event Processing and Monitoring Flow

Online QA microservices event processing and monitoring flow
  • Producer/Router layer distributes detector streams to processing workers.
  • TPC worker microservices run clustering and hit extraction.
  • Receiver aggregates processed fragments and builds online QA objects.
  • In-memory DB stores the latest online state for fast access by web services.
  • The architecture enables worker scaling, service restart recovery, and operational control during data taking.

Online Software: MPD Event Display and Clustering

MPD online event display Aleksandr Krylov
Cluster analysis
Event time
I/O data
  • Online event display & QA for fast detector/event inspection.
  • Dedicated web player.
  • Visualizes both the geometry and detector responses in real time.
  • multi-threaded clustering & hit extraction
  • up to 100x faster than standard clustering
  • up to 8x data compression

Timing Calibration: Laser Tracks and Trigger Latency

Laser tracks inside the TPC
Trigger latency calibration with muons

Laser tracks

  • Controlled reference trajectories inside the TPC.
  • Used to measure and validate electron drift velocity.
  • Convert measured drift time into correct longitudinal hit position.
  • Reveal systematic distortions along the drift direction.

Trigger latency

  • Calibrates the offset between collision time and detector readout.
  • Aligns the readout window with signal arrival time.
  • Prevents systematic timing shifts in reconstructed hits.
  • Establishes a common timing reference for clustering, tracking, and vertexing.

Digitizer Development and Sector Alignment

SAMPA digitizer pulse-shape characterization
TPC sector alignment residuals and corrections

SAMPA / Digitizer Development

  • Characterizes the electronics pulse shape: baseline, amplitude, peak time, and signal tail.
  • Converts simulated ionization and charge transport into realistic ADC samples.
  • Provides realistic input for clustering and tracking.

Sector Alignment

  • Identifies relative shifts and rotations between TPC sectors.
  • Corrects discontinuities in tracks crossing sector boundaries.
  • Uses residual patterns to diagnose geometry inconsistencies.
  • Provides real detector geometry for reconstruction.

MPD Event Reconstruction with ACTS

ATLAS Heritage & Global Support

Built upon extensive experience from the ATLAS experiment, specifically focusing on optimized Combinatorial Kalman Filter (CKF) implementations.

  • Modern High-Performance Design

    Written in modern C++ and heavily templated to maximize calculation speeds and compiler optimizations.

  • Modular & Scalable Architecture

    Supports a highly modular ecosystem and native multi-threading, essential for next-generation HEP data volumes.

  • Algorithmic Versatility

    Houses a vast library of reconstruction algorithms beyond CKF, backed by major HEP institutions worldwide.

ACTS Global Collaboration

ACTS: A Common Tracking Software - Future Standard for HEP Experiments

MPD Event Reconstruction with ACTS

Tracking Philosophy & Flow

INPUT DATA
Monte-Carlo Simulation or Real Experimental Data
ACTS CKF STRATEGY
Maximize efficiency, minimize fakes, handles many duplicates
CLEANUP & OPTIMIZATION
Identify best tracks, filter fakes/duplicates, improve quality
OUTPUT DATA
Validated track pool ready for PID & Physical Analysis

KEY FACTOR: EVENT MULTIPLICITY

Dilute (STCF)
STCF Tracking
Dense (MPD TPC)
MPD TPC Tracking

Dense Environment

In high-occupancy environments, combinatorial clutter is overwhelming. Multi-pass reconstruction reduces complexity by sequentially isolating and removing specific track populations.

Strategy for MPD Event Reconstruction:

Reconstruct Primary Tracks

  • PASS 1 HQ stiff tracks reaching TOF
  • PASS 2 Endcap stiff tracks (no TOF)
  • PASS 3 Low transverse momentum tracks

Secondaries

Decays, delta-electrons, material interactions, ...
Each successful pass removes associated hits from the global pool, simplifying the search space for the next pass.

ACTS Backend Architecture & Pass 1

Pass 1 Architecture
  • For Pass 1, seeding must start from outer TPC layers (padrows) to prevent combinatorial explosion.
  • CKF configuration requires a low branching coefficient (=2) and should discard tracks once they show excessive curving.
  • Ambiguity resolution utilizes a combination of filters not currently present in the standard ACTS codebase.
  • The stiff Pass 1 tracks provide ideal input for the primary vertex finder.
  • Tracks must be refitted towards outer layers prior to matching with TOF hits.
MPD ACTS Backend

MPD ACTS reconstruction backend architecture

Native Geometry & Ambiguity Resolution

Native Geometry

ACTS MPD Detector Geometry
  • TPC: 24 sectors & 53 padrows.
  • TOF: Added on top of the TPC.
  • Both detectors share a single continuous space in which the Combinatorial Kalman Filter (CKF) acts.

Key Advantage

70% of TOF matches are done automatically by the CKF with a 95% success rate.

Ambiguity Resolution

None of the ACTS Ambiguity Resolution algorithms work for MPD.

Duplicate ratio reduction through ambiguity-resolution filters Good-track retention through ambiguity-resolution filters
  • Track coverage filtering removes most duplicates while preserving the good-track population.
  • Shared TOF-hit filtering exploits the common TPC+TOF geometry to suppress problematic duplicate candidates.
  • Shared TPC-hit filtering performs the final duplicate cleanup in the dense tracking environment.
  • Split-track merging recovers fragmented candidates and leaves the final track pool with almost no clutter.

Primary Vertex Finding & Refitting

Vertexing

Vertexing Visualization
  • Pre-tracking Tracklets Vertex Z-coordinate estimator works well in simulations against the high-density experiment tuned AMVF (Adaptive Multi-Vertex Finder).
  • It relies on little data, since tracklets are only 2-point track estimates, and its performance might suffer in real noisy data.
  • It might be used as an addition to the FFD detector.

Refitting

Refitting Visualization
  • Displayed resolution of well-reconstructed, well-fit tracks.
  • A small fraction of tracks belongs to known pathological cases and will be improved later.

Available refit tools:

  • Global Chi2 Refit — global refitting, superior for stiff tracks.
  • KF refit — local refit, great for low momenta and scattering. Fallback if Chi2 refit fails.

Pass 1 Tracking Performance

Performance Plot 1
Performance Plot 2

UrQMD BiBi @9.2 GeV, pT > 500 MeV, particles reaching TOF.

Preferred scenario: less fakes and duplicates at expense of efficiency.

Resulting subsets of fakes and duplicates are too sparse (less than 2 fake/duplicate per 1000 particles) for meaningful spectral graphical representation.

Metric Mean Sigma
Efficiency 0.97756 0.00199
Fakes 0.00028 0.00016
Duplicates 0.00121 0.00041

TPC Hit Pool Demographics

UrQMD Simulation: BiBi collisions @ 9.2 GeV (Cumulative Statistics for 100 events)

Total Physical Hits in TPC: 2,117,793

Primaries: 593,652 (28.03%)
Non-primary origin: 1,524,141 (71.97%)

[ < 100 MeV/c ]

599,148 hits
(28.29% of pool)

Primaries13,865 (2.31%)
Non-primary origin585,283 (97.69%)

[ 100 - 500 MeV/c ]

957,439 hits
(45.21% of pool)

Primaries278,164 (29.05%)
Non-primary origin679,275 (70.95%)

[ > 500 MeV/c ]

561,206 hits
(26.50% of pool)

Primaries301,623 (53.75%)
Non-primary origin259,583 (46.25%)

Pass 1 TPC Hit Masking Performance Breakdown

Primary Hit Extraction

593,652
Primaries
178,765
Removed

Precision Chart

98%
Rightful: 98%
Wrongful: 2%
Hit CategoryRaw CountRelative Context
Total Primary Hits Available593,652100% of Target Primary Pool
Rightfully Removed178,76530% of Primaries | 98% of Masked
Wrongfully Removed (Stolen)3,599less than 0.2% of Global TPC Pool

Origin of Outliers & Further Precision Enhancements

Wrongfully removed hits are identified by the Combinatorial Kalman Filter (CKF) as Outliers due to high χ2 values. Energy-loss information helps distinguish harmless geometrical scattering from genuinely ambiguous ionization effects.

Energy-loss distribution and outlier interpretation

Geometrical Scattering

Local ionization losses remain statistically compatible with the mean track ionization.

  • Large spatial residual, but compatible dE/dx.
  • The hit is still likely to belong to the track.
  • Resolution: remove with high confidence.

Ionization Deviation

Local ionization loss differs significantly from the mean track ionization.

  • Overlap: another particle passes nearby.
  • Delta-electron emission: secondary ionization shifts the hit and distorts dE/dx.
  • Main source of Wrongfully Removed / Stolen hits.

PID ML

PID ML efficiency versus transverse momentum
Efficiency vs pT
PID ML contamination versus transverse momentum
Contamination vs pT
Distribution of predicted PID classes
Predicted PID distribution
Distribution of true PID classes
True PID distribution

PIdML Interface in MpdRoot

The core of PIdML is an integration interface that separates model training from model usage inside the experiment software. Any classifier exported to ONNX can be connected through the same inference workflow, regardless of the training algorithm.

  • Provides a unified API for ML-based particle identification.
  • Returns both the most probable particle type and the full class-probability vector.
  • Allows models to be replaced or updated without changing MpdRoot analysis code.

Expected Physics Performance Range

The detector response is expected to follow the physical PID limits assumed in the technical design reports. Therefore, the observed ML trends should be interpreted relative to these momentum thresholds.

  • Pions (π) and kaons (K): clean separation is guaranteed only up to pT < 1.5 GeV/c; above this region, π/K contamination rises rapidly.
  • Protons (p): because of their larger mass, the timing signature remains distinct longer, with robust separation expected up to pT < 3 GeV/c.

Near Future Roadmap: Multi-Pass Track Reconstruction

Finalizing Primary Particles

Our immediate focus is completing the reconstruction for primary particles across three distinct topological passes. These require customized variations and combinations of reconstruction algorithms, including seeding, trackfinding with CKF, ambiguity filters, and refitting.

  • PASS 1: HQ stiff tracks reaching TOF (Ready / Near Completion)
  • PASS 2: Endcap tracks not reaching TOF
  • PASS 3: Low transverse momentum (pT) tracks

Subsequent Phase

Once primary particle reconstruction is validated, analytical focus will shift toward modeling and studying secondary effects.

Track Reconstruction Passes

Mass Production: Requests, Validation, Execution, QA

Mass production workflow visualization
  • Formal request defines the campaign scope and configuration.
  • Software release, dependency stack, geometry, calibration tag, and steering parameters are locked before launch.
  • Validation sample is processed before full-scale execution.
  • Campaign monitoring covers job status, failures, resources, and output registration.
  • QA approval decides whether the dataset is accepted.

Full traceability across the production chain.

Distributed Computing and Supercomputing for MPD

Distributed Computing and Supercomputing

Infrastructure and Scale

  • • DIRAC-based orchestration of distributed workflows
  • • Tier, cluster, cloud, and Govorun supercomputing resources
  • • Shared storage through dCache, EOS, and Lustre
  • • Common platform for simulation, reconstruction, QA, and production
  • • Campaigns cover both generator and reconstructed datasets across multiple beam energies and event generators
2 PB
data stored
40
mass productions completed

MPD Online Webserver: Central Hub for Operations and Production

MPD Online Webserver interface
  • Central entry point for monitoring and detector status.
  • Access to online event display.
  • Access to online QA histograms.
  • Links to experiment databases.
  • Production requests and production tracking.
  • Shift records and logbook.
  • Run status and detector-status information.
  • Calibration/alignment/status information.
  • Bridge between shifters, detector experts, software experts, production managers, and offline analysts.

MPD Software Readiness: Current Status and Near Future

Area Current Status Near Future
Offline software Containerized environment, automatic installation, Service Desk support Broader adoption, smoother upgrades, better documentation
Releases and dependencies NicaDist dependency builds, CVMFS runtime modules, fixed 3-month releases Validated production stacks tied to campaign configuration
Online Event Display & Microservices Fast online event display with dedicated web player; microservice-based online processing chain Tighter integration with shift workflows, monitoring, and online–offline QA coherence
Clustering & Hit Extraction Super-fast multithreaded online clustering with approximately 8× data compression Integration of the signal deconvolution MLEM procedure for hit extraction
Calibration and databases Alignment, ECAL, ECS, LogBook, shift/run records, MC dataset databases Full conditions workflow and stronger provenance links
ACTS reconstruction Pass 1 near-ready; strong performance; hit masking validated Pass 2, Pass 3, secondary reconstruction, production validation
PID ML ONNX-based PIdML interface implemented in MpdRoot Validation and model updates on realistic reconstructed samples
Mass production, computing, and storage Request-based production; DIRAC/Tier/cluster/Govorun resources; ~40 productions completed; ~2 PB stored More automation, monitoring, recovery, QA approval, cataloging, retention, and dataset traceability
Online webserver hub Central access point linking monitoring, databases, production requests, shift records, event display, and QA Deeper integration into a single operational control surface

MPD Software Development & Computing Team

Rogachevsky O.Coordinator
Krylov V.Clustering, Microservices
Krylov A.MPD Event Display
Bychkov A.Detector Simulation
Kuzmin V.Detector Alignment
Moshkin A., Pelevanyuk I.Distributed Computing
Alexandrov E., Alexandrov I.Databases
Kozhevnikova M.Website
Papoyan V.PID ML
Busa J.Build System
Hnatic S.Architecture, Tracking
Acknowledgements to VBLHEP JINR, MLIT JINR and ACTS CERN
website: mpdroot.jinr.ru