WARNING: It seems that delete fp in PrimaryGeneratorAction will cause seg fault, so I just commented it. NEED FURTHER INVESTIGATION