UserTrackInformation

Hi,
What are the main differences between using G4VUserTrackInformation.hh and G4VAuxiliaryTrackInformation.hh ?
Thanks.
Bernardo Tomé

See grep Info $G4INCLUDE/G4Track.hh:

There can be only one UserTrackInformation object attached to a given track. There can be multiple AuxiliaryTrackInformation objects, which are registered and retrieved via an arbitrary index key.

I also see an interface to remove (not delete) AuxiliaryTrackInfo via a string name, but I don’t see any functionality to map a string to an index, nor to register by string, so I have no idea what calling that function might do.

Hi,
Thanks for the prompt reply. I think I can grasp the idea.
By reading the description in the header files, the functionality of both seemed very similar…