I’ve been working on creating a non-uniform magnetic field in GEANT. It has constant direction but the magnitude changes. I’ve mostly been following the tutorial in the user guide and looking at the code in example B2 and B5. The code I have written to handle the B-Field is
Jovian_B_field = new JovianField(); G4FieldManager* globalFieldMgr = G4TransportationManager::GetTransportationManager() -> GetFieldManager(); globalFieldMgr -> SetDetectorField(Jovian_B_field); globalFieldMgr -> CreateChordFinder(Jovian_B_field);
And when this runs I get the error:
member access into incomplete type 'G4FieldManager'
I assume this is something to do with the way I’ve written my custom B-Field but I am not sure how to do it properly since none of the examples quite illustrate what I’m looking for. In particular, I’m pretty confident that I’ve built my constructor incorrectly so any guidance there would be appreciated. Ive attached the source and header files for both my detector construction files and my field definition files.
Thank you to anyone who can provide insight, I am at a major loss