I have a magnetic fieldmap loaded using
How can I export it into a root file?
Thank you in advance!
TGeoGlobalMagField *MagF = new TGeoGlobalMagField();
This should work.
If you already have a root file, just use:
After opening the file with:
TFile *f = TFile::Open(“ThisFile.root”,“UPDATE”);
Thanks a lot!