Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ChargeExchangeMessenger Class Reference

#include <G4ChargeExchangeMessenger.hh>

+ Inheritance diagram for G4ChargeExchangeMessenger:

Public Member Functions

 G4ChargeExchangeMessenger (G4ChargeExchangePhysics *af)
 
 ~G4ChargeExchangeMessenger () override
 
void SetNewValue (G4UIcommand *aComm, G4String aS) override
 
G4ChargeExchangeMessengeroperator= (const G4ChargeExchangeMessenger &right)=delete
 
 G4ChargeExchangeMessenger (const G4ChargeExchangeMessenger &)=delete
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()=default
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool CommandsShouldBeInMaster () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String LtoS (G4long l)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (const G4String &s)
 
G4long StoL (const G4String &s)
 
G4double StoD (const G4String &s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir = nullptr
 
G4String baseDirName = ""
 
G4bool commandsShouldBeInMaster = false
 

Detailed Description

Definition at line 48 of file G4ChargeExchangeMessenger.hh.

Constructor & Destructor Documentation

◆ G4ChargeExchangeMessenger() [1/2]

G4ChargeExchangeMessenger::G4ChargeExchangeMessenger ( G4ChargeExchangePhysics * af)
explicit

Definition at line 41 of file G4ChargeExchangeMessenger.cc.

42 : theB(a)
43{
44 // general stuff.
45 aDir = new G4UIdirectory("/physics_lists/cex/", false);
46 aDir->SetGuidance("tailoring the hadronic charge exchange processes.");
47
48 fCmd = new G4UIcmdWithADouble("/physics_lists/cex/BiasFactor",this);
49 fCmd->SetGuidance("Charge exchange cross section factor");
51 fCmd->SetToBeBroadcasted(false);
52
53 lCmd = new G4UIcmdWithADoubleAndUnit("/process/cex/LowEnergyLimit",this);
54 lCmd->SetGuidance("Low-energy energy limit for charge exchange process");
55 lCmd->SetParameterName("cexLowE",true);
56 lCmd->SetUnitCategory("Energy");
58 lCmd->SetToBeBroadcasted(false);
59}
@ G4State_PreInit
void SetUnitCategory(const char *unitCategory)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetToBeBroadcasted(G4bool val)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)

◆ ~G4ChargeExchangeMessenger()

G4ChargeExchangeMessenger::~G4ChargeExchangeMessenger ( )
override

Definition at line 61 of file G4ChargeExchangeMessenger.cc.

62{
63 delete fCmd;
64 delete lCmd;
65 delete aDir;
66}

◆ G4ChargeExchangeMessenger() [2/2]

G4ChargeExchangeMessenger::G4ChargeExchangeMessenger ( const G4ChargeExchangeMessenger & )
delete

Member Function Documentation

◆ operator=()

G4ChargeExchangeMessenger & G4ChargeExchangeMessenger::operator= ( const G4ChargeExchangeMessenger & right)
delete

◆ SetNewValue()

void G4ChargeExchangeMessenger::SetNewValue ( G4UIcommand * aComm,
G4String aS )
overridevirtual

Reimplemented from G4UImessenger.

Definition at line 68 of file G4ChargeExchangeMessenger.cc.

69{
70 if (aComm == fCmd)
72 else if (aComm == lCmd)
73 theB->SetLowEnergyLimit(lCmd->GetNewDoubleValue(aS));
74}
void SetCrossSectionFactor(G4double val)
static G4double GetNewDoubleValue(const char *paramString)
static G4double GetNewDoubleValue(const char *paramString)

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