please try using
FairFilteredPrimaryGenerator* primGen = new FairFilteredPrimaryGenerator();
FairPrimaryGenerator* primGen = new FairPrimaryGenerator();
as explained here.
PS: I had to move all the event filter related code of FairPrimaryGenerator to its own class which I called FairFilteredPrimaryGenerator.
FairFilteredPrimaryGenerator can be used with and without event filtering as it just adds code to FairPrimaryGenerator.
[Updated on: Sat, 08 November 2014 20:44]
Report message to a moderator