Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4DeexParametersMessenger.cc
이 파일의 문서화 페이지로 가기
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // $Id: G4DeexParametersMessenger.cc 66241 2012-12-13 18:34:42Z gunter $
27 //
28 // -------------------------------------------------------------------
29 //
30 // GEANT4 Class file
31 //
32 // File name: G4DeexParametersMessenger
33 //
34 // Author: Vladimir Ivanchenko
35 //
36 // Creation date: 17-10-2017
37 //
38 // Modifications:
39 //
40 // -------------------------------------------------------------------
41 //
42 
43 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
44 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
45 
47 #include "G4UIdirectory.hh"
48 #include "G4UIcommand.hh"
49 #include "G4UIparameter.hh"
50 #include "G4UIcmdWithABool.hh"
51 #include "G4UIcmdWithAnInteger.hh"
52 #include "G4UIcmdWithADouble.hh"
54 #include "G4UIcmdWithAString.hh"
55 #include "G4UImanager.hh"
56 #include "G4DeexPrecoParameters.hh"
57 
58 #include <sstream>
59 
60 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
61 
63  : theParameters(ptr)
64 {
65  fDirectory = new G4UIdirectory("/process/deex/");
66  fDirectory->SetGuidance("Commands for nuclear de-excitation module.");
67 
68  readCmd = new G4UIcmdWithABool("/process/deex/readICdata",this);
69  readCmd->SetGuidance("Enable/disable download IC data per atomic shell.");
70  readCmd->SetParameterName("readIC",true);
71  readCmd->SetDefaultValue(false);
73 
74  icCmd = new G4UIcmdWithABool("/process/deex/setIC",this);
75  icCmd->SetGuidance("Enable/disable simulation of e- internal conversion.");
76  icCmd->SetParameterName("IC",true);
77  icCmd->SetDefaultValue(true);
79 
80  corgCmd = new G4UIcmdWithABool("/process/deex/correlatedGamma",this);
81  corgCmd->SetGuidance("Enable/disable simulation of correlated gamma emission.");
82  corgCmd->SetParameterName("corrG",true);
83  corgCmd->SetDefaultValue(false);
85 
86  maxjCmd = new G4UIcmdWithAnInteger("/process/deex/maxTwoJ",this);
87  maxjCmd->SetGuidance("Set max value for 2J for simulation of correlated gamma emission.");
88  maxjCmd->SetParameterName("max2J",true);
91 }
92 
93 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
94 
96 {
97  delete fDirectory;
98 
99  delete readCmd;
100  delete icCmd;
101  delete corgCmd;
102  delete maxjCmd;
103 }
104 
105 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
106 
108  G4String newValue)
109 {
110  if (command == readCmd) {
112  } else if (command == icCmd) {
114  } else if (command == corgCmd) {
116  } else if (command == maxjCmd) {
118  }
119 }
120 
121 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
virtual void SetNewValue(G4UIcommand *, G4String) override
void SetDefaultValue(G4bool defVal)
void SetDefaultValue(G4int defVal)
static G4bool GetNewBoolValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4DeexPrecoParameters * theParameters
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:242
G4DeexParametersMessenger(G4DeexPrecoParameters *)