104 for (
size_t j=0; j<msc; ++j) {
108 for (
size_t k=0;
k<emp; ++
k) {
112 for (
size_t k=0;
k<emp; ++
k) {
118 for (
size_t a=0;
a<mod; ++
a) {
121 for (
size_t b=0;
b<fmod; ++
b) {
130 for (
size_t b=0;
b<fmod; ++
b) {
204 G4cout <<
"G4LossTableManager::Register G4VEnergyLossProcess : "
257 for (
G4int i=0; i<
n; ++i) {
261 G4cout <<
"G4LossTableManager::Register G4VMultipleScattering : "
273 for (
size_t i=0; i<msc; ++i) {
287 for (
G4int i=0; i<
n; ++i) {
291 G4cout <<
"G4LossTableManager::Register G4VEmProcess : "
303 for (
size_t i=0; i<emp; ++i) {
317 for (
G4int i=0; i<
n; ++i) {
321 G4cout <<
"G4LossTableManager::Register G4VProcess : "
333 for (
size_t i=0; i<emp; ++i) {
347 G4cout <<
"G4LossTableManager::Register G4VEmModel : "
358 for (
size_t i=0; i<
n; ++i) {
372 G4cout <<
"G4LossTableManager::Register G4VEmFluctuationModel : "
382 for (
size_t i=0; i<
n; ++i) {
393 if(!p || !part) {
return; }
398 G4cout <<
"G4LossTableManager::RegisterExtraParticle "
422 std::map<PD,G4VEnergyLossProcess*,std::less<PD> >::const_iterator
pos;
443 G4cout <<
"G4LossTableManager::PreparePhysicsTable for "
454 G4cout <<
"====== G4LossTableManager::PreparePhysicsTable start ====="
483 G4cout <<
"G4LossTableManager::PreparePhysicsTable for "
492 G4cout <<
"====== G4LossTableManager::PreparePhysicsTable start ====="
512 G4cout <<
"G4LossTableManager::PreparePhysicsTable for "
522 G4cout <<
"====== G4LossTableManager::PreparePhysicsTable start ====="
551 G4cout <<
"### G4LossTableManager::LocalPhysicsTable() for "
565 G4cout <<
"===== G4LossTableManager::LocalPhysicsTable() for run "
613 G4cout <<
"### G4LossTableManager::LocalPhysicsTable end"
618 G4cout <<
"%%%%% All dEdx and Range tables for worker are ready for run "
631 G4cout <<
"### G4LossTableManager::BuildPhysicsTable() for "
643 G4cout <<
"===== G4LossTableManager::BuildPhysicsTable() for run "
655 G4cout <<
"### G4LossTableManager start initilisation for first particle "
684 G4cout <<
" base particle "
725 G4cout <<
"### G4LossTableManager::BuildPhysicsTable end: "
731 G4cout <<
"%%%%% All dEdx and Range tables are built for master run= "
769 <<
" tables are assigned"
786 G4cout <<
"G4LossTableManager::BuildTables() for "
790 std::vector<G4PhysicsTable*> t_list;
791 std::vector<G4VEnergyLossProcess*> loss_list;
792 std::vector<G4bool> build_flags;
803 for (i=0; i<
n_loss; ++i) {
811 for(
G4int j=0; j<nvec; ++j) {
813 if(ptr == (*pvec)[j]) {
837 t_list.push_back(dedx);
838 loss_list.push_back(p);
839 build_flags.push_back(val);
844 G4int n_dedx = t_list.size();
845 if (0 == n_dedx || !em) {
846 G4cout <<
"G4LossTableManager WARNING: no DEDX processes for "
853 G4cout <<
"G4LossTableManager::BuildTables() start to build range tables"
854 <<
" and the sum of " << n_dedx <<
" processes"
857 <<
" nSubRegions= " << nSubRegions;
906 std::vector<G4PhysicsTable*> listSub;
907 std::vector<G4PhysicsTable*> listCSDA;
909 for (i=0; i<n_dedx; ++i) {
915 if (0 < nSubRegions) {
918 listSub.push_back(dedx);
927 listCSDA.push_back(dedx);
931 if (0 < nSubRegions) {
933 if (1 < listSub.size()) {
956 G4cout <<
"G4LossTableManager::BuildTables: Tables are built for "
971 ed <<
"Energy loss process not found for " << aParticle->
GetParticleName()
973 G4Exception(
"G4LossTableManager::ParticleHaveNoLoss",
"em0001",
986 const std::vector<G4VEnergyLossProcess*>&
1001 const std::vector<G4VMultipleScattering*>&
1078 G4String ss =
"G4LossTableManager::" + tit;
1101 char* dirName = std::getenv(
"G4PhysListDocDir");
1102 char* physList = std::getenv(
"G4PhysListName");
1103 if (dirName && physList) {
1107 std::ofstream outFile;
1108 outFile.open(pathName);
1110 outFile << physListName <<
G4endl;
1111 outFile << std::string(physListName.length(),
'=') << G4endl;
1113 std::vector<G4ParticleDefinition*> particles {
1123 std::vector<G4VEnergyLossProcess*> enloss_vector =
1125 std::vector<G4VMultipleScattering*> mscat_vector =
1128 for (
auto theParticle : particles) {
1129 outFile << G4endl <<
"**" << theParticle->GetParticleName()
1130 <<
"**" << G4endl << G4endl <<
" .. code-block:: none" <<
G4endl;
1136 for (
auto emproc : emproc_vector) {
1137 for (
G4int i = 0; i < plen; ++i) {
1139 if (proc == emproc) {
1147 for (
auto mscproc : mscat_vector) {
1148 for (
G4int i = 0; i < plen; ++i) {
1150 if (proc == mscproc) {
1158 for (
auto enlossproc : enloss_vector) {
1159 for (
G4int i = 0; i < plen; ++i) {
1161 if (proc == enlossproc) {