#include <DetectorMessenger.h>
Public Member Functions | |
| DetectorMessenger (DetectorConstruction *det) | |
| ~DetectorMessenger () | |
| void | SetNewValue (G4UIcommand *c, G4String s) |
Private Attributes | |
| DetectorConstruction * | fDetector |
| The detector object. | |
| G4UIdirectory * | fDetectorDir |
| Location of detector commands. | |
| G4UIcmdWithAString * | fReadCmd |
| Handler for read command. | |
Definition at line 20 of file DetectorMessenger.h.
|
|
Definition at line 14 of file DetectorMessenger.cxx. References fDetectorDir, and fReadCmd. 00014 : 00015 fDetector(det) 00016 { 00017 fDetectorDir = new G4UIdirectory("/g4nova/"); 00018 fDetectorDir->SetGuidance("NOvA detector control."); 00019 00020 fReadCmd = new G4UIcmdWithAString("/g4nova/read", this); 00021 fReadCmd->SetGuidance("Read GDML file of specified name."); 00022 fReadCmd->SetParameterName("file_name", false); 00023 fReadCmd->SetDefaultValue("fardet.gdml"); 00024 fReadCmd->AvailableForStates(G4State_PreInit); 00025 }
|
|
|
Definition at line 29 of file DetectorMessenger.cxx. 00030 {
00031 delete fReadCmd;
00032 delete fDetectorDir;
00033 }
|
|
||||||||||||
|
Definition at line 37 of file DetectorMessenger.cxx. References fDetector, and g4nova::DetectorConstruction::SetGDMLFile(). 00038 {
00039 if (cmd == fReadCmd) fDetector->SetGDMLFile(val);
00040 }
|
|
|
The detector object.
Definition at line 26 of file DetectorMessenger.h. Referenced by SetNewValue(). |
|
|
Location of detector commands.
Definition at line 27 of file DetectorMessenger.h. Referenced by DetectorMessenger(). |
|
|
Handler for read command.
Definition at line 28 of file DetectorMessenger.h. Referenced by DetectorMessenger(). |
1.3.9.1