21   _cmdDir = 
new G4UIdirectory(
"/GGS/userActions/hadrIntAction/");
 
   22   _cmdDir->SetGuidance(
"Commands for hadronic interaction info action.");
 
   24   _outBaseCmd = 
new G4UIcmdWithAString(
"/GGS/userActions/hadrIntAction/fileBase", 
this);
 
   25   _outBaseCmd->SetGuidance(
"Sets the base name for ROOT output file");
 
   26   _outBaseCmd->SetGuidance(
"   Can be with or without extension (.root will be used automatically)");
 
   27   _outBaseCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
 
   29   _outTreeCmd = 
new G4UIcmdWithAString(
"/GGS/userActions/hadrIntAction/treeName", 
this);
 
   30   _outTreeCmd->SetGuidance(
"Set the name of the TTree object in the ROOT output file.");
 
   31   _outTreeCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
 
   33   _setFractionCmd = 
new G4UIcmdWithADouble(
"/GGS/userActions/hadrIntAction/energyFraction", 
this);
 
   34   _setFractionCmd->SetGuidance(
"Sets the minimum fraction of primary energy to tag quasi-elastic interactions.");
 
   35   _setFractionCmd->SetParameterName(
"fraction", 
false);
 
   36   _setFractionCmd->SetRange(
"fraction>=0. && fraction<=1.");
 
   37   _setFractionCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
 
   39   _outProductsCmd = 
new G4UIcmdWithABool(
"/GGS/userActions/hadrIntAction/outProducts", 
this);
 
   40   _outProductsCmd->SetGuidance(
"Toggles on and off saving interaction products.");
 
   41   _outProductsCmd->SetParameterName(
"outProducts", 
false);
 
   42   _outProductsCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
 
   52   delete _outProductsCmd;
 
   59   if (command == _outBaseCmd)
 
   62   if (command == _outTreeCmd)
 
   65   if (command == _setFractionCmd)
 
   68   if (command == _outProductsCmd) {
 
void SetOutputFileBase(const std::string &outFileBase)
Sets the output file base name. 
void SetOutputTreeName(const std::string &outTreeName)
Sets the output tree name. 
void SetOutputOfProducts(bool output)
Toggles the output of hadronic interaction products. 
void SetNewValue(G4UIcommand *command, G4String newValue)
Override of SetNewValue method. 
void SetEnergyFraction(double fraction)
Sets the maximum secondary energy fraction for hadronic interactions. 
~GGSHadrIntMessenger()
Destructor. 
GGSHadrIntMessenger(GGSHadrIntAction *action)
Constructor. 
Action which finds the hadronic interaction points for each primary particle.