Warning, /snippets/RootExamples/UsingAlgorithmsAndPodioInAnalysis/README.md is written in an unsupported language. File is not indexed.
0001 # Using PODIO and Running EICrecon Algorithms in Analysis
0002
0003 A short(ish) ROOT macro illustrating two points:
0004
0005 a. How to use PODIO collections in a standalone ROOT macro,
0006 especially illustrating how to create new collections and
0007 save them to an output tree using the `podio::ROOTWriter`
0008 b. How to modify and use EICrecon algorithms in a
0009 standalone ROOT Macro.
0010
0011 Reads in EICrecon output (`*.podio.root`, `*.tree.edm4eic.root`,
0012 etc.). Code is **NOT** optimized in any way, so don't expect
0013 great performance!
0014
0015
0016 ## Dependencies
0017
0018 Needs `PODIO`, `edm4hep`, `edm4eic`, and `EICrecon` to be compiled.
0019 If you're running in the eic-shell, then the commands below will
0020 run it out of the box.
0021
0022
0023 ## Usage
0024
0025 User options can be set in the `Options` struct defined before the
0026 macro body. And after setting desired parameters at the top of the
0027 macro, it can be run with:
0028
0029 ```
0030 source setup.sh
0031 root -b -q RunAlgorithmsOutsideOfReco.cxx
0032 ```
0033
0034 **Note:** `setup.sh` only needs to be sourced once!