geant4-B1-example
1.0
|
to set up the beam. More...
#include <B1PrimaryGeneratorAction.hh>
Public Member Functions | |
B1PrimaryGeneratorAction () | |
set up our gamma beamIt is 6MeV gamma, moving toward (0,0,1) direction.gamma's location will be set in GeneratePrimaries() More... | |
virtual | ~B1PrimaryGeneratorAction () |
we must delete the fParticleGun when the B1PrimaryGeneratorAction obj is deleted. More... | |
virtual void | GeneratePrimaries (G4Event *) |
setup the gamma's location
to get the width and height of the 'Envelope' phyisclogic volume. | |
const G4ParticleGun * | GetParticleGun () const |
to set up the beam.
in this case: 6MeV gamma, moving toward (0,0,1) direction,
and 0.8*width and 0.8*height as the area that the gamma will hit
Definition at line 27 of file B1PrimaryGeneratorAction.hh.
B1PrimaryGeneratorAction::B1PrimaryGeneratorAction | ( | ) |
Definition at line 23 of file B1PrimaryGeneratorAction.cc.
|
virtual |
we must delete the fParticleGun when the B1PrimaryGeneratorAction obj is deleted.
Definition at line 54 of file B1PrimaryGeneratorAction.cc.
|
virtual |
Definition at line 67 of file B1PrimaryGeneratorAction.cc.
|
inline |
Definition at line 44 of file B1PrimaryGeneratorAction.hh.
Referenced by B1RunAction::EndOfRunAction().