Warning, /snippets/Calorimetery/ReadAssociationsAndContributions/README.md is written in an unsupported language. File is not indexed.
0001 # Read Associations of and Contributions to a Reconstructed Cluster
0002
0003 A short(ish) ROOT macro illustrating three points:
0004
0005 - How to use the MC Particle-Cluster associations,
0006 - How to access the contributions (and the particles which
0007 made the contribution) to a given cluster, and
0008 - How to use the ROOT-based PODIO Frame Reader.
0009
0010 Reads in EICrecon output (`*.podio.root`, `*.tree.edm4eic.root`). User options can be
0011 set in the `Options` struct defined before the macro body.
0012
0013 **NOTE:** use caution! You need to have the CaloHitContributions saved to the
0014 EICrecon output, i.e. there should be branches labeled `*HitsContributions`
0015 in `events`.
0016
0017
0018 ## Dependencies
0019
0020 Needs `PODIO`, `edm4hep`, and `edm4eic` to be compiled. If you're running
0021 in the eic-shell, then the commands below will run it out of the box.
0022
0023
0024 ## Usage
0025
0026 After setting desired parameters at the top of the macro:
0027
0028 ```
0029 root -b -q MatchProjectionsAndClusters.cxx++
0030 ```