: G4UniformMagField(G4ThreeVector())
{
//
+ GetGlobalFieldManager()->SetDetectorField(this);
GetGlobalFieldManager()->CreateChordFinder(this);
}
: G4UniformMagField(fieldVector)
{
//
+ GetGlobalFieldManager()->SetDetectorField(this);
GetGlobalFieldManager()->CreateChordFinder(this);
}
: G4UniformMagField(right)
{
//
+ GetGlobalFieldManager()->SetDetectorField(this);
GetGlobalFieldManager()->CreateChordFinder(this);
}
else {
// If the new field's value is Zero, then it is best to
// insure that it is not used for propagation.
- G4MagneticField* magField = NULL;
+ G4MagneticField* magField = 0;
fieldMgr->SetDetectorField(magField);
}
}