50 : StepLengthAction(lengthAct)
51 , MagFieldAction(magAct)
52 , EnergyLossAction(elossAct)
55 myDir->SetGuidance(
"GEANT4e control commands");
58 myDirLimits->SetGuidance(
"GEANT4e commands to limit the step");
62 StepLengthLimitCmd->SetGuidance(
"Limit the length of an step");
63 StepLengthLimitCmd->SetDefaultUnit(
"mm");
68 MagFieldLimitCmd->SetGuidance(
"Limit the length of an step");
73 EnergyLossCmd->SetGuidance(
"Limit the length of an step");
91 if(command == StepLengthLimitCmd)
96 G4cout <<
" G4ErrorMessenger::StepLengthAction SetStepLimit "
97 << StepLengthLimitCmd->GetNewDoubleValue(newValue) <<
G4endl;
100 StepLengthAction->SetStepLimit(
101 StepLengthLimitCmd->GetNewDoubleValue(newValue));
103 else if(command == MagFieldLimitCmd)
108 G4cout <<
" G4ErrorMessenger::MagFieldAction SetStepLimit "
109 << MagFieldLimitCmd->GetNewDoubleValue(newValue) <<
G4endl;
112 MagFieldAction->SetStepLimit(MagFieldLimitCmd->GetNewDoubleValue(newValue));
114 else if(command == EnergyLossCmd)
119 G4cout <<
" G4ErrorMessenger::EnergyLossAction SetStepLimit "
120 << EnergyLossCmd->GetNewDoubleValue(newValue) <<
G4endl;
123 EnergyLossAction->SetStepLimit(EnergyLossCmd->GetNewDoubleValue(newValue));