Berkeley Nuclear Data Software
DetectorMessenger.h
Go to the documentation of this file.
1 //adapted from HadronTherapy advanced example for Geant4
2 //by Josh Brown brown.ja@berkeley.edu
3 #ifndef _DETECTOR_MESSENGER_H_
4 #define _DETECTOR_MESSENGER_H_
5 
6 #include "globals.hh"
7 #include "G4UImessenger.hh"
8 #include <string>
9 
10 class G4UIdirectory;
11 class G4UIcmdWith3VectorAndUnit;
12 class G4UIcmdWithoutParameter;
13 class G4UIcmdWithAString;
14 class G4UIcmdWithABool;
15 namespace NSDG4
16 {
17 class DetectorConstruction;
19 class DetectorMessenger: public G4UImessenger
20 {
21 public:
24 
25  void SetNewValue(G4UIcommand*, G4String);
26 
27 private:
28  // Pointer to the phantom/detector
29  DetectorConstruction* m_detector;
30  G4UIdirectory *m_changeTheGeo;
31  G4UIcmdWithoutParameter *m_updateCmd;
32  G4UIcmdWithAString *m_setTheActiveObject;
33  G4UIcmdWithAString *m_setTheMaterial;
34  G4UIcmdWith3VectorAndUnit *m_changeTheLocation;
35 
36  std::string m_activeObjectName;
37 };
38 
39 
40 }
41 
42 
43 #endif
44 
Definition: DetectorConstruction.h:23
user interface class for moving bits around
Definition: DetectorMessenger.h:20
void SetNewValue(G4UIcommand *, G4String)
Definition: DetectorMessenger.cpp:56
~DetectorMessenger()
Definition: DetectorMessenger.cpp:47
DetectorMessenger(DetectorConstruction *)
Definition: DetectorMessenger.cpp:11
Definition: AbsLYAna.h:7