Geant4  10.02.p03
XrayFluoPhysicsListMessenger Class Reference

#include <XrayFluoPhysicsListMessenger.hh>

Inheritance diagram for XrayFluoPhysicsListMessenger:
Collaboration diagram for XrayFluoPhysicsListMessenger:

Public Member Functions

 XrayFluoPhysicsListMessenger (XrayFluoPhysicsList *)
 
virtual ~XrayFluoPhysicsListMessenger ()
 
void SetNewValue (G4UIcommand *, G4String)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Private Attributes

XrayFluoPhysicsListpPhysicsList
 
G4UIdirectoryphysDir
 
G4UIcmdWithAStringpListCmd
 
G4UIcmdWithADoubleAndUnitgammaCutCmd
 
G4UIcmdWithADoubleAndUnitelectCutCmd
 
G4UIcmdWithADoubleAndUnitprotoCutCmd
 
G4UIcmdWithADoubleAndUnitallCutCmd
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (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
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Definition at line 46 of file XrayFluoPhysicsListMessenger.hh.

Constructor & Destructor Documentation

◆ XrayFluoPhysicsListMessenger()

XrayFluoPhysicsListMessenger::XrayFluoPhysicsListMessenger ( XrayFluoPhysicsList pPhys)

Definition at line 43 of file XrayFluoPhysicsListMessenger.cc.

44 :pPhysicsList(pPhys)
45 {
46  physDir = new G4UIdirectory("/phys/");
47  physDir->SetGuidance("physics list commands");
48 
49  pListCmd = new G4UIcmdWithAString("/phys/addPhysics",this);
50  pListCmd->SetGuidance("Add modules physics list.");
51  pListCmd->SetParameterName("PList",false);
53 
54  gammaCutCmd = new G4UIcmdWithADoubleAndUnit("/phys/setGCut",this);
55  gammaCutCmd->SetGuidance("Set gamma cut.");
56  gammaCutCmd->SetParameterName("Gcut",false);
57  gammaCutCmd->SetUnitCategory("Length");
58  gammaCutCmd->SetRange("Gcut>0.0");
60 
61  electCutCmd = new G4UIcmdWithADoubleAndUnit("/phys/setECut",this);
62  electCutCmd->SetGuidance("Set electron and positron cuts.");
63  electCutCmd->SetParameterName("Ecut",false);
64  electCutCmd->SetUnitCategory("Length");
65  electCutCmd->SetRange("Ecut>0.0");
67 
68  protoCutCmd = new G4UIcmdWithADoubleAndUnit("/phys/setPCut",this);
69  protoCutCmd->SetGuidance("Set proton cut.");
70  protoCutCmd->SetParameterName("Pcut",false);
71  protoCutCmd->SetUnitCategory("Length");
72  protoCutCmd->SetRange("Pcut>0.0");
74 
75  allCutCmd = new G4UIcmdWithADoubleAndUnit("/phys/setCuts",this);
76  allCutCmd->SetGuidance("Set cut for all.");
77  allCutCmd->SetParameterName("cut",false);
78  allCutCmd->SetUnitCategory("Length");
79  allCutCmd->SetRange("cut>0.0");
81 
82  /*fluoCmd = new G4UIcmdWithABool("/phys/fluo",this);
83  fluoCmd->SetGuidance("Set fluorescence on/off.");
84  fluoCmd->SetParameterName("fluo",false);
85  fluoCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
86 
87  pixeCmd = new G4UIcmdWithABool("/phys/pixe",this);
88  pixeCmd->SetGuidance("Set PIXE on/off.");
89  pixeCmd->SetParameterName("pixe",false);
90  pixeCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
91  */
92 }
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetUnitCategory(const char *unitCategory)
void SetRange(const char *rs)
Definition: G4UIcommand.hh:125
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
G4UIcmdWithADoubleAndUnit * allCutCmd
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
G4UIcmdWithADoubleAndUnit * protoCutCmd
G4UIcmdWithADoubleAndUnit * electCutCmd
G4UIcmdWithADoubleAndUnit * gammaCutCmd
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
Here is the call graph for this function:

◆ ~XrayFluoPhysicsListMessenger()

XrayFluoPhysicsListMessenger::~XrayFluoPhysicsListMessenger ( )
virtual

Definition at line 96 of file XrayFluoPhysicsListMessenger.cc.

97 {
98  delete pListCmd;
99  delete gammaCutCmd;
100  delete electCutCmd;
101  delete protoCutCmd;
102  delete allCutCmd;
103  delete physDir;
104  // delete fluoCmd;
105  // delete pixeCmd;
106 }
G4UIcmdWithADoubleAndUnit * allCutCmd
G4UIcmdWithADoubleAndUnit * protoCutCmd
G4UIcmdWithADoubleAndUnit * electCutCmd
G4UIcmdWithADoubleAndUnit * gammaCutCmd

Member Function Documentation

◆ SetNewValue()

void XrayFluoPhysicsListMessenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 110 of file XrayFluoPhysicsListMessenger.cc.

111 {
112  if( command == pListCmd )
113  { pPhysicsList->AddPhysicsList(newValue);}
114 
115  if( command == gammaCutCmd )
117 
118  if( command == electCutCmd )
119  {
120  G4double cut = electCutCmd->GetNewDoubleValue(newValue);
123  }
124 
125  if( command == protoCutCmd )
127 
128  if( command == allCutCmd )
129  {
130  G4double cut = allCutCmd->GetNewDoubleValue(newValue);
135  }
136 
137  //Notify the run manager that the physics has been modified
139 
140 // if( command == fluoCmd )
141 // { pPhysicsList->SetFluorescence(fluoCmd->GetNewBoolValue(newValue));}
142 //
143 // if( command == pixeCmd )
144 // { pPhysicsList->SetPIXE(fluoCmd->GetNewBoolValue(newValue));}
145 }
void SetCutForProton(G4double)
static G4double GetNewDoubleValue(const char *paramString)
void SetCutForElectron(G4double)
void SetCutForGamma(G4double)
void PhysicsHasBeenModified()
G4UIcmdWithADoubleAndUnit * allCutCmd
void AddPhysicsList(const G4String &name)
void SetCutForPositron(G4double)
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
G4UIcmdWithADoubleAndUnit * protoCutCmd
G4UIcmdWithADoubleAndUnit * electCutCmd
G4UIcmdWithADoubleAndUnit * gammaCutCmd
double G4double
Definition: G4Types.hh:76
Here is the call graph for this function:

Member Data Documentation

◆ allCutCmd

G4UIcmdWithADoubleAndUnit* XrayFluoPhysicsListMessenger::allCutCmd
private

Definition at line 64 of file XrayFluoPhysicsListMessenger.hh.

◆ electCutCmd

G4UIcmdWithADoubleAndUnit* XrayFluoPhysicsListMessenger::electCutCmd
private

Definition at line 62 of file XrayFluoPhysicsListMessenger.hh.

◆ gammaCutCmd

G4UIcmdWithADoubleAndUnit* XrayFluoPhysicsListMessenger::gammaCutCmd
private

Definition at line 61 of file XrayFluoPhysicsListMessenger.hh.

◆ physDir

G4UIdirectory* XrayFluoPhysicsListMessenger::physDir
private

Definition at line 59 of file XrayFluoPhysicsListMessenger.hh.

◆ pListCmd

G4UIcmdWithAString* XrayFluoPhysicsListMessenger::pListCmd
private

Definition at line 60 of file XrayFluoPhysicsListMessenger.hh.

◆ pPhysicsList

XrayFluoPhysicsList* XrayFluoPhysicsListMessenger::pPhysicsList
private

Definition at line 57 of file XrayFluoPhysicsListMessenger.hh.

◆ protoCutCmd

G4UIcmdWithADoubleAndUnit* XrayFluoPhysicsListMessenger::protoCutCmd
private

Definition at line 63 of file XrayFluoPhysicsListMessenger.hh.


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