69 fParticlesUnderFastSimulation.push_back(particleName);
70 fGeometries .push_back(
"");
77 fParticlesUnderFastSimulation.push_back(particleName);
78 fGeometries .push_back(parallelGeometryName);
92 myParticleIterator->reset();
94 while ( (*myParticleIterator)() )
101 auto itr = std::find( fParticlesUnderFastSimulation.begin(),
102 fParticlesUnderFastSimulation.end(),
105 if ( itr != fParticlesUnderFastSimulation.end() )
107 size_t ipos = itr - fParticlesUnderFastSimulation.begin();
108 G4String geometry = fGeometries[ipos];
118 myParticleIterator->reset();
120 while ( (*myParticleIterator)() )
126 G4bool isUnderFastSimulation(
false);
131 for (
G4int ip = 0 ; ip < vprocess->
size() ; ip++)
137 isUnderFastSimulation =
true;
141 processAndGeometryNames +=
"[geom:";
143 processAndGeometryNames +=
"] ";
147 processAndGeometryNames +=
"\n ";
149 processAndGeometryNames +=
"[geom:";
151 processAndGeometryNames +=
"] ";
156 if ( isUnderFastSimulation )
G4cout << std::setw(14) << particleName <<
" : " << processAndGeometryNames <<
G4endl;
G4FastSimulationPhysics(const G4String &name="FastSimP")
virtual void ConstructProcess()
void ActivateFastSimulation(const G4String &particleName)
virtual void ConstructParticle()
const G4String & GetParticleName() const
static void ActivateFastSimulation(G4ProcessManager *pmanager)
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
G4GLOB_DLL std::ostream G4cout
virtual ~G4FastSimulationPhysics()
const G4String & GetName() const
const G4String & GetProcessName() const
G4ProcessManager * GetProcessManager() const
G4VPhysicalVolume * GetWorldVolume() const
G4ProcessVector * GetProcessList() const
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)