Geant4  10.03
OpNovicePrimaryGeneratorAction Class Reference

#include <OpNovicePrimaryGeneratorAction.hh>

+ Inheritance diagram for OpNovicePrimaryGeneratorAction:
+ Collaboration diagram for OpNovicePrimaryGeneratorAction:

Public Member Functions

 OpNovicePrimaryGeneratorAction ()
 
virtual ~OpNovicePrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *)
 
void SetOptPhotonPolar ()
 
void SetOptPhotonPolar (G4double)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunfParticleGun
 
OpNovicePrimaryGeneratorMessengerfGunMessenger
 

Detailed Description

Definition at line 46 of file OpNovicePrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

OpNovicePrimaryGeneratorAction::OpNovicePrimaryGeneratorAction ( )
OpNovicePrimaryGeneratorAction::~OpNovicePrimaryGeneratorAction ( )
virtual

Definition at line 71 of file OpNovicePrimaryGeneratorAction.cc.

References fGunMessenger, and fParticleGun.

Member Function Documentation

void OpNovicePrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 79 of file OpNovicePrimaryGeneratorAction.cc.

References fParticleGun, and G4ParticleGun::GeneratePrimaryVertex().

+ Here is the call graph for this function:

void OpNovicePrimaryGeneratorAction::SetOptPhotonPolar ( )

Definition at line 86 of file OpNovicePrimaryGeneratorAction.cc.

References angle, deg, and G4UniformRand.

Referenced by OpNovicePrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void OpNovicePrimaryGeneratorAction::SetOptPhotonPolar ( G4double  angle)

Definition at line 94 of file OpNovicePrimaryGeneratorAction.cc.

References fParticleGun, G4cout, G4endl, G4ParticleGun::GetParticleDefinition(), G4ParticleGun::GetParticleMomentumDirection(), G4ParticleDefinition::GetParticleName(), CLHEP::normal(), and G4ParticleGun::SetParticlePolarization().

+ Here is the call graph for this function:

Member Data Documentation

OpNovicePrimaryGeneratorMessenger* OpNovicePrimaryGeneratorAction::fGunMessenger
private
G4ParticleGun* OpNovicePrimaryGeneratorAction::fParticleGun
private

The documentation for this class was generated from the following files: