Warning, /snippets/JetsAndHF/jetReaderExamples/README.md is written in an unsupported language. File is not indexed.
0001 # Jet Branch Reader Example Macros
0002
0003 A collection of macros which demonstrate how to read the jet branches in the eicrecon output.
0004
0005 ## jetReader_TTreeReader.C
0006
0007 This macro demonstrates how to read the eicrecon output using the TTreeReaderArray functionality in Root. The macro:
0008
0009 - Shows how to access jet quantities from the ReconstructedChargedJets and GeneratedChargedJets branches
0010 - Shows how to access the constituents of jets from the two branches
0011 - Validates that the energy sum of the jet constituents equal the energy of the parent jet
0012 - Writes several basic histograms to a file
0013
0014 ### Prerequisites
0015
0016 - A version of Root that supports TTreeReader (can be local or inside eic-shell)
0017
0018 ### Usage
0019
0020 root -l -q jetReader_TTreeReader.C'("/path/to/eicrecon/output/file")'
0021
0022 Note: The specified path can be the xrootd streaming server. For example:
0023
0024 root://dtn-eic.jlab.org//work/eic2/EPIC/RECO/24.05.0/epic_craterlake/DIS/NC/18x275/minQ2=10/pythia8NCDIS_18x275_minQ2=10_beamEffects_xAngle=-0.025_hiDiv_5.2501.eicrecon.tree.edm4eic.root
0025
0026 Wildcards are also supported.