68 fParticlesUnderFastSimulation.push_back(particleName);
69 fGeometries .push_back(parallelGeometryName);
83 myParticleIterator->reset();
85 while ( (*myParticleIterator)() )
92 auto itr = std::find( fParticlesUnderFastSimulation.begin(),
93 fParticlesUnderFastSimulation.end(),
96 if ( itr != fParticlesUnderFastSimulation.end() )
98 std::size_t ipos = itr - fParticlesUnderFastSimulation.begin();
99 G4String geometry = fGeometries[ipos];
109 myParticleIterator->reset();
111 while ( (*myParticleIterator)() )
117 G4bool isUnderFastSimulation(
false);
128 isUnderFastSimulation =
true;
132 processAndGeometryNames +=
"[geom:";
134 processAndGeometryNames +=
"] ";
138 processAndGeometryNames +=
"\n ";
140 processAndGeometryNames +=
"[geom:";
142 processAndGeometryNames +=
"] ";
147 if ( isUnderFastSimulation )
G4cout << std::setw(14) << particleName <<
" : " << processAndGeometryNames <<
G4endl;
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
G4GLOB_DLL std::ostream G4cout
static void ActivateFastSimulation(G4ProcessManager *pmanager, G4String parallelGeometryName="")
G4VPhysicalVolume * GetWorldVolume() const
virtual ~G4FastSimulationPhysics()
virtual void ConstructProcess()
G4FastSimulationPhysics(const G4String &name="FastSimP")
void ActivateFastSimulation(const G4String particleName, const G4String parallelGeometryName="")
virtual void ConstructParticle()
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4ProcessVector * GetProcessList() const
const G4String & GetName() const
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
const G4String & GetProcessName() const