36 #include <Geant4/G4ApplicationState.hh>
37 #include <Geant4/G4String.hh>
38 #include <Geant4/G4UIdirectory.hh>
39 #include <Geant4/G4UIcmdWithAString.hh>
40 #include <Geant4/G4UIcmdWithAnInteger.hh>
41 #include <Geant4/G4UIcmdWithADoubleAndUnit.hh>
42 #include <Geant4/G4UIcmdWithoutParameter.hh>
49 :fEFieldSetup(pEMfield)
52 G4TBdetDir->SetGuidance(
"G4TB field tracking control.");
54 StepperCmd =
new G4UIcmdWithAnInteger(
"/field/setStepperType",
this);
55 StepperCmd->SetGuidance(
"Select stepper type for electric field");
58 StepperCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
61 UpdateCmd =
new G4UIcmdWithoutParameter(
"/field/update",
this);
62 UpdateCmd->SetGuidance(
"Update calorimeter geometry.");
63 UpdateCmd->SetGuidance(
"This command MUST be applied before \"beamOn\" ");
64 UpdateCmd->SetGuidance(
"if you changed geometrical value(s).");
65 UpdateCmd->AvailableForStates(G4State_Idle);
67 ElFieldCmd =
new G4UIcmdWithADoubleAndUnit(
"/field/setFieldZ",
this);
68 ElFieldCmd->SetGuidance(
"Define uniform Electric field.");
69 ElFieldCmd->SetGuidance(
"Electric field will be in Z direction.");
70 ElFieldCmd->SetGuidance(
"Value of Electric field has to be given in volt/m");
71 ElFieldCmd->SetParameterName(
"Ez",
false,
false);
75 MinStepCmd =
new G4UIcmdWithADoubleAndUnit(
"/field/setMinStep",
this);
76 MinStepCmd->SetGuidance(
"Define minimal step");
77 MinStepCmd->SetParameterName(
"min step",
false,
false);
81 AbsMaterCmd =
new G4UIcmdWithAString(
"/field/setAbsMat",
this);
82 AbsMaterCmd->SetGuidance(
"Select Material of the Absorber.");