Hello Donghee,
please try using
FairFilteredPrimaryGenerator* primGen = new FairFilteredPrimaryGenerator();
instead of
FairPrimaryGenerator* primGen = new FairPrimaryGenerator();
as explained here.
Kind regards,
Martin
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