ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExN04PrimaryGeneratorAction Class Reference

#include <geant4/tree/geant4-10.6-release/examples/extended/eventgenerator/HepMC/HepMCEx01/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

G4VPrimaryGeneratorfParticleGun
 
G4VPrimaryGeneratorfHepmcAscii
 
G4VPrimaryGeneratorfPythiaGen
 
G4VPrimaryGeneratorfCurrentGenerator
 
G4String fCurrentGeneratorName
 
std::map< G4String,
G4VPrimaryGenerator * > 
fGentypeMap
 
ExN04PrimaryGeneratorMessengerfMessenger
 
G4VPrimaryGeneratorHEPEvt
 
G4VPrimaryGeneratorparticleGun
 
ExN04PrimaryGeneratorMessengermessenger
 
G4bool useHEPEvt
 

Detailed Description

Definition at line 42 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 42 of file ExN04PrimaryGeneratorAction.hh

Constructor & Destructor Documentation

ExN04PrimaryGeneratorAction::ExN04PrimaryGeneratorAction ( )

Definition at line 40 of file ExN04PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 40 of file ExN04PrimaryGeneratorAction.cc

References fCurrentGenerator, fCurrentGeneratorName, fGentypeMap, fHepmcAscii, fMessenger, fParticleGun, and fPythiaGen.

ExN04PrimaryGeneratorAction::~ExN04PrimaryGeneratorAction ( )

Definition at line 60 of file ExN04PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 60 of file ExN04PrimaryGeneratorAction.cc

References fMessenger.

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

Member Function Documentation

void ExN04PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 66 of file ExN04PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 66 of file ExN04PrimaryGeneratorAction.cc

References FatalException, fCurrentGenerator, and G4Exception().

+ Here is the call graph for this function:

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

Definition at line 84 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 84 of file ExN04PrimaryGeneratorAction.hh

References fCurrentGenerator.

G4String ExN04PrimaryGeneratorAction::GetGeneratorName ( ) const
inline

Definition at line 89 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 89 of file ExN04PrimaryGeneratorAction.hh

References fCurrentGeneratorName.

G4bool ExN04PrimaryGeneratorAction::GetHEPEvtGenerator ( )
inline

Definition at line 59 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 59 of file ExN04PrimaryGeneratorAction.hh

References useHEPEvt.

void ExN04PrimaryGeneratorAction::SetGenerator ( G4VPrimaryGenerator gen)
inline

Definition at line 69 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 69 of file ExN04PrimaryGeneratorAction.hh

References fCurrentGenerator.

void ExN04PrimaryGeneratorAction::SetGenerator ( G4String  genname)
inline

Definition at line 74 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 74 of file ExN04PrimaryGeneratorAction.hh

References fCurrentGenerator, fCurrentGeneratorName, fGentypeMap, and pos().

+ Here is the call graph for this function:

void ExN04PrimaryGeneratorAction::SetHEPEvtGenerator ( G4bool  f)
inline

Definition at line 57 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 57 of file ExN04PrimaryGeneratorAction.hh

References f, and useHEPEvt.

Member Data Documentation

G4VPrimaryGenerator* ExN04PrimaryGeneratorAction::fCurrentGenerator
private

Definition at line 60 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 60 of file ExN04PrimaryGeneratorAction.hh

Referenced by ExN04PrimaryGeneratorAction(), GeneratePrimaries(), GetGenerator(), and SetGenerator().

G4String ExN04PrimaryGeneratorAction::fCurrentGeneratorName
private

Definition at line 61 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 61 of file ExN04PrimaryGeneratorAction.hh

Referenced by ExN04PrimaryGeneratorAction(), GetGeneratorName(), and SetGenerator().

std::map<G4String, G4VPrimaryGenerator*> ExN04PrimaryGeneratorAction::fGentypeMap
private

Definition at line 62 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 62 of file ExN04PrimaryGeneratorAction.hh

Referenced by ExN04PrimaryGeneratorAction(), and SetGenerator().

G4VPrimaryGenerator* ExN04PrimaryGeneratorAction::fHepmcAscii
private

Definition at line 57 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 57 of file ExN04PrimaryGeneratorAction.hh

Referenced by ExN04PrimaryGeneratorAction().

ExN04PrimaryGeneratorMessenger* ExN04PrimaryGeneratorAction::fMessenger
private

Definition at line 64 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 64 of file ExN04PrimaryGeneratorAction.hh

Referenced by ExN04PrimaryGeneratorAction(), and ~ExN04PrimaryGeneratorAction().

G4VPrimaryGenerator* ExN04PrimaryGeneratorAction::fParticleGun
private

Definition at line 56 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 56 of file ExN04PrimaryGeneratorAction.hh

Referenced by ExN04PrimaryGeneratorAction().

G4VPrimaryGenerator* ExN04PrimaryGeneratorAction::fPythiaGen
private

Definition at line 58 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 58 of file ExN04PrimaryGeneratorAction.hh

Referenced by ExN04PrimaryGeneratorAction().

G4VPrimaryGenerator* ExN04PrimaryGeneratorAction::HEPEvt
private

Definition at line 51 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 51 of file ExN04PrimaryGeneratorAction.hh

ExN04PrimaryGeneratorMessenger* ExN04PrimaryGeneratorAction::messenger
private

Definition at line 53 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 53 of file ExN04PrimaryGeneratorAction.hh

G4VPrimaryGenerator* ExN04PrimaryGeneratorAction::particleGun
private

Definition at line 52 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 52 of file ExN04PrimaryGeneratorAction.hh

G4bool ExN04PrimaryGeneratorAction::useHEPEvt
private

Definition at line 54 of file ExN04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 54 of file ExN04PrimaryGeneratorAction.hh

Referenced by GetHEPEvtGenerator(), and SetHEPEvtGenerator().


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