Back to home page

EIC code displayed by LXR

 
 

    


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 - Shows how to find the truth particle associated with a particular jet constituent
0013   - Use to identify jets containing electrons
0014   - Study PID performance
0015 - Writes several basic histograms to a file
0016 
0017 ### Prerequisites
0018 
0019 - A version of Root that supports TTreeReader (can be local or inside eic-shell)
0020 
0021 ### Usage
0022 
0023 root -l -q jetReader_TTreeReader.C'("/path/to/eicrecon/output/file")'
0024 
0025 Note: The specified path can be the xrootd streaming server. For example:
0026 
0027 root://dtn-eic.jlab.org//volatile/eic/EPIC/RECO/25.05.0/epic_craterlake/DIS/NC/18x275/minQ2=10/pythia8NCDIS_18x275_minQ2=10_beamEffects_xAngle=-0.025_hiDiv_5.1950.eicrecon.tree.edm4eic.root
0028 
0029 Wildcards are also supported.