]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TGeant4/TG4RunMessenger.cxx
Updated SDigitizer
[u/mrichter/AliRoot.git] / TGeant4 / TG4RunMessenger.cxx
index 5566cc0f73688c5a109e70779241f6a4217b98c3..715800260c09c5d6e6681bf7c35ca599238e2c30 100644 (file)
@@ -1,6 +1,10 @@
 // $Id$
 // Category: run
 //
+// Author: I. Hrivnacova
+//
+// Class TG4RunMessenger
+// ---------------------
 // See the class description in the header file.
 
 #include "TG4RunMessenger.h"
 #include <G4UIcmdWithoutParameter.hh>
 #include <G4UIcmdWithAString.hh>
 
+//_____________________________________________________________________________
 TG4RunMessenger::TG4RunMessenger(TG4RunManager* runManager)
   : fRunManager(runManager)
 { 
 //
-  fDirectory = new G4UIdirectory("/g4mc/");
+  fDirectory = new G4UIdirectory("/tg4Control/");
   fDirectory->SetGuidance("TGeant4 control commands.");
 
-  fRootCmd = new G4UIcmdWithoutParameter("/g4mc/root", this);
+  fRootCmd = new G4UIcmdWithoutParameter("/tg4Control/root", this);
   fRootCmd->SetGuidance("Switch to Root interactive shell.");
   fRootCmd->AvailableForStates(PreInit, Init, Idle, GeomClosed, EventProc);
 
-  fRootMacroCmd = new G4UIcmdWithAString("/g4mc/rootMacro", this);
+  fRootMacroCmd = new G4UIcmdWithAString("/tg4Control/rootMacro", this);
   fRootMacroCmd->SetGuidance("Process Root macro with given name (from file name.C)");
   fRootMacroCmd->SetParameterName("macroName", true);
   fRootMacroCmd->AvailableForStates(PreInit, Init, Idle, GeomClosed, EventProc);
 
-  fRootCommandCmd = new TG4UICmdWithAComplexString("/g4mc/rootCmd", this);
+  fRootCommandCmd = new TG4UICmdWithAComplexString("/tg4Control/rootCmd", this);
   fRootCommandCmd->SetGuidance("Process Root command");
   fRootCommandCmd->SetParameterName("command", false);
   fRootCommandCmd->SetDefaultValue(" ");
   fRootCommandCmd->AvailableForStates(PreInit, Init, Idle, GeomClosed, EventProc);
 
-  fG3DefaultsCmd = new G4UIcmdWithoutParameter("/g4mc/g3Defaults", this);
+  fG3DefaultsCmd = new G4UIcmdWithoutParameter("/tg4Control/g3Defaults", this);
   fG3DefaultsCmd->SetGuidance("Set G3 default parameters (cut values,");
   fG3DefaultsCmd->SetGuidance("tracking media max step values, ...)");
   fG3DefaultsCmd->AvailableForStates(PreInit);
 }
 
+//_____________________________________________________________________________
 TG4RunMessenger::TG4RunMessenger(){
 //
 } 
 
+//_____________________________________________________________________________
 TG4RunMessenger::TG4RunMessenger(const TG4RunMessenger& right) {
 // 
   TG4Globals::Exception("TG4RunMessenger is protected from copying.");
 }
 
+//_____________________________________________________________________________
 TG4RunMessenger::~TG4RunMessenger() {
 //
   delete fDirectory;
@@ -60,6 +68,7 @@ TG4RunMessenger::~TG4RunMessenger() {
 
 // operators
 
+//_____________________________________________________________________________
 TG4RunMessenger& TG4RunMessenger::operator=(const TG4RunMessenger& right)
 {
   // check assignement to self
@@ -72,6 +81,7 @@ TG4RunMessenger& TG4RunMessenger::operator=(const TG4RunMessenger& right)
           
 // public methods
 
+//_____________________________________________________________________________
 void TG4RunMessenger::SetNewValue(G4UIcommand* command, G4String newValue)
 { 
 // Applies command to the associated object.