Geant4  10.02.p01
ExN04PrimaryGeneratorAction Class Reference

#include <ExN04PrimaryGeneratorAction.hh>

+ Inheritance diagram for ExN04PrimaryGeneratorAction:
+ Collaboration diagram for ExN04PrimaryGeneratorAction:

Public Member Functions

 ExN04PrimaryGeneratorAction ()
 
 ~ExN04PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *anEvent)
 
void SetGenerator (G4VPrimaryGenerator *gen)
 
void SetGenerator (G4String genname)
 
G4VPrimaryGeneratorGetGenerator () const
 
G4String GetGeneratorName () const
 
 ExN04PrimaryGeneratorAction ()
 
 ~ExN04PrimaryGeneratorAction ()
 
void GeneratePrimaries (G4Event *anEvent)
 
void SetHEPEvtGenerator (G4bool f)
 
G4bool GetHEPEvtGenerator ()
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4VPrimaryGeneratorparticleGun
 
G4VPrimaryGeneratorhepmcAscii
 
G4VPrimaryGeneratorpythiaGen
 
G4VPrimaryGeneratorcurrentGenerator
 
G4String currentGeneratorName
 
std::map< G4String,
G4VPrimaryGenerator * > 
gentypeMap
 
ExN04PrimaryGeneratorMessengermessenger
 
G4VPrimaryGeneratorHEPEvt
 
G4bool useHEPEvt
 

Detailed Description

Definition at line 43 of file ExN04PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

ExN04PrimaryGeneratorAction::ExN04PrimaryGeneratorAction ( )
ExN04PrimaryGeneratorAction::~ExN04PrimaryGeneratorAction ( )

Definition at line 60 of file ExN04PrimaryGeneratorAction.cc.

References messenger.

ExN04PrimaryGeneratorAction::ExN04PrimaryGeneratorAction ( )
ExN04PrimaryGeneratorAction::~ExN04PrimaryGeneratorAction ( )

Member Function Documentation

void ExN04PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 66 of file ExN04PrimaryGeneratorAction.cc.

References currentGenerator, FatalException, and G4Exception().

+ Here is the call graph for this function:

void ExN04PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual
G4VPrimaryGenerator * ExN04PrimaryGeneratorAction::GetGenerator ( ) const
inline

Definition at line 85 of file ExN04PrimaryGeneratorAction.hh.

References currentGenerator.

G4String ExN04PrimaryGeneratorAction::GetGeneratorName ( ) const
inline

Definition at line 90 of file ExN04PrimaryGeneratorAction.hh.

References currentGeneratorName.

G4bool ExN04PrimaryGeneratorAction::GetHEPEvtGenerator ( )
inline

Definition at line 60 of file ExN04PrimaryGeneratorAction.hh.

References useHEPEvt.

void ExN04PrimaryGeneratorAction::SetGenerator ( G4VPrimaryGenerator gen)
inline

Definition at line 70 of file ExN04PrimaryGeneratorAction.hh.

References currentGenerator.

void ExN04PrimaryGeneratorAction::SetGenerator ( G4String  genname)
inline

Definition at line 75 of file ExN04PrimaryGeneratorAction.hh.

References currentGenerator, currentGeneratorName, gentypeMap, and pos.

void ExN04PrimaryGeneratorAction::SetHEPEvtGenerator ( G4bool  f)
inline

Definition at line 58 of file ExN04PrimaryGeneratorAction.hh.

Member Data Documentation

G4VPrimaryGenerator* ExN04PrimaryGeneratorAction::currentGenerator
private
G4String ExN04PrimaryGeneratorAction::currentGeneratorName
private
std::map<G4String, G4VPrimaryGenerator*> ExN04PrimaryGeneratorAction::gentypeMap
private

Definition at line 63 of file ExN04PrimaryGeneratorAction.hh.

Referenced by ExN04PrimaryGeneratorAction(), and SetGenerator().

G4VPrimaryGenerator* ExN04PrimaryGeneratorAction::HEPEvt
private

Definition at line 52 of file ExN04PrimaryGeneratorAction.hh.

G4VPrimaryGenerator* ExN04PrimaryGeneratorAction::hepmcAscii
private

Definition at line 58 of file ExN04PrimaryGeneratorAction.hh.

Referenced by ExN04PrimaryGeneratorAction().

ExN04PrimaryGeneratorMessenger * ExN04PrimaryGeneratorAction::messenger
private
G4VPrimaryGenerator * ExN04PrimaryGeneratorAction::particleGun
private

Definition at line 57 of file ExN04PrimaryGeneratorAction.hh.

Referenced by ExN04PrimaryGeneratorAction().

G4VPrimaryGenerator* ExN04PrimaryGeneratorAction::pythiaGen
private

Definition at line 59 of file ExN04PrimaryGeneratorAction.hh.

Referenced by ExN04PrimaryGeneratorAction().

G4bool ExN04PrimaryGeneratorAction::useHEPEvt
private

Definition at line 55 of file ExN04PrimaryGeneratorAction.hh.

Referenced by GetHEPEvtGenerator().


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