Problem 116

Summary: Even afterMagnetic field in example N02 is not "seen" by particles
Product: Examples/Basic and Novice Reporter: Ivana.Hrivnacova
Component: N02Assignee: Vladimir.Grichine
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 1.1   
Hardware: PC   
OS: Linux   

Description Ivana.Hrivnacova 2000-06-28 09:29:50 CEST
Even after setting non-zero value of mag field it is ignored in particles
tracking in example N02.

After adding the call to SetDetectorField(this)
to the field manager in the ExN02MagneticField constructor,
it works ok:

ExN02MagneticField::ExN02MagneticField()
  : G4UniformMagField(G4ThreeVector())
{
  // need to be added
  GetGlobalFieldManager()->SetDetectorField(this);
  GetGlobalFieldManager()->CreateChordFinder(this);
}

ExN02MagneticField::ExN02MagneticField(G4ThreeVector fieldVector)
  : G4UniformMagField(fieldVector)
{
  // need to be added
  GetGlobalFieldManager()->SetDetectorField(this);
  GetGlobalFieldManager()->CreateChordFinder(this);
}
Comment 1 Vladimir.Grichine 2000-07-20 10:01:59 CEST
Will verify if this problem is still outstanding on Geant4.2.0.
Comment 2 Gabriele Cosmo 2000-11-10 02:31:59 CET
The code is now fixed and will be included in December public release 3.0.
Thanks for reporting the problem.