Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // >> 26 // $Id: G4EmParametersMessenger.cc 66241 2012-12-13 18:34:42Z gunter $ >> 27 // 26 // ------------------------------------------- 28 // ------------------------------------------------------------------- 27 // 29 // 28 // GEANT4 Class file 30 // GEANT4 Class file 29 // 31 // 30 // File name: G4EmParametersMessenger 32 // File name: G4EmParametersMessenger 31 // 33 // 32 // Author: Vladimir Ivanchenko created 34 // Author: Vladimir Ivanchenko created from G4EnergyLossMessenger 33 // 35 // 34 // Creation date: 22-05-2013 36 // Creation date: 22-05-2013 35 // 37 // >> 38 // Modifications: >> 39 // 36 // ------------------------------------------- 40 // ------------------------------------------------------------------- 37 // 41 // 38 42 39 //....oooOO0OOooo........oooOO0OOooo........oo 43 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 40 //....oooOO0OOooo........oooOO0OOooo........oo 44 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 41 45 42 #include "G4EmParametersMessenger.hh" 46 #include "G4EmParametersMessenger.hh" 43 #include "G4UIdirectory.hh" 47 #include "G4UIdirectory.hh" 44 #include "G4UIcommand.hh" 48 #include "G4UIcommand.hh" 45 #include "G4UIparameter.hh" 49 #include "G4UIparameter.hh" 46 #include "G4UIcmdWithABool.hh" 50 #include "G4UIcmdWithABool.hh" 47 #include "G4UIcmdWithAnInteger.hh" 51 #include "G4UIcmdWithAnInteger.hh" 48 #include "G4UIcmdWithADouble.hh" 52 #include "G4UIcmdWithADouble.hh" 49 #include "G4UIcmdWithADoubleAndUnit.hh" 53 #include "G4UIcmdWithADoubleAndUnit.hh" 50 #include "G4UIcmdWithAString.hh" 54 #include "G4UIcmdWithAString.hh" 51 #include "G4UIcmdWith3VectorAndUnit.hh" << 52 #include "G4UImanager.hh" 55 #include "G4UImanager.hh" 53 #include "G4MscStepLimitType.hh" 56 #include "G4MscStepLimitType.hh" 54 #include "G4NuclearFormfactorType.hh" 57 #include "G4NuclearFormfactorType.hh" 55 #include "G4EmParameters.hh" 58 #include "G4EmParameters.hh" 56 59 57 #include <sstream> 60 #include <sstream> 58 61 59 //....oooOO0OOooo........oooOO0OOooo........oo 62 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 60 63 61 G4EmParametersMessenger::G4EmParametersMesseng 64 G4EmParametersMessenger::G4EmParametersMessenger(G4EmParameters* ptr) 62 : theParameters(ptr) 65 : theParameters(ptr) 63 { 66 { 64 emDirectory = new G4UIdirectory("/process/em << 67 eLossDirectory = new G4UIdirectory("/process/eLoss/"); 65 emDirectory->SetGuidance("General commands f << 68 eLossDirectory->SetGuidance("Commands for EM processes."); 66 eLossDirectory = new G4UIdirectory("/process << 69 mscDirectory = new G4UIdirectory("/process/msc/"); 67 eLossDirectory->SetGuidance("Commands for en << 68 mscDirectory = new G4UIdirectory("/process/m << 69 mscDirectory->SetGuidance("Commands for EM s 70 mscDirectory->SetGuidance("Commands for EM scattering processes."); 70 gconvDirectory = new G4UIdirectory("/process << 71 emDirectory = new G4UIdirectory("/process/em/"); 71 gconvDirectory->SetGuidance("Commands for EM << 72 emDirectory->SetGuidance("General commands for EM processes."); 72 dnaDirectory = new G4UIdirectory("/process/d << 73 dnaDirectory->SetGuidance("Commands for DNA << 74 73 75 flucCmd = new G4UIcmdWithABool("/process/eLo 74 flucCmd = new G4UIcmdWithABool("/process/eLoss/fluct",this); 76 flucCmd->SetGuidance("Enable/disable energy 75 flucCmd->SetGuidance("Enable/disable energy loss fluctuations."); 77 flucCmd->SetParameterName("choice",true); 76 flucCmd->SetParameterName("choice",true); 78 flucCmd->SetDefaultValue(true); 77 flucCmd->SetDefaultValue(true); 79 flucCmd->AvailableForStates(G4State_PreInit, 78 flucCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 80 flucCmd->SetToBeBroadcasted(false); << 81 79 82 rangeCmd = new G4UIcmdWithABool("/process/eL 80 rangeCmd = new G4UIcmdWithABool("/process/eLoss/CSDARange",this); 83 rangeCmd->SetGuidance("Enable/disable CSDA r 81 rangeCmd->SetGuidance("Enable/disable CSDA range calculation"); 84 rangeCmd->SetParameterName("range",true); 82 rangeCmd->SetParameterName("range",true); 85 rangeCmd->SetDefaultValue(false); 83 rangeCmd->SetDefaultValue(false); 86 rangeCmd->AvailableForStates(G4State_PreInit 84 rangeCmd->AvailableForStates(G4State_PreInit); 87 rangeCmd->SetToBeBroadcasted(false); << 88 85 89 lpmCmd = new G4UIcmdWithABool("/process/eLos 86 lpmCmd = new G4UIcmdWithABool("/process/eLoss/LPM",this); 90 lpmCmd->SetGuidance("Enable/disable LPM effe 87 lpmCmd->SetGuidance("Enable/disable LPM effect calculation"); 91 lpmCmd->SetParameterName("lpm",true); 88 lpmCmd->SetParameterName("lpm",true); 92 lpmCmd->SetDefaultValue(true); 89 lpmCmd->SetDefaultValue(true); 93 lpmCmd->AvailableForStates(G4State_PreInit,G 90 lpmCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 94 lpmCmd->SetToBeBroadcasted(false); << 91 >> 92 splCmd = new G4UIcmdWithABool("/process/em/spline",this); >> 93 splCmd->SetGuidance("Enable/disable usage spline for Physics Vectors"); >> 94 splCmd->SetParameterName("spl",true); >> 95 splCmd->SetDefaultValue(false); >> 96 splCmd->AvailableForStates(G4State_PreInit); 95 97 96 rsCmd = new G4UIcmdWithABool("/process/eLoss 98 rsCmd = new G4UIcmdWithABool("/process/eLoss/useCutAsFinalRange",this); 97 rsCmd->SetGuidance("Enable/disable use of cu 99 rsCmd->SetGuidance("Enable/disable use of cut in range as a final range"); 98 rsCmd->SetParameterName("choice",true); 100 rsCmd->SetParameterName("choice",true); 99 rsCmd->SetDefaultValue(false); 101 rsCmd->SetDefaultValue(false); 100 rsCmd->AvailableForStates(G4State_PreInit,G4 102 rsCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 101 rsCmd->SetToBeBroadcasted(false); << 102 103 103 aplCmd = new G4UIcmdWithABool("/process/em/a 104 aplCmd = new G4UIcmdWithABool("/process/em/applyCuts",this); 104 aplCmd->SetGuidance("Enable/disable applying 105 aplCmd->SetGuidance("Enable/disable applying cuts for gamma processes"); 105 aplCmd->SetParameterName("apl",true); 106 aplCmd->SetParameterName("apl",true); 106 aplCmd->SetDefaultValue(false); 107 aplCmd->SetDefaultValue(false); 107 aplCmd->AvailableForStates(G4State_PreInit,G 108 aplCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 108 aplCmd->SetToBeBroadcasted(false); << 109 109 110 intCmd = new G4UIcmdWithABool("/process/em/i << 110 deCmd = new G4UIcmdWithABool("/process/em/fluo",this); 111 intCmd->SetGuidance("Enable/disable integral << 111 deCmd->SetGuidance("Enable/disable atomic deexcitation"); 112 intCmd->SetParameterName("choice",true); << 112 deCmd->SetParameterName("fluoFlag",true); 113 intCmd->SetDefaultValue(true); << 113 deCmd->SetDefaultValue(false); 114 intCmd->AvailableForStates(G4State_PreInit); << 114 deCmd->AvailableForStates(G4State_PreInit,G4State_Init,G4State_Idle); 115 intCmd->SetToBeBroadcasted(false); << 115 >> 116 dirFluoCmd = new G4UIcmdWithABool("/process/em/fluoBearden",this); >> 117 dirFluoCmd->SetGuidance("Enable/disable usage of Bearden fluorescence files"); >> 118 dirFluoCmd->SetParameterName("fluoBeardenFlag",true); >> 119 dirFluoCmd->SetDefaultValue(false); >> 120 dirFluoCmd->AvailableForStates(G4State_PreInit,G4State_Init); >> 121 >> 122 auCmd = new G4UIcmdWithABool("/process/em/auger",this); >> 123 auCmd->SetGuidance("Enable/disable Auger electrons production"); >> 124 auCmd->SetParameterName("augerFlag",true); >> 125 auCmd->SetDefaultValue(false); >> 126 auCmd->AvailableForStates(G4State_PreInit,G4State_Init,G4State_Idle); >> 127 >> 128 auCascadeCmd = new G4UIcmdWithABool("/process/em/augerCascade",this); >> 129 auCascadeCmd->SetGuidance("Enable/disable simulation of cascade of Auger electrons"); >> 130 auCascadeCmd->SetParameterName("augerCascadeFlag",true); >> 131 auCascadeCmd->SetDefaultValue(false); >> 132 auCascadeCmd->AvailableForStates(G4State_PreInit,G4State_Init,G4State_Idle); >> 133 >> 134 pixeCmd = new G4UIcmdWithABool("/process/em/pixe",this); >> 135 pixeCmd->SetGuidance("Enable/disable PIXE simulation"); >> 136 pixeCmd->SetParameterName("pixeFlag",true); >> 137 pixeCmd->SetDefaultValue(false); >> 138 pixeCmd->AvailableForStates(G4State_PreInit,G4State_Init,G4State_Idle); >> 139 >> 140 dcutCmd = new G4UIcmdWithABool("/process/em/deexcitationIgnoreCut",this); >> 141 dcutCmd->SetGuidance("Enable/Disable usage of cuts in de-excitation module"); >> 142 dcutCmd->SetParameterName("deexcut",true); >> 143 dcutCmd->SetDefaultValue(false); >> 144 dcutCmd->AvailableForStates(G4State_PreInit,G4State_Init,G4State_Idle); 116 145 117 latCmd = new G4UIcmdWithABool("/process/msc/ 146 latCmd = new G4UIcmdWithABool("/process/msc/LateralDisplacement",this); 118 latCmd->SetGuidance("Enable/disable sampling 147 latCmd->SetGuidance("Enable/disable sampling of lateral displacement"); 119 latCmd->SetParameterName("lat",true); 148 latCmd->SetParameterName("lat",true); 120 latCmd->SetDefaultValue(true); 149 latCmd->SetDefaultValue(true); 121 latCmd->AvailableForStates(G4State_PreInit,G 150 latCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 122 latCmd->SetToBeBroadcasted(false); << 123 151 124 lat96Cmd = new G4UIcmdWithABool("/process/ms 152 lat96Cmd = new G4UIcmdWithABool("/process/msc/LateralDisplacementAlg96",this); 125 lat96Cmd->SetGuidance("Enable/disable sampli 153 lat96Cmd->SetGuidance("Enable/disable sampling of lateral displacement"); 126 lat96Cmd->SetParameterName("lat96",true); 154 lat96Cmd->SetParameterName("lat96",true); 127 lat96Cmd->SetDefaultValue(false); 155 lat96Cmd->SetDefaultValue(false); 128 lat96Cmd->AvailableForStates(G4State_PreInit 156 lat96Cmd->AvailableForStates(G4State_PreInit,G4State_Idle); 129 lat96Cmd->SetToBeBroadcasted(false); << 130 157 131 mulatCmd = new G4UIcmdWithABool("/process/ms 158 mulatCmd = new G4UIcmdWithABool("/process/msc/MuHadLateralDisplacement",this); 132 mulatCmd->SetGuidance("Enable/disable sampli 159 mulatCmd->SetGuidance("Enable/disable sampling of lateral displacement for muons and hadrons"); 133 mulatCmd->SetParameterName("mulat",true); 160 mulatCmd->SetParameterName("mulat",true); 134 mulatCmd->SetDefaultValue(true); 161 mulatCmd->SetDefaultValue(true); 135 mulatCmd->AvailableForStates(G4State_PreInit 162 mulatCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 136 mulatCmd->SetToBeBroadcasted(false); << 163 >> 164 catCmd = new G4UIcmdWithABool("/process/msc/DisplacementBeyondSafety",this); >> 165 catCmd->SetGuidance("Enable/disable displacement at geometry boundary"); >> 166 catCmd->SetParameterName("cat",true); >> 167 catCmd->SetDefaultValue(false); >> 168 catCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 137 169 138 delCmd = new G4UIcmdWithABool("/process/eLos 170 delCmd = new G4UIcmdWithABool("/process/eLoss/UseAngularGenerator",this); 139 delCmd->SetGuidance("Enable usage of angular 171 delCmd->SetGuidance("Enable usage of angular generator for ionisation"); 140 delCmd->SetParameterName("del",true); 172 delCmd->SetParameterName("del",true); 141 delCmd->SetDefaultValue(false); 173 delCmd->SetDefaultValue(false); 142 delCmd->AvailableForStates(G4State_PreInit); 174 delCmd->AvailableForStates(G4State_PreInit); 143 delCmd->SetToBeBroadcasted(false); << 175 >> 176 IntegCmd = new G4UIcmdWithABool("/process/eLoss/integral",this); >> 177 IntegCmd->SetGuidance("Switch true/false the integral option"); >> 178 IntegCmd->SetParameterName("integ",true); >> 179 IntegCmd->SetDefaultValue(true); >> 180 IntegCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 144 181 145 mottCmd = new G4UIcmdWithABool("/process/msc 182 mottCmd = new G4UIcmdWithABool("/process/msc/UseMottCorrection",this); 146 mottCmd->SetGuidance("Enable usage of Mott c 183 mottCmd->SetGuidance("Enable usage of Mott corrections for e- elastic scattering"); 147 mottCmd->SetParameterName("mott",true); 184 mottCmd->SetParameterName("mott",true); 148 mottCmd->SetDefaultValue(false); 185 mottCmd->SetDefaultValue(false); 149 mottCmd->AvailableForStates(G4State_PreInit) 186 mottCmd->AvailableForStates(G4State_PreInit); 150 mottCmd->SetToBeBroadcasted(false); << 151 187 152 birksCmd = new G4UIcmdWithABool("/process/em << 188 birksCmd = new G4UIcmdWithABool("/process/msc/UseG4EmSaturation",this); 153 birksCmd->SetGuidance("Enable usage of built 189 birksCmd->SetGuidance("Enable usage of built-in Birks saturation"); 154 birksCmd->SetParameterName("birks",true); 190 birksCmd->SetParameterName("birks",true); 155 birksCmd->SetDefaultValue(false); 191 birksCmd->SetDefaultValue(false); 156 birksCmd->AvailableForStates(G4State_PreInit 192 birksCmd->AvailableForStates(G4State_PreInit,G4State_Init); 157 birksCmd->SetToBeBroadcasted(false); << 158 193 159 sharkCmd = new G4UIcmdWithABool("/process/em << 194 dnafCmd = new G4UIcmdWithABool("/process/em/UseDNAFast",this); 160 sharkCmd->SetGuidance("Enable gamma, e+- gen << 195 dnafCmd->SetGuidance("Enable usage of fast sampling for DNA models"); 161 sharkCmd->SetParameterName("gen",true); << 196 dnafCmd->SetParameterName("dnaf",true); >> 197 dnafCmd->SetDefaultValue(false); >> 198 dnafCmd->AvailableForStates(G4State_PreInit,G4State_Init); >> 199 >> 200 dnasCmd = new G4UIcmdWithABool("/process/em/UseDNAStationary",this); >> 201 dnasCmd->SetGuidance("Enable usage of Stationary option for DNA models"); >> 202 dnasCmd->SetParameterName("dnas",true); >> 203 dnasCmd->SetDefaultValue(false); >> 204 dnasCmd->AvailableForStates(G4State_PreInit,G4State_Init); >> 205 >> 206 dnamscCmd = new G4UIcmdWithABool("/process/em/UseDNAElectronMsc",this); >> 207 dnamscCmd->SetGuidance("Enable usage of e- msc for DNA"); >> 208 dnamscCmd->SetParameterName("dnamsc",true); >> 209 dnamscCmd->SetDefaultValue(false); >> 210 dnamscCmd->AvailableForStates(G4State_PreInit); >> 211 >> 212 sharkCmd = new G4UIcmdWithABool("/process/em/UseGammaShark",this); >> 213 sharkCmd->SetGuidance("Enable gamma super-process"); >> 214 sharkCmd->SetParameterName("shark",true); 162 sharkCmd->SetDefaultValue(false); 215 sharkCmd->SetDefaultValue(false); 163 sharkCmd->AvailableForStates(G4State_PreInit 216 sharkCmd->AvailableForStates(G4State_PreInit); 164 sharkCmd->SetToBeBroadcasted(false); << 165 217 166 poCmd = new G4UIcmdWithABool("/process/em/Po << 218 minSubSecCmd = new G4UIcmdWithADouble("/process/eLoss/minsubsec",this); 167 poCmd->SetGuidance("Enable polarisation"); << 219 minSubSecCmd->SetGuidance("Set the ratio subcut/cut "); 168 poCmd->AvailableForStates(G4State_PreInit); << 220 minSubSecCmd->SetParameterName("rcmin",true); 169 poCmd->SetToBeBroadcasted(false); << 221 minSubSecCmd->AvailableForStates(G4State_PreInit); 170 << 171 sampleTCmd = new G4UIcmdWithABool("/process/ << 172 sampleTCmd->SetGuidance("Enable usage of sam << 173 sampleTCmd->SetParameterName("sampleT",true) << 174 sampleTCmd->SetDefaultValue(false); << 175 sampleTCmd->AvailableForStates(G4State_PreIn << 176 sampleTCmd->SetToBeBroadcasted(false); << 177 << 178 icru90Cmd = new G4UIcmdWithABool("/process/e << 179 icru90Cmd->SetGuidance("Enable usage of ICRU << 180 icru90Cmd->SetParameterName("icru90",true); << 181 icru90Cmd->SetDefaultValue(false); << 182 icru90Cmd->AvailableForStates(G4State_PreIni << 183 icru90Cmd->SetToBeBroadcasted(false); << 184 << 185 mudatCmd = new G4UIcmdWithABool("/process/em << 186 mudatCmd->SetGuidance("Enable usage of muon << 187 mudatCmd->SetParameterName("mudat",true); << 188 mudatCmd->SetDefaultValue(false); << 189 mudatCmd->AvailableForStates(G4State_PreInit << 190 mudatCmd->SetToBeBroadcasted(false); << 191 << 192 peKCmd = new G4UIcmdWithABool("/process/em/P << 193 peKCmd->SetGuidance("Enable sampling of phot << 194 peKCmd->SetParameterName("peK",true); << 195 peKCmd->SetDefaultValue(true); << 196 peKCmd->AvailableForStates(G4State_PreInit); << 197 peKCmd->SetToBeBroadcasted(false); << 198 << 199 mscPCmd = new G4UIcmdWithABool("/process/msc << 200 mscPCmd->SetGuidance("Enable msc positron co << 201 mscPCmd->SetParameterName("mscPC",true); << 202 mscPCmd->SetDefaultValue(true); << 203 mscPCmd->AvailableForStates(G4State_PreInit, << 204 mscPCmd->SetToBeBroadcasted(false); << 205 << 206 pepicsCmd = new G4UIcmdWithABool("/process/e << 207 pepicsCmd->SetGuidance("Use EPICS2017 data f << 208 pepicsCmd->SetParameterName("pepics",true); << 209 pepicsCmd->SetDefaultValue(false); << 210 pepicsCmd->AvailableForStates(G4State_PreIni << 211 pepicsCmd->SetToBeBroadcasted(false); << 212 << 213 f3gCmd = new G4UIcmdWithABool("/process/em/3 << 214 f3gCmd->SetGuidance("Enable/disable 3 gamma << 215 f3gCmd->SetParameterName("f3gamma",true); << 216 f3gCmd->SetDefaultValue(false); << 217 f3gCmd->AvailableForStates(G4State_PreInit); << 218 f3gCmd->SetToBeBroadcasted(false); << 219 222 220 minEnCmd = new G4UIcmdWithADoubleAndUnit("/p 223 minEnCmd = new G4UIcmdWithADoubleAndUnit("/process/eLoss/minKinEnergy",this); 221 minEnCmd->SetGuidance("Set the min kinetic e 224 minEnCmd->SetGuidance("Set the min kinetic energy for EM tables"); 222 minEnCmd->SetParameterName("emin",true); 225 minEnCmd->SetParameterName("emin",true); 223 minEnCmd->SetUnitCategory("Energy"); 226 minEnCmd->SetUnitCategory("Energy"); 224 minEnCmd->AvailableForStates(G4State_PreInit 227 minEnCmd->AvailableForStates(G4State_PreInit); 225 minEnCmd->SetToBeBroadcasted(false); << 226 228 227 maxEnCmd = new G4UIcmdWithADoubleAndUnit("/p 229 maxEnCmd = new G4UIcmdWithADoubleAndUnit("/process/eLoss/maxKinEnergy",this); 228 maxEnCmd->SetGuidance("Set the max kinetic e 230 maxEnCmd->SetGuidance("Set the max kinetic energy for EM tables"); 229 maxEnCmd->SetParameterName("emax",true); 231 maxEnCmd->SetParameterName("emax",true); 230 maxEnCmd->SetUnitCategory("Energy"); 232 maxEnCmd->SetUnitCategory("Energy"); 231 maxEnCmd->AvailableForStates(G4State_PreInit 233 maxEnCmd->AvailableForStates(G4State_PreInit); 232 maxEnCmd->SetToBeBroadcasted(false); << 233 234 234 cenCmd = new G4UIcmdWithADoubleAndUnit("/pro 235 cenCmd = new G4UIcmdWithADoubleAndUnit("/process/eLoss/maxKinEnergyCSDA",this); 235 cenCmd->SetGuidance("Set the max kinetic ene 236 cenCmd->SetGuidance("Set the max kinetic energy for CSDA table"); 236 cenCmd->SetParameterName("emaxCSDA",true); 237 cenCmd->SetParameterName("emaxCSDA",true); 237 cenCmd->SetUnitCategory("Energy"); 238 cenCmd->SetUnitCategory("Energy"); 238 cenCmd->AvailableForStates(G4State_PreInit); 239 cenCmd->AvailableForStates(G4State_PreInit); 239 cenCmd->SetToBeBroadcasted(false); << 240 << 241 max5DCmd = new G4UIcmdWithADoubleAndUnit("/p << 242 max5DCmd->SetGuidance("Set the max kinetic e << 243 max5DCmd->SetParameterName("emax5D",true); << 244 max5DCmd->SetUnitCategory("Energy"); << 245 max5DCmd->AvailableForStates(G4State_PreInit << 246 max5DCmd->SetToBeBroadcasted(false); << 247 240 248 lowEnCmd = new G4UIcmdWithADoubleAndUnit("/p 241 lowEnCmd = new G4UIcmdWithADoubleAndUnit("/process/em/lowestElectronEnergy",this); 249 lowEnCmd->SetGuidance("Set the lowest kineti 242 lowEnCmd->SetGuidance("Set the lowest kinetic energy for e+-"); 250 lowEnCmd->SetParameterName("elow",true); 243 lowEnCmd->SetParameterName("elow",true); 251 lowEnCmd->SetUnitCategory("Energy"); 244 lowEnCmd->SetUnitCategory("Energy"); 252 lowEnCmd->AvailableForStates(G4State_PreInit 245 lowEnCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 253 lowEnCmd->SetToBeBroadcasted(false); << 254 246 255 lowhEnCmd = new G4UIcmdWithADoubleAndUnit("/ 247 lowhEnCmd = new G4UIcmdWithADoubleAndUnit("/process/em/lowestMuHadEnergy",this); 256 lowhEnCmd->SetGuidance("Set the lowest kinet 248 lowhEnCmd->SetGuidance("Set the lowest kinetic energy for muons and hadrons"); 257 lowhEnCmd->SetParameterName("elowh",true); 249 lowhEnCmd->SetParameterName("elowh",true); 258 lowhEnCmd->SetUnitCategory("Energy"); 250 lowhEnCmd->SetUnitCategory("Energy"); 259 lowhEnCmd->AvailableForStates(G4State_PreIni 251 lowhEnCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 260 lowhEnCmd->SetToBeBroadcasted(false); << 261 252 262 lowEn3Cmd = new G4UIcmdWithADoubleAndUnit("/ 253 lowEn3Cmd = new G4UIcmdWithADoubleAndUnit("/process/em/lowestTripletEnergy",this); 263 lowEn3Cmd->SetGuidance("Set the lowest kinet 254 lowEn3Cmd->SetGuidance("Set the lowest kinetic energy for triplet production"); 264 lowEn3Cmd->SetParameterName("elow3",true); 255 lowEn3Cmd->SetParameterName("elow3",true); 265 lowEn3Cmd->SetUnitCategory("Energy"); 256 lowEn3Cmd->SetUnitCategory("Energy"); 266 lowEn3Cmd->AvailableForStates(G4State_PreIni 257 lowEn3Cmd->AvailableForStates(G4State_PreInit,G4State_Idle); 267 lowEn3Cmd->SetToBeBroadcasted(false); << 268 258 269 lllCmd = new G4UIcmdWithADouble("/process/eL 259 lllCmd = new G4UIcmdWithADouble("/process/eLoss/linLossLimit",this); 270 lllCmd->SetGuidance("Set linearLossLimit par 260 lllCmd->SetGuidance("Set linearLossLimit parameter"); 271 lllCmd->SetParameterName("linlim",true); 261 lllCmd->SetParameterName("linlim",true); 272 lllCmd->AvailableForStates(G4State_PreInit,G 262 lllCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 273 lllCmd->SetToBeBroadcasted(false); << 274 263 275 brCmd = new G4UIcmdWithADoubleAndUnit("/proc 264 brCmd = new G4UIcmdWithADoubleAndUnit("/process/eLoss/bremThreshold",this); 276 brCmd->SetGuidance("Set e+- bremsstrahlung e << 265 brCmd->SetGuidance("Set bremsstrahlung energy threshold"); 277 brCmd->SetParameterName("emaxBrem",true); 266 brCmd->SetParameterName("emaxBrem",true); 278 brCmd->SetUnitCategory("Energy"); 267 brCmd->SetUnitCategory("Energy"); 279 brCmd->AvailableForStates(G4State_PreInit); << 268 brCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 280 brCmd->SetToBeBroadcasted(false); << 281 << 282 br1Cmd = new G4UIcmdWithADoubleAndUnit("/pro << 283 br1Cmd->SetGuidance("Set muon/hadron bremsst << 284 br1Cmd->SetParameterName("emaxMuHadBrem",tru << 285 br1Cmd->SetUnitCategory("Energy"); << 286 br1Cmd->AvailableForStates(G4State_PreInit); << 287 br1Cmd->SetToBeBroadcasted(false); << 288 269 289 labCmd = new G4UIcmdWithADouble("/process/eL 270 labCmd = new G4UIcmdWithADouble("/process/eLoss/LambdaFactor",this); 290 labCmd->SetGuidance("Set lambdaFactor parame 271 labCmd->SetGuidance("Set lambdaFactor parameter for integral option"); 291 labCmd->SetParameterName("Fl",true); 272 labCmd->SetParameterName("Fl",true); 292 labCmd->AvailableForStates(G4State_PreInit,G 273 labCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 293 labCmd->SetToBeBroadcasted(false); << 294 274 295 mscfCmd = new G4UIcmdWithADouble("/process/m 275 mscfCmd = new G4UIcmdWithADouble("/process/msc/FactorForAngleLimit",this); 296 mscfCmd->SetGuidance("Set factor for computa << 276 mscfCmd->SetGuidance("Set factor for computation of a limit for -t (invariant trasfer)"); 297 mscfCmd->SetParameterName("Fact",true); 277 mscfCmd->SetParameterName("Fact",true); 298 mscfCmd->SetRange("Fact>0"); 278 mscfCmd->SetRange("Fact>0"); 299 mscfCmd->SetDefaultValue(1.); 279 mscfCmd->SetDefaultValue(1.); 300 mscfCmd->AvailableForStates(G4State_PreInit) 280 mscfCmd->AvailableForStates(G4State_PreInit); 301 mscfCmd->SetToBeBroadcasted(false); << 302 281 303 angCmd = new G4UIcmdWithADoubleAndUnit("/pro 282 angCmd = new G4UIcmdWithADoubleAndUnit("/process/msc/ThetaLimit",this); 304 angCmd->SetGuidance("Set the limit on the po 283 angCmd->SetGuidance("Set the limit on the polar angle for msc and single scattering"); 305 angCmd->SetParameterName("theta",true); 284 angCmd->SetParameterName("theta",true); 306 angCmd->SetUnitCategory("Angle"); 285 angCmd->SetUnitCategory("Angle"); 307 angCmd->AvailableForStates(G4State_PreInit); << 286 angCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 308 angCmd->SetToBeBroadcasted(false); << 309 << 310 msceCmd = new G4UIcmdWithADoubleAndUnit("/pr << 311 msceCmd->SetGuidance("Set the upper energy l << 312 msceCmd->SetParameterName("mscE",true); << 313 msceCmd->SetUnitCategory("Energy"); << 314 msceCmd->AvailableForStates(G4State_PreInit) << 315 msceCmd->SetToBeBroadcasted(false); << 316 << 317 nielCmd = new G4UIcmdWithADoubleAndUnit("/pr << 318 nielCmd->SetGuidance("Set the upper energy l << 319 nielCmd->SetParameterName("niel",true); << 320 nielCmd->SetUnitCategory("Energy"); << 321 nielCmd->AvailableForStates(G4State_PreInit) << 322 nielCmd->SetToBeBroadcasted(false); << 323 287 324 frCmd = new G4UIcmdWithADouble("/process/msc 288 frCmd = new G4UIcmdWithADouble("/process/msc/RangeFactor",this); 325 frCmd->SetGuidance("Set RangeFactor for msc 289 frCmd->SetGuidance("Set RangeFactor for msc processes of e+-"); 326 frCmd->SetParameterName("Fr",true); 290 frCmd->SetParameterName("Fr",true); 327 frCmd->SetRange("Fr>0"); 291 frCmd->SetRange("Fr>0"); 328 frCmd->SetDefaultValue(0.04); 292 frCmd->SetDefaultValue(0.04); 329 frCmd->AvailableForStates(G4State_PreInit,G4 293 frCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 330 frCmd->SetToBeBroadcasted(false); << 331 294 332 fr1Cmd = new G4UIcmdWithADouble("/process/ms 295 fr1Cmd = new G4UIcmdWithADouble("/process/msc/RangeFactorMuHad",this); 333 fr1Cmd->SetGuidance("Set RangeFactor for msc 296 fr1Cmd->SetGuidance("Set RangeFactor for msc processes of muons/hadrons"); 334 fr1Cmd->SetParameterName("Fr1",true); 297 fr1Cmd->SetParameterName("Fr1",true); 335 fr1Cmd->SetRange("Fr1>0"); 298 fr1Cmd->SetRange("Fr1>0"); 336 fr1Cmd->SetDefaultValue(0.2); 299 fr1Cmd->SetDefaultValue(0.2); 337 fr1Cmd->AvailableForStates(G4State_PreInit,G 300 fr1Cmd->AvailableForStates(G4State_PreInit,G4State_Idle); 338 fr1Cmd->SetToBeBroadcasted(false); << 339 301 340 fgCmd = new G4UIcmdWithADouble("/process/msc 302 fgCmd = new G4UIcmdWithADouble("/process/msc/GeomFactor",this); 341 fgCmd->SetGuidance("Set GeomFactor parameter 303 fgCmd->SetGuidance("Set GeomFactor parameter for msc processes"); 342 fgCmd->SetParameterName("Fg",true); 304 fgCmd->SetParameterName("Fg",true); 343 fgCmd->SetRange("Fg>0"); 305 fgCmd->SetRange("Fg>0"); 344 fgCmd->SetDefaultValue(2.5); << 306 fgCmd->SetDefaultValue(3.5); 345 fgCmd->AvailableForStates(G4State_PreInit,G4 307 fgCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 346 fgCmd->SetToBeBroadcasted(false); << 347 308 348 skinCmd = new G4UIcmdWithADouble("/process/m 309 skinCmd = new G4UIcmdWithADouble("/process/msc/Skin",this); 349 skinCmd->SetGuidance("Set skin parameter for 310 skinCmd->SetGuidance("Set skin parameter for msc processes"); 350 skinCmd->SetParameterName("skin",true); 311 skinCmd->SetParameterName("skin",true); 351 skinCmd->AvailableForStates(G4State_PreInit, 312 skinCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 352 skinCmd->SetToBeBroadcasted(false); << 353 313 354 screCmd = new G4UIcmdWithADouble("/process/m 314 screCmd = new G4UIcmdWithADouble("/process/msc/ScreeningFactor",this); 355 screCmd->SetGuidance("Set screening factor") 315 screCmd->SetGuidance("Set screening factor"); 356 screCmd->SetParameterName("screen",true); 316 screCmd->SetParameterName("screen",true); 357 screCmd->AvailableForStates(G4State_PreInit) << 317 screCmd->AvailableForStates(G4State_Idle); 358 screCmd->SetToBeBroadcasted(false); << 359 318 360 safCmd = new G4UIcmdWithADouble("/process/ms << 319 dedxCmd = new G4UIcmdWithAnInteger("/process/eLoss/binsDEDX",this); 361 safCmd->SetGuidance("Set safety factor"); << 320 dedxCmd->SetGuidance("Set number of bins for EM tables"); 362 safCmd->SetParameterName("fsafe",true); << 321 dedxCmd->SetParameterName("binsDEDX",true); 363 safCmd->AvailableForStates(G4State_PreInit); << 322 dedxCmd->SetDefaultValue(84); 364 safCmd->SetToBeBroadcasted(false); << 323 dedxCmd->AvailableForStates(G4State_PreInit); 365 << 324 366 llimCmd = new G4UIcmdWithADoubleAndUnit("/pr << 325 lamCmd = new G4UIcmdWithAnInteger("/process/eLoss/binsLambda",this); 367 llimCmd->SetGuidance("Set the upper energy l << 326 lamCmd->SetGuidance("Set number of bins for EM tables"); 368 llimCmd->SetParameterName("ll",true); << 327 lamCmd->SetParameterName("binsL",true); 369 llimCmd->SetUnitCategory("Length"); << 328 lamCmd->SetDefaultValue(84); 370 llimCmd->AvailableForStates(G4State_PreInit) << 329 lamCmd->AvailableForStates(G4State_PreInit); 371 llimCmd->SetToBeBroadcasted(false); << 372 330 373 amCmd = new G4UIcmdWithAnInteger("/process/e << 331 amCmd = new G4UIcmdWithAnInteger("/process/eLoss/binsPerDecade",this); 374 amCmd->SetGuidance("Set number of bins per d 332 amCmd->SetGuidance("Set number of bins per decade for EM tables"); 375 amCmd->SetParameterName("bins",true); 333 amCmd->SetParameterName("bins",true); 376 amCmd->SetDefaultValue(7); 334 amCmd->SetDefaultValue(7); 377 amCmd->AvailableForStates(G4State_PreInit); 335 amCmd->AvailableForStates(G4State_PreInit); 378 amCmd->SetToBeBroadcasted(false); << 379 336 380 verCmd = new G4UIcmdWithAnInteger("/process/ 337 verCmd = new G4UIcmdWithAnInteger("/process/eLoss/verbose",this); 381 verCmd->SetGuidance("Set verbose level for E 338 verCmd->SetGuidance("Set verbose level for EM physics"); 382 verCmd->SetParameterName("verb",true); 339 verCmd->SetParameterName("verb",true); 383 verCmd->SetDefaultValue(1); 340 verCmd->SetDefaultValue(1); 384 verCmd->AvailableForStates(G4State_PreInit,G 341 verCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 385 verCmd->SetToBeBroadcasted(false); << 386 342 387 ver1Cmd = new G4UIcmdWithAnInteger("/process 343 ver1Cmd = new G4UIcmdWithAnInteger("/process/em/verbose",this); 388 ver1Cmd->SetGuidance("Set verbose level for 344 ver1Cmd->SetGuidance("Set verbose level for EM physics"); 389 ver1Cmd->SetParameterName("verb1",true); 345 ver1Cmd->SetParameterName("verb1",true); 390 ver1Cmd->SetDefaultValue(1); 346 ver1Cmd->SetDefaultValue(1); 391 ver1Cmd->AvailableForStates(G4State_PreInit, 347 ver1Cmd->AvailableForStates(G4State_PreInit,G4State_Idle); 392 ver1Cmd->SetToBeBroadcasted(false); << 393 348 394 ver2Cmd = new G4UIcmdWithAnInteger("/process 349 ver2Cmd = new G4UIcmdWithAnInteger("/process/em/workerVerbose",this); 395 ver2Cmd->SetGuidance("Set worker verbose lev 350 ver2Cmd->SetGuidance("Set worker verbose level for EM physics"); 396 ver2Cmd->SetParameterName("verb2",true); 351 ver2Cmd->SetParameterName("verb2",true); 397 ver2Cmd->SetDefaultValue(0); << 352 ver2Cmd->SetDefaultValue(1); 398 ver2Cmd->AvailableForStates(G4State_PreInit, 353 ver2Cmd->AvailableForStates(G4State_PreInit,G4State_Idle); 399 ver2Cmd->SetToBeBroadcasted(false); << 400 << 401 nFreeCmd = new G4UIcmdWithAnInteger("/proces << 402 nFreeCmd->SetGuidance("Set number for logari << 403 nFreeCmd->SetParameterName("nFree",true); << 404 nFreeCmd->SetDefaultValue(2); << 405 nFreeCmd->AvailableForStates(G4State_PreInit << 406 nFreeCmd->SetToBeBroadcasted(false); << 407 << 408 transWithMscCmd = new G4UIcmdWithAString("/p << 409 transWithMscCmd->SetGuidance("Enable/disable << 410 transWithMscCmd->SetParameterName("trans",tr << 411 transWithMscCmd->SetCandidates("Disabled Ena << 412 transWithMscCmd->AvailableForStates(G4State_ << 413 transWithMscCmd->SetToBeBroadcasted(false); << 414 354 415 mscCmd = new G4UIcmdWithAString("/process/ms 355 mscCmd = new G4UIcmdWithAString("/process/msc/StepLimit",this); 416 mscCmd->SetGuidance("Set msc step limitation 356 mscCmd->SetGuidance("Set msc step limitation type"); 417 mscCmd->SetParameterName("StepLim",true); 357 mscCmd->SetParameterName("StepLim",true); 418 mscCmd->SetCandidates("Minimal UseSafety Use 358 mscCmd->SetCandidates("Minimal UseSafety UseSafetyPlus UseDistanceToBoundary"); 419 mscCmd->AvailableForStates(G4State_PreInit,G 359 mscCmd->AvailableForStates(G4State_PreInit,G4State_Idle); 420 mscCmd->SetToBeBroadcasted(false); << 421 360 422 msc1Cmd = new G4UIcmdWithAString("/process/m 361 msc1Cmd = new G4UIcmdWithAString("/process/msc/StepLimitMuHad",this); 423 msc1Cmd->SetGuidance("Set msc step limitatio 362 msc1Cmd->SetGuidance("Set msc step limitation type for muons/hadrons"); 424 msc1Cmd->SetParameterName("StepLim1",true); 363 msc1Cmd->SetParameterName("StepLim1",true); 425 msc1Cmd->SetCandidates("Minimal UseSafety Us 364 msc1Cmd->SetCandidates("Minimal UseSafety UseSafetyPlus UseDistanceToBoundary"); 426 msc1Cmd->AvailableForStates(G4State_PreInit, 365 msc1Cmd->AvailableForStates(G4State_PreInit,G4State_Idle); 427 msc1Cmd->SetToBeBroadcasted(false); << 366 >> 367 pixeXsCmd = new G4UIcmdWithAString("/process/em/pixeXSmodel",this); >> 368 pixeXsCmd->SetGuidance("The name of PIXE cross section"); >> 369 pixeXsCmd->SetParameterName("pixeXS",true); >> 370 pixeXsCmd->SetCandidates("ECPSSR_Analytical Empirical ECPSSR_FormFactor"); >> 371 pixeXsCmd->AvailableForStates(G4State_PreInit,G4State_Idle); >> 372 >> 373 pixeeXsCmd = new G4UIcmdWithAString("/process/em/pixeElecXSmodel",this); >> 374 pixeeXsCmd->SetGuidance("The name of PIXE cross section for electron"); >> 375 pixeeXsCmd->SetParameterName("pixeEXS",true); >> 376 pixeeXsCmd->SetCandidates("ECPSSR_Analytical Empirical Livermore Penelope"); >> 377 pixeeXsCmd->AvailableForStates(G4State_PreInit,G4State_Idle); >> 378 >> 379 paiCmd = new G4UIcommand("/process/em/AddPAIRegion",this); >> 380 paiCmd->SetGuidance("Activate PAI in the G4Region."); >> 381 paiCmd->SetGuidance(" partName : particle name (default - all)"); >> 382 paiCmd->SetGuidance(" regName : G4Region name"); >> 383 paiCmd->SetGuidance(" paiType : PAI, PAIphoton"); >> 384 paiCmd->AvailableForStates(G4State_PreInit); >> 385 >> 386 G4UIparameter* part = new G4UIparameter("partName",'s',false); >> 387 paiCmd->SetParameter(part); >> 388 >> 389 G4UIparameter* pregName = new G4UIparameter("regName",'s',false); >> 390 paiCmd->SetParameter(pregName); >> 391 >> 392 G4UIparameter* ptype = new G4UIparameter("type",'s',false); >> 393 paiCmd->SetParameter(ptype); >> 394 >> 395 meCmd = new G4UIcmdWithAString("/process/em/AddMicroElecRegion",this); >> 396 meCmd->SetGuidance("Activate MicroElec model in the G4Region"); >> 397 meCmd->SetParameterName("MicroElec",true); >> 398 meCmd->AvailableForStates(G4State_PreInit); >> 399 >> 400 dnaCmd = new G4UIcommand("/process/em/AddDNARegion",this); >> 401 dnaCmd->SetGuidance("Activate DNA in a G4Region."); >> 402 dnaCmd->SetGuidance(" regName : G4Region name"); >> 403 dnaCmd->SetGuidance(" dnaType : DNA_opt0, DNA_opt1, DNA_opt2"); >> 404 dnaCmd->AvailableForStates(G4State_PreInit); >> 405 >> 406 G4UIparameter* regName = new G4UIparameter("regName",'s',false); >> 407 dnaCmd->SetParameter(regName); >> 408 >> 409 G4UIparameter* type = new G4UIparameter("dnaType",'s',false); >> 410 dnaCmd->SetParameter(type); >> 411 >> 412 mscoCmd = new G4UIcommand("/process/em/AddEmRegion",this); >> 413 mscoCmd->SetGuidance("Add optional EM configuration for a G4Region."); >> 414 mscoCmd->SetGuidance(" regName : G4Region name"); >> 415 mscoCmd->SetGuidance(" mscType : G4EmStandard, G4EmStandard_opt1, ..."); >> 416 mscoCmd->AvailableForStates(G4State_PreInit); >> 417 >> 418 G4UIparameter* mregName = new G4UIparameter("regName",'s',false); >> 419 mscoCmd->SetParameter(mregName); >> 420 >> 421 G4UIparameter* mtype = new G4UIparameter("mscType",'s',false); >> 422 mscoCmd->SetParameter(mtype); 428 423 429 dumpCmd = new G4UIcommand("/process/em/print 424 dumpCmd = new G4UIcommand("/process/em/printParameters",this); 430 dumpCmd->SetGuidance("Print all EM parameter 425 dumpCmd->SetGuidance("Print all EM parameters."); 431 dumpCmd->AvailableForStates(G4State_PreInit, << 426 432 dumpCmd->SetToBeBroadcasted(false); << 427 SubSecCmd = new G4UIcommand("/process/eLoss/subsec",this); >> 428 SubSecCmd->SetGuidance("Switch true/false the subcutoff generation per region."); >> 429 SubSecCmd->SetGuidance(" subSec : true/false"); >> 430 SubSecCmd->SetGuidance(" Region : region name"); >> 431 SubSecCmd->AvailableForStates(G4State_PreInit); >> 432 >> 433 G4UIparameter* subSec = new G4UIparameter("subSec",'s',false); >> 434 SubSecCmd->SetParameter(subSec); >> 435 >> 436 G4UIparameter* subSecReg = new G4UIparameter("Region",'s',false); >> 437 SubSecCmd->SetParameter(subSecReg); >> 438 >> 439 StepFuncCmd = new G4UIcommand("/process/eLoss/StepFunction",this); >> 440 StepFuncCmd->SetGuidance("Set the energy loss step limitation parameters for e+-."); >> 441 StepFuncCmd->SetGuidance(" dRoverR : max Range variation per step"); >> 442 StepFuncCmd->SetGuidance(" finalRange: range for final step"); >> 443 StepFuncCmd->AvailableForStates(G4State_PreInit,G4State_Idle); >> 444 >> 445 G4UIparameter* dRoverRPrm = new G4UIparameter("dRoverR",'d',false); >> 446 dRoverRPrm->SetParameterRange("dRoverR>0. && dRoverR<=1."); >> 447 StepFuncCmd->SetParameter(dRoverRPrm); >> 448 >> 449 G4UIparameter* finalRangePrm = new G4UIparameter("finalRange",'d',false); >> 450 finalRangePrm->SetParameterRange("finalRange>0."); >> 451 StepFuncCmd->SetParameter(finalRangePrm); >> 452 >> 453 G4UIparameter* unitPrm = new G4UIparameter("unit",'s',true); >> 454 unitPrm->SetDefaultValue("mm"); >> 455 StepFuncCmd->SetParameter(unitPrm); >> 456 >> 457 StepFuncCmd1 = new G4UIcommand("/process/eLoss/StepFunctionMuHad",this); >> 458 StepFuncCmd1->SetGuidance("Set the energy loss step limitation parameters for muon/hadron."); >> 459 StepFuncCmd1->SetGuidance(" dRoverR : max Range variation per step"); >> 460 StepFuncCmd1->SetGuidance(" finalRange: range for final step"); >> 461 StepFuncCmd1->AvailableForStates(G4State_PreInit,G4State_Idle); >> 462 >> 463 G4UIparameter* dRoverRPrm1 = new G4UIparameter("dRoverRMuHad",'d',false); >> 464 dRoverRPrm1->SetParameterRange("dRoverRMuHad>0. && dRoverRMuHad<=1."); >> 465 StepFuncCmd1->SetParameter(dRoverRPrm1); >> 466 >> 467 G4UIparameter* finalRangePrm1 = new G4UIparameter("finalRangeMuHad",'d',false); >> 468 finalRangePrm1->SetParameterRange("finalRangeMuHad>0."); >> 469 StepFuncCmd1->SetParameter(finalRangePrm1); >> 470 >> 471 G4UIparameter* unitPrm1 = new G4UIparameter("unit",'s',true); >> 472 unitPrm1->SetDefaultValue("mm"); >> 473 StepFuncCmd1->SetParameter(unitPrm1); >> 474 >> 475 deexCmd = new G4UIcommand("/process/em/deexcitation",this); >> 476 deexCmd->SetGuidance("Set deexcitation flags per G4Region."); >> 477 deexCmd->SetGuidance(" regName : G4Region name"); >> 478 deexCmd->SetGuidance(" flagFluo : Fluorescence"); >> 479 deexCmd->SetGuidance(" flagAuger : Auger"); >> 480 deexCmd->SetGuidance(" flagPIXE : PIXE"); >> 481 deexCmd->AvailableForStates(G4State_PreInit,G4State_Init,G4State_Idle); >> 482 >> 483 G4UIparameter* regNameD = new G4UIparameter("regName",'s',false); >> 484 deexCmd->SetParameter(regNameD); >> 485 >> 486 G4UIparameter* flagFluo = new G4UIparameter("flagFluo",'s',false); >> 487 deexCmd->SetParameter(flagFluo); >> 488 >> 489 G4UIparameter* flagAuger = new G4UIparameter("flagAuger",'s',false); >> 490 deexCmd->SetParameter(flagAuger); >> 491 >> 492 G4UIparameter* flagPIXE = new G4UIparameter("flagPIXE",'s',false); >> 493 deexCmd->SetParameter(flagPIXE); >> 494 >> 495 bfCmd = new G4UIcommand("/process/em/setBiasingFactor",this); >> 496 bfCmd->SetGuidance("Set factor for the process cross section."); >> 497 bfCmd->SetGuidance(" procName : process name"); >> 498 bfCmd->SetGuidance(" procFact : factor"); >> 499 bfCmd->SetGuidance(" flagFact : flag to change weight"); >> 500 bfCmd->AvailableForStates(G4State_PreInit,G4State_Idle); >> 501 >> 502 G4UIparameter* procName = new G4UIparameter("procName",'s',false); >> 503 bfCmd->SetParameter(procName); >> 504 >> 505 G4UIparameter* procFact = new G4UIparameter("procFact",'d',false); >> 506 bfCmd->SetParameter(procFact); >> 507 >> 508 G4UIparameter* flagFact = new G4UIparameter("flagFact",'s',false); >> 509 bfCmd->SetParameter(flagFact); >> 510 >> 511 fiCmd = new G4UIcommand("/process/em/setForcedInteraction",this); >> 512 fiCmd->SetGuidance("Set factor for the process cross section."); >> 513 fiCmd->SetGuidance(" procNam : process name"); >> 514 fiCmd->SetGuidance(" regNam : region name"); >> 515 fiCmd->SetGuidance(" tlength : fixed target length"); >> 516 fiCmd->SetGuidance(" unitT : length unit"); >> 517 fiCmd->SetGuidance(" tflag : flag to change weight"); >> 518 fiCmd->AvailableForStates(G4State_PreInit,G4State_Idle); >> 519 >> 520 G4UIparameter* procNam = new G4UIparameter("procNam",'s',false); >> 521 fiCmd->SetParameter(procNam); >> 522 >> 523 G4UIparameter* regNam = new G4UIparameter("regNam",'s',false); >> 524 fiCmd->SetParameter(regNam); >> 525 >> 526 G4UIparameter* tlength = new G4UIparameter("tlength",'d',false); >> 527 fiCmd->SetParameter(tlength); >> 528 >> 529 G4UIparameter* unitT = new G4UIparameter("unitT",'s',true); >> 530 fiCmd->SetParameter(unitT); >> 531 >> 532 G4UIparameter* flagT = new G4UIparameter("tflag",'s',true); >> 533 fiCmd->SetParameter(flagT); >> 534 >> 535 bsCmd = new G4UIcommand("/process/em/setSecBiasing",this); >> 536 bsCmd->SetGuidance("Set bremsstrahlung or delta-e- splitting/Russian roullette per region."); >> 537 bsCmd->SetGuidance(" bProcNam : process name"); >> 538 bsCmd->SetGuidance(" bRegNam : region name"); >> 539 bsCmd->SetGuidance(" bFactor : number of splitted gamma or probability of Russian roulette"); >> 540 bsCmd->SetGuidance(" bEnergy : max energy of a secondary for this biasing method"); >> 541 bsCmd->SetGuidance(" bUnit : energy unit"); >> 542 bsCmd->AvailableForStates(G4State_Idle,G4State_Idle); >> 543 >> 544 G4UIparameter* bProcNam = new G4UIparameter("bProcNam",'s',false); >> 545 bsCmd->SetParameter(bProcNam); >> 546 >> 547 G4UIparameter* bRegNam = new G4UIparameter("bRegNam",'s',false); >> 548 bsCmd->SetParameter(bRegNam); >> 549 >> 550 G4UIparameter* bFactor = new G4UIparameter("bFactor",'d',false); >> 551 bsCmd->SetParameter(bFactor); >> 552 >> 553 G4UIparameter* bEnergy = new G4UIparameter("bEnergy",'d',false); >> 554 bsCmd->SetParameter(bEnergy); >> 555 >> 556 G4UIparameter* bUnit = new G4UIparameter("bUnit",'s',true); >> 557 bsCmd->SetParameter(bUnit); 433 558 434 nffCmd = new G4UIcmdWithAString("/process/em 559 nffCmd = new G4UIcmdWithAString("/process/em/setNuclearFormFactor",this); 435 nffCmd->SetGuidance("Define type of nuclear << 560 nffCmd->SetGuidance("Define typy of nuclear form-factor"); 436 nffCmd->SetParameterName("NucFF",true); 561 nffCmd->SetParameterName("NucFF",true); 437 nffCmd->SetCandidates("None Exponential Gaus 562 nffCmd->SetCandidates("None Exponential Gaussian Flat"); 438 nffCmd->AvailableForStates(G4State_PreInit); 563 nffCmd->AvailableForStates(G4State_PreInit); 439 nffCmd->SetToBeBroadcasted(false); << 440 << 441 ssCmd = new G4UIcmdWithAString("/process/em/ << 442 ssCmd->SetGuidance("Define type of e+- singl << 443 ssCmd->SetParameterName("SS",true); << 444 ssCmd->SetCandidates("WVI Mott DPWA"); << 445 ssCmd->AvailableForStates(G4State_PreInit); << 446 ssCmd->SetToBeBroadcasted(false); << 447 << 448 fluc1Cmd = new G4UIcmdWithAString("/process/ << 449 fluc1Cmd->SetGuidance("Define type of energy << 450 fluc1Cmd->SetParameterName("Fluc1",true); << 451 fluc1Cmd->SetCandidates("Dummy Universal Urb << 452 fluc1Cmd->AvailableForStates(G4State_PreInit << 453 fluc1Cmd->SetToBeBroadcasted(false); << 454 << 455 posiCmd = new G4UIcmdWithAString("/process/e << 456 posiCmd->SetGuidance("Define model of positr << 457 posiCmd->SetParameterName("Posi",true); << 458 posiCmd->SetCandidates("Simple Allison OrePa << 459 posiCmd->AvailableForStates(G4State_PreInit) << 460 posiCmd->SetToBeBroadcasted(false); << 461 << 462 tripletCmd = new G4UIcmdWithAnInteger("/proc << 463 tripletCmd->SetGuidance("gamma conversion tr << 464 tripletCmd->SetGuidance("0 - (default) both << 465 tripletCmd->SetGuidance("1 - force nuclear") << 466 tripletCmd->SetGuidance("2 - force triplet") << 467 tripletCmd->SetParameterName("type",false); << 468 tripletCmd->SetRange("type >= 0 && type <= 2 << 469 tripletCmd->SetDefaultValue(0); << 470 tripletCmd->AvailableForStates(G4State_PreIn << 471 tripletCmd->SetToBeBroadcasted(false); << 472 << 473 onIsolatedCmd = new G4UIcmdWithABool("/proce << 474 onIsolatedCmd->SetGuidance("Conversion on is << 475 onIsolatedCmd->SetGuidance("false (default) << 476 onIsolatedCmd->SetGuidance("true : conversio << 477 onIsolatedCmd->SetParameterName("flag",false << 478 onIsolatedCmd->SetDefaultValue(false); << 479 onIsolatedCmd->AvailableForStates(G4State_Pr << 480 onIsolatedCmd->SetToBeBroadcasted(false); << 481 } 564 } 482 565 483 //....oooOO0OOooo........oooOO0OOooo........oo 566 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 484 567 485 G4EmParametersMessenger::~G4EmParametersMessen 568 G4EmParametersMessenger::~G4EmParametersMessenger() 486 { 569 { 487 delete gconvDirectory; << 488 delete eLossDirectory; 570 delete eLossDirectory; 489 delete mscDirectory; 571 delete mscDirectory; 490 delete emDirectory; 572 delete emDirectory; 491 delete dnaDirectory; << 492 573 493 delete flucCmd; 574 delete flucCmd; 494 delete rangeCmd; 575 delete rangeCmd; 495 delete lpmCmd; 576 delete lpmCmd; >> 577 delete splCmd; 496 delete rsCmd; 578 delete rsCmd; 497 delete aplCmd; 579 delete aplCmd; 498 delete intCmd; << 580 delete deCmd; >> 581 delete dirFluoCmd; >> 582 delete auCmd; >> 583 delete auCascadeCmd; >> 584 delete pixeCmd; >> 585 delete dcutCmd; 499 delete latCmd; 586 delete latCmd; 500 delete lat96Cmd; 587 delete lat96Cmd; 501 delete mulatCmd; 588 delete mulatCmd; >> 589 delete catCmd; 502 delete delCmd; 590 delete delCmd; >> 591 delete IntegCmd; 503 delete mottCmd; 592 delete mottCmd; 504 delete birksCmd; 593 delete birksCmd; >> 594 delete dnafCmd; >> 595 delete dnasCmd; >> 596 delete dnamscCmd; 505 delete sharkCmd; 597 delete sharkCmd; 506 delete onIsolatedCmd; << 507 delete sampleTCmd; << 508 delete poCmd; << 509 delete icru90Cmd; << 510 delete mudatCmd; << 511 delete peKCmd; << 512 delete f3gCmd; << 513 delete mscPCmd; << 514 delete pepicsCmd; << 515 598 >> 599 delete minSubSecCmd; 516 delete minEnCmd; 600 delete minEnCmd; 517 delete maxEnCmd; 601 delete maxEnCmd; 518 delete max5DCmd; << 519 delete cenCmd; 602 delete cenCmd; 520 delete lowEnCmd; 603 delete lowEnCmd; 521 delete lowhEnCmd; 604 delete lowhEnCmd; 522 delete lowEn3Cmd; 605 delete lowEn3Cmd; 523 delete lllCmd; 606 delete lllCmd; 524 delete brCmd; 607 delete brCmd; 525 delete br1Cmd; << 526 delete labCmd; 608 delete labCmd; 527 delete mscfCmd; 609 delete mscfCmd; 528 delete angCmd; 610 delete angCmd; 529 delete msceCmd; << 530 delete nielCmd; << 531 delete frCmd; 611 delete frCmd; 532 delete fr1Cmd; 612 delete fr1Cmd; 533 delete fgCmd; 613 delete fgCmd; 534 delete skinCmd; 614 delete skinCmd; 535 delete safCmd; << 536 delete llimCmd; << 537 delete screCmd; 615 delete screCmd; 538 616 >> 617 delete dedxCmd; >> 618 delete lamCmd; 539 delete amCmd; 619 delete amCmd; 540 delete verCmd; 620 delete verCmd; 541 delete ver1Cmd; 621 delete ver1Cmd; 542 delete ver2Cmd; 622 delete ver2Cmd; 543 delete transWithMscCmd; << 544 delete nFreeCmd; << 545 delete tripletCmd; << 546 623 547 delete mscCmd; 624 delete mscCmd; 548 delete msc1Cmd; 625 delete msc1Cmd; 549 delete nffCmd; << 550 delete ssCmd; << 551 delete fluc1Cmd; << 552 delete posiCmd; << 553 626 >> 627 delete pixeXsCmd; >> 628 delete pixeeXsCmd; >> 629 >> 630 delete paiCmd; >> 631 delete meCmd; >> 632 delete dnaCmd; >> 633 delete mscoCmd; 554 delete dumpCmd; 634 delete dumpCmd; >> 635 >> 636 delete SubSecCmd; >> 637 delete StepFuncCmd; >> 638 delete StepFuncCmd1; >> 639 delete deexCmd; >> 640 delete bfCmd; >> 641 delete fiCmd; >> 642 delete bsCmd; >> 643 delete nffCmd; 555 } 644 } 556 645 557 //....oooOO0OOooo........oooOO0OOooo........oo 646 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 558 647 559 void G4EmParametersMessenger::SetNewValue(G4UI 648 void G4EmParametersMessenger::SetNewValue(G4UIcommand* command, 560 G4St 649 G4String newValue) 561 { 650 { 562 G4bool physicsModified = false; 651 G4bool physicsModified = false; 563 if (command == flucCmd) { 652 if (command == flucCmd) { 564 theParameters->SetLossFluctuations(flucCmd 653 theParameters->SetLossFluctuations(flucCmd->GetNewBoolValue(newValue)); 565 physicsModified = true; 654 physicsModified = true; 566 } else if (command == rangeCmd) { 655 } else if (command == rangeCmd) { 567 theParameters->SetBuildCSDARange(rangeCmd- 656 theParameters->SetBuildCSDARange(rangeCmd->GetNewBoolValue(newValue)); 568 } else if (command == lpmCmd) { 657 } else if (command == lpmCmd) { 569 theParameters->SetLPM(lpmCmd->GetNewBoolVa 658 theParameters->SetLPM(lpmCmd->GetNewBoolValue(newValue)); 570 physicsModified = true; 659 physicsModified = true; >> 660 } else if (command == splCmd) { >> 661 theParameters->SetSpline(splCmd->GetNewBoolValue(newValue)); 571 } else if (command == rsCmd) { 662 } else if (command == rsCmd) { 572 theParameters->SetUseCutAsFinalRange(rsCmd 663 theParameters->SetUseCutAsFinalRange(rsCmd->GetNewBoolValue(newValue)); 573 physicsModified = true; 664 physicsModified = true; 574 } else if (command == aplCmd) { 665 } else if (command == aplCmd) { 575 theParameters->SetApplyCuts(aplCmd->GetNew 666 theParameters->SetApplyCuts(aplCmd->GetNewBoolValue(newValue)); 576 physicsModified = true; 667 physicsModified = true; 577 } else if (command == intCmd) { << 668 } else if (command == deCmd) { 578 theParameters->SetIntegral(intCmd->GetNewB << 669 theParameters->SetFluo(deCmd->GetNewBoolValue(newValue)); >> 670 physicsModified = true; >> 671 } else if (command == dirFluoCmd) { >> 672 theParameters->SetBeardenFluoDir(dirFluoCmd->GetNewBoolValue(newValue)); >> 673 } else if (command == auCmd) { >> 674 theParameters->SetAuger(auCmd->GetNewBoolValue(newValue)); >> 675 physicsModified = true; >> 676 } else if (command == auCascadeCmd) { >> 677 theParameters->SetAugerCascade(auCascadeCmd->GetNewBoolValue(newValue)); >> 678 physicsModified = true; >> 679 } else if (command == pixeCmd) { >> 680 theParameters->SetPixe(pixeCmd->GetNewBoolValue(newValue)); >> 681 physicsModified = true; >> 682 } else if (command == dcutCmd) { >> 683 theParameters->SetDeexcitationIgnoreCut(dcutCmd->GetNewBoolValue(newValue)); >> 684 physicsModified = true; 579 } else if (command == latCmd) { 685 } else if (command == latCmd) { 580 theParameters->SetLateralDisplacement(latC 686 theParameters->SetLateralDisplacement(latCmd->GetNewBoolValue(newValue)); 581 physicsModified = true; 687 physicsModified = true; 582 } else if (command == lat96Cmd) { 688 } else if (command == lat96Cmd) { 583 theParameters->SetLateralDisplacementAlg96 689 theParameters->SetLateralDisplacementAlg96(lat96Cmd->GetNewBoolValue(newValue)); 584 physicsModified = true; 690 physicsModified = true; 585 } else if (command == mulatCmd) { 691 } else if (command == mulatCmd) { 586 theParameters->SetMuHadLateralDisplacement 692 theParameters->SetMuHadLateralDisplacement(mulatCmd->GetNewBoolValue(newValue)); 587 physicsModified = true; 693 physicsModified = true; >> 694 } else if (command == catCmd) { >> 695 theParameters->SetLatDisplacementBeyondSafety(catCmd->GetNewBoolValue(newValue)); >> 696 physicsModified = true; 588 } else if (command == delCmd) { 697 } else if (command == delCmd) { 589 theParameters->ActivateAngularGeneratorFor 698 theParameters->ActivateAngularGeneratorForIonisation(delCmd->GetNewBoolValue(newValue)); >> 699 } else if (command == IntegCmd) { >> 700 theParameters->SetIntegral(IntegCmd->GetNewBoolValue(newValue)); >> 701 physicsModified = true; 590 } else if (command == mottCmd) { 702 } else if (command == mottCmd) { 591 theParameters->SetUseMottCorrection(mottCm 703 theParameters->SetUseMottCorrection(mottCmd->GetNewBoolValue(newValue)); 592 } else if (command == birksCmd) { 704 } else if (command == birksCmd) { 593 theParameters->SetBirksActive(birksCmd->Ge 705 theParameters->SetBirksActive(birksCmd->GetNewBoolValue(newValue)); 594 } else if (command == icru90Cmd) { << 706 } else if (command == dnafCmd) { 595 theParameters->SetUseICRU90Data(icru90Cmd- << 707 theParameters->SetDNAFast(dnafCmd->GetNewBoolValue(newValue)); >> 708 } else if (command == dnasCmd) { >> 709 theParameters->SetDNAStationary(dnasCmd->GetNewBoolValue(newValue)); >> 710 } else if (command == dnamscCmd) { >> 711 theParameters->SetBirksActive(dnamscCmd->GetNewBoolValue(newValue)); 596 } else if (command == sharkCmd) { 712 } else if (command == sharkCmd) { 597 theParameters->SetGeneralProcessActive(sha << 713 theParameters->SetGammaSharkActive(sharkCmd->GetNewBoolValue(newValue)); 598 } else if (command == poCmd) { << 599 theParameters->SetEnablePolarisation(poCmd << 600 } else if (command == sampleTCmd) { << 601 theParameters->SetEnableSamplingTable(samp << 602 } else if (command == mudatCmd) { << 603 theParameters->SetRetrieveMuDataFromFile(m << 604 } else if (command == peKCmd) { << 605 theParameters->SetPhotoeffectBelowKShell(p << 606 } else if (command == f3gCmd) { << 607 theParameters->Set3GammaAnnihilationOnFly( << 608 } else if (command == mscPCmd) { << 609 theParameters->SetMscPositronCorrection(ms << 610 } else if (command == pepicsCmd) { << 611 theParameters->SetUseEPICS2017XS(pepicsCmd << 612 714 >> 715 } else if (command == minSubSecCmd) { >> 716 theParameters->SetMinSubRange(minSubSecCmd->GetNewDoubleValue(newValue)); 613 } else if (command == minEnCmd) { 717 } else if (command == minEnCmd) { 614 theParameters->SetMinEnergy(minEnCmd->GetN 718 theParameters->SetMinEnergy(minEnCmd->GetNewDoubleValue(newValue)); 615 } else if (command == maxEnCmd) { 719 } else if (command == maxEnCmd) { 616 theParameters->SetMaxEnergy(maxEnCmd->GetN 720 theParameters->SetMaxEnergy(maxEnCmd->GetNewDoubleValue(newValue)); 617 } else if (command == max5DCmd) { << 618 theParameters->SetMaxEnergyFor5DMuPair(max << 619 } else if (command == cenCmd) { 721 } else if (command == cenCmd) { 620 theParameters->SetMaxEnergyForCSDARange(ce 722 theParameters->SetMaxEnergyForCSDARange(cenCmd->GetNewDoubleValue(newValue)); 621 physicsModified = true; 723 physicsModified = true; 622 } else if (command == lowEnCmd) { 724 } else if (command == lowEnCmd) { 623 theParameters->SetLowestElectronEnergy(low 725 theParameters->SetLowestElectronEnergy(lowEnCmd->GetNewDoubleValue(newValue)); 624 physicsModified = true; 726 physicsModified = true; 625 } else if (command == lowEn3Cmd) { 727 } else if (command == lowEn3Cmd) { 626 theParameters->SetLowestTripletEnergy(lowE 728 theParameters->SetLowestTripletEnergy(lowEn3Cmd->GetNewDoubleValue(newValue)); 627 physicsModified = true; 729 physicsModified = true; 628 } else if (command == lowhEnCmd) { 730 } else if (command == lowhEnCmd) { 629 theParameters->SetLowestMuHadEnergy(lowhEn 731 theParameters->SetLowestMuHadEnergy(lowhEnCmd->GetNewDoubleValue(newValue)); 630 physicsModified = true; 732 physicsModified = true; 631 } else if (command == lllCmd) { 733 } else if (command == lllCmd) { 632 theParameters->SetLinearLossLimit(lllCmd-> 734 theParameters->SetLinearLossLimit(lllCmd->GetNewDoubleValue(newValue)); 633 physicsModified = true; 735 physicsModified = true; 634 } else if (command == brCmd) { 736 } else if (command == brCmd) { 635 theParameters->SetBremsstrahlungTh(brCmd-> 737 theParameters->SetBremsstrahlungTh(brCmd->GetNewDoubleValue(newValue)); 636 physicsModified = true; 738 physicsModified = true; 637 } else if (command == br1Cmd) { << 638 theParameters->SetMuHadBremsstrahlungTh(br << 639 physicsModified = true; << 640 } else if (command == labCmd) { 739 } else if (command == labCmd) { 641 theParameters->SetLambdaFactor(labCmd->Get 740 theParameters->SetLambdaFactor(labCmd->GetNewDoubleValue(newValue)); 642 physicsModified = true; 741 physicsModified = true; 643 } else if (command == mscfCmd) { 742 } else if (command == mscfCmd) { 644 theParameters->SetFactorForAngleLimit(mscf 743 theParameters->SetFactorForAngleLimit(mscfCmd->GetNewDoubleValue(newValue)); 645 } else if (command == angCmd) { 744 } else if (command == angCmd) { 646 theParameters->SetMscThetaLimit(angCmd->Ge 745 theParameters->SetMscThetaLimit(angCmd->GetNewDoubleValue(newValue)); 647 } else if (command == msceCmd) { << 746 physicsModified = true; 648 theParameters->SetMscEnergyLimit(msceCmd-> << 649 } else if (command == nielCmd) { << 650 theParameters->SetMaxNIELEnergy(nielCmd->G << 651 } else if (command == frCmd) { 747 } else if (command == frCmd) { 652 theParameters->SetMscRangeFactor(frCmd->Ge 748 theParameters->SetMscRangeFactor(frCmd->GetNewDoubleValue(newValue)); 653 physicsModified = true; 749 physicsModified = true; 654 } else if (command == fr1Cmd) { 750 } else if (command == fr1Cmd) { 655 theParameters->SetMscMuHadRangeFactor(fr1C 751 theParameters->SetMscMuHadRangeFactor(fr1Cmd->GetNewDoubleValue(newValue)); 656 physicsModified = true; 752 physicsModified = true; 657 } else if (command == fgCmd) { 753 } else if (command == fgCmd) { 658 theParameters->SetMscGeomFactor(fgCmd->Get 754 theParameters->SetMscGeomFactor(fgCmd->GetNewDoubleValue(newValue)); 659 physicsModified = true; 755 physicsModified = true; 660 } else if (command == skinCmd) { 756 } else if (command == skinCmd) { 661 theParameters->SetMscSkin(skinCmd->GetNewD 757 theParameters->SetMscSkin(skinCmd->GetNewDoubleValue(newValue)); 662 physicsModified = true; 758 physicsModified = true; 663 } else if (command == safCmd) { << 664 theParameters->SetMscSafetyFactor(safCmd-> << 665 } else if (command == llimCmd) { << 666 theParameters->SetMscLambdaLimit(llimCmd-> << 667 } else if (command == screCmd) { 759 } else if (command == screCmd) { 668 theParameters->SetScreeningFactor(screCmd- 760 theParameters->SetScreeningFactor(screCmd->GetNewDoubleValue(newValue)); 669 } else if (command == amCmd) { << 761 >> 762 } else if (command == dedxCmd) { >> 763 theParameters->SetNumberOfBins(dedxCmd->GetNewIntValue(newValue)); >> 764 } else if (command == lamCmd) { >> 765 theParameters->SetNumberOfBins(lamCmd->GetNewIntValue(newValue)); >> 766 } else if (command == amCmd) { 670 theParameters->SetNumberOfBinsPerDecade(am 767 theParameters->SetNumberOfBinsPerDecade(amCmd->GetNewIntValue(newValue)); 671 } else if (command == verCmd) { 768 } else if (command == verCmd) { 672 theParameters->SetVerbose(verCmd->GetNewIn 769 theParameters->SetVerbose(verCmd->GetNewIntValue(newValue)); 673 } else if (command == ver1Cmd) { 770 } else if (command == ver1Cmd) { 674 theParameters->SetVerbose(ver1Cmd->GetNewI 771 theParameters->SetVerbose(ver1Cmd->GetNewIntValue(newValue)); >> 772 physicsModified = true; 675 } else if (command == ver2Cmd) { 773 } else if (command == ver2Cmd) { 676 theParameters->SetWorkerVerbose(ver2Cmd->G 774 theParameters->SetWorkerVerbose(ver2Cmd->GetNewIntValue(newValue)); 677 } else if (command == nFreeCmd) { << 775 physicsModified = true; 678 theParameters->SetNumberForFreeVector(nFre << 776 679 } else if (command == dumpCmd) { << 680 theParameters->SetIsPrintedFlag(false); << 681 theParameters->Dump(); << 682 } else if (command == transWithMscCmd) { << 683 G4TransportationWithMscType type = G4Trans << 684 if(newValue == "Disabled") { << 685 type = G4TransportationWithMscType::fDis << 686 } else if(newValue == "Enabled") { << 687 type = G4TransportationWithMscType::fEna << 688 } else if(newValue == "MultipleSteps") { << 689 type = G4TransportationWithMscType::fMul << 690 } else { << 691 G4ExceptionDescription ed; << 692 ed << " TransportationWithMsc type <" << << 693 G4Exception("G4EmParametersMessenger", " << 694 } << 695 theParameters->SetTransportationWithMsc(ty << 696 } else if (command == mscCmd || command == m 777 } else if (command == mscCmd || command == msc1Cmd) { 697 G4MscStepLimitType msctype = fUseSafety; 778 G4MscStepLimitType msctype = fUseSafety; 698 if(newValue == "Minimal") { 779 if(newValue == "Minimal") { 699 msctype = fMinimal; 780 msctype = fMinimal; 700 } else if(newValue == "UseDistanceToBounda 781 } else if(newValue == "UseDistanceToBoundary") { 701 msctype = fUseDistanceToBoundary; 782 msctype = fUseDistanceToBoundary; 702 } else if(newValue == "UseSafety") { 783 } else if(newValue == "UseSafety") { 703 msctype = fUseSafety; 784 msctype = fUseSafety; 704 } else if(newValue == "UseSafetyPlus") { 785 } else if(newValue == "UseSafetyPlus") { 705 msctype = fUseSafetyPlus; 786 msctype = fUseSafetyPlus; 706 } else { 787 } else { 707 G4ExceptionDescription ed; 788 G4ExceptionDescription ed; 708 ed << " StepLimit type <" << newValue << 789 ed << " StepLimit type <" << newValue << "> unknown!"; 709 G4Exception("G4EmParametersMessenger", " 790 G4Exception("G4EmParametersMessenger", "em0044", JustWarning, ed); 710 return; 791 return; 711 } 792 } 712 if (command == mscCmd) { 793 if (command == mscCmd) { 713 theParameters->SetMscStepLimitType(mscty 794 theParameters->SetMscStepLimitType(msctype); 714 } else { 795 } else { 715 theParameters->SetMscMuHadStepLimitType( 796 theParameters->SetMscMuHadStepLimitType(msctype); 716 } 797 } 717 physicsModified = true; 798 physicsModified = true; >> 799 } else if (command == pixeXsCmd) { >> 800 theParameters->SetPIXECrossSectionModel(newValue); >> 801 physicsModified = true; >> 802 } else if (command == pixeeXsCmd) { >> 803 theParameters->SetPIXEElectronCrossSectionModel(newValue); >> 804 physicsModified = true; >> 805 } else if (command == paiCmd) { >> 806 G4String s1(""),s2(""),s3(""); >> 807 std::istringstream is(newValue); >> 808 is >> s1 >> s2 >> s3; >> 809 theParameters->AddPAIModel(s1, s2, s3); >> 810 } else if (command == meCmd) { >> 811 theParameters->AddMicroElec(newValue); >> 812 } else if (command == dnaCmd) { >> 813 G4String s1(""),s2(""); >> 814 std::istringstream is(newValue); >> 815 is >> s1 >> s2; >> 816 theParameters->AddDNA(s1, s2); >> 817 } else if (command == mscoCmd) { >> 818 G4String s1(""),s2(""); >> 819 std::istringstream is(newValue); >> 820 is >> s1 >> s2; >> 821 theParameters->AddPhysics(s1, s2); >> 822 } else if (command == dumpCmd) { >> 823 theParameters->Dump(); >> 824 } else if (command == SubSecCmd) { >> 825 G4String s1, s2; >> 826 std::istringstream is(newValue); >> 827 is >> s1 >> s2; >> 828 G4bool yes = false; >> 829 if(s1 == "true") { yes = true; } >> 830 theParameters->SetSubCutoff(yes,s2); >> 831 } else if (command == StepFuncCmd || command == StepFuncCmd1) { >> 832 G4double v1,v2; >> 833 G4String unt; >> 834 std::istringstream is(newValue); >> 835 is >> v1 >> v2 >> unt; >> 836 v2 *= G4UIcommand::ValueOf(unt); >> 837 if(command == StepFuncCmd) { >> 838 theParameters->SetStepFunction(v1,v2); >> 839 } else { >> 840 theParameters->SetStepFunctionMuHad(v1,v2); >> 841 } >> 842 physicsModified = true; >> 843 } else if (command == deexCmd) { >> 844 G4String s1 (""), s2(""), s3(""), s4(""); >> 845 G4bool b2(false), b3(false), b4(false); >> 846 std::istringstream is(newValue); >> 847 is >> s1 >> s2 >> s3 >> s4; >> 848 if(s2 == "true") { b2 = true; } >> 849 if(s3 == "true") { b3 = true; } >> 850 if(s4 == "true") { b4 = true; } >> 851 theParameters->SetDeexActiveRegion(s1,b2,b3,b4); >> 852 physicsModified = true; >> 853 } else if (command == bfCmd) { >> 854 G4double v1(1.0); >> 855 G4String s0(""),s1(""); >> 856 std::istringstream is(newValue); >> 857 is >> s0 >> v1 >> s1; >> 858 G4bool yes = false; >> 859 if(s1 == "true") { yes = true; } >> 860 theParameters->SetProcessBiasingFactor(s0,v1,yes); >> 861 physicsModified = true; >> 862 } else if (command == fiCmd) { >> 863 G4double v1(0.0); >> 864 G4String s1(""),s2(""),s3(""),unt("mm"); >> 865 std::istringstream is(newValue); >> 866 is >> s1 >> s2 >> v1 >> unt >> s3; >> 867 G4bool yes = false; >> 868 if(s3 == "true") { yes = true; } >> 869 v1 *= G4UIcommand::ValueOf(unt); >> 870 theParameters->ActivateForcedInteraction(s1,s2,v1,yes); >> 871 physicsModified = true; >> 872 } else if (command == bsCmd) { >> 873 G4double fb(1.0),en(1.e+30); >> 874 G4String s1(""),s2(""),unt("MeV"); >> 875 std::istringstream is(newValue); >> 876 is >> s1 >> s2 >> fb >> en >> unt; >> 877 en *= G4UIcommand::ValueOf(unt); >> 878 theParameters->ActivateSecondaryBiasing(s1,s2,fb,en); >> 879 physicsModified = true; 718 } else if (command == nffCmd) { 880 } else if (command == nffCmd) { 719 G4NuclearFormfactorType x = fNoneNF; 881 G4NuclearFormfactorType x = fNoneNF; 720 if(newValue == "Exponential") { x = fExpon 882 if(newValue == "Exponential") { x = fExponentialNF; } 721 else if(newValue == "Gaussian") { x = fGau 883 else if(newValue == "Gaussian") { x = fGaussianNF; } 722 else if(newValue == "Flat") { x = fFlatNF; 884 else if(newValue == "Flat") { x = fFlatNF; } 723 else if(newValue != "None") { 885 else if(newValue != "None") { 724 G4ExceptionDescription ed; 886 G4ExceptionDescription ed; 725 ed << " NuclearFormFactor type <" << new 887 ed << " NuclearFormFactor type <" << newValue << "> unknown!"; 726 G4Exception("G4EmParametersMessenger", " 888 G4Exception("G4EmParametersMessenger", "em0044", JustWarning, ed); 727 return; 889 return; 728 } 890 } 729 theParameters->SetNuclearFormfactorType(x) 891 theParameters->SetNuclearFormfactorType(x); 730 } else if (command == ssCmd) { << 731 G4eSingleScatteringType x = fWVI; << 732 if(newValue == "DPWA") { x = fDPWA; } << 733 else if(newValue == "Mott") { x = fMott; } << 734 else if(newValue != "WVI") { << 735 G4ExceptionDescription ed; << 736 ed << " G4eSingleScatteringType type <" << 737 G4Exception("G4EmParametersMessenger", " << 738 return; << 739 } << 740 theParameters->SetSingleScatteringType(x); << 741 } else if (command == fluc1Cmd) { << 742 G4EmFluctuationType x = fUniversalFluctuat << 743 if(newValue == "Dummy") { x = fDummyFluctu << 744 else if(newValue == "Urban") { x = fUrbanF << 745 theParameters->SetFluctuationType(x); << 746 } else if (command == posiCmd) { << 747 G4PositronAtRestModelType x = fSimplePosit << 748 if (newValue == "Allison") { x = fAllisonP << 749 else if (newValue == "OrePowell") { x = fO << 750 else if (newValue == "OrePowellPolar") { x << 751 theParameters->SetPositronAtRestModelType( << 752 } else if ( command==tripletCmd ) { << 753 theParameters->SetConversionType(tripletCm << 754 } else if ( command==onIsolatedCmd ) { << 755 theParameters->SetOnIsolated(onIsolatedCmd << 756 physicsModified = true; << 757 } 892 } 758 << 759 if(physicsModified) { 893 if(physicsModified) { 760 G4UImanager::GetUIpointer()->ApplyCommand( 894 G4UImanager::GetUIpointer()->ApplyCommand("/run/physicsModified"); 761 } 895 } 762 } 896 } 763 897 764 //....oooOO0OOooo........oooOO0OOooo........oo 898 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 765 899