Geant4  10.01.p03
HepMCG4Interface Class Reference

A base class for primary generation via HepMC object. This class is derived from G4VPrimaryGenerator. More...

#include <HepMCG4Interface.hh>

+ Inheritance diagram for HepMCG4Interface:
+ Collaboration diagram for HepMCG4Interface:

Public Member Functions

 HepMCG4Interface ()
 
virtual ~HepMCG4Interface ()
 
HepMC::GenEvent * GetHepMCGenEvent () const
 
virtual void GeneratePrimaryVertex (G4Event *anEvent)
 
 HepMCG4Interface ()
 
virtual ~HepMCG4Interface ()
 
HepMC::GenEvent * GetHepMCGenEvent () const
 
virtual void GeneratePrimaryVertex (G4Event *anEvent)
 
- Public Member Functions inherited from G4VPrimaryGenerator
 G4VPrimaryGenerator ()
 
virtual ~G4VPrimaryGenerator ()
 
G4ThreeVector GetParticlePosition ()
 
G4double GetParticleTime ()
 
void SetParticlePosition (G4ThreeVector aPosition)
 
void SetParticleTime (G4double aTime)
 

Protected Member Functions

virtual G4bool CheckVertexInsideWorld (const G4ThreeVector &pos) const
 
void HepMC2G4 (const HepMC::GenEvent *hepmcevt, G4Event *g4event)
 
virtual HepMC::GenEvent * GenerateHepMCEvent ()
 
virtual G4bool CheckVertexInsideWorld (const G4ThreeVector &pos) const
 
void HepMC2G4 (const HepMC::GenEvent *hepmcevt, G4Event *g4event)
 
virtual HepMC::GenEvent * GenerateHepMCEvent ()
 

Protected Attributes

HepMC::GenEvent * hepmcEvent
 
- Protected Attributes inherited from G4VPrimaryGenerator
G4ThreeVector particle_position
 
G4double particle_time
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPrimaryGenerator
static G4bool CheckVertexInsideWorld (const G4ThreeVector &pos)
 

Detailed Description

A base class for primary generation via HepMC object. This class is derived from G4VPrimaryGenerator.

Definition at line 41 of file HepMCG4Interface.hh.

Constructor & Destructor Documentation

HepMCG4Interface::HepMCG4Interface ( )

Definition at line 44 of file HepMCG4Interface.cc.

HepMCG4Interface::~HepMCG4Interface ( )
virtual

Definition at line 50 of file HepMCG4Interface.cc.

References hepmcEvent.

HepMCG4Interface::HepMCG4Interface ( )
virtual HepMCG4Interface::~HepMCG4Interface ( )
virtual

Member Function Documentation

G4bool HepMCG4Interface::CheckVertexInsideWorld ( const G4ThreeVector pos) const
protectedvirtual

Definition at line 57 of file HepMCG4Interface.cc.

References G4TransportationManager::GetTransportationManager(), and kInside.

Referenced by HepMC2G4().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual G4bool HepMCG4Interface::CheckVertexInsideWorld ( const G4ThreeVector pos) const
protectedvirtual
virtual HepMC::GenEvent* HepMCG4Interface::GenerateHepMCEvent ( )
protectedvirtual
HepMC::GenEvent * HepMCG4Interface::GenerateHepMCEvent ( )
protectedvirtual

Reimplemented in HepMCG4PythiaInterface, HepMCG4PythiaInterface, HepMCG4AsciiReader, and HepMCG4AsciiReader.

Definition at line 119 of file HepMCG4Interface.cc.

Referenced by GeneratePrimaryVertex().

+ Here is the caller graph for this function:

void HepMCG4Interface::GeneratePrimaryVertex ( G4Event anEvent)
virtual

Implements G4VPrimaryGenerator.

Definition at line 126 of file HepMCG4Interface.cc.

References G4cout, G4endl, GenerateHepMCEvent(), G4RunManager::GetRunManager(), HepMC2G4(), and hepmcEvent.

+ Here is the call graph for this function:

virtual void HepMCG4Interface::GeneratePrimaryVertex ( G4Event anEvent)
virtual

Implements G4VPrimaryGenerator.

HepMC::GenEvent* HepMCG4Interface::GetHepMCGenEvent ( ) const
HepMC::GenEvent * HepMCG4Interface::GetHepMCGenEvent ( ) const
inline

Definition at line 74 of file HepMCG4Interface.hh.

References hepmcEvent.

void HepMCG4Interface::HepMC2G4 ( const HepMC::GenEvent *  hepmcevt,
G4Event g4event 
)
protected

Definition at line 71 of file HepMCG4Interface.cc.

References CheckVertexInsideWorld(), GeV, mm, and position.

Referenced by GeneratePrimaryVertex().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void HepMCG4Interface::HepMC2G4 ( const HepMC::GenEvent *  hepmcevt,
G4Event g4event 
)
protected

Member Data Documentation

HepMC::GenEvent * HepMCG4Interface::hepmcEvent
protected

Definition at line 46 of file HepMCG4Interface.hh.

Referenced by GeneratePrimaryVertex(), GetHepMCGenEvent(), and ~HepMCG4Interface().


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