# aliceo2group/aliceo2 architecture

> Architecture diagram of the GitHub repository aliceo2group/aliceo2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aliceo2group/aliceo2
- Repository: https://github.com/aliceo2group/aliceo2
- Video tour (about a minute): https://gitdiagram.com/aliceo2group/aliceo2/video

## Overview

ALICE O2 is the software stack for simulation, reconstruction, calibration, and visualization for the ALICE experiment. The principal workflow is detector or simulation data entering framework-managed processing, being represented in common and detector-specific formats, and consumed by reconstruction or calibration algorithms; CCDB provides conditions access. The README establishes these product capabilities, but sampled source only exposes selected relationships. Edges without direct source evidence are omitted, so this is a capability-level map rather than a complete runtime sequence.

Main entry points: [`Framework`](https://github.com/aliceo2group/aliceo2/tree/dev/Framework) (Processing framework), [`Detectors`](https://github.com/aliceo2group/aliceo2/tree/dev/Detectors) (Detector processing), [`EventVisualisation/View/include/EventVisualisationView/EventManager.h`](https://github.com/aliceo2group/aliceo2/blob/dev/EventVisualisation/View/include/EventVisualisationView/EventManager.h) (Event visualization), [`Framework/Core/include/Framework/AnalysisManagers.h`](https://github.com/aliceo2group/aliceo2/blob/dev/Framework/Core/include/Framework/AnalysisManagers.h) (Analysis managers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_framework["Framework and data"]
  node_workflow["Processing framework"]
  node_analysis["Analysis managers<br/>[AnalysisManagers.h]"]
  node_dataformats["Common data formats"]
  node_detformats["Detector data formats"]
end

subgraph group_detectors["Detector processing"]
  node_simulation["Simulation steering"]
  node_detectorcode["Detector processing"]
  node_globaltracking["Global tracking"]
  node_alignment["Detector alignment<br/>[Controller.h]"]
end

subgraph group_services["Conditions and geometry"]
  node_geometry["Geometry management<br/>[GeometryManager.h]"]
  node_ccdbmanager["CCDB access manager<br/>[BasicCCDBManager.h]"]
  node_ccdbapi["CCDB API<br/>[CcdbApi.h]"]
end

subgraph group_products["Analysis and display"]
  node_calibration["Calibration"]
  node_visualization["Event visualization<br/>[EventManager.h]"]
  node_eventsource["Visualization data source"]
  node_eventui["Visualization controls"]
end

node_user(("O2 users"))
node_result(("Reconstructed and displayed results"))

node_user -.->|"runs processing"| node_workflow
node_workflow -.->|"supports simulation"| node_simulation
node_workflow -.->|"supports reconstruction"| node_detectorcode
node_detectorcode -.->|"uses detector formats"| node_detformats
node_detformats -.->|"shares common formats"| node_dataformats
node_detectorcode -.->|"includes global algorithms"| node_globaltracking
node_detectorcode -.->|"supports calibration"| node_calibration
node_workflow -.->|"provides analysis APIs"| node_analysis
node_alignment -->|"uses geometry"| node_geometry
node_ccdbmanager -->|"retrieves conditions"| node_ccdbapi
node_visualization -->|"uses CCDB API"| node_ccdbapi
node_visualization -->|"provides data source"| node_eventsource
node_eventui -->|"controls events"| node_visualization
node_visualization -.->|"displays events"| node_result
node_analysis -.->|"produces analysis"| node_result

click node_workflow "https://github.com/aliceo2group/aliceo2/tree/dev/Framework"
click node_analysis "https://github.com/aliceo2group/aliceo2/blob/dev/Framework/Core/include/Framework/AnalysisManagers.h"
click node_dataformats "https://github.com/aliceo2group/aliceo2/tree/dev/DataFormats"
click node_detformats "https://github.com/aliceo2group/aliceo2/tree/dev/DataFormats/Detectors"
click node_simulation "https://github.com/aliceo2group/aliceo2/blob/dev/Steer/include/Steer/HitProcessingManager.h"
click node_detectorcode "https://github.com/aliceo2group/aliceo2/tree/dev/Detectors"
click node_globaltracking "https://github.com/aliceo2group/aliceo2/tree/dev/Detectors/GlobalTrackingWorkflow"
click node_alignment "https://github.com/aliceo2group/aliceo2/blob/dev/Detectors/Align/include/Align/Controller.h"
click node_geometry "https://github.com/aliceo2group/aliceo2/blob/dev/Detectors/Base/include/DetectorsBase/GeometryManager.h"
click node_ccdbmanager "https://github.com/aliceo2group/aliceo2/blob/dev/CCDB/include/CCDB/BasicCCDBManager.h"
click node_ccdbapi "https://github.com/aliceo2group/aliceo2/blob/dev/CCDB/include/CCDB/CcdbApi.h"
click node_calibration "https://github.com/aliceo2group/aliceo2/tree/dev/Detectors/Calibration"
click node_visualization "https://github.com/aliceo2group/aliceo2/blob/dev/EventVisualisation/View/include/EventVisualisationView/EventManager.h"
click node_eventsource "https://github.com/aliceo2group/aliceo2/tree/dev/EventVisualisation"
click node_eventui "https://github.com/aliceo2group/aliceo2/blob/dev/EventVisualisation/View/include/EventVisualisationView/EventManagerFrame.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_workflow,node_analysis,node_dataformats,node_detformats,node_user toneBlue
class node_simulation,node_detectorcode,node_globaltracking,node_alignment toneAmber
class node_geometry,node_ccdbmanager,node_ccdbapi toneMint
class node_calibration,node_visualization,node_eventsource,node_eventui toneRose
class node_result toneIndigo
```

## Components

### Framework and data

- [Processing framework](https://github.com/aliceo2group/aliceo2/tree/dev/Framework): `Framework`
- [Analysis managers](https://github.com/aliceo2group/aliceo2/blob/dev/Framework/Core/include/Framework/AnalysisManagers.h): `Framework/Core/include/Framework/AnalysisManagers.h`
- [Common data formats](https://github.com/aliceo2group/aliceo2/tree/dev/DataFormats): `DataFormats`
- [Detector data formats](https://github.com/aliceo2group/aliceo2/tree/dev/DataFormats/Detectors): `DataFormats/Detectors`

### Detector processing

- [Simulation steering](https://github.com/aliceo2group/aliceo2/blob/dev/Steer/include/Steer/HitProcessingManager.h): `Steer/include/Steer/HitProcessingManager.h`
- [Detector processing](https://github.com/aliceo2group/aliceo2/tree/dev/Detectors): `Detectors`
- [Global tracking](https://github.com/aliceo2group/aliceo2/tree/dev/Detectors/GlobalTrackingWorkflow): `Detectors/GlobalTrackingWorkflow`
- [Detector alignment](https://github.com/aliceo2group/aliceo2/blob/dev/Detectors/Align/include/Align/Controller.h): `Detectors/Align/include/Align/Controller.h`

### Conditions and geometry

- [Geometry management](https://github.com/aliceo2group/aliceo2/blob/dev/Detectors/Base/include/DetectorsBase/GeometryManager.h): `Detectors/Base/include/DetectorsBase/GeometryManager.h`
- [CCDB access manager](https://github.com/aliceo2group/aliceo2/blob/dev/CCDB/include/CCDB/BasicCCDBManager.h): `CCDB/include/CCDB/BasicCCDBManager.h`
- [CCDB API](https://github.com/aliceo2group/aliceo2/blob/dev/CCDB/include/CCDB/CcdbApi.h): `CCDB/include/CCDB/CcdbApi.h`

### Analysis and display

- [Calibration](https://github.com/aliceo2group/aliceo2/tree/dev/Detectors/Calibration): `Detectors/Calibration`
- [Event visualization](https://github.com/aliceo2group/aliceo2/blob/dev/EventVisualisation/View/include/EventVisualisationView/EventManager.h): `EventVisualisation/View/include/EventVisualisationView/EventManager.h`
- [Visualization data source](https://github.com/aliceo2group/aliceo2/tree/dev/EventVisualisation): `EventVisualisation`
- [Visualization controls](https://github.com/aliceo2group/aliceo2/blob/dev/EventVisualisation/View/include/EventVisualisationView/EventManagerFrame.h): `EventVisualisation/View/include/EventVisualisationView/EventManagerFrame.h`

### Other components

- **O2 users**
- **Reconstructed and displayed results**

## Connections

- O2 users → Processing framework: runs processing (evidence: `README.md`)
- Processing framework → Simulation steering: supports simulation (evidence: `README.md`)
- Processing framework → Detector processing: supports reconstruction (evidence: `README.md`)
- Detector processing → Detector data formats: uses detector formats (evidence: `README.md`)
- Detector data formats → Common data formats: shares common formats (evidence: `README.md`)
- Detector processing → Global tracking: includes global algorithms (evidence: `README.md`)
- Detector processing → Calibration: supports calibration (evidence: `README.md`)
- Processing framework → Analysis managers: provides analysis APIs (evidence: `README.md`)
- Detector alignment → Geometry management: uses geometry (evidence: `Detectors/Align/include/Align/Controller.h`)
- CCDB access manager → CCDB API: retrieves conditions (evidence: `CCDB/include/CCDB/BasicCCDBManager.h`)
- Event visualization → CCDB API: uses CCDB API (evidence: `EventVisualisation/View/include/EventVisualisationView/EventManager.h`)
- Event visualization → Visualization data source: provides data source (evidence: `EventVisualisation/View/include/EventVisualisationView/EventManager.h`)
- Visualization controls → Event visualization: controls events (evidence: `EventVisualisation/View/include/EventVisualisationView/EventManagerFrame.h`)
- Event visualization → Reconstructed and displayed results: displays events (evidence: `README.md`)
- Analysis managers → Reconstructed and displayed results: produces analysis (evidence: `README.md`)
