QwGeant4
QweakSimPionWallMessenger Class Reference

#include <QweakSimPionWallMessenger.hh>

Inherits G4UImessenger.

+ Collaboration diagram for QweakSimPionWallMessenger:

Public Member Functions

 QweakSimPionWallMessenger (QweakSimPionWall *)
 
 ~QweakSimPionWallMessenger ()
 
void SetNewValue (G4UIcommand *, G4String)
 

Private Attributes

QweakSimPionWallmyPionWall
 
G4UIdirectory * PionWallDir
 
G4UIcmdWithADoubleAndUnit * PionWall_SetThicknessInX_Cmd
 
G4UIcmdWithADoubleAndUnit * PionWall_SetThicknessInY_Cmd
 
G4UIcmdWithADoubleAndUnit * PionWall_SetThicknessInZ_Cmd
 
G4UIcmdWithADoubleAndUnit * PionWall_SetOffsetX_Cmd
 
G4UIcmdWithADoubleAndUnit * PionWall_SetOffsetY_Cmd
 
G4UIcmdWithADoubleAndUnit * PionWall_SetOffsetZ_Cmd
 
G4UIcmdWithoutParameter * PionWall_SetEnabled_Cmd
 
G4UIcmdWithoutParameter * PionWall_SetDisabled_Cmd
 

Detailed Description

Definition at line 23 of file QweakSimPionWallMessenger.hh.

Constructor & Destructor Documentation

QweakSimPionWallMessenger::QweakSimPionWallMessenger ( QweakSimPionWall thePionWall)

Definition at line 20 of file QweakSimPionWallMessenger.cc.

References PionWall_SetDisabled_Cmd, PionWall_SetEnabled_Cmd, PionWall_SetOffsetX_Cmd, PionWall_SetOffsetY_Cmd, PionWall_SetOffsetZ_Cmd, PionWall_SetThicknessInX_Cmd, PionWall_SetThicknessInY_Cmd, PionWall_SetThicknessInZ_Cmd, and PionWallDir.

21 :myPionWall(thePionWall)
22 {
23  PionWallDir = new G4UIdirectory("/PionWall/");
24  PionWallDir -> SetGuidance("Pion Wall control.");
25 
26  //--------------------------------------------------
27 
28  PionWall_SetThicknessInX_Cmd = new G4UIcmdWithADoubleAndUnit("/PionWall/SetThicknessInX",this);
29  PionWall_SetThicknessInX_Cmd->SetGuidance("Set the thickness of the Pion Wall in the X direction");
30  PionWall_SetThicknessInX_Cmd->SetParameterName("Size",true);
31  PionWall_SetThicknessInX_Cmd->SetUnitCategory("Length");
32  PionWall_SetThicknessInX_Cmd->AvailableForStates(G4State_PreInit,G4State_Idle);
33 
34  //--------------------------------------------------
35 
36  PionWall_SetThicknessInY_Cmd = new G4UIcmdWithADoubleAndUnit("/PionWall/SetThicknessInY",this);
37  PionWall_SetThicknessInY_Cmd->SetGuidance("Set the thickness of the Pion Wall in the Y direction");
38  PionWall_SetThicknessInY_Cmd->SetParameterName("Size",true);
39  PionWall_SetThicknessInY_Cmd->SetUnitCategory("Length");
40  PionWall_SetThicknessInY_Cmd->AvailableForStates(G4State_PreInit,G4State_Idle);
41 
42  //--------------------------------------------------
43 
44  PionWall_SetThicknessInZ_Cmd = new G4UIcmdWithADoubleAndUnit("/PionWall/SetThicknessInZ",this);
45  PionWall_SetThicknessInZ_Cmd->SetGuidance("Set the thickness of the Pion Wall in the Z direction");
46  PionWall_SetThicknessInZ_Cmd->SetParameterName("Size",true);
47  PionWall_SetThicknessInZ_Cmd->SetUnitCategory("Length");
48  PionWall_SetThicknessInZ_Cmd->AvailableForStates(G4State_PreInit,G4State_Idle);
49 
50  //-------------------------------------------------
51 
52  PionWall_SetOffsetX_Cmd = new G4UIcmdWithADoubleAndUnit("/PionWall/SetPositionOffsetX",this);
53  PionWall_SetOffsetX_Cmd->SetGuidance("Set the position offset of the Pion Wall in the X direction");
54  PionWall_SetOffsetX_Cmd->SetParameterName("Size",true);
55  PionWall_SetOffsetX_Cmd->SetUnitCategory("Length");
56  PionWall_SetOffsetX_Cmd->AvailableForStates(G4State_PreInit,G4State_Idle);
57 
58  //-------------------------------------------------
59 
60  PionWall_SetOffsetY_Cmd = new G4UIcmdWithADoubleAndUnit("/PionWall/SetPositionOffsetY",this);
61  PionWall_SetOffsetY_Cmd->SetGuidance("Set the position offset of the Pion Wall in the Y direction");
62  PionWall_SetOffsetY_Cmd->SetParameterName("Size",true);
63  PionWall_SetOffsetY_Cmd->SetUnitCategory("Length");
64  PionWall_SetOffsetY_Cmd->AvailableForStates(G4State_PreInit,G4State_Idle);
65 
66  //-------------------------------------------------
67 
68  PionWall_SetOffsetZ_Cmd = new G4UIcmdWithADoubleAndUnit("/PionWall/SetPositionOffsetZ",this);
69  PionWall_SetOffsetZ_Cmd->SetGuidance("Set the position offset of the Pion Wall in the Z direction");
70  PionWall_SetOffsetZ_Cmd->SetParameterName("Size",true);
71  PionWall_SetOffsetZ_Cmd->SetUnitCategory("Length");
72  PionWall_SetOffsetZ_Cmd->AvailableForStates(G4State_PreInit,G4State_Idle);
73 
74  //-------------------------------------------------
75 
76  PionWall_SetEnabled_Cmd = new G4UIcmdWithoutParameter("/PionWall/Enable",this);
77  PionWall_SetEnabled_Cmd->SetGuidance("Enables the Pion Wall");
78  PionWall_SetEnabled_Cmd->AvailableForStates(G4State_PreInit,G4State_Idle);
79 
80  //-------------------------------------------------
81 
82  PionWall_SetDisabled_Cmd = new G4UIcmdWithoutParameter("/PionWall/Disable",this);
83  PionWall_SetDisabled_Cmd->SetGuidance("Disables the Pion Wall");
84  PionWall_SetDisabled_Cmd->AvailableForStates(G4State_PreInit,G4State_Idle);
85 
86 
87 }
G4UIcmdWithADoubleAndUnit * PionWall_SetThicknessInY_Cmd
G4UIcmdWithoutParameter * PionWall_SetEnabled_Cmd
G4UIcmdWithADoubleAndUnit * PionWall_SetThicknessInZ_Cmd
G4UIcmdWithADoubleAndUnit * PionWall_SetOffsetY_Cmd
G4UIcmdWithADoubleAndUnit * PionWall_SetOffsetZ_Cmd
G4UIcmdWithoutParameter * PionWall_SetDisabled_Cmd
G4UIcmdWithADoubleAndUnit * PionWall_SetOffsetX_Cmd
G4UIcmdWithADoubleAndUnit * PionWall_SetThicknessInX_Cmd
QweakSimPionWallMessenger::~QweakSimPionWallMessenger ( )

Definition at line 89 of file QweakSimPionWallMessenger.cc.

References PionWall_SetDisabled_Cmd, PionWall_SetEnabled_Cmd, PionWall_SetOffsetX_Cmd, PionWall_SetOffsetY_Cmd, PionWall_SetOffsetZ_Cmd, PionWall_SetThicknessInX_Cmd, PionWall_SetThicknessInY_Cmd, PionWall_SetThicknessInZ_Cmd, and PionWallDir.

90 {
91 
100 
101  if (PionWallDir) delete PionWallDir;
102 }
G4UIcmdWithADoubleAndUnit * PionWall_SetThicknessInY_Cmd
G4UIcmdWithoutParameter * PionWall_SetEnabled_Cmd
G4UIcmdWithADoubleAndUnit * PionWall_SetThicknessInZ_Cmd
G4UIcmdWithADoubleAndUnit * PionWall_SetOffsetY_Cmd
G4UIcmdWithADoubleAndUnit * PionWall_SetOffsetZ_Cmd
G4UIcmdWithoutParameter * PionWall_SetDisabled_Cmd
G4UIcmdWithADoubleAndUnit * PionWall_SetOffsetX_Cmd
G4UIcmdWithADoubleAndUnit * PionWall_SetThicknessInX_Cmd

Member Function Documentation

void QweakSimPionWallMessenger::SetNewValue ( G4UIcommand *  command,
G4String  newValue 
)

Definition at line 106 of file QweakSimPionWallMessenger.cc.

References myPionWall, PionWall_SetDisabled_Cmd, PionWall_SetEnabled_Cmd, PionWall_SetOffsetX_Cmd, PionWall_SetOffsetY_Cmd, PionWall_SetOffsetZ_Cmd, PionWall_SetThicknessInX_Cmd, PionWall_SetThicknessInY_Cmd, PionWall_SetThicknessInZ_Cmd, QweakSimPionWall::SetDisabled(), QweakSimPionWall::SetEnabled(), QweakSimPionWall::SetPionWall_LengthInX(), QweakSimPionWall::SetPionWall_LengthInY(), QweakSimPionWall::SetPionWall_LengthInZ(), QweakSimPionWall::SetPionWall_Position_Offset_X(), QweakSimPionWall::SetPionWall_Position_Offset_Y(), and QweakSimPionWall::SetPionWall_Position_Offset_Z().

107 {
108  G4cout << "#### Messenger: QweakSimPionWallMessenger::SetNewValue() " << newValue << G4endl;
109 
110  if ( command == PionWall_SetThicknessInX_Cmd )
111  {
112  G4cout << "#### Messenger: Setting Pion Wall X thickness to " << newValue << G4endl;
113 
114  myPionWall->SetPionWall_LengthInX(PionWall_SetThicknessInX_Cmd->GetNewDoubleValue(newValue));
115  }
116 
117  //---------------------------------------------------------------
118 
119  if ( command == PionWall_SetThicknessInY_Cmd )
120  {
121  G4cout << "#### Messenger: Setting Pion Wall Y thickness to " << newValue << G4endl;
122 
123  myPionWall->SetPionWall_LengthInY(PionWall_SetThicknessInY_Cmd->GetNewDoubleValue(newValue));
124  }
125 
126  //---------------------------------------------------------------
127 
128  if ( command == PionWall_SetThicknessInZ_Cmd )
129  {
130  G4cout << "#### Messenger: Setting Pion Wall Z thickness to " << newValue << G4endl;
131 
132  myPionWall->SetPionWall_LengthInZ(PionWall_SetThicknessInZ_Cmd->GetNewDoubleValue(newValue));
133  }
134 
135  //---------------------------------------------------------------
136 
137  if ( command == PionWall_SetOffsetX_Cmd )
138  {
139  G4cout << "#### Messenger: Setting Pion Wall X Position Offset to " << newValue << G4endl;
140 
142  }
143 
144  //---------------------------------------------------------------
145 
146  if ( command == PionWall_SetOffsetY_Cmd )
147  {
148  G4cout << "#### Messenger: Setting Pion Wall Y Position Offset to " << newValue << G4endl;
149 
151  }
152 
153  //---------------------------------------------------------------
154 
155  if ( command == PionWall_SetOffsetZ_Cmd )
156  {
157  G4cout << "#### Messenger: Setting Pion Wall Z Position Offset to " << newValue << G4endl;
158 
160  }
161 
162  //---------------------------------------------------------------
163 
164  if ( command == PionWall_SetEnabled_Cmd )
165  {
166  G4cout << "#### Messenger: Pion Wall ENABLED" << G4endl;
167 
169  }
170 
171  if ( command == PionWall_SetDisabled_Cmd )
172  {
173  G4cout << "#### Messenger: Pion Wall DISABLED" << G4endl;
174 
176  }
177 
178  //---------------------------------------------------------------
179 }
G4UIcmdWithADoubleAndUnit * PionWall_SetThicknessInY_Cmd
G4UIcmdWithoutParameter * PionWall_SetEnabled_Cmd
void SetPionWall_LengthInX(G4double dim)
G4UIcmdWithADoubleAndUnit * PionWall_SetThicknessInZ_Cmd
void SetPionWall_LengthInZ(G4double dim)
void SetPionWall_Position_Offset_X(G4double xOff)
void SetPionWall_Position_Offset_Y(G4double yOff)
void SetPionWall_Position_Offset_Z(G4double zOff)
G4UIcmdWithADoubleAndUnit * PionWall_SetOffsetY_Cmd
G4UIcmdWithADoubleAndUnit * PionWall_SetOffsetZ_Cmd
G4UIcmdWithoutParameter * PionWall_SetDisabled_Cmd
G4UIcmdWithADoubleAndUnit * PionWall_SetOffsetX_Cmd
void SetPionWall_LengthInY(G4double dim)
G4UIcmdWithADoubleAndUnit * PionWall_SetThicknessInX_Cmd

+ Here is the call graph for this function:

Field Documentation

QweakSimPionWall* QweakSimPionWallMessenger::myPionWall
private

Definition at line 32 of file QweakSimPionWallMessenger.hh.

Referenced by SetNewValue().

G4UIcmdWithoutParameter* QweakSimPionWallMessenger::PionWall_SetDisabled_Cmd
private
G4UIcmdWithoutParameter* QweakSimPionWallMessenger::PionWall_SetEnabled_Cmd
private
G4UIcmdWithADoubleAndUnit* QweakSimPionWallMessenger::PionWall_SetOffsetX_Cmd
private
G4UIcmdWithADoubleAndUnit* QweakSimPionWallMessenger::PionWall_SetOffsetY_Cmd
private
G4UIcmdWithADoubleAndUnit* QweakSimPionWallMessenger::PionWall_SetOffsetZ_Cmd
private
G4UIcmdWithADoubleAndUnit* QweakSimPionWallMessenger::PionWall_SetThicknessInX_Cmd
private
G4UIcmdWithADoubleAndUnit* QweakSimPionWallMessenger::PionWall_SetThicknessInY_Cmd
private
G4UIcmdWithADoubleAndUnit* QweakSimPionWallMessenger::PionWall_SetThicknessInZ_Cmd
private
G4UIdirectory* QweakSimPionWallMessenger::PionWallDir
private

The documentation for this class was generated from the following files: