34 TargetDir =
new G4UIdirectory(
"/Target/");
35 TargetDir -> SetGuidance(
"target control.");
37 TargCmd =
new G4UIcmdWithAString(
"/Target/SetTarget",
this);
38 TargCmd->SetGuidance(
"Select Target.");
39 TargCmd->SetParameterName(
"choice",
false);
40 TargCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
42 TargZPosCmd =
new G4UIcmdWithADoubleAndUnit(
"/Target/SetCenterPositionInZ",
this);
43 TargZPosCmd->SetGuidance(
"Set the Z position of the target center");
47 TargZPosCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
49 TargMatCmd =
new G4UIcmdWithAString(
"/Target/SetTargetMaterial",
this);
50 TargMatCmd->SetGuidance(
"Select Material of the Target.");
52 TargMatCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
54 TargCellMatCmd =
new G4UIcmdWithAString(
"/Target/SetTargetCellMaterial",
this);
55 TargCellMatCmd->SetGuidance(
"Select Material of the Target Cell.");
59 TargEntWinMatCmd =
new G4UIcmdWithAString(
"/Target/SetTargetEntranceWindowMaterial",
this);
60 TargEntWinMatCmd->SetGuidance(
"Select Material of the Target Entrance Window.");
64 TargExtWinMatCmd =
new G4UIcmdWithAString(
"/Target/SetTargetExitWindowMaterial",
this);
69 TargExtWinNipMatCmd =
new G4UIcmdWithAString(
"/Target/SetTargetExitWindowNippleMaterial",
this);
74 TargLenCmd =
new G4UIcmdWithADoubleAndUnit(
"/Target/SetTargetLength",
this);
75 TargLenCmd->SetGuidance(
"Set the length of the target center");
78 TargLenCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
100 G4cout <<
"#### Calling QweakSimTargetMessenger::SetNewValue() " << newValue << G4endl;
104 G4cout <<
"#### Messenger: Setting Target to " << newValue << G4endl;
111 G4cout <<
"#### Messenger: Setting Target Z position to " << newValue << G4endl;
118 G4cout <<
"#### Messenger: Setting Target Material to " << newValue << G4endl;
126 G4cout <<
"#### Messenger: Setting Target Cell Material to " << newValue << G4endl;
133 G4cout <<
"#### Messenger: Setting Target Entrance Window Material to " << newValue << G4endl;
140 G4cout <<
"#### Messenger: Setting Target Exit Window Material to " << newValue << G4endl;
147 G4cout <<
"#### Messenger: Setting Target Exit Window Material to " << newValue << G4endl;
154 G4cout <<
"#### Messenger: Setting Target length to " << newValue << G4endl;
160 G4cout <<
"#### Leaving QweakSimTargetMessenger::SetNewValue() " << newValue << G4endl;
Definition of the Target.
G4UIcmdWithAString * TargExtWinMatCmd
void SetNewValue(G4UIcommand *, G4String)
G4UIdirectory * TargetDir
G4UIcmdWithAString * TargMatCmd
G4UIcmdWithADoubleAndUnit * TargLenCmd
G4UIcmdWithAString * TargCmd
void SetTargetCenterPositionInZ(G4double)
QweakSimTargetMessenger(QweakSimTarget *)
G4UIcmdWithAString * TargExtWinNipMatCmd
QweakSimTarget * myTarget
~QweakSimTargetMessenger()
void SetTargetEntranceWindowMaterial(G4String)
G4UIcmdWithAString * TargCellMatCmd
void SetTargetMaterial(G4String)
void SetTargetCellMaterial(G4String)
G4UIcmdWithADoubleAndUnit * TargZPosCmd
void SetTargetExitWindowMaterial(G4String)
G4UIcmdWithAString * TargEntWinMatCmd
void SetTargetLength(G4double)
void SetTargetExitWindowNippleMaterial(G4String)