Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4RegionsMessenger Class Reference

Messenger class that defines commands for TG4RegionsManager[2]. More...

#include <TG4RegionsMessenger.h>

Inheritance diagram for TG4RegionsMessenger:

Public Member Functions

 TG4RegionsMessenger (TG4RegionsManager *regionsManager)
 
 TG4RegionsMessenger (TG4RegionsManager2 *regionsManager)
 
virtual ~TG4RegionsMessenger ()
 
virtual void SetNewValue (G4UIcommand *command, G4String string)
 

Private Member Functions

 TG4RegionsMessenger ()=delete
 
 TG4RegionsMessenger (const TG4RegionsMessenger &right)=delete
 
TG4RegionsMessengeroperator= (const TG4RegionsMessenger &right)=delete
 
void CreateCommands ()
 

Private Attributes

TG4RegionsManagerfRegionsManager = nullptr
 associated class
 
TG4RegionsManager2fRegionsManager2 = nullptr
 associated class
 
G4UIdirectory * fDirectory = nullptr
 command directory
 
G4UIcmdWithABool * fSetCheckCmd = nullptr
 command: /mcRegions/check [true|false]
 
G4UIcmdWithABool * fSetPrintCmd = nullptr
 command: /mcRegions/print [true|false]
 
G4UIcmdWithABool * fSetSaveCmd = nullptr
 command: /mcRegions/save [true|false]
 
G4UIcmdWithAString * fSetFileNameCmd = nullptr
 command: /mcRegions/setFileName fileName
 
G4UIcmdWithAString * fDumpRegionCmd = nullptr
 command: /mcRegions/dump [lvName]
 
G4UIcmdWithAnInteger * fSetRangePrecisionCmd = nullptr
 command: /mcRegions/setRangePrecision value
 
G4UIcmdWithADouble * fSetEnergyToleranceCmd = nullptr
 command: /mcRegions/setEnergyTolerance value
 
G4UIcmdWithABool * fApplyForGammaCmd = nullptr
 command: /mcRegions/applyForGamma true|false
 
G4UIcmdWithABool * fApplyForElectronCmd = nullptr
 command: /mcRegions/applyForElectron true|false
 
G4UIcmdWithABool * fApplyForPositronCmd = nullptr
 command: /mcRegions/applyForPositron true|false
 
G4UIcmdWithABool * fApplyForProtonCmd = nullptr
 command: /mcRegions/applyForProton true|false
 
G4UIcmdWithABool * fSetLoadCmd = nullptr
 command: /mcRegions/load [true|false]
 
G4UIcmdWithABool * fSetFromG4TableCmd = nullptr
 command: /mcRegions/fromG4Table [true|false]
 

Detailed Description

Messenger class that defines commands for TG4RegionsManager[2].

Implements commands:

  • /mcRegions/check [true|false]
  • /mcRegions/print [true|false]
  • /mcRegions/save [true|false]
  • /mcRegions/setFileName fileName

Commands working only with old region manager:

  • /mcRegions/dump lvName
  • /mcRegions/setRangePrecision value
  • /mcRegions/setEnergyTolerance value
  • /mcRegions/applyForGamma true|false
  • /mcRegions/applyForElectron true|false
  • /mcRegions/applyForPositron true|false
  • /mcRegions/applyForProton true|false
  • /mcRegions/load [true|false]
  • /mcRegions/fromG4Table [true|false]
Author
I. Hrivnacova; IPN, Orsay

Definition at line 53 of file TG4RegionsMessenger.h.

Constructor & Destructor Documentation

◆ TG4RegionsMessenger() [1/4]

TG4RegionsMessenger::TG4RegionsMessenger ( TG4RegionsManager * regionsManager)

Standard constructor

Definition at line 27 of file TG4RegionsMessenger.cxx.

◆ TG4RegionsMessenger() [2/4]

TG4RegionsMessenger::TG4RegionsMessenger ( TG4RegionsManager2 * regionsManager)

Standard constructor

Definition at line 36 of file TG4RegionsMessenger.cxx.

◆ ~TG4RegionsMessenger()

TG4RegionsMessenger::~TG4RegionsMessenger ( )
virtual

Destructor

Definition at line 45 of file TG4RegionsMessenger.cxx.

◆ TG4RegionsMessenger() [3/4]

TG4RegionsMessenger::TG4RegionsMessenger ( )
privatedelete

◆ TG4RegionsMessenger() [4/4]

TG4RegionsMessenger::TG4RegionsMessenger ( const TG4RegionsMessenger & right)
privatedelete

Member Function Documentation

◆ SetNewValue()

void TG4RegionsMessenger::SetNewValue ( G4UIcommand * command,
G4String string )
virtual

Apply command to the associated object.

Definition at line 163 of file TG4RegionsMessenger.cxx.

◆ operator=()

TG4RegionsMessenger & TG4RegionsMessenger::operator= ( const TG4RegionsMessenger & right)
privatedelete

◆ CreateCommands()

void TG4RegionsMessenger::CreateCommands ( )
private

Create commands

Definition at line 70 of file TG4RegionsMessenger.cxx.

Referenced by TG4RegionsMessenger(), and TG4RegionsMessenger().

Member Data Documentation

◆ fRegionsManager

TG4RegionsManager* TG4RegionsMessenger::fRegionsManager = nullptr
private

associated class

Definition at line 72 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), and SetNewValue().

◆ fRegionsManager2

TG4RegionsManager2* TG4RegionsMessenger::fRegionsManager2 = nullptr
private

associated class

Definition at line 73 of file TG4RegionsMessenger.h.

Referenced by SetNewValue().

◆ fDirectory

G4UIdirectory* TG4RegionsMessenger::fDirectory = nullptr
private

command directory

Definition at line 74 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), and ~TG4RegionsMessenger().

◆ fSetCheckCmd

G4UIcmdWithABool* TG4RegionsMessenger::fSetCheckCmd = nullptr
private

command: /mcRegions/check [true|false]

Definition at line 77 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().

◆ fSetPrintCmd

G4UIcmdWithABool* TG4RegionsMessenger::fSetPrintCmd = nullptr
private

command: /mcRegions/print [true|false]

Definition at line 79 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().

◆ fSetSaveCmd

G4UIcmdWithABool* TG4RegionsMessenger::fSetSaveCmd = nullptr
private

command: /mcRegions/save [true|false]

Definition at line 81 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().

◆ fSetFileNameCmd

G4UIcmdWithAString* TG4RegionsMessenger::fSetFileNameCmd = nullptr
private

command: /mcRegions/setFileName fileName

Definition at line 83 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().

◆ fDumpRegionCmd

G4UIcmdWithAString* TG4RegionsMessenger::fDumpRegionCmd = nullptr
private

command: /mcRegions/dump [lvName]

Definition at line 87 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().

◆ fSetRangePrecisionCmd

G4UIcmdWithAnInteger* TG4RegionsMessenger::fSetRangePrecisionCmd = nullptr
private

command: /mcRegions/setRangePrecision value

Definition at line 89 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().

◆ fSetEnergyToleranceCmd

G4UIcmdWithADouble* TG4RegionsMessenger::fSetEnergyToleranceCmd = nullptr
private

command: /mcRegions/setEnergyTolerance value

Definition at line 91 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().

◆ fApplyForGammaCmd

G4UIcmdWithABool* TG4RegionsMessenger::fApplyForGammaCmd = nullptr
private

command: /mcRegions/applyForGamma true|false

Definition at line 93 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().

◆ fApplyForElectronCmd

G4UIcmdWithABool* TG4RegionsMessenger::fApplyForElectronCmd = nullptr
private

command: /mcRegions/applyForElectron true|false

Definition at line 95 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().

◆ fApplyForPositronCmd

G4UIcmdWithABool* TG4RegionsMessenger::fApplyForPositronCmd = nullptr
private

command: /mcRegions/applyForPositron true|false

Definition at line 97 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().

◆ fApplyForProtonCmd

G4UIcmdWithABool* TG4RegionsMessenger::fApplyForProtonCmd = nullptr
private

command: /mcRegions/applyForProton true|false

Definition at line 99 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().

◆ fSetLoadCmd

G4UIcmdWithABool* TG4RegionsMessenger::fSetLoadCmd = nullptr
private

command: /mcRegions/load [true|false]

Definition at line 101 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().

◆ fSetFromG4TableCmd

G4UIcmdWithABool* TG4RegionsMessenger::fSetFromG4TableCmd = nullptr
private

command: /mcRegions/fromG4Table [true|false]

Definition at line 103 of file TG4RegionsMessenger.h.

Referenced by CreateCommands(), SetNewValue(), and ~TG4RegionsMessenger().


The documentation for this class was generated from the following files: