SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
UserActionPluginMessenger.hh
Go to the documentation of this file.
1 
7 #ifndef SLIC_USERACTIONPLUGINMESSENGER_HH_
8 #define SLIC_USERACTIONPLUGINMESSENGER_HH_
9 
10 // LDMX
11 #include "UserActionPlugin.hh"
12 
13 // Geant4
14 #include "G4UImessenger.hh"
15 #include "G4UIdirectory.hh"
16 #include "G4UIcommand.hh"
17 
18 namespace slic {
19 
29 class UserActionPluginMessenger: public G4UImessenger {
30 
31  public:
32 
38 
43  delete verboseCmd_;
44  delete pluginDir_;
45  }
46 
52  void SetNewValue(G4UIcommand *command, G4String newValue);
53 
58  const std::string& getPath() {
59  return pluginDir_->GetCommandPath();
60  }
61 
67  return userPlugin_;
68  }
69 
70  private:
71 
76 
80  G4UIdirectory* pluginDir_;
81 
85  G4UIcommand* verboseCmd_;
86 };
87 
88 }
89 
90 #endif
Messenger for sending macro commands to a UserActionPlugin.
void SetNewValue(G4UIcommand *command, G4String newValue)
UserActionPluginMessenger(UserActionPlugin *userPlugin)
User simulation plugin.