Problem 116 - Even afterMagnetic field in example N02 is not "seen" by particles
Summary: Even afterMagnetic field in example N02 is not "seen" by particles
Status: RESOLVED FIXED
Alias: None
Product: Examples/Basic and Novice
Classification: Unclassified
Component: N02 (show other problems)
Version: 1.1
Hardware: PC Linux
: P2 normal
Assignee: Vladimir.Grichine
URL:
Depends on:
Blocks:
 
Reported: 2000-06-28 09:29 CEST by Ivana.Hrivnacova
Modified: 2007-04-08 18:46 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.