Phoenix event display
The phoenix directory contains the ingredients for displaying COCOA
events using the HSF Phoenix
software.
eventsubdirectory: scripts for dumping COCOA output ROOT files into the suitable json format.packagessubdirectory: the changed files with respect to the Phoenix repository, with directory structure preserved. Note that this builds the COCOA geometry.
Steps to get it fired up:
clone and follow the README on the Phoenix repository to get it set up locally.
replace the cloned files with the ones in the
COCOA/phoenix/packages. Note that this has only been tested at a specific snapshot in the Phoenix code history.(this step can be skipped in favor of using the default event files provided). Use the
dump_phoenix_eventdata.pyscript to parse a COCOA output file, for example:python phoenix/event/dump_hdf5.py -i path/to/input_COCOA_file.root -o path/to/output_event_file.json -n 1
Copy the json event file to
packages/phoenix-ng/projects/phoenix-app/src/assets/files/cocoa/and edit theeventFilefield inpackages/phoenix-ng/projects/phoenix-app/src/app/sections/cocoa/cocoa.component.tsappropriately.Compile phoenix with yarn and open in browser window!