Commit 20aa83d
committed
Introduce a class to convert AOD events to HepMC
The class `o2::eventgen::AODToHepMC` converts events stored in AOD
tables to `HepMC3::GenEvent` objects. The objects are kept in-memory
so that clients (e.g., a future `o2::analysis::RivetWrapper` or similar)
can pick up that event structure and process it.
The converter class will convert `o2::aod::McCollisions` and
`o2::aod::McParticles` information, as well as auxiliary information in
`o2::aod::HepMCXSections`, `o2::aod::HepMC::PdfInfos`, and
`o2::aod::HeavIons`.
The built `HepMC3::GenEvent` data structures can optionally be stored on
disk in HepMC3 ASCII files.
The application `o2-aod-mc-to-hepmc` uses this converter class to
convert AOD files to HepMC files.
Note that the converter _only_ depends on
`Framework/AnalysisDataFormats.h` and not any other AOD information.
Compilation of `Generators/src/AODToHepMC.cxx` is contingent on HepMC3
being found at configure time.
The code is heavily documented and commented.1 parent 4040aaf commit 20aa83d
File tree
5 files changed
+1456
-0
lines changed- Generators
- include/Generators
- src
- run
5 files changed
+1456
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
0 commit comments