names of enum constants should start with c_, thus primaryparticle should be c_primaryparticle. same holds for the other enum constants.
one could consider to use hex instead of decimal numbers to emphasize the bit pattern.
