00001
00002
00003 #include "VisExamples/VisG4ExN02/src/VisG4ExampleField.h"
00004 #include <G4FieldManager.hh>
00005 #include <G4TransportationManager.hh>
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 VisG4ExampleField::VisG4ExampleField (G4ThreeVector fieldVector )
00018 : G4UniformMagField (fieldVector)
00019 {
00020 G4FieldManager *fm = G4TransportationManager::GetTransportationManager ()
00021 ->GetFieldManager ();
00022 fm->SetDetectorField (this);
00023 fm->CreateChordFinder (this);
00024 }