40 :myCerenkovDetector(theCerenkovDetector),fOctant(octant)
42 G4String Dir_name =
"/Cerenkov";
44 Dir =
new G4UIdirectory(G4String(Dir_name+
"/"));
45 Dir -> SetGuidance(
"Cerenkov Detector control.");
49 NumberOfDetectorsCmd =
new G4UIcmdWithAnInteger(G4String(Dir_name +
"/SetNumberOfDetectors"),
this);
64 TiltingAngleCmd =
new G4UIcmdWithADoubleAndUnit(G4String(Dir_name +
"/SetTiltingAngle"),
this);
65 TiltingAngleCmd->SetGuidance(
"Set the tilting angle of the Cerenkov Detector");
72 KinkAngleCmd =
new G4UIcmdWithADoubleAndUnit(G4String(Dir_name +
"/SetKinkAngle"),
this);
73 KinkAngleCmd->SetGuidance(
"Set the kink angle for the V-shape ");
76 KinkAngleCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
80 ContainerMatCmd =
new G4UIcmdWithAString(G4String(Dir_name +
"/SetContainerMaterial"),
this);
81 ContainerMatCmd->SetGuidance(
"Select Material of the Cerenkov Container.");
87 DetectorMatCmd =
new G4UIcmdWithAString(G4String(Dir_name +
"/SetCerenkovMaterial"),
this);
88 DetectorMatCmd->SetGuidance(
"Select Material of the Cerenkov Detector.");
94 PreRadiatorMatCmd =
new G4UIcmdWithAString(G4String(Dir_name +
"/SetPreradiatorMaterial"),
this);
103 G4String DirPerOctant_name =
"/Cerenkov/Cerenkov" + G4UIcommand::ConvertToString(octant+1);
104 DirPerOctant =
new G4UIdirectory(G4String(DirPerOctant_name +
"/"));
105 DirPerOctant -> SetGuidance(
"Individual Cerenkov detector control.");
107 ContainerZPositionCmd =
new G4UIcmdWithADoubleAndUnit(G4String(DirPerOctant_name +
"/SetCenterPositionInZ"),
this);
113 ContainerYPositionCmd =
new G4UIcmdWithADoubleAndUnit(G4String(DirPerOctant_name +
"/SetCenterPositionInY"),
this);
119 ContainerXPositionCmd =
new G4UIcmdWithADoubleAndUnit(G4String(DirPerOctant_name +
"/SetCenterPositionInX"),
this);
125 ContainerZRotationCmd =
new G4UIcmdWithADoubleAndUnit(G4String(DirPerOctant_name +
"/SetRotationInZ"),
this);
131 ContainerYRotationCmd =
new G4UIcmdWithADoubleAndUnit(G4String(DirPerOctant_name +
"/SetRotationInY"),
this);
137 ContainerXRotationCmd =
new G4UIcmdWithADoubleAndUnit(G4String(DirPerOctant_name +
"/SetRotationInX"),
this);
173 G4cout <<
"#### Calling QweakSimCerenkovDetectorMessenger::SetNewValue() " << newValue << G4endl;
177 G4cout <<
"#### Messenger: Setting Number of Detectors to " << newValue << G4endl;
184 G4cout <<
"#### Messenger: Setting CerenkovDetector Container Thickness to " << newValue << G4endl;
191 G4cout <<
"#### Messenger: Setting CerenkovDetector Container X position to " << newValue << G4endl;
198 G4cout <<
"#### Messenger: Setting CerenkovDetector Container Y position to " << newValue << G4endl;
205 G4cout <<
"#### Messenger: Setting CerenkovDetector Container Z position to " << newValue << G4endl;
212 G4cout <<
"#### Messenger: Setting CerenkovDetector Container X position to " << newValue << G4endl;
219 G4cout <<
"#### Messenger: Setting CerenkovDetector Container Y position to " << newValue << G4endl;
226 G4cout <<
"#### Messenger: Setting CerenkovDetector Container Z position to " << newValue << G4endl;
233 G4cout <<
"#### Messenger: Setting CerenkovDetector Container Material to " << newValue << G4endl;
240 G4cout <<
"#### Messenger: Setting Cerenkov Detector Material to " << newValue << G4endl;
247 G4cout <<
"#### Messenger: Setting PreRadiator Material to " << newValue << G4endl;
254 G4cout <<
"#### Messenger: Setting Cerenkov Detector Tilting Angle to " << newValue << G4endl;
261 G4cout <<
"#### Messenger: Setting Cerenkov Detector Kink Angle to " << newValue << G4endl;
267 G4cout <<
"#### Leaving QweakSimCerenkovDetector Messenger::SetNewValue() " << newValue << G4endl;
G4UIcmdWithADoubleAndUnit * ContainerXPositionCmd
void SetCerenkovDetectorRotationInZ(G4double zRot, G4int octant)
QweakSimCerenkovDetector * myCerenkovDetector
static G4UIcmdWithAString * DetectorMatCmd
void SetCerenkovDetectorThickness(G4double thickness)
static G4UIdirectory * Dir
QweakSimCerenkovDetectorMessenger(QweakSimCerenkovDetector *, G4int octant=1)
void SetCerenkovDetectorRotationInX(G4double xRot, G4int octant)
void SetContainerMaterial(G4String materialName)
void SetCerenkovDetectorMaterial(G4String materialName)
static G4UIcmdWithADoubleAndUnit * TiltingAngleCmd
static G4UIcmdWithAString * ContainerMatCmd
G4UIcmdWithADoubleAndUnit * ContainerZRotationCmd
G4UIcmdWithADoubleAndUnit * ContainerXRotationCmd
void SetCerenkovDetectorRotationInY(G4double yRot, G4int octant)
G4UIcmdWithADoubleAndUnit * ContainerZPositionCmd
G4UIcmdWithADoubleAndUnit * ContainerYPositionCmd
void SetCerenkovDetectorTiltAngle(G4double tiltangle)
void SetNewValue(G4UIcommand *, G4String)
static G4UIcmdWithADoubleAndUnit * ContainerThicknessCmd
static G4UIcmdWithADoubleAndUnit * KinkAngleCmd
static G4UIcmdWithAnInteger * NumberOfDetectorsCmd
~QweakSimCerenkovDetectorMessenger()
void SetPreradiatorMaterial(G4String materialName)
void SetCerenkovDetectorCenterPositionInX(G4double xPos, G4int octant)
static G4UIcmdWithAString * PreRadiatorMatCmd
void SetCerenkovDetectorCenterPositionInZ(G4double zPos, G4int octant)
void SetCerenkovDetectorCenterPositionInY(G4double yPos, G4int octant)
G4UIdirectory * DirPerOctant
G4UIcmdWithADoubleAndUnit * ContainerYRotationCmd
void SetNumberOfDetectors(G4int number)