Where does ownership of a created
G4Field* object end up? I notice that the
G4FieldManager takes a non-const pointer as argument, both to the constructor and to the Set/Propose/Change functions. This might suggest that ownership is being transferred to the receiving object, but in the source code, the field manager destructor does not delete the field.
Is ownership assumed to be retained by the user code which created the field?