I committed changes in setting of the magnetic field
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Feb 2010 19:40:17 +0000 (19:40 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Feb 2010 19:40:17 +0000 (19:40 +0000)
commit55338a9ae2a4f858065f86ff7a43e30b229bf539
treea01745fd6db974dc1a39a8161fa8940e32a295d3
parentd4870c9ebc42817a3686dd2a2bc32747770694be
I committed changes in setting of the magnetic field
in geant4_vmc a few days ago.
While before there were hardwired the default Geant4
stepper, type of equation of motion and all tunable
parameters, user has now a possibility to change these
from a macro.
Also now the Geant4 field is created only if
user has set the field to gMC before calling gMC->Init().
In this way we avoid creating the field for applications
with no field.
This last change requires to swap the calls in AliSimulation:
  gAlice->GetMCApp()->Init();
  gMC->SetMagField(TGeoGlobalMagField::Instance()->GetField());
to:
  gMC->SetMagField(TGeoGlobalMagField::Instance()->GetField());
  gAlice->GetMCApp()->Init();

Ivana Hrivnacova <Ivana.Hrivnacova@cern.ch>
STEER/AliSimulation.cxx