eic / eic-smear

fast simulation tool originally developed by the BNL EIC task force
GNU General Public License v3.0
2 stars 11 forks source link

Add hepmc #3

Closed pinkenburg closed 4 years ago

pinkenburg commented 4 years ago

This PR adds the capability to read ASCII files in HepMC 2 format. It is still rough and we need to make sure all information is properly propagated to the eic-smear MC particles. It needs a HepMC3 installation to link against which is currently hardcoded in the cmake invocation (works after sourcing the sphenix setup script): ccmake -i -DCMAKE_INSTALL_PREFIX=/phenix/scratch/pinkenbu/tmpeic/install -DCMAKE_SHARED_LINKER_FLAGS='-L/opt/sphenix/core/HepMC3/lib64 -lHepMC3' -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_SKIP_RPATH=ON -DCMAKE_CXX_FLAGS='-std=c++11 -I/opt/sphenix/core/HepMC3/include' -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_VERBOSE_MAKEFILE=ON ../