Geant4  10.02.p03
Em10PhysicsListMessenger Class Reference

#include <Em10PhysicsListMessenger.hh>

Inheritance diagram for Em10PhysicsListMessenger:
Collaboration diagram for Em10PhysicsListMessenger:

Public Member Functions

 Em10PhysicsListMessenger (Em10PhysicsList *)
 
 ~Em10PhysicsListMessenger ()
 
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

Em10PhysicsListEm10List
 
G4UIcmdWithADoubleAndUnitsetMaxStepCmd
 
G4UIcmdWithADoubleAndUnitcutGCmd
 
G4UIcmdWithADoubleAndUnitcutECmd
 
G4UIcmdWithADoubleAndUniteCmd
 
G4UIcmdWithADoubleAndUnitElectronCutCmd
 
G4UIcmdWithADoubleAndUnitPositronCutCmd
 
G4UIcmdWithADoubleAndUnitGammaCutCmd
 
G4UIcmdWithADoubleAndUnitRadiatorCutCmd
 
G4UIcmdWithADoubleAndUnitDetectorCutCmd
 
G4UIcmdWithAStringXTRModelCmd
 

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 50 of file Em10PhysicsListMessenger.hh.

Constructor & Destructor Documentation

◆ Em10PhysicsListMessenger()

Em10PhysicsListMessenger::Em10PhysicsListMessenger ( Em10PhysicsList List)

Definition at line 51 of file Em10PhysicsListMessenger.cc.

52 :G4UImessenger(),Em10List(List)
53 {
54  cutGCmd = new G4UIcmdWithADoubleAndUnit("/calor/cutG",this);
55  cutGCmd->SetGuidance("Set cut values by RANGE for Gamma.");
56  cutGCmd->SetParameterName("range",true);
58  cutGCmd->SetDefaultUnit("mm");
60 
61  cutECmd = new G4UIcmdWithADoubleAndUnit("/calor/cutE",this);
62  cutECmd->SetGuidance("Set cut values by RANGE for e- e+.");
63  cutECmd->SetParameterName("range",true);
65  cutECmd->SetDefaultUnit("mm");
67 
68  setMaxStepCmd = new G4UIcmdWithADoubleAndUnit("/step/setMaxStep",this);
69  setMaxStepCmd->SetGuidance("Set max. step length in the detector");
70  setMaxStepCmd->SetParameterName("mxStep",true);
72 
73 
74  ElectronCutCmd = new G4UIcmdWithADoubleAndUnit("/emphyslist/setElectronCut",this);
75  ElectronCutCmd->SetGuidance("Set electron cut in mm for vertex region");
76  ElectronCutCmd->SetParameterName("ElectronCut",false,false);
78  ElectronCutCmd->SetRange("ElectronCut>0.");
80 
81 
82  PositronCutCmd = new G4UIcmdWithADoubleAndUnit("/emphyslist/setPositronCut",this);
83  PositronCutCmd->SetGuidance("Set positron cut in mm for vertex region");
84  PositronCutCmd->SetParameterName("PositronCut",false,false);
86  PositronCutCmd->SetRange("PositronCut>0.");
88 
89 
90  GammaCutCmd = new G4UIcmdWithADoubleAndUnit("/emphyslist/setGammaCut",this);
91  GammaCutCmd->SetGuidance("Set gamma cut in mm for vertex region");
92  GammaCutCmd->SetParameterName("GammaCut",false,false);
94  GammaCutCmd->SetRange("GammaCut>0.");
96 
97  RadiatorCutCmd = new G4UIcmdWithADoubleAndUnit("/emphyslist/setRadiatorCuts",this);
98  RadiatorCutCmd->SetGuidance("Set radiator cut in mm for vertex region");
99  RadiatorCutCmd->SetParameterName("RadiatorCuts",false,false);
101  RadiatorCutCmd->SetRange("RadiatorCuts > 0.");
103 
104  DetectorCutCmd = new G4UIcmdWithADoubleAndUnit("/emphyslist/setDetectorCuts",this);
105  DetectorCutCmd->SetGuidance("Set radiator cut in mm for vertex region");
106  DetectorCutCmd->SetParameterName("DetectorCuts",false,false);
108  DetectorCutCmd->SetRange("DetectorCuts > 0.");
110 
111  XTRModelCmd = new G4UIcmdWithAString("/emphyslist/setXTRModel",this);
112  XTRModelCmd->SetGuidance("Set XTR model");
113  XTRModelCmd->SetParameterName("XTRModel",false);
115 
116 }
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithADoubleAndUnit * ElectronCutCmd
G4UIcmdWithADoubleAndUnit * DetectorCutCmd
void SetRange(const char *rs)
Definition: G4UIcommand.hh:125
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
G4UIcmdWithADoubleAndUnit * cutGCmd
G4UIcmdWithADoubleAndUnit * setMaxStepCmd
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
G4UIcmdWithADoubleAndUnit * GammaCutCmd
G4UIcmdWithADoubleAndUnit * cutECmd
void SetDefaultUnit(const char *defUnit)
G4UIcmdWithADoubleAndUnit * RadiatorCutCmd
G4UIcmdWithADoubleAndUnit * PositronCutCmd
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
Here is the call graph for this function:

◆ ~Em10PhysicsListMessenger()

Em10PhysicsListMessenger::~Em10PhysicsListMessenger ( )

Definition at line 120 of file Em10PhysicsListMessenger.cc.

121 {
122  delete cutGCmd;
123  delete cutECmd;
124 
125  delete setMaxStepCmd;
126 
127  delete ElectronCutCmd;
128  delete PositronCutCmd;
129  delete GammaCutCmd;
130  delete XTRModelCmd;
131 }
G4UIcmdWithADoubleAndUnit * ElectronCutCmd
G4UIcmdWithADoubleAndUnit * cutGCmd
G4UIcmdWithADoubleAndUnit * setMaxStepCmd
G4UIcmdWithADoubleAndUnit * GammaCutCmd
G4UIcmdWithADoubleAndUnit * cutECmd
G4UIcmdWithADoubleAndUnit * PositronCutCmd

Member Function Documentation

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 135 of file Em10PhysicsListMessenger.cc.

136 {
137  if(command == cutGCmd)
139  if(command == cutECmd)
141  if(command == setMaxStepCmd)
143 
144  if( command == ElectronCutCmd )
145  {
147  }
148  if( command == PositronCutCmd )
149  {
151  }
152  if( command == GammaCutCmd )
153  {
155  }
156  if( command == RadiatorCutCmd )
157  {
159  }
160  if( command == DetectorCutCmd )
161  {
163  }
164  if( command == XTRModelCmd )
165  {
166  Em10List->SetXTRModel(newValue);
167  }
168 }
G4UIcmdWithADoubleAndUnit * ElectronCutCmd
G4UIcmdWithADoubleAndUnit * DetectorCutCmd
void SetMaxStep(G4double)
static G4double GetNewDoubleValue(const char *paramString)
G4UIcmdWithADoubleAndUnit * cutGCmd
G4UIcmdWithADoubleAndUnit * setMaxStepCmd
void SetGammaCut(G4double)
void SetRegPositronCut(G4double cut)
G4UIcmdWithADoubleAndUnit * GammaCutCmd
G4UIcmdWithADoubleAndUnit * cutECmd
void SetElectronCut(G4double)
G4UIcmdWithADoubleAndUnit * eCmd
void SetRegElectronCut(G4double cut)
G4UIcmdWithADoubleAndUnit * RadiatorCutCmd
G4UIcmdWithADoubleAndUnit * PositronCutCmd
void SetRegGammaCut(G4double cut)
void SetXTRModel(G4String m)
Here is the call graph for this function:

Member Data Documentation

◆ cutECmd

G4UIcmdWithADoubleAndUnit* Em10PhysicsListMessenger::cutECmd
private

Definition at line 64 of file Em10PhysicsListMessenger.hh.

◆ cutGCmd

G4UIcmdWithADoubleAndUnit* Em10PhysicsListMessenger::cutGCmd
private

Definition at line 63 of file Em10PhysicsListMessenger.hh.

◆ DetectorCutCmd

G4UIcmdWithADoubleAndUnit* Em10PhysicsListMessenger::DetectorCutCmd
private

Definition at line 72 of file Em10PhysicsListMessenger.hh.

◆ eCmd

G4UIcmdWithADoubleAndUnit* Em10PhysicsListMessenger::eCmd
private

Definition at line 65 of file Em10PhysicsListMessenger.hh.

◆ ElectronCutCmd

G4UIcmdWithADoubleAndUnit* Em10PhysicsListMessenger::ElectronCutCmd
private

Definition at line 67 of file Em10PhysicsListMessenger.hh.

◆ Em10List

Em10PhysicsList* Em10PhysicsListMessenger::Em10List
private

Definition at line 59 of file Em10PhysicsListMessenger.hh.

◆ GammaCutCmd

G4UIcmdWithADoubleAndUnit* Em10PhysicsListMessenger::GammaCutCmd
private

Definition at line 69 of file Em10PhysicsListMessenger.hh.

◆ PositronCutCmd

G4UIcmdWithADoubleAndUnit* Em10PhysicsListMessenger::PositronCutCmd
private

Definition at line 68 of file Em10PhysicsListMessenger.hh.

◆ RadiatorCutCmd

G4UIcmdWithADoubleAndUnit* Em10PhysicsListMessenger::RadiatorCutCmd
private

Definition at line 71 of file Em10PhysicsListMessenger.hh.

◆ setMaxStepCmd

G4UIcmdWithADoubleAndUnit* Em10PhysicsListMessenger::setMaxStepCmd
private

Definition at line 61 of file Em10PhysicsListMessenger.hh.

◆ XTRModelCmd

G4UIcmdWithAString* Em10PhysicsListMessenger::XTRModelCmd
private

Definition at line 73 of file Em10PhysicsListMessenger.hh.


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