927{
928 if(command == typeCmd)
929 {
931 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
932 <<
" The command is obsolete and will be removed soon." <<
G4endl
933 <<
" Please try to use the new structured commands!" <<
G4endl;
934 }
935 else if(command == shapeCmd)
936 {
938 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
939 <<
" The command is obsolete and will be removed soon." <<
G4endl
940 <<
" Please try to use the new structured commands!" <<
G4endl;
941 }
942 else if(command == centreCmd)
943 {
945 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
946 <<
" The command is obsolete and will be removed soon." <<
G4endl
947 <<
" Please try to use the new structured commands!" <<
G4endl;
948 }
949 else if(command == posrot1Cmd)
950 {
952 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
953 <<
" The command is obsolete and will be removed soon." <<
G4endl
954 <<
" Please try to use the new structured commands!" <<
G4endl;
955 }
956 else if(command == posrot2Cmd)
957 {
959 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
960 <<
" The command is obsolete and will be removed soon." <<
G4endl
961 <<
" Please try to use the new structured commands!" <<
G4endl;
962 }
963 else if(command == halfxCmd)
964 {
966 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
967 <<
" The command is obsolete and will be removed soon." <<
G4endl
968 <<
" Please try to use the new structured commands!" <<
G4endl;
969 }
970 else if(command == halfyCmd)
971 {
973 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
974 <<
" The command is obsolete and will be removed soon." <<
G4endl
975 <<
" Please try to use the new structured commands!" <<
G4endl;
976 }
977 else if(command == halfzCmd)
978 {
980 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
981 <<
" The command is obsolete and will be removed soon." <<
G4endl
982 <<
" Please try to use the new structured commands!" <<
G4endl;
983 }
984 else if(command == radiusCmd)
985 {
987 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
988 <<
" The command is obsolete and will be removed soon." <<
G4endl
989 <<
" Please try to use the new structured commands!" <<
G4endl;
990 }
991 else if(command == radius0Cmd)
992 {
994 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
995 <<
" The command is obsolete and will be removed soon." <<
G4endl
996 <<
" Please try to use the new structured commands!" <<
G4endl;
997 }
998 else if(command == possigmarCmd)
999 {
1001 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1002 <<
" The command is obsolete and will be removed soon." <<
G4endl
1003 <<
" Please try to use the new structured commands!" <<
G4endl;
1004 }
1005 else if(command == possigmaxCmd)
1006 {
1008 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1009 <<
" The command is obsolete and will be removed soon." <<
G4endl
1010 <<
" Please try to use the new structured commands!" <<
G4endl;
1011 }
1012 else if(command == possigmayCmd)
1013 {
1015 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1016 <<
" The command is obsolete and will be removed soon." <<
G4endl
1017 <<
" Please try to use the new structured commands!" <<
G4endl;
1018 }
1019 else if(command == paralpCmd)
1020 {
1022 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1023 <<
" The command is obsolete and will be removed soon." <<
G4endl
1024 <<
" Please try to use the new structured commands!" <<
G4endl;
1025 }
1026 else if(command == partheCmd)
1027 {
1029 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1030 <<
" The command is obsolete and will be removed soon." <<
G4endl
1031 <<
" Please try to use the new structured commands!" <<
G4endl;
1032 }
1033 else if(command == parphiCmd)
1034 {
1036 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1037 <<
" The command is obsolete and will be removed soon." <<
G4endl
1038 <<
" Please try to use the new structured commands!" <<
G4endl;
1039 }
1040 else if(command == confineCmd)
1041 {
1043 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1044 <<
" The command is obsolete and will be removed soon." <<
G4endl
1045 <<
" Please try to use the new structured commands!" <<
G4endl;
1046 }
1047 else if(command == angtypeCmd)
1048 {
1050 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1051 <<
" The command is obsolete and will be removed soon." <<
G4endl
1052 <<
" Please try to use the new structured commands!" <<
G4endl;
1053 }
1054 else if(command == angrot1Cmd)
1055 {
1058 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1059 <<
" The command is obsolete and will be removed soon." <<
G4endl
1060 <<
" Please try to use the new structured commands!" <<
G4endl;
1061 }
1062 else if(command == angrot2Cmd)
1063 {
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;
1069 }
1070 else if(command == minthetaCmd)
1071 {
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;
1076 }
1077 else if(command == minphiCmd)
1078 {
1080 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1081 <<
" The command is obsolete and will be removed soon." <<
G4endl
1082 <<
" Please try to use the new structured commands!" <<
G4endl;
1083 }
1084 else if(command == maxthetaCmd)
1085 {
1087 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1088 <<
" The command is obsolete and will be removed soon." <<
G4endl
1089 <<
" Please try to use the new structured commands!" <<
G4endl;
1090 }
1091 else if(command == maxphiCmd)
1092 {
1094 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1095 <<
" The command is obsolete and will be removed soon." <<
G4endl
1096 <<
" Please try to use the new structured commands!" <<
G4endl;
1097 }
1098 else if(command == angsigmarCmd)
1099 {
1101 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1102 <<
" The command is obsolete and will be removed soon." <<
G4endl
1103 <<
" Please try to use the new structured commands!" <<
G4endl;
1104 }
1105 else if(command == angsigmaxCmd)
1106 {
1108 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1109 <<
" The command is obsolete and will be removed soon." <<
G4endl
1110 <<
" Please try to use the new structured commands!" <<
G4endl;
1111 }
1112 else if(command == angsigmayCmd)
1113 {
1115 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1116 <<
" The command is obsolete and will be removed soon." <<
G4endl
1117 <<
" Please try to use the new structured commands!" <<
G4endl;
1118 }
1119 else if(command == useuserangaxisCmd)
1120 {
1122 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1123 <<
" The command is obsolete and will be removed soon." <<
G4endl
1124 <<
" Please try to use the new structured commands!" <<
G4endl;
1125 }
1126 else if(command == surfnormCmd)
1127 {
1129 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1130 <<
" The command is obsolete and will be removed soon." <<
G4endl
1131 <<
" Please try to use the new structured commands!" <<
G4endl;
1132 }
1133 else if(command == energytypeCmd)
1134 {
1136 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1137 <<
" The command is obsolete and will be removed soon." <<
G4endl
1138 <<
" Please try to use the new structured commands!" <<
G4endl;
1139 }
1140 else if(command == eminCmd)
1141 {
1143 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1144 <<
" The command is obsolete and will be removed soon." <<
G4endl
1145 <<
" Please try to use the new structured commands!" <<
G4endl;
1146 }
1147 else if(command == emaxCmd)
1148 {
1150 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1151 <<
" The command is obsolete and will be removed soon." <<
G4endl
1152 <<
" Please try to use the new structured commands!" <<
G4endl;
1153 }
1154 else if(command == monoenergyCmd)
1155 {
1157 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1158 <<
" The command is obsolete and will be removed soon." <<
G4endl
1159 <<
" Please try to use the new structured commands!" <<
G4endl;
1160 }
1161 else if(command == engsigmaCmd)
1162 {
1164 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1165 <<
" The command is obsolete and will be removed soon." <<
G4endl
1166 <<
" Please try to use the new structured commands!" <<
G4endl;
1167 }
1168 else if(command == alphaCmd)
1169 {
1171 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1172 <<
" The command is obsolete and will be removed soon." <<
G4endl
1173 <<
" Please try to use the new structured commands!" <<
G4endl;
1174 }
1175 else if(command == tempCmd)
1176 {
1178 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1179 <<
" The command is obsolete and will be removed soon." <<
G4endl
1180 <<
" Please try to use the new structured commands!" <<
G4endl;
1181 }
1182 else if(command == ezeroCmd)
1183 {
1185 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1186 <<
" The command is obsolete and will be removed soon." <<
G4endl
1187 <<
" Please try to use the new structured commands!" <<
G4endl;
1188 }
1189 else if(command == gradientCmd)
1190 {
1192 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1193 <<
" The command is obsolete and will be removed soon." <<
G4endl
1194 <<
" Please try to use the new structured commands!" <<
G4endl;
1195 }
1196 else if(command == interceptCmd)
1197 {
1199 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1200 <<
" The command is obsolete and will be removed soon." <<
G4endl
1201 <<
" Please try to use the new structured commands!" <<
G4endl;
1202 }
1203 else if(command == calculateCmd)
1204 {
1206 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1207 <<
" The command is obsolete and will be removed soon." <<
G4endl
1208 <<
" Please try to use the new structured commands!" <<
G4endl;
1209 }
1210 else if(command == energyspecCmd)
1211 {
1213 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1214 <<
" The command is obsolete and will be removed soon." <<
G4endl
1215 <<
" Please try to use the new structured commands!" <<
G4endl;
1216 }
1217 else if(command == diffspecCmd)
1218 {
1220 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1221 <<
" The command is obsolete and will be removed soon." <<
G4endl
1222 <<
" Please try to use the new structured commands!" <<
G4endl;
1223 }
1224 else if(command == histnameCmd)
1225 {
1226 histtype = newValues;
1227 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1228 <<
" The command is obsolete and will be removed soon." <<
G4endl
1229 <<
" Please try to use the new structured commands!" <<
G4endl;
1230 }
1231 else if(command == histpointCmd)
1232 {
1233 if(histtype == "biasx")
1235 if(histtype == "biasy")
1237 if(histtype == "biasz")
1239 if(histtype == "biast")
1241 if(histtype == "biasp")
1243 if(histtype == "biase")
1245 if(histtype == "theta")
1247 if(histtype == "phi")
1249 if(histtype == "energy")
1251 if(histtype == "arb")
1253 if(histtype == "epn")
1255 G4cout <<
" G4GeneralParticleSourceMessenger - Warning: The command is obsolete and will be removed soon. Please try to use the new structured commands!" <<
G4endl;
1256 }
1257 else if(command == resethistCmd)
1258 {
1259 if(newValues == "theta" || newValues == "phi") {
1261 } else if (newValues == "energy" || newValues == "arb" || newValues == "epn") {
1263 } else {
1265 }
1266 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1267 <<
" The command is obsolete and will be removed soon." <<
G4endl
1268 <<
" Please try to use the new structured commands!" <<
G4endl;
1269 }
1270 else if(command == arbintCmd)
1271 {
1273 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1274 <<
" The command is obsolete and will be removed soon." <<
G4endl
1275 <<
" Please try to use the new structured commands!" <<
G4endl;
1276 }
1277 else if( command==directionCmd )
1278 {
1281 }
1282 else if( command==energyCmd )
1283 {
1286 }
1287 else if( command==positionCmd )
1288 {
1291 }
1292 else if(command == verbosityCmd)
1293 {
1295 }
1296 else if( command==particleCmd )
1297 {
1298 if (newValues =="ion") {
1299 fShootIon = true;
1300 } else {
1301 fShootIon = false;
1303 if(pd != NULL)
1305 }
1306 }
1307 else if( command==timeCmd )
1309 else if( command==polCmd )
1311 else if( command==numberCmd )
1313 else if( command==ionCmd )
1314 { IonCommand(newValues); }
1315 else if( command==listCmd ){
1317 }
1318 else if( command==addsourceCmd )
1319 {
1321 }
1322 else if( command==listsourceCmd )
1323 {
1325 }
1326 else if( command==clearsourceCmd )
1327 {
1329 }
1330 else if( command==getsourceCmd )
1331 {
1334 }
1335 else if( command==setsourceCmd )
1336 {
1338 }
1339 else if( command==setintensityCmd )
1340 {
1342 }
1343 else if( command==deletesourceCmd )
1344 {
1346 }
1347 else if(command == multiplevertexCmd)
1348 {
1350 }
1351 else if(command == flatsamplingCmd)
1352 {
1354 }
1355
1356
1357
1358
1359 else if(command == typeCmd1)
1360 {
1362 }
1363 else if(command == shapeCmd1)
1364 {
1366 }
1367 else if(command == centreCmd1)
1368 {
1370 }
1371 else if(command == posrot1Cmd1)
1372 {
1374 }
1375 else if(command == posrot2Cmd1)
1376 {
1378 }
1379 else if(command == halfxCmd1)
1380 {
1382 }
1383 else if(command == halfyCmd1)
1384 {
1386 }
1387 else if(command == halfzCmd1)
1388 {
1390 }
1391 else if(command == radiusCmd1)
1392 {
1394 }
1395 else if(command == radius0Cmd1)
1396 {
1398 }
1399 else if(command == possigmarCmd1)
1400 {
1402 }
1403 else if(command == possigmaxCmd1)
1404 {
1406 }
1407 else if(command == possigmayCmd1)
1408 {
1410 }
1411 else if(command == paralpCmd1)
1412 {
1414 }
1415 else if(command == partheCmd1)
1416 {
1418 }
1419 else if(command == parphiCmd1)
1420 {
1422 }
1423 else if(command == confineCmd1)
1424 {
1426 }
1427 else if(command == angtypeCmd1)
1428 {
1430 }
1431 else if(command == angrot1Cmd1)
1432 {
1435 }
1436 else if(command == angrot2Cmd1)
1437 {
1440 }
1441 else if(command == minthetaCmd1)
1442 {
1444 }
1445 else if(command == minphiCmd1)
1446 {
1448 }
1449 else if(command == maxthetaCmd1)
1450 {
1452 }
1453 else if(command == maxphiCmd1)
1454 {
1456 }
1457 else if(command == angsigmarCmd1)
1458 {
1460 }
1461 else if(command == angsigmaxCmd1)
1462 {
1464 }
1465 else if(command == angsigmayCmd1)
1466 {
1468 }
1469 else if(command == angfocusCmd)
1470 {
1472 }
1473 else if(command == useuserangaxisCmd1)
1474 {
1476 }
1477 else if(command == surfnormCmd1)
1478 {
1480 }
1481 else if(command == energytypeCmd1)
1482 {
1484 }
1485 else if(command == eminCmd1)
1486 {
1488 }
1489 else if(command == emaxCmd1)
1490 {
1492 }
1493 else if(command == monoenergyCmd1)
1494 {
1496 }
1497 else if(command == engsigmaCmd1)
1498 {
1500 }
1501 else if(command == alphaCmd1)
1502 {
1504 }
1505 else if(command == tempCmd1)
1506 {
1508 }
1509 else if(command == ezeroCmd1)
1510 {
1512 }
1513 else if(command == gradientCmd1)
1514 {
1516 }
1517 else if(command == interceptCmd1)
1518 {
1520 }
1521 else if(command == arbeintCmd1)
1522 {
1524 }
1525 else if(command == calculateCmd1)
1526 {
1528 }
1529 else if(command == energyspecCmd1)
1530 {
1532 }
1533 else if(command == diffspecCmd1)
1534 {
1536 }
1537 else if(command == histnameCmd1)
1538 {
1539 histtype = newValues;
1540 }
1541 else if(command == histfileCmd1)
1542 {
1543 histtype = "arb";
1545 }
1546 else if(command == histpointCmd1)
1547 {
1548 if(histtype == "biasx")
1550 if(histtype == "biasy")
1552 if(histtype == "biasz")
1554 if(histtype == "biast")
1556 if(histtype == "biasp")
1558 if(histtype == "biaspt")
1560 if(histtype == "biaspp")
1562 if(histtype == "biase")
1564 if(histtype == "theta")
1566 if(histtype == "phi")
1568 if(histtype == "energy")
1570 if(histtype == "arb")
1572 if(histtype == "epn")
1574 }
1575 else if(command == resethistCmd1)
1576 {
1577 if(newValues == "theta" || newValues == "phi") {
1579 } else if (newValues == "energy" || newValues == "arb" || newValues == "epn") {
1581 } else {
1583 }
1584 }
1585 else if(command == arbintCmd1)
1586 {
1588 }
1589 else
1590 {
1592 }
1593}
G4DLLIMPORT std::ostream G4cout
void SetFlatSampling(G4bool av)
G4int GetCurrentSourceIndex()
void AddaSource(G4double)
void SetCurrentSourceIntensity(G4double)
void SetCurrentSourceto(G4int)
void DeleteaSource(G4int)
void SetMultipleVertex(G4bool av)
G4double GetCurrentSourceIntensity()
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void DumpTable(const G4String &particle_name="ALL")
void SetBeamSigmaInAngX(G4double)
void SetBeamSigmaInAngR(G4double)
void SetFocusPoint(G4ThreeVector)
void UserDefAngPhi(G4ThreeVector)
void SetMaxTheta(G4double)
void SetUseUserAngAxis(G4bool)
void SetMinTheta(G4double)
void SetBeamSigmaInAngY(G4double)
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
void SetAngDistType(G4String)
void UserDefAngTheta(G4ThreeVector)
void DefineAngRefAxes(G4String, G4ThreeVector)
void SetUserWRTSurface(G4bool)
void UserEnergyHisto(G4ThreeVector)
void ArbEnergyHisto(G4ThreeVector)
void InputEnergySpectra(G4bool)
void SetBeamSigmaInE(G4double)
void SetBiasAlpha(G4double)
void ArbInterpolate(G4String)
void SetGradient(G4double)
void InputDifferentialSpectra(G4bool)
void EpnEnergyHisto(G4ThreeVector)
void SetEnergyDisType(G4String)
void SetMonoEnergy(G4double)
void ArbEnergyHistoFile(G4String)
void SetInterCept(G4double)
void ConfineSourceToVolume(G4String)
void SetCentreCoords(G4ThreeVector)
void SetParAlpha(G4double)
void SetBeamSigmaInX(G4double)
void SetPosDisType(G4String)
void SetPosDisShape(G4String)
void SetPosRot2(G4ThreeVector)
void SetBeamSigmaInR(G4double)
void SetRadius0(G4double)
void SetPosRot1(G4ThreeVector)
void SetParTheta(G4double)
void SetBeamSigmaInY(G4double)
void SetThetaBias(G4ThreeVector)
void SetYBias(G4ThreeVector)
void SetEnergyBias(G4ThreeVector)
void SetPhiBias(G4ThreeVector)
void SetPosThetaBias(G4ThreeVector)
void SetZBias(G4ThreeVector)
void SetPosPhiBias(G4ThreeVector)
void SetXBias(G4ThreeVector)
G4SPSAngDistribution * GetAngDist()
void SetParticlePolarization(G4ThreeVector aVal)
void SetNumberOfParticles(G4int i)
void SetParticleTime(G4double aTime)
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
G4SPSPosDistribution * GetPosDist()
G4SPSRandomGenerator * GetBiasRndm()
G4SPSEneDistribution * GetEneDist()
static G4ThreeVector GetNew3VectorValue(const char *paramString)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
static G4bool GetNewBoolValue(const char *paramString)
static G4double GetNewDoubleValue(const char *paramString)
static G4double GetNewDoubleValue(const char *paramString)
static G4int GetNewIntValue(const char *paramString)