Public Member Functions | Private Attributes | List of all members
EDepSim::GPSKinematicsGenerator Class Reference

#include <EDepSimGPSKinematicsGenerator.hh>

Inheritance diagram for EDepSim::GPSKinematicsGenerator:
EDepSim::VKinematicsGenerator

Public Member Functions

 GPSKinematicsGenerator (const G4String &name, G4VPrimaryGenerator *gps)
 
virtual ~GPSKinematicsGenerator ()
 
virtual GeneratorStatus GeneratePrimaryVertex (G4Event *evt, const G4LorentzVector &position)
 Add a primary vertex to the event. More...
 
- Public Member Functions inherited from EDepSim::VKinematicsGenerator
 VKinematicsGenerator (const G4String &name)
 
virtual ~VKinematicsGenerator ()
 
G4String GetName () const
 Return the name of the generator. More...
 

Private Attributes

G4VPrimaryGenerator * fGenerator
 

Additional Inherited Members

- Public Types inherited from EDepSim::VKinematicsGenerator
enum  GeneratorStatus { kFail = 0, kSuccess, kLastVertex, kEndEvent }
 A status value that can be returned by GeneratePrimaryVertex. More...
 

Detailed Description

Definition at line 16 of file EDepSimGPSKinematicsGenerator.hh.

Constructor & Destructor Documentation

EDepSim::GPSKinematicsGenerator::GPSKinematicsGenerator ( const G4String &  name,
G4VPrimaryGenerator *  gps 
)
EDepSim::GPSKinematicsGenerator::~GPSKinematicsGenerator ( )
virtual

Definition at line 10 of file EDepSimGPSKinematicsGenerator.cc.

10 {}

Member Function Documentation

EDepSim::VKinematicsGenerator::GeneratorStatus EDepSim::GPSKinematicsGenerator::GeneratePrimaryVertex ( G4Event *  evt,
const G4LorentzVector &  position 
)
virtual

Add a primary vertex to the event.

Implements EDepSim::VKinematicsGenerator.

Definition at line 13 of file EDepSimGPSKinematicsGenerator.cc.

14  {
15  fGenerator->GeneratePrimaryVertex(evt);
16  return kSuccess;
17 }
A vertex was successfully generated.
TCEvent evt
Definition: DataStructs.cxx:7

Member Data Documentation

G4VPrimaryGenerator* EDepSim::GPSKinematicsGenerator::fGenerator
private

Definition at line 28 of file EDepSimGPSKinematicsGenerator.hh.


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