New magnetic field switch class
Loading
Addition of a new class for tailored magnetic field switch-off in ATLAS simulation in order to save CPU power. This switch is operating in the area inside the EM barrel calorimeter region, where the magnetic field is low anyways, and for all particles except of muons.
The modifications include:
SwitchingFieldManager
, inheriting from G4FieldManager
.DetectorFieldManagerTool.cxx
to use the alternative G4FieldManager
when requested. Here there was a previous attempt to achieve the same effect by the TightMuonElseNoFieldManager
and it has been commented out.DetectorFieldManagerTool
to be able to attach a G4FieldManager
to a G4VPhysicalVolume
as well, instead of G4LogicalVolume
only as it was before.G4FieldConfig.py
to attach the SwitchingFieldManager
to the LArBarrel
physical volume. Μodifications have not been applied in G4FieldConfigNew.py
. (maybe we should?)The switch can be enabled with the pre-include:
simFlags.MuonFieldOnlyInCalo=True;simFlags.MuonFieldOnlyInCalo()
. Without this flag the developments should not affect the simulation jobs.
The idea and the development progress is documented in ATLASSIM-4749.