Geant4  10.02.p03
G4ParticleHPMessenger Class Reference

#include <G4ParticleHPMessenger.hh>

Inheritance diagram for G4ParticleHPMessenger:
Collaboration diagram for G4ParticleHPMessenger:

Public Member Functions

 G4ParticleHPMessenger (G4ParticleHPManager *)
 
 ~G4ParticleHPMessenger ()
 
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

G4ParticleHPManagermanager
 
G4UIdirectoryParticleHPDir
 
G4UIcmdWithAStringPhotoEvaCmd
 
G4UIcmdWithAStringSkipMissingCmd
 
G4UIcmdWithAStringNeglectDopplerCmd
 
G4UIcmdWithAStringDoNotAdjustFSCmd
 
G4UIcmdWithAStringProduceFissionFragementCmd
 
G4UIcmdWithAnIntegerVerboseCmd
 

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 37 of file G4ParticleHPMessenger.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPMessenger()

G4ParticleHPMessenger::G4ParticleHPMessenger ( G4ParticleHPManager man)

Definition at line 33 of file G4ParticleHPMessenger.cc.

34 :manager(man)
35 {
36  ParticleHPDir = new G4UIdirectory( "/process/had/particle_hp/" );
37  ParticleHPDir->SetGuidance( "UI commands of ParticleHP" );
38 
39  PhotoEvaCmd = new G4UIcmdWithAString("/process/had/particle_hp/use_photo_evaporation",this);
40  PhotoEvaCmd->SetGuidance(" Force the use of the Photon Evaporation model, instead of the neutron capture final state data.");
41  PhotoEvaCmd->SetParameterName("choice",false);
42  PhotoEvaCmd->SetCandidates("true false");
44 
45  SkipMissingCmd = new G4UIcmdWithAString("/process/had/particle_hp/skip_missing_isotopes",this);
46  SkipMissingCmd->SetGuidance("Use only exact isotope data files, instead of allowing nearby isotope files to be used.");
47  SkipMissingCmd->SetGuidance("In this case if the exact file is not available, the cross section will be set to zero.");
48  SkipMissingCmd->SetParameterName("choice",false);
49  SkipMissingCmd->SetCandidates("true false");
51 
52  NeglectDopplerCmd = new G4UIcmdWithAString("/process/had/particle_hp/neglect_Doppler_broadening",this);
53  NeglectDopplerCmd->SetGuidance("Switch off the Doppler broadening due to the thermal motion of the target nucleus.");
54  NeglectDopplerCmd->SetGuidance("This option provides a significant CPU performance advantage.");
55  NeglectDopplerCmd->SetParameterName("choice",false);
56  NeglectDopplerCmd->SetCandidates("true false");
58 
59  DoNotAdjustFSCmd = new G4UIcmdWithAString("/process/had/particle_hp/do_not_adjust_final_state",this);
60  DoNotAdjustFSCmd->SetGuidance("Disable to adjust final state for getting better conservation.");
61  DoNotAdjustFSCmd->SetParameterName("choice",false);
62  DoNotAdjustFSCmd->SetCandidates("true false");
64 
65  ProduceFissionFragementCmd = new G4UIcmdWithAString("/process/had/particle_hp/produce_fission_fragment",this);
66  ProduceFissionFragementCmd->SetGuidance("Enable to generate fission fragments.");
70 
71  VerboseCmd = new G4UIcmdWithAnInteger("/process/had/particle_hp/verbose",this);
72  VerboseCmd->SetGuidance("Set Verbose level of ParticleHP package");
73  VerboseCmd->SetParameterName("verbose_level",true);
75  VerboseCmd->SetRange("verbose_level >=0");
77 }
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithAString * NeglectDopplerCmd
G4UIcmdWithAString * SkipMissingCmd
G4ParticleHPManager * manager
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithAString * ProduceFissionFragementCmd
G4UIcmdWithAnInteger * VerboseCmd
void SetRange(const char *rs)
Definition: G4UIcommand.hh:125
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
G4UIcmdWithAString * PhotoEvaCmd
void SetCandidates(const char *candidateList)
void SetDefaultValue(G4int defVal)
G4UIcmdWithAString * DoNotAdjustFSCmd
Here is the call graph for this function:

◆ ~G4ParticleHPMessenger()

G4ParticleHPMessenger::~G4ParticleHPMessenger ( )

Definition at line 79 of file G4ParticleHPMessenger.cc.

80 {
81  delete ParticleHPDir;
82  delete PhotoEvaCmd;
83  delete SkipMissingCmd;
84  delete NeglectDopplerCmd;
85  delete DoNotAdjustFSCmd;
87  delete VerboseCmd;
88 }
G4UIcmdWithAString * NeglectDopplerCmd
G4UIcmdWithAString * SkipMissingCmd
G4UIcmdWithAString * ProduceFissionFragementCmd
G4UIcmdWithAnInteger * VerboseCmd
G4UIcmdWithAString * PhotoEvaCmd
G4UIcmdWithAString * DoNotAdjustFSCmd

Member Function Documentation

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 90 of file G4ParticleHPMessenger.cc.

91 {
92  G4bool bValue=false;
93  if ( newValue == "true" ) bValue=true;
94 
95  if ( command == PhotoEvaCmd ) {
97  }
98  if ( command == SkipMissingCmd) {
99  manager->SetSkipMissingIsotopes( bValue );
100  }
101  if ( command == NeglectDopplerCmd ) {
102  manager->SetNeglectDoppler( bValue );
103  }
104  if ( command == DoNotAdjustFSCmd ) {
105  manager->SetDoNotAdjustFinalState( bValue );
106  }
107  if ( command == ProduceFissionFragementCmd ) {
109  }
110  if ( command == VerboseCmd ) {
112  }
113 }
G4UIcmdWithAString * NeglectDopplerCmd
G4UIcmdWithAString * SkipMissingCmd
G4ParticleHPManager * manager
void SetDoNotAdjustFinalState(G4bool val)
G4UIcmdWithAString * ProduceFissionFragementCmd
void SetProduceFissionFragments(G4bool val)
void SetUseOnlyPhotoEvaporation(G4bool val)
G4UIcmdWithAnInteger * VerboseCmd
bool G4bool
Definition: G4Types.hh:79
static G4int ConvertToInt(const char *st)
Definition: G4UIcommand.cc:435
void SetNeglectDoppler(G4bool val)
G4UIcmdWithAString * PhotoEvaCmd
G4UIcmdWithAString * DoNotAdjustFSCmd
void SetSkipMissingIsotopes(G4bool val)
Here is the call graph for this function:

Member Data Documentation

◆ DoNotAdjustFSCmd

G4UIcmdWithAString* G4ParticleHPMessenger::DoNotAdjustFSCmd
private

Definition at line 52 of file G4ParticleHPMessenger.hh.

◆ manager

G4ParticleHPManager* G4ParticleHPMessenger::manager
private

Definition at line 46 of file G4ParticleHPMessenger.hh.

◆ NeglectDopplerCmd

G4UIcmdWithAString* G4ParticleHPMessenger::NeglectDopplerCmd
private

Definition at line 51 of file G4ParticleHPMessenger.hh.

◆ ParticleHPDir

G4UIdirectory* G4ParticleHPMessenger::ParticleHPDir
private

Definition at line 48 of file G4ParticleHPMessenger.hh.

◆ PhotoEvaCmd

G4UIcmdWithAString* G4ParticleHPMessenger::PhotoEvaCmd
private

Definition at line 49 of file G4ParticleHPMessenger.hh.

◆ ProduceFissionFragementCmd

G4UIcmdWithAString* G4ParticleHPMessenger::ProduceFissionFragementCmd
private

Definition at line 53 of file G4ParticleHPMessenger.hh.

◆ SkipMissingCmd

G4UIcmdWithAString* G4ParticleHPMessenger::SkipMissingCmd
private

Definition at line 50 of file G4ParticleHPMessenger.hh.

◆ VerboseCmd

G4UIcmdWithAnInteger* G4ParticleHPMessenger::VerboseCmd
private

Definition at line 54 of file G4ParticleHPMessenger.hh.


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