We're trying to port an algorithm to calculate the electron beam helicity to halld_recon and are running into some issues. This port is making two changes: (1) going from JANA to JANA2; (2) running the algorithm in a factory instead of in a plugin.
I think the main problem is that the algorithm needs to keep some global state, in order to decode the delayed helicity signal. What would be the best way to accomplish this in a JANA2 factory?