but it cause delete traj twice after PostUserTrackingAction core dump,
so how can I remove a trajectory of a track or just remove all info. of a trajectory?
If you want to save (that is, make a copy of) the trajectory, you can certainly do that in your SD. But don’t delete the pointer to the original trajectory object, because that object is owned by the Geant4 memory managers.