------------------------------------------------------------------------
| 104 | |
| 105 | //------------------------------------------------------------------------ |
| 106 | void G4ErrorPhysicsList::ConstructProcess() |
| 107 | { |
| 108 | G4Transportation* theTransportationProcess = new G4Transportation(); |
| 109 | |
| 110 | #ifdef G4VERBOSE |
| 111 | if(verboseLevel >= 4) |
| 112 | { |
| 113 | G4cout << "G4VUserPhysicsList::ConstructProcess() " << G4endl; |
| 114 | } |
| 115 | #endif |
| 116 | |
| 117 | // loop over all particles in G4ParticleTable |
| 118 | auto myParticleIterator = GetParticleIterator(); |
| 119 | myParticleIterator->reset(); |
| 120 | while((*myParticleIterator)()) |
| 121 | { // Loop checking, 06.08.2015, G.Cosmo |
| 122 | G4ParticleDefinition* particle = myParticleIterator->value(); |
| 123 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
| 124 | if(!particle->IsShortLived()) |
| 125 | { |
| 126 | G4cout << particle << "G4ErrorPhysicsList:: particle process manager " |
| 127 | << particle->GetParticleName() << " = " |
| 128 | << particle->GetProcessManager() << G4endl; |
| 129 | // Add transportation process for all particles other than "shortlived" |
| 130 | if(pmanager == 0) |
| 131 | { |
| 132 | // Error !! no process manager |
| 133 | G4String particleName = particle->GetParticleName(); |
| 134 | G4Exception("G4ErrorPhysicsList::ConstructProcess", |
| 135 | "No process manager", RunMustBeAborted, particleName); |
| 136 | } |
| 137 | else |
| 138 | { |
| 139 | // add transportation with ordering = ( -1, "first", "first" ) |
| 140 | pmanager->AddProcess(theTransportationProcess); |
| 141 | pmanager->SetProcessOrderingToFirst(theTransportationProcess, |
| 142 | idxAlongStep); |
| 143 | pmanager->SetProcessOrderingToFirst(theTransportationProcess, |
| 144 | idxPostStep); |
| 145 | } |
| 146 | } |
| 147 | else |
| 148 | { |
| 149 | // shortlived particle case |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | ConstructEM(); |
| 154 | } |
| 155 | |
| 156 | //------------------------------------------------------------------------ |
| 157 | #include "G4eBremsstrahlung.hh" |
nothing calls this directly
no test coverage detected