Public Types | Public Member Functions | Private Attributes | List of all members
EDepSim::VKinematicsGenerator Class Referenceabstract

#include <EDepSimVKinematicsGenerator.hh>

Inheritance diagram for EDepSim::VKinematicsGenerator:
EDepSim::GPSKinematicsGenerator EDepSim::NuMIRockKinematicsGenerator EDepSim::RooTrackerKinematicsGenerator

Public Types

enum  GeneratorStatus { kFail = 0, kSuccess, kLastVertex, kEndEvent }
 A status value that can be returned by GeneratePrimaryVertex. More...
 

Public Member Functions

 VKinematicsGenerator (const G4String &name)
 
virtual ~VKinematicsGenerator ()
 
virtual GeneratorStatus GeneratePrimaryVertex (G4Event *evt, const G4LorentzVector &position)=0
 
G4String GetName () const
 Return the name of the generator. More...
 

Private Attributes

G4String fName
 The name of the generator. More...
 

Detailed Description

Definition at line 25 of file EDepSimVKinematicsGenerator.hh.

Member Enumeration Documentation

A status value that can be returned by GeneratePrimaryVertex.

Enumerator
kFail 

The generation failed and should be tried again.

kSuccess 

A vertex was successfully generated.

kLastVertex 

The new vertex should be generated, but it is the last one for the event. This only has an effect if the EDepSim::PrimaryGenerator object is building a multiple vertex event.

kEndEvent 

A new vertex should not be generated and EDepSim::PrimaryGenerator should return. It is the users responsibility to make sure that at least one primary vertex will have been generated.

Definition at line 31 of file EDepSimVKinematicsGenerator.hh.

31  {
32  /// The generation failed and should be tried again.
33  kFail = 0,
34  /// A vertex was successfully generated.
35  kSuccess,
36  /// The new vertex should be generated, but it is the last one for the
37  /// event. This only has an effect if the EDepSim::PrimaryGenerator
38  /// object is building a multiple vertex event.
40  /// A new vertex should not be generated and EDepSim::PrimaryGenerator
41  /// should return. It is the users responsibility to make sure that
42  /// at least one primary vertex will have been generated.
43  kEndEvent,
GeneratorStatus
A status value that can be returned by GeneratePrimaryVertex.
A vertex was successfully generated.
The generation failed and should be tried again.

Constructor & Destructor Documentation

EDepSim::VKinematicsGenerator::VKinematicsGenerator ( const G4String &  name)
inline

Definition at line 27 of file EDepSimVKinematicsGenerator.hh.

27 : fName(name) {}
static QCString name
Definition: declinfo.cpp:673
G4String fName
The name of the generator.
virtual EDepSim::VKinematicsGenerator::~VKinematicsGenerator ( )
inlinevirtual

Definition at line 28 of file EDepSimVKinematicsGenerator.hh.

28 {}

Member Function Documentation

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

Add a G4PrimaryVertex object to the event. This should return EDepSim::VKinematicsGenerator::kFail if a vertex could not be generated for some reason (e.g. an event was discarded due to event weighting probabilities, or occurred on an illegal target). The vertex will be constructed as normal for G4, and added using the G4Event::AddPrimaryVertex(G4PrimaryVertex*) method.

Implemented in EDepSim::RooTrackerKinematicsGenerator, EDepSim::GPSKinematicsGenerator, and EDepSim::NuMIRockKinematicsGenerator.

G4String EDepSim::VKinematicsGenerator::GetName ( void  ) const
inline

Return the name of the generator.

Definition at line 56 of file EDepSimVKinematicsGenerator.hh.

56 {return fName;}
G4String fName
The name of the generator.

Member Data Documentation

G4String EDepSim::VKinematicsGenerator::fName
private

The name of the generator.

Definition at line 60 of file EDepSimVKinematicsGenerator.hh.


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