i want to simulate the flash therapy but i do not know to perform the simulation.
void PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
{
// Set gun position
fParticleGun
->SetParticlePosition(G4ThreeVector(0., 0., -0.5));
fParticleGun->GeneratePrimaryVertex(anEvent);
}
in the mac file
we can set the : run beam on 1000 or run beam on 100000
but i wonder how to display the simulation processs of flash progress
in the simulation , i only set the single source while not the Linac so that i do not know the current.
I = Charge / time