951 if(command == typeCmd)
954 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
955 <<
" The command is obsolete and will be removed soon." <<
G4endl
956 <<
" Please try to use the new structured commands!" <<
G4endl;
958 else if(command == shapeCmd)
961 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
962 <<
" The command is obsolete and will be removed soon." <<
G4endl
963 <<
" Please try to use the new structured commands!" <<
G4endl;
965 else if(command == centreCmd)
968 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
969 <<
" The command is obsolete and will be removed soon." <<
G4endl
970 <<
" Please try to use the new structured commands!" <<
G4endl;
972 else if(command == posrot1Cmd)
975 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
976 <<
" The command is obsolete and will be removed soon." <<
G4endl
977 <<
" Please try to use the new structured commands!" <<
G4endl;
979 else if(command == posrot2Cmd)
982 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
983 <<
" The command is obsolete and will be removed soon." <<
G4endl
984 <<
" Please try to use the new structured commands!" <<
G4endl;
986 else if(command == halfxCmd)
989 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
990 <<
" The command is obsolete and will be removed soon." <<
G4endl
991 <<
" Please try to use the new structured commands!" <<
G4endl;
993 else if(command == halfyCmd)
996 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
997 <<
" The command is obsolete and will be removed soon." <<
G4endl
998 <<
" Please try to use the new structured commands!" <<
G4endl;
1000 else if(command == halfzCmd)
1003 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1004 <<
" The command is obsolete and will be removed soon." <<
G4endl
1005 <<
" Please try to use the new structured commands!" <<
G4endl;
1007 else if(command == radiusCmd)
1010 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1011 <<
" The command is obsolete and will be removed soon." <<
G4endl
1012 <<
" Please try to use the new structured commands!" <<
G4endl;
1014 else if(command == radius0Cmd)
1017 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1018 <<
" The command is obsolete and will be removed soon." <<
G4endl
1019 <<
" Please try to use the new structured commands!" <<
G4endl;
1021 else if(command == possigmarCmd)
1024 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1025 <<
" The command is obsolete and will be removed soon." <<
G4endl
1026 <<
" Please try to use the new structured commands!" <<
G4endl;
1028 else if(command == possigmaxCmd)
1031 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1032 <<
" The command is obsolete and will be removed soon." <<
G4endl
1033 <<
" Please try to use the new structured commands!" <<
G4endl;
1035 else if(command == possigmayCmd)
1038 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1039 <<
" The command is obsolete and will be removed soon." <<
G4endl
1040 <<
" Please try to use the new structured commands!" <<
G4endl;
1042 else if(command == paralpCmd)
1045 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1046 <<
" The command is obsolete and will be removed soon." <<
G4endl
1047 <<
" Please try to use the new structured commands!" <<
G4endl;
1049 else if(command == partheCmd)
1052 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1053 <<
" The command is obsolete and will be removed soon." <<
G4endl
1054 <<
" Please try to use the new structured commands!" <<
G4endl;
1056 else if(command == parphiCmd)
1059 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1060 <<
" The command is obsolete and will be removed soon." <<
G4endl
1061 <<
" Please try to use the new structured commands!" <<
G4endl;
1063 else if(command == confineCmd)
1066 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1067 <<
" The command is obsolete and will be removed soon." <<
G4endl
1068 <<
" Please try to use the new structured commands!" <<
G4endl;
1070 else if(command == angtypeCmd)
1073 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1074 <<
" The command is obsolete and will be removed soon." <<
G4endl
1075 <<
" Please try to use the new structured commands!" <<
G4endl;
1077 else if(command == angrot1Cmd)
1081 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1082 <<
" The command is obsolete and will be removed soon." <<
G4endl
1083 <<
" Please try to use the new structured commands!" <<
G4endl;
1085 else if(command == angrot2Cmd)
1089 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1090 <<
" The command is obsolete and will be removed soon." <<
G4endl
1091 <<
" Please try to use the new structured commands!" <<
G4endl;
1093 else if(command == minthetaCmd)
1096 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1097 <<
" The command is obsolete and will be removed soon." <<
G4endl
1098 <<
" Please try to use the new structured commands!" <<
G4endl;
1100 else if(command == minphiCmd)
1103 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1104 <<
" The command is obsolete and will be removed soon." <<
G4endl
1105 <<
" Please try to use the new structured commands!" <<
G4endl;
1107 else if(command == maxthetaCmd)
1110 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1111 <<
" The command is obsolete and will be removed soon." <<
G4endl
1112 <<
" Please try to use the new structured commands!" <<
G4endl;
1114 else if(command == maxphiCmd)
1117 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1118 <<
" The command is obsolete and will be removed soon." <<
G4endl
1119 <<
" Please try to use the new structured commands!" <<
G4endl;
1121 else if(command == angsigmarCmd)
1124 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1125 <<
" The command is obsolete and will be removed soon." <<
G4endl
1126 <<
" Please try to use the new structured commands!" <<
G4endl;
1128 else if(command == angsigmaxCmd)
1131 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1132 <<
" The command is obsolete and will be removed soon." <<
G4endl
1133 <<
" Please try to use the new structured commands!" <<
G4endl;
1135 else if(command == angsigmayCmd)
1138 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1139 <<
" The command is obsolete and will be removed soon." <<
G4endl
1140 <<
" Please try to use the new structured commands!" <<
G4endl;
1142 else if(command == useuserangaxisCmd)
1145 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1146 <<
" The command is obsolete and will be removed soon." <<
G4endl
1147 <<
" Please try to use the new structured commands!" <<
G4endl;
1149 else if(command == surfnormCmd)
1152 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1153 <<
" The command is obsolete and will be removed soon." <<
G4endl
1154 <<
" Please try to use the new structured commands!" <<
G4endl;
1156 else if(command == energytypeCmd)
1159 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1160 <<
" The command is obsolete and will be removed soon." <<
G4endl
1161 <<
" Please try to use the new structured commands!" <<
G4endl;
1163 else if(command == eminCmd)
1166 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1167 <<
" The command is obsolete and will be removed soon." <<
G4endl
1168 <<
" Please try to use the new structured commands!" <<
G4endl;
1170 else if(command == emaxCmd)
1173 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1174 <<
" The command is obsolete and will be removed soon." <<
G4endl
1175 <<
" Please try to use the new structured commands!" <<
G4endl;
1177 else if(command == monoenergyCmd)
1180 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1181 <<
" The command is obsolete and will be removed soon." <<
G4endl
1182 <<
" Please try to use the new structured commands!" <<
G4endl;
1184 else if(command == engsigmaCmd)
1187 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1188 <<
" The command is obsolete and will be removed soon." <<
G4endl
1189 <<
" Please try to use the new structured commands!" <<
G4endl;
1191 else if(command == alphaCmd)
1194 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1195 <<
" The command is obsolete and will be removed soon." <<
G4endl
1196 <<
" Please try to use the new structured commands!" <<
G4endl;
1198 else if(command == tempCmd)
1201 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1202 <<
" The command is obsolete and will be removed soon." <<
G4endl
1203 <<
" Please try to use the new structured commands!" <<
G4endl;
1205 else if(command == ezeroCmd)
1208 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1209 <<
" The command is obsolete and will be removed soon." <<
G4endl
1210 <<
" Please try to use the new structured commands!" <<
G4endl;
1212 else if(command == gradientCmd)
1215 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1216 <<
" The command is obsolete and will be removed soon." <<
G4endl
1217 <<
" Please try to use the new structured commands!" <<
G4endl;
1219 else if(command == interceptCmd)
1222 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1223 <<
" The command is obsolete and will be removed soon." <<
G4endl
1224 <<
" Please try to use the new structured commands!" <<
G4endl;
1226 else if(command == calculateCmd)
1229 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1230 <<
" The command is obsolete and will be removed soon." <<
G4endl
1231 <<
" Please try to use the new structured commands!" <<
G4endl;
1233 else if(command == energyspecCmd)
1236 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1237 <<
" The command is obsolete and will be removed soon." <<
G4endl
1238 <<
" Please try to use the new structured commands!" <<
G4endl;
1240 else if(command == diffspecCmd)
1243 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1244 <<
" The command is obsolete and will be removed soon." <<
G4endl
1245 <<
" Please try to use the new structured commands!" <<
G4endl;
1247 else if(command == histnameCmd)
1249 histtype = newValues;
1250 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1251 <<
" The command is obsolete and will be removed soon." <<
G4endl
1252 <<
" Please try to use the new structured commands!" <<
G4endl;
1254 else if(command == histpointCmd)
1256 if(histtype ==
"biasx")
1258 if(histtype ==
"biasy")
1260 if(histtype ==
"biasz")
1262 if(histtype ==
"biast")
1264 if(histtype ==
"biasp")
1266 if(histtype ==
"biase")
1268 if(histtype ==
"theta")
1270 if(histtype ==
"phi")
1272 if(histtype ==
"energy")
1274 if(histtype ==
"arb")
1276 if(histtype ==
"epn")
1278 G4cout <<
" G4GeneralParticleSourceMessenger - Warning: The command is obsolete and will be removed soon. Please try to use the new structured commands!" <<
G4endl;
1280 else if(command == resethistCmd)
1282 if(newValues ==
"theta" || newValues ==
"phi") {
1284 }
else if (newValues ==
"energy" || newValues ==
"arb" || newValues ==
"epn") {
1289 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1290 <<
" The command is obsolete and will be removed soon." <<
G4endl
1291 <<
" Please try to use the new structured commands!" <<
G4endl;
1293 else if(command == arbintCmd)
1296 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1297 <<
" The command is obsolete and will be removed soon." <<
G4endl
1298 <<
" Please try to use the new structured commands!" <<
G4endl;
1300 else if( command==directionCmd )
1305 else if( command==energyCmd )
1310 else if( command==positionCmd )
1315 else if(command == verbosityCmd)
1319 else if( command==particleCmd )
1321 if (newValues ==
"ion") {
1330 else if( command==timeCmd )
1332 else if( command==polCmd )
1334 else if( command==numberCmd )
1336 else if( command==ionCmd )
1337 { IonCommand(newValues); }
1338 else if( command==ionLvlCmd )
1339 { IonLvlCommand(newValues); }
1340 else if( command==listCmd ){
1343 else if( command==addsourceCmd )
1347 else if( command==listsourceCmd )
1351 else if( command==clearsourceCmd )
1355 else if( command==getsourceCmd )
1360 else if( command==setsourceCmd )
1364 else if( command==setintensityCmd )
1368 else if( command==deletesourceCmd )
1372 else if(command == multiplevertexCmd)
1376 else if(command == flatsamplingCmd)
1384 else if(command == typeCmd1)
1388 else if(command == shapeCmd1)
1392 else if(command == centreCmd1)
1396 else if(command == posrot1Cmd1)
1400 else if(command == posrot2Cmd1)
1404 else if(command == halfxCmd1)
1408 else if(command == halfyCmd1)
1412 else if(command == halfzCmd1)
1416 else if(command == radiusCmd1)
1420 else if(command == radius0Cmd1)
1424 else if(command == possigmarCmd1)
1428 else if(command == possigmaxCmd1)
1432 else if(command == possigmayCmd1)
1436 else if(command == paralpCmd1)
1440 else if(command == partheCmd1)
1444 else if(command == parphiCmd1)
1448 else if(command == confineCmd1)
1452 else if(command == angtypeCmd1)
1456 else if(command == angrot1Cmd1)
1461 else if(command == angrot2Cmd1)
1466 else if(command == minthetaCmd1)
1470 else if(command == minphiCmd1)
1474 else if(command == maxthetaCmd1)
1478 else if(command == maxphiCmd1)
1482 else if(command == angsigmarCmd1)
1486 else if(command == angsigmaxCmd1)
1490 else if(command == angsigmayCmd1)
1494 else if(command == angfocusCmd)
1498 else if(command == useuserangaxisCmd1)
1502 else if(command == surfnormCmd1)
1506 else if(command == energytypeCmd1)
1510 else if(command == eminCmd1)
1514 else if(command == emaxCmd1)
1518 else if(command == monoenergyCmd1)
1522 else if(command == engsigmaCmd1)
1526 else if(command == alphaCmd1)
1530 else if(command == tempCmd1)
1534 else if(command == ezeroCmd1)
1538 else if(command == gradientCmd1)
1542 else if(command == interceptCmd1)
1546 else if(command == arbeintCmd1)
1550 else if(command == calculateCmd1)
1554 else if(command == energyspecCmd1)
1558 else if(command == diffspecCmd1)
1562 else if(command == histnameCmd1)
1564 histtype = newValues;
1566 else if(command == histfileCmd1)
1571 else if(command == histpointCmd1)
1573 if(histtype ==
"biasx")
1575 if(histtype ==
"biasy")
1577 if(histtype ==
"biasz")
1579 if(histtype ==
"biast")
1581 if(histtype ==
"biasp")
1583 if(histtype ==
"biaspt")
1585 if(histtype ==
"biaspp")
1587 if(histtype ==
"biase")
1589 if(histtype ==
"theta")
1591 if(histtype ==
"phi")
1593 if(histtype ==
"energy")
1595 if(histtype ==
"arb")
1597 if(histtype ==
"epn")
1600 else if(command == resethistCmd1)
1602 if(newValues ==
"theta" || newValues ==
"phi") {
1604 }
else if (newValues ==
"energy" || newValues ==
"arb" || newValues ==
"epn") {
1610 else if(command == arbintCmd1)
void SetBeamSigmaInE(G4double)
G4SPSRandomGenerator * GetBiasRndm()
G4SPSEneDistribution * GetEneDist()
void SetParticleTime(G4double aTime)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4int GetCurrentSourceIndex()
void AddaSource(G4double)
void DumpTable(const G4String &particle_name="ALL")
void SetPosDisType(G4String)
void SetParTheta(G4double)
void SetBeamSigmaInX(G4double)
void ArbEnergyHisto(G4ThreeVector)
static G4int GetNewIntValue(const char *paramString)
void SetBeamSigmaInAngR(G4double)
G4SPSPosDistribution * GetPosDist()
void SetMultipleVertex(G4bool av)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetParAlpha(G4double)
void SetBeamSigmaInAngY(G4double)
void SetMinTheta(G4double)
void SetEnergyBias(G4ThreeVector)
void SetUseUserAngAxis(G4bool)
void SetYBias(G4ThreeVector)
static G4double GetNewDoubleValue(const char *paramString)
void SetCurrentSourceIntensity(G4double)
void SetPosThetaBias(G4ThreeVector)
static G4bool GetNewBoolValue(const char *paramString)
void SetThetaBias(G4ThreeVector)
void SetZBias(G4ThreeVector)
void SetXBias(G4ThreeVector)
void UserDefAngPhi(G4ThreeVector)
void UserDefAngTheta(G4ThreeVector)
G4GLOB_DLL std::ostream G4cout
void SetCentreCoords(G4ThreeVector)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetEnergyDisType(G4String)
void SetBeamSigmaInR(G4double)
static G4double GetNewDoubleValue(const char *paramString)
void DefineAngRefAxes(G4String, G4ThreeVector)
void SetParticlePolarization(G4ThreeVector aVal)
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
void SetPosRot1(G4ThreeVector)
G4double GetCurrentSourceIntensity()
G4SPSAngDistribution * GetAngDist()
void SetPosDisShape(G4String)
void ArbInterpolate(G4String)
void EpnEnergyHisto(G4ThreeVector)
void SetPhiBias(G4ThreeVector)
void InputEnergySpectra(G4bool)
void SetAngDistType(G4String)
void SetGradient(G4double)
void UserEnergyHisto(G4ThreeVector)
void SetPosRot2(G4ThreeVector)
void SetInterCept(G4double)
void InputDifferentialSpectra(G4bool)
void SetFocusPoint(G4ThreeVector)
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
void SetBiasAlpha(G4double)
void DeleteaSource(G4int)
void SetCurrentSourceto(G4int)
void ArbEnergyHistoFile(G4String)
void SetUserWRTSurface(G4bool)
void ConfineSourceToVolume(G4String)
void SetFlatSampling(G4bool av)
void SetMaxTheta(G4double)
void SetRadius0(G4double)
void SetBeamSigmaInY(G4double)
void SetNumberOfParticles(G4int i)
void SetMonoEnergy(G4double)
void SetPosPhiBias(G4ThreeVector)
void SetBeamSigmaInAngX(G4double)